Mir
mir_prompt_session.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2021 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 
22 typedef struct MirPromptSession MirPromptSession;
23 typedef void (*MirClientFdCallback)(MirPromptSession *prompt_session, size_t count, int const* fds, void* context);
24 
25 namespace miroil
26 {
27 
29 {
30 public:
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_ */

Copyright © 2012-2022 Canonical Ltd.
Generated on Thu Sep 8 12:37:23 UTC 2022
This documentation is licensed under the GPL version 2 or 3.