| Liboobs (System configuration management) Reference Manual | ||||
|---|---|---|---|---|
OobsPlatform;
OobsSession;
OobsSession * oobs_session_get (void);
OobsResult oobs_session_commit (OobsSession *session);
gboolean oobs_session_get_connected (OobsSession *session);
OobsResult oobs_session_get_supported_platforms
(OobsSession *session,
GList **platforms);
OobsResult oobs_session_get_platform (OobsSession *session,
gchar **platform);
OobsResult oobs_session_set_platform (OobsSession *session,
const gchar *platform);
void oobs_session_process_requests (OobsSession *session);
const gchar * oobs_session_get_authentication_action
(OobsSession *session);
typedef struct {
const gchar *id;
const gchar *name;
const gchar *version;
const gchar *codename;
} OobsPlatform;
OobsSession * oobs_session_get (void);
Returns the OobsSession singleton, which represents the session with the system tools backends.
Returns : |
the singleton |
OobsResult oobs_session_commit (OobsSession *session);
Commits inmediately all the changes to the configuration
objects that have been requested through this
|
an OobsSession |
Returns : |
An |
gboolean oobs_session_get_connected (OobsSession *session);
Returns whether the connection with the backends is established.
|
An OobsSession |
Returns : |
|
OobsResult oobs_session_get_supported_platforms (OobsSession *session,GList **platforms);
Retrieves the list of supported platforms, this is only necessary when
+ oobs_session_get_platform() has returned oobs_session_set_platform(), being
the platform string in that function the platform->id value inside
the OobsPlatform struct.
|
An |
|
return location for the list of platforms. It's a
g_list_free() |
Returns : |
An |
OobsResult oobs_session_get_platform (OobsSession *session,gchar **platform);
Retrieves the platform your system has been identified with, or
|
An |
|
location to store the current platform, or |
Returns : |
An |
OobsResult oobs_session_set_platform (OobsSession *session, constgchar *platform);
Identifies your platform as the one set in platform. This is only necessary if
your platform could not be guessed (and thus oobs_session_get_platform() would
return
|
An |
|
A string defining the platform. see
oobs_session_get_platforms_list() |
Returns : |
An |
void oobs_session_process_requests (OobsSession *session);
Blocks until all pending asynchronous requests have been processed.
|
An OobsSession |
constgchar * oobs_session_get_authentication_action (OobsSession *session);
Returns the PolicyKit action the user has to be authenticated to in order to
commit changes to configuration objects in this session. If the user has not
the required permissions, any attempt to commit will return
|
An OobsSession |
Returns : |
string defining the PolicyKit action required to modify objects in the session. |