| Liboobs (System configuration management) Reference Manual | ||||
|---|---|---|---|---|
OobsObject;
void (*OobsObjectAsyncFunc) (OobsObject *object,
OobsResult result,
gpointer data);
OobsResult oobs_object_commit (OobsObject *object);
OobsResult oobs_object_commit_async (OobsObject *object,
OobsObjectAsyncFunc func,
gpointer data);
OobsResult oobs_object_update (OobsObject *object);
OobsResult oobs_object_update_async (OobsObject *object,
OobsObjectAsyncFunc func,
gpointer data);
void oobs_object_process_requests (OobsObject *object);
gboolean oobs_object_has_updated (OobsObject *object);
void oobs_object_ensure_update (OobsObject *object);
const gchar * oobs_object_get_authentication_action
(OobsObject *object);
GObject +----OobsObject +----OobsTimeConfig +----OobsNTPConfig +----OobsGroupsConfig +----OobsIfacesConfig +----OobsNFSConfig +----OobsSelfConfig +----OobsHostsConfig +----OobsServicesConfig +----OobsUsersConfig +----OobsSMBConfig
void (*OobsObjectAsyncFunc) (OobsObject *object,OobsResult result,gpointer data);
|
|
|
|
|
OobsResult oobs_object_commit (OobsObject *object);
Commits to the system all the changes done
to the configuration held by an
|
an OobsObject |
Returns : |
an |
OobsResult oobs_object_commit_async (OobsObject *object, OobsObjectAsyncFunc func,gpointer data);
Commits to the system all the changes done to the configuration held by an func when the change has been done.
|
An |
|
An OobsObjectAsyncFunc that will be called when the asynchronous operation has ended. |
|
Aditional data to pass to func.
|
Returns : |
an |
OobsResult oobs_object_update (OobsObject *object);
Synchronizes the configuration held by the OobsObject with the actual system configuration. All the changes done to the configuration held by the OobsObject will be forgotten.
|
an OobsObject |
Returns : |
an |
OobsResult oobs_object_update_async (OobsObject *object, OobsObjectAsyncFunc func,gpointer data);
Synchronizes the configuration held by the OobsObject
with the actual system configuration. All the changes done
to the configuration held by the OobsObject will be forgotten.
The update operation will be asynchronous, being run the
function func when the update has been done.
|
An OobsObject |
|
An OobsObjectAsyncFunc that will be called when the asynchronous operation has ended. |
|
Aditional data to pass to func.
|
Returns : |
an |
void oobs_object_process_requests (OobsObject *object);
Blocks until all pending asynchronous requests to this object have been processed.
|
An OobsObject |
gboolean oobs_object_has_updated (OobsObject *object);
Returns whether the object has been updated since its creation.
see oobs_object_update() and oobs_object_update_async().
|
An OobsObject |
Returns : |
|
void oobs_object_ensure_update (OobsObject *object);
Ensures that the given object has been updated. If not it either blocks until any update request sent is dispatched or updates synchronously.
|
An OobsObject |
constgchar * oobs_object_get_authentication_action (OobsObject *object);
Returns the PolicyKit action required to be able to modify this object configuration.
|
An |
Returns : |
string defining the PolicyKit action required to modify objects in the session. |
"changed" signalvoid user_function (OobsObject *oobsobject,gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"committed" signalvoid user_function (OobsObject *oobsobject,gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"updated" signalvoid user_function (OobsObject *oobsobject,gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |