Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mir_prompt_session.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 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 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 MIR_TOOLKIT_MIR_PROMPT_SESSION_H_
18 #define MIR_TOOLKIT_MIR_PROMPT_SESSION_H_
19 
21 
22 #include <sys/types.h>
23 
24 #ifdef __cplusplus
25 
29 extern "C" {
30 #endif
31 
41  MirConnection* connection,
42  pid_t application_pid,
43  mir_prompt_session_state_change_callback state_change_callback,
44  void *context);
45 
61  MirPromptSession *prompt_session,
62  unsigned int no_of_fds,
63  mir_client_fd_callback callback,
64  void * context);
65 
71 
78 
87 char const *mir_prompt_session_error_message(MirPromptSession *prompt_session);
88 
89 #ifdef __cplusplus
90 }
92 #endif
93 
94 #endif /* MIR_TOOLKIT_MIR_PROMPT_SESSION_H_ */
MirBool
Definition: client_types.h:37
void(* mir_prompt_session_state_change_callback)(MirPromptSession *prompt_provider, MirPromptSessionState state, void *context)
Callback member of MirPromptSession for handling of prompt sessions events.
Definition: client_types.h:336
Definition: mir_wait_handle.h:31
MirBool mir_prompt_session_is_valid(MirPromptSession *prompt_session)
Test for a valid prompt session.
Definition: mir_prompt_session_api.cpp:81
MirPromptSession * mir_connection_create_prompt_session_sync(MirConnection *connection, pid_t application_pid, mir_prompt_session_state_change_callback state_change_callback, void *context)
Create and start a new prompt session.
Definition: mir_prompt_session_api.cpp:32
void(* mir_client_fd_callback)(MirPromptSession *prompt_session, size_t count, int const *fds, void *context)
Callback called when a request for client file descriptors completes.
Definition: client_types.h:117
MirWaitHandle * mir_prompt_session_new_fds_for_prompt_providers(MirPromptSession *prompt_session, unsigned int no_of_fds, mir_client_fd_callback callback, void *context)
Allocate some FDs for prompt providers to connect on.
Definition: mir_prompt_session_api.cpp:56
char const * mir_prompt_session_error_message(MirPromptSession *prompt_session)
Retrieve a text description of the last error.
Definition: mir_prompt_session_api.cpp:88
Definition: mir_prompt_session.h:40
Definition: mir_connection.h:72
void mir_prompt_session_release_sync(MirPromptSession *prompt_session)
Stop and release the specified prompt session.
Definition: mir_prompt_session_api.cpp:74

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014