Ubuntu Platform API
1.0.0
A library helping with tight integration into the Ubuntu platform
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
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
#ifndef UBUNTU_APPLICATION_UI_SESSION_H_
21
#define UBUNTU_APPLICATION_UI_SESSION_H_
22
23
#include <
ubuntu/visibility.h
>
24
25
#include <stdint.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
typedef
void
UAUiSession
;
32
typedef
void
UAUiSessionProperties
;
33
34
typedef
enum
35
{
36
U_USER_SESSION
= 0,
37
U_SYSTEM_SESSION
= 1
38
}
UAUiSessionType
;
39
40
UBUNTU_DLL_PUBLIC
UAUiSession*
41
ua_ui_session_new_with_properties
(
42
UAUiSessionProperties *properties);
43
44
UBUNTU_DLL_PUBLIC
UAUiSessionProperties*
45
ua_ui_session_properties_new
();
46
47
UBUNTU_DLL_PUBLIC
void
48
ua_ui_session_properties_set_type
(
49
UAUiSessionProperties* properties,
50
UAUiSessionType
type);
51
52
UBUNTU_DLL_PUBLIC
void
53
ua_ui_session_properties_set_remote_pid
(
54
UAUiSessionProperties* properties,
55
uint32_t pid);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* UBUNTU_APPLICATION_UI_SESSION_H_ */
include
ubuntu
application
ui
session.h
Generated on Tue Oct 15 2013 02:50:25 for Ubuntu Platform API by
1.8.4