![]() |
![]() |
![]() |
PolicyKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
PolkitUnixSession; PolkitSubject * polkit_unix_session_new (const gchar *session_id); const gchar * polkit_unix_session_get_session_id (PolkitUnixSession *session); void polkit_unix_session_set_session_id (PolkitUnixSession *session, const gchar *session_id);
An object that represents an user session.
The session id is an opaque string obtained from ConsoleKit.
typedef struct _PolkitUnixSession PolkitUnixSession;
The PolkitUnixSession struct should not be accessed directly.
PolkitSubject * polkit_unix_session_new (const gchar *session_id);
Creates a new PolkitUnixSession for session_id
.
|
The session id. |
Returns : |
A PolkitUnixSession. Free with g_object_unref() .
|
const gchar * polkit_unix_session_get_session_id (PolkitUnixSession *session);
Gets the session id for session
.
|
A PolkitUnixSession. |
Returns : |
The session id for session . Do not free this string, it
is owned by session .
|
void polkit_unix_session_set_session_id (PolkitUnixSession *session, const gchar *session_id);
Sets the session id for session
to session_id
.
|
A PolkitUnixSession. |
|
The session id. |
"session-id"
property"session-id" gchar* : Read / Write / Construct
The UNIX session id.
Default value: NULL