Mir
mir_prompt_session.h
Go to the documentation of this file.
1/*
2 * Copyright © Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 2 or 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef MIROIL_MIR_PROMPT_SESSION_H_
18#define MIROIL_MIR_PROMPT_SESSION_H_
19#include <memory>
20#include <functional>
21
22typedef struct MirPromptSession MirPromptSession;
23typedef void (*MirClientFdCallback)(MirPromptSession *prompt_session, size_t count, int const* fds, void* context);
24
25namespace miroil
26{
27
29{
30public:
31 MirPromptSession(::MirPromptSession * promptSession);
35
38
39 bool operator==(MirPromptSession const& other);
40
41 bool new_fds_for_prompt_providers(unsigned int no_of_fds, MirClientFdCallback callback, void * context);
42
43 ::MirPromptSession * prompt_session;
44};
45
46}
47
48#endif /* MIROIL_MIR_PROMPT_SESSION_H_ */
Definition: mir_prompt_session.h:29
MirPromptSession(MirPromptSession &&src)
MirPromptSession(MirPromptSession const &src)
auto operator=(MirPromptSession const &src) -> MirPromptSession &
bool operator==(MirPromptSession const &other)
MirPromptSession(::MirPromptSession *promptSession)
bool new_fds_for_prompt_providers(unsigned int no_of_fds, MirClientFdCallback callback, void *context)
::MirPromptSession * prompt_session
Definition: mir_prompt_session.h:43
auto operator=(MirPromptSession &&src) -> MirPromptSession &
void(* MirClientFdCallback)(MirPromptSession *prompt_session, size_t count, int const *fds, void *context)
Definition: mir_prompt_session.h:23
Definition: compositor.h:21

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.