PolkitUnixSession

PolkitUnixSession — Unix sessions

Synopsis

                    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);

Object Hierarchy

  GObject
   +----PolkitUnixSession

Implemented Interfaces

PolkitUnixSession implements PolkitSubject.

Properties

  "session-id"               gchar*                : Read / Write / Construct

Description

An object that represents an user session.

The session id is an opaque string obtained from ConsoleKit.

Details

PolkitUnixSession

typedef struct _PolkitUnixSession PolkitUnixSession;

The PolkitUnixSession struct should not be accessed directly.


polkit_unix_session_new ()

PolkitSubject *     polkit_unix_session_new             (const gchar *session_id);

Creates a new PolkitUnixSession for session_id.

session_id :

The session id.

Returns :

A PolkitUnixSession. Free with g_object_unref().

polkit_unix_session_get_session_id ()

const gchar *       polkit_unix_session_get_session_id  (PolkitUnixSession *session);

Gets the session id for session.

session :

A PolkitUnixSession.

Returns :

The session id for session. Do not free this string, it is owned by session.

polkit_unix_session_set_session_id ()

void                polkit_unix_session_set_session_id  (PolkitUnixSession *session,
                                                         const gchar *session_id);

Sets the session id for session to session_id.

session :

A PolkitUnixSession.

session_id :

The session id.

Property Details

The "session-id" property

  "session-id"               gchar*                : Read / Write / Construct

The UNIX session id.

Default value: NULL