From ee9c73a923909e23a649407be77e25235d769e25 Mon Sep 17 00:00:00 2001
From: Michael Biebl
-
-const GPtrArray *
-
-
-nm_client_get_checkpoints ()
-
-
-
-
-void
-
-
-nm_client_checkpoint_create ()
-
-
-
-
-NMCheckpoint *
-
-
-nm_client_checkpoint_create_finish ()
-
-
-
-
-void
-
-
-nm_client_checkpoint_destroy ()
-
-
-
-
-gboolean
-
-
-nm_client_checkpoint_destroy_finish ()
-
-
-
-
-void
-
-
-nm_client_checkpoint_rollback ()
-
-
-
-
-GHashTable *
-
-
-nm_client_checkpoint_rollback_finish ()
-
-
-
-
-void
-
-
-nm_client_checkpoint_adjust_rollback_timeout ()
-
-
-
@@ -677,12 +606,6 @@
-gboolean
-
-
-nm_client_checkpoint_adjust_rollback_timeout_finish ()
-
-
-
GPtrArray *
-checkpoints
-Read
-
-
@@ -3547,438 +3470,6 @@ and should not be modified.
-GPtrArray *
connections
Read
Since: 1.6
-const GPtrArray *
-nm_client_get_checkpoints (NMClient *client);
-Gets all the active checkpoints.
- -a GPtrArray -containing all the NMCheckpoint. The returned array is owned by the -NMClient object and should not be modified.
-[transfer none][element-type NMCheckpoint]
-Since: 1.12
-void -nm_client_checkpoint_create (-NMClient *client, -const GPtrArray *devices, -guint32 rollback_timeout, -NMCheckpointCreateFlags flags, -GCancellable *cancellable, -GAsyncReadyCallback callback, -gpointer user_data);
Creates a checkpoint of the current networking configuration
-for given interfaces. An empty devices
- argument means all
-devices. If rollback_timeout
- is not zero, a rollback is
-automatically performed after the given timeout.
client |
-the |
-- |
devices |
-a list of devices for which a -checkpoint should be created. |
-[element-type NMDevice] | -
rollback_timeout |
-the rollback timeout in seconds |
-- |
flags |
-creation flags |
-- |
cancellable |
-a GCancellable, or |
-- |
callback |
-callback to be called when the add operation completes. |
-[scope async] | -
user_data |
-caller-specific data passed to |
-[closure] | -
Since: 1.12
-NMCheckpoint * -nm_client_checkpoint_create_finish (-NMClient *client, -GAsyncResult *result, -GError **error);
Gets the result of a call to nm_client_checkpoint_create().
client |
-the NMClient |
-- |
result |
-the result passed to the GAsyncReadyCallback |
-- |
error |
-- | - |
the new NMCheckpoint on success, NULL on
-failure, in which case error
-will be set.
[transfer full]
-Since: 1.12
-void -nm_client_checkpoint_destroy (-NMClient *client, -const char *checkpoint_path, -GCancellable *cancellable, -GAsyncReadyCallback callback, -gpointer user_data);
Destroys an existing checkpoint without performing a rollback.
-client |
-the |
-- |
checkpoint_path |
-the D-Bus path for the checkpoint |
-- |
cancellable |
-a GCancellable, or |
-- |
callback |
-callback to be called when the add operation completes. |
-[scope async] | -
user_data |
-caller-specific data passed to |
-[closure] | -
Since: 1.12
-gboolean -nm_client_checkpoint_destroy_finish (-NMClient *client, -GAsyncResult *result, -GError **error);
Gets the result of a call to nm_client_checkpoint_destroy().
client |
-an NMClient |
-- |
result |
-the result passed to the GAsyncReadyCallback |
-- |
error |
-- | - |
Since: 1.12
-void -nm_client_checkpoint_rollback (-NMClient *client, -const char *checkpoint_path, -GCancellable *cancellable, -GAsyncReadyCallback callback, -gpointer user_data);
Performs the rollback of a checkpoint before the timeout is reached.
-client |
-the |
-- |
checkpoint_path |
-the D-Bus path to the checkpoint |
-- |
cancellable |
-a GCancellable, or |
-- |
callback |
-callback to be called when the add operation completes. |
-[scope async] | -
user_data |
-caller-specific data passed to |
-[closure] | -
Since: 1.12
-GHashTable * -nm_client_checkpoint_rollback_finish (-NMClient *client, -GAsyncResult *result, -GError **error);
Gets the result of a call to nm_client_checkpoint_rollback().
client |
-an NMClient |
-- |
result |
-the result passed to the GAsyncReadyCallback |
-- |
error |
-- | - |
an hash table of -devices and results. Devices are represented by their original -D-Bus path; each result is a NMRollbackResult.
-[transfer full][element-type utf8 guint32]
-Since: 1.12
-void -nm_client_checkpoint_adjust_rollback_timeout - (-NMClient *client, -const char *checkpoint_path, -guint32 add_timeout, -GCancellable *cancellable, -GAsyncReadyCallback callback, -gpointer user_data);
Resets the timeout for the checkpoint with path checkpoint_path
-
-to timeout_add
-.
client |
-the |
-- |
checkpoint_path |
-a D-Bus path to a checkpoint |
-- |
add_timeout |
-the timeout in seconds counting from now. -Set to zero, to disable the timeout. |
-- |
cancellable |
-a GCancellable, or |
-- |
callback |
-callback to be called when the add operation completes. |
-[scope async] | -
user_data |
-caller-specific data passed to |
-[closure] | -
Since: 1.12
-gboolean -nm_client_checkpoint_adjust_rollback_timeout_finish - (-NMClient *client, -GAsyncResult *result, -GError **error);
Gets the result of a call to nm_client_checkpoint_adjust_rollback_timeout().
client |
-an NMClient |
-- |
result |
-the result passed to the GAsyncReadyCallback |
-- |
error |
-- | - |
Since: 1.12
-“active-connections” property“active-connections” GPtrArray *
The active connections.
-[type GPtrArray(NMActiveConnection)]
+Element-type: NMActiveConnection
Flags: Read
“all-devices” property “all-devices” GPtrArray *
List of both real devices and device placeholders.
-[type GPtrArray(NMDevice)]
+Element-type: NMDevice
Flags: Read
Since: 1.2
@@ -4489,22 +3980,13 @@ likely to become the new -“checkpoints” property “checkpoints” GPtrArray *
-The list of active checkpoints.
-[type GPtrArray(NMCheckpoint)]
-Flags: Read
-Since: 1.12
- -“connections” property“connections” GPtrArray *
The list of configured connections that are available to the user. (Note that this differs from the underlying D-Bus property, which may also contain the object paths of connections that the user does not have permission to read the details of.)
-[type GPtrArray(NMRemoteConnection)]
+Element-type: NMRemoteConnection
Flags: Read
“devices” property “devices” GPtrArray *
List of real network devices. Does not include placeholder devices.
-[type GPtrArray(NMDevice)]
+Element-type: NMDevice
Flags: Read
[type GPtrArray(GVariant)]
Flags: Read
Since: 1.6
-- cgit 1.3.0-6-gf8a5 From 04bc9e1cd3544445d883ad29ea108c1645c8e7b7 Mon Sep 17 00:00:00 2001 From: Michael BieblNMClient implements - GInitable and GAsyncInitable.
+ GInitable and GAsyncInitable.GQuark +GQuark nm_client_error_quark (void);Registers an error quark for NMClient if necessary.
@@ -1123,7 +1200,7 @@ nm_dns_entry_get_priority (@@ -1151,8 +1228,8 @@ nm_dns_entry_get_vpn (nm_dns_entry_get_vpn ()
-gboolean +gboolean nm_dns_entry_get_vpn (NMDnsEntry *entry);Gets whether the entry refers to VPN name servers.
@@ -1143,7 +1220,7 @@ nm_dns_entry_get_vpn (Returns
-+
TRUEif the entry refers to VPN name servers
TRUEif the entry refers to VPN name serversSince: 1.6
nm_client_new ()
NMClient * -nm_client_new (+nm_client_new (GCancellable *cancellable, -GError **error);GCancellable *cancellable, +GError **error);
Creates a new NMClient.
Note that this will do blocking D-Bus calls to initialize the
client. You can use nm_client_new_async() if you want to avoid
@@ -1168,12 +1245,12 @@ that.
cancellable
a GCancellable, or NULL
a GCancellable, or NULL
error
void -nm_client_new_async (+nm_client_new_async (GCancellable *cancellable, -GAsyncReadyCallback callback, -gpointer user_data);
GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
Creates a new NMClient and begins asynchronously initializing it.
callback
will be called when it is done; use
@@ -1207,7 +1284,7 @@ the callback can be invoked with two first parameters as NULL.
cancellable
a GCancellable, or NULL
a GCancellable, or NULL
NMClient * -nm_client_new_finish (+nm_client_new_finish (GAsyncResult *result, -GError **error);
GAsyncResult *result,
+ GError **error);
Gets the result of an nm_client_new_async() call.
error
Returns
-
+
Returns
- string with the version (or NULL if NetworkManager is not running)
+ string with the version (or NULL if NetworkManager is not running)
nm_client_get_startup ()
-gboolean
+gboolean
nm_client_get_startup (NMClient *client);
Tests whether the daemon is still in the process of activating
connections at startup.
@@ -1341,7 +1418,7 @@ connections at startup.
nm_client_get_nm_running ()
-gboolean
+gboolean
nm_client_get_nm_running (NMClient *client);
Determines whether the daemon is running.
nm_client_networking_get_enabled ()
-gboolean
+gboolean
nm_client_networking_get_enabled (NMClient *client);
Whether networking is enabled or disabled.
nm_client_networking_set_enabled ()
-gboolean
+gboolean
nm_client_networking_set_enabled (NMClient *client,
- gboolean enabled,
- GError **error);
+ gboolean enabled,
+ GError **error);
Enables or disables networking. When networking is disabled, all controlled
interfaces are disconnected and deactivated. When networking is enabled,
all controlled interfaces are available for activation.
@@ -1416,12 +1493,12 @@ all controlled interfaces are available for activation.
enabled
-TRUE to set networking enabled, FALSE to set networking disabled
+TRUE to set networking enabled, FALSE to set networking disabled
error
-
+
[allow-none]
@@ -1429,13 +1506,13 @@ all controlled interfaces are available for activation.
nm_client_wireless_get_enabled ()
-gboolean
+gboolean
nm_client_wireless_get_enabled (NMClient *client);
Determines whether the wireless is enabled.
@@ -1463,7 +1540,7 @@ nm_client_wireless_get_enabled (nm_client_wireless_set_enabled ()
void
nm_client_wireless_set_enabled (NMClient *client,
- gboolean enabled);
+ gboolean enabled);
Enables or disables wireless devices.
Parameters
@@ -1481,7 +1558,7 @@ nm_client_wireless_set_enabled (
enabled
-TRUE to enable wireless
+TRUE to enable wireless
@@ -1491,7 +1568,7 @@ nm_client_wireless_set_enabled (
nm_client_wwan_get_enabled ()
-gboolean
+gboolean
nm_client_wwan_get_enabled (NMClient *client);
Determines whether WWAN is enabled.
@@ -1546,7 +1623,7 @@ nm_client_wwan_get_enabled (nm_client_wwan_set_enabled ()
void
nm_client_wwan_set_enabled (NMClient *client,
- gboolean enabled);
+ gboolean enabled);
Enables or disables WWAN devices.
Parameters
@@ -1564,7 +1641,7 @@ nm_client_wwan_set_enabled (enabled
-TRUE to enable WWAN
+TRUE to enable WWAN
@@ -1574,7 +1651,7 @@ nm_client_wwan_set_enabled (
nm_client_wwan_hardware_get_enabled ()
-gboolean
+gboolean
nm_client_wwan_hardware_get_enabled (NMClient *client);
Determines whether the WWAN hardware is enabled.
nm_client_wimax_get_enabled ()
-gboolean
+gboolean
nm_client_wimax_get_enabled (NMClient *client);
Determines whether WiMAX is enabled.
@@ -1628,7 +1705,7 @@ nm_client_wimax_get_enabled (nm_client_wimax_set_enabled ()
void
nm_client_wimax_set_enabled (NMClient *client,
- gboolean enabled);
+ gboolean enabled);
Enables or disables WiMAX devices.
Parameters
@@ -1646,7 +1723,7 @@ nm_client_wimax_set_enabled (enabled
-TRUE to enable WiMAX
+TRUE to enable WiMAX
@@ -1656,7 +1733,7 @@ nm_client_wimax_set_enabled (
nm_client_wimax_hardware_get_enabled ()
-gboolean
+gboolean
nm_client_wimax_hardware_get_enabled (NMClient *client);
Determines whether the WiMAX hardware is enabled.
nm_client_connectivity_check_get_available ()
-gboolean
+gboolean
nm_client_connectivity_check_get_available
(NMClient *client);
Determine whether connectivity checking is available. This
@@ -1705,14 +1782,14 @@ configuration file.
Since: 1.10
nm_client_connectivity_check_get_enabled ()
-gboolean
+gboolean
nm_client_connectivity_check_get_enabled
(NMClient *client);
Determine whether connectivity checking is enabled.
@@ -1733,7 +1810,7 @@ nm_client_connectivity_check_get_enabled
Since: 1.10
@@ -1743,7 +1820,7 @@ nm_client_connectivity_check_get_enabled
void
nm_client_connectivity_check_set_enabled
(NMClient *client,
- gboolean enabled);
+ gboolean enabled);
Enable or disable connectivity checking. Note that if a
connectivity checking URI has not been configured, this will not
have any effect.
@@ -1763,7 +1840,7 @@ have any effect.
enabled
-TRUE to enable connectivity checking
+TRUE to enable connectivity checking
@@ -1774,11 +1851,11 @@ have any effect.
nm_client_get_logging ()
-gboolean
+gboolean
nm_client_get_logging (NMClient *client,
char **level,
char **domains,
- GError **error);
+ GError **error);
Gets NetworkManager current logging level and domains.
nm_client_set_logging ()
-gboolean
+gboolean
nm_client_set_logging (NMClient *client,
const char *level,
const char *domains,
- GError **error);
+ GError **error);
Sets NetworkManager logging level and/or domains.
Parameters
@@ -1843,18 +1920,18 @@ nm_client_set_logging (level
-logging level to set (NULL or an empty string for no change).
+logging level to set (NULL or an empty string for no change).
[allow-none]
domains
logging domains to set. The string should be a list of log
-domains separated by ",". (NULL or an empty string for no change).
+domains separated by ",". (NULL or an empty string for no change).
[allow-none]
error
-
+
[allow-none]
@@ -1862,7 +1939,7 @@ domains separated by ",". (
@@ -1934,8 +2011,8 @@ connectivity state first before returning any information.
nm_client_check_connectivity ()
NMConnectivityState
nm_client_check_connectivity (NMClient *client,
- GCancellable *cancellable,
- GError **error);
+ GCancellable *cancellable,
+ GError **error);
Updates the network connectivity state and returns the (new)
current state. Contrast nm_client_get_connectivity(), which returns
the most recent known state without re-checking.
@@ -1957,12 +2034,12 @@ if you do not want to block.
cancellable
-
+
error
-return location for a GError
+return location for a GError
@@ -1978,9 +2055,9 @@ if you do not want to block.
nm_client_check_connectivity_async ()
void
nm_client_check_connectivity_async (NMClient *client,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
Asynchronously updates the network connectivity state and invokes
callback
when complete. Contrast nm_client_get_connectivity(),
@@ -2002,7 +2079,7 @@ re-checking, and cancellable
-
+
@@ -2025,8 +2102,8 @@ re-checking, and nm_client_check_connectivity_finish ()
NMConnectivityState
nm_client_check_connectivity_finish (NMClient *client,
- GAsyncResult *result,
- GError **error);
+ GAsyncResult *result,
+ GError **error);
Retrieves the result of an nm_client_check_connectivity_async()
call.
@@ -2045,12 +2122,12 @@ call.
result
-the GAsyncResult
+the GAsyncResult
error
-return location for a GError
+return location for a GError
@@ -2064,11 +2141,11 @@ call.
nm_client_save_hostname ()
-gboolean
+gboolean
nm_client_save_hostname (NMClient *client,
const char *hostname,
- GCancellable *cancellable,
- GError **error);
+ GCancellable *cancellable,
+ GError **error);
Requests that the machine's persistent hostname be set to the specified value
or cleared.
@@ -2087,18 +2164,18 @@ or cleared.
hostname
-the new persistent hostname to set, or NULL to
+
the new persistent hostname to set, or NULL to
clear any existing persistent hostname.
[allow-none]
cancellable
-a GCancellable, or NULL
+a GCancellable, or NULL
error
-return location for GError
+return location for GError
@@ -2106,7 +2183,7 @@ clear any existing persistent hostname.
@@ -2115,9 +2192,9 @@ clear any existing persistent hostname.
void
nm_client_save_hostname_async (NMClient *client,
const char *hostname,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
Requests that the machine's persistent hostname be set to the specified value
or cleared.
@@ -2136,13 +2213,13 @@ or cleared.
hostname
-the new persistent hostname to set, or NULL to
+
the new persistent hostname to set, or NULL to
clear any existing persistent hostname.
[allow-none]
cancellable
-a GCancellable, or NULL
+a GCancellable, or NULL
@@ -2163,10 +2240,10 @@ clear any existing persistent hostname.
nm_client_save_hostname_finish ()
-gboolean
+gboolean
nm_client_save_hostname_finish (NMClient *client,
- GAsyncResult *result,
- GError **error);
+ GAsyncResult *result,
+ GError **error);
Gets the result of an nm_client_save_hostname_async() call.
Parameters
@@ -2184,12 +2261,12 @@ nm_client_save_hostname_finish (
result
-the result passed to the GAsyncReadyCallback
+the result passed to the GAsyncReadyCallback
error
-return location for GError
+return location for GError
@@ -2197,13 +2274,13 @@ nm_client_save_hostname_finish (
nm_client_get_devices ()
-const GPtrArray *
+const GPtrArray *
nm_client_get_devices (NMClient *client);
Gets all the known network devices. Use nm_device_get_type() or the
NM_IS_DEVICE_XXXX functions to determine what kind of
@@ -2226,7 +2303,7 @@ methods such as
Returns
-a GPtrArray
+
a GPtrArray
containing all the NMDevices. The returned array is owned by the
NMClient object and should not be modified.
[transfer none][element-type NMDevice]
@@ -2235,7 +2312,7 @@ containing all the NM
nm_client_get_all_devices ()
-const GPtrArray *
+const GPtrArray *
nm_client_get_all_devices (NMClient *client);
Gets both real devices and device placeholders (eg, software devices which
do not currently exist, but could be created automatically by NetworkManager
@@ -2262,7 +2339,7 @@ use device-specific methods such as
Returns
-a GPtrArray
+
a GPtrArray
containing all the NMDevices. The returned array is owned by the
NMClient object and should not be modified.
[transfer none][element-type NMDevice]
@@ -2301,7 +2378,7 @@ nm_client_get_device_by_path (
Returns
the NMDevice for the given object_path
-or NULL if none is found.
+or NULL if none is found.
[transfer none]
@@ -2337,14 +2414,14 @@ nm_client_get_device_by_iface (
Returns
the NMDevice for the given iface
-or NULL if none is found.
+or NULL if none is found.
[transfer none]
nm_client_get_active_connections ()
-const GPtrArray *
+const GPtrArray *
nm_client_get_active_connections (NMClient *client);
Gets the active connections.
@@ -2364,7 +2441,7 @@ nm_client_get_active_connections (
Returns
-a GPtrArray
+
a GPtrArray
containing all the active NMActiveConnections.
The returned array is owned by the client and should not be modified.
[transfer none][element-type NMActiveConnection]
@@ -2383,7 +2460,7 @@ the default route. If there is a VPN active with the default route,
then this function returns the active connection that contains the
route to the VPN endpoint.
If there is no default route, or the default route is over a
-non-NetworkManager-recognized device, this will return NULL.
+non-NetworkManager-recognized device, this will return NULL.
Parameters
-Flags: Run First
+Flags: Run First
@@ -4210,7 +4729,7 @@ user_function (void
user_function (NMClient *client,
NMActiveConnection *active_connection,
- gpointer user_data)
+ gpointer user_data)
Notifies that a NMActiveConnection has been removed.
-Flags: Run First
+Flags: Run First
The “any-device-added” signal
void
user_function (NMClient *client,
- GObject *device,
- gpointer user_data)
+ GObject *device,
+ gpointer user_data)
Notifies that a NMDevice is added. This signal is emitted for both
regular devices and placeholder devices.
@@ -4277,15 +4796,15 @@ regular devices and placeholder devices.
-Flags: Run First
+Flags: Run First
The “any-device-removed” signal
void
user_function (NMClient *client,
- GObject *device,
- gpointer user_data)
+ GObject *device,
+ gpointer user_data)
Notifies that a NMDevice is removed. This signal is emitted for both
regular devices and placeholder devices.
@@ -4315,7 +4834,7 @@ regular devices and placeholder devices.
-Flags: Run First
+Flags: Run First
@@ -4323,7 +4842,7 @@ regular devices and placeholder devices.
void
user_function (NMClient *client,
NMRemoteConnection *connection,
- gpointer user_data)
+ gpointer user_data)
Notifies that a NMConnection has been added.
-Flags: Run First
+Flags: Run First
@@ -4360,7 +4879,7 @@ user_function (void
user_function (NMClient *client,
NMRemoteConnection *connection,
- gpointer user_data)
+ gpointer user_data)
Notifies that a NMConnection has been removed.
-Flags: Run First
+Flags: Run First
The “device-added” signal
void
user_function (NMClient *client,
- GObject *device,
- gpointer user_data)
+ GObject *device,
+ gpointer user_data)
Notifies that a NMDevice is added. This signal is not emitted for
placeholder devices.
@@ -4427,15 +4946,15 @@ placeholder devices.
-Flags: Run First
+Flags: Run First
The “device-removed” signal
void
user_function (NMClient *client,
- GObject *device,
- gpointer user_data)
+ GObject *device,
+ gpointer user_data)
Notifies that a NMDevice is removed. This signal is not emitted for
placeholder devices.
@@ -4465,16 +4984,16 @@ placeholder devices.
-Flags: Run First
+Flags: Run First
The “permission-changed” signal
void
user_function (NMClient *client,
- guint permission,
- guint result,
- gpointer user_data)
+ guint permission,
+ guint result,
+ gpointer user_data)
Notifies that a permission has changed
-Flags: Run First
+Flags: Run First
+
Generated by GTK-Doc V1.28