Ubuntu Platform API  2.9.0
A library helping with tight integration into the Ubuntu platform
session.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * 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  * Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
17  * Thomas Voß <thomas.voss@canonical.com>
18  */
19 
20 /*
21  * DEPRECATED: In favor of u_application_instance_get_mir_connection
22  * and the mir client library
23  */
24 
25 #ifndef UBUNTU_APPLICATION_UI_SESSION_H_
26 #define UBUNTU_APPLICATION_UI_SESSION_H_
27 
28 #include <ubuntu/visibility.h>
29 
30 #include <stdint.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36  typedef void UAUiSession;
37  typedef void UAUiSessionProperties;
38 
39  typedef enum
40  {
44 
45  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
46  UBUNTU_DLL_PUBLIC UAUiSession*
47  ua_ui_session_new_with_properties(
48  UAUiSessionProperties *properties);
49 
50  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
51  UBUNTU_DLL_PUBLIC UAUiSessionProperties*
52  ua_ui_session_properties_new();
53 
54  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
56  ua_ui_session_properties_set_type(
57  UAUiSessionProperties* properties,
59 
60  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
62  ua_ui_session_properties_set_remote_pid(
63  UAUiSessionProperties* properties,
64  uint32_t pid);
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* UBUNTU_APPLICATION_UI_SESSION_H_ */
void UAUiSessionProperties
Definition: session.h:37
UBUNTU_DLL_PUBLIC MirConnection * u_application_instance_get_mir_connection(UApplicationInstance *instance)
Return the MirConnection associated with an application instance. Use of MirConnection with the mir c...
void UAUiSession
Definition: session.h:36
UAUiSessionType
Definition: session.h:39
__attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library"))) UBUNTU_DLL_PUBLIC UAUiSession *ua_ui_session_new_with_properties(UAUiSessionProperties *properties)
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
UAUiWindowProperties * properties
Definition: window.h:52
uint32_t pid
Definition: session.h:64
UAUiSessionType type
Definition: session.h:58