From 681dfc70ef98f6ed0c05bcb0fbff00e3fc0799ea Mon Sep 17 00:00:00 2001
From: Michael Biebl
NMClient implements
- GInitable and GAsyncInitable.
-GQuark
+GQuark
nm_client_error_quark ()
@@ -90,7 +90,7 @@
-gboolean
+gboolean
nm_dns_entry_get_vpn ()
@@ -130,7 +130,7 @@
-GDBusConnection *
+GDBusConnection *
nm_client_get_dbus_connection ()
@@ -138,7 +138,7 @@
-GMainContext *
+GMainContext *
nm_client_get_main_context ()
@@ -146,7 +146,7 @@
-GObject *
+GObject *
nm_client_get_context_busy_watcher ()
@@ -167,7 +167,7 @@
-
const guint32 *
+ const guint32 *
nm_client_get_version_info ()
@@ -183,7 +183,7 @@
-gboolean
+gboolean
nm_client_get_startup ()
@@ -191,7 +191,7 @@
-gboolean
+gboolean
nm_client_get_nm_running ()
@@ -215,14 +215,14 @@
-gboolean
+gboolean
nm_client_networking_get_enabled ()
-
const guint32 *
+ const guint32 *
nm_client_get_capabilities ()
@@ -230,7 +230,7 @@
-gboolean
+gboolean
nm_client_networking_set_enabled ()
@@ -238,7 +238,7 @@
-gboolean
+gboolean
nm_client_wireless_get_enabled ()
@@ -254,7 +254,7 @@
-gboolean
+gboolean
nm_client_wireless_hardware_get_enabled ()
@@ -262,7 +262,7 @@
-gboolean
+gboolean
nm_client_wwan_get_enabled ()
@@ -278,7 +278,7 @@
-gboolean
+gboolean
nm_client_wwan_hardware_get_enabled ()
@@ -286,7 +286,7 @@
-gboolean
+gboolean
nm_client_wimax_get_enabled ()
@@ -302,7 +302,7 @@
-gboolean
+gboolean
nm_client_wimax_hardware_get_enabled ()
@@ -318,7 +318,7 @@
-gboolean
+gboolean
nm_client_connectivity_check_get_available ()
@@ -326,7 +326,7 @@
-gboolean
+gboolean
nm_client_connectivity_check_get_enabled ()
@@ -349,7 +349,7 @@
-gboolean
+gboolean
nm_client_get_logging ()
@@ -357,7 +357,7 @@
-gboolean
+gboolean
nm_client_set_logging ()
@@ -413,7 +413,7 @@
-gboolean
+gboolean
nm_client_save_hostname ()
@@ -429,21 +429,21 @@
-gboolean
+gboolean
nm_client_save_hostname_finish ()
-
const GPtrArray *
+ const GPtrArray *
nm_client_get_devices ()
-
const GPtrArray *
+ const GPtrArray *
nm_client_get_all_devices ()
@@ -466,7 +466,7 @@
-
const GPtrArray *
+ const GPtrArray *
nm_client_get_active_connections ()
@@ -538,7 +538,7 @@
-gboolean
+gboolean
nm_client_deactivate_connection ()
@@ -554,14 +554,14 @@
-gboolean
+gboolean
nm_client_deactivate_connection_finish ()
-
const GPtrArray *
+ const GPtrArray *
nm_client_get_connections ()
@@ -625,7 +625,7 @@
-gboolean
+gboolean
nm_client_load_connections ()
@@ -641,7 +641,7 @@
-gboolean
+gboolean
nm_client_load_connections_finish ()
@@ -649,7 +649,7 @@
-gboolean
+gboolean
nm_client_reload_connections ()
@@ -665,7 +665,7 @@
-gboolean
+gboolean
nm_client_reload_connections_finish ()
@@ -686,14 +686,14 @@
-
const GPtrArray *
+ const GPtrArray *
nm_client_get_dns_configuration ()
-
const GPtrArray *
+ const GPtrArray *
nm_client_get_checkpoints ()
@@ -725,7 +725,7 @@
-gboolean
+gboolean
nm_client_checkpoint_destroy_finish ()
@@ -741,7 +741,7 @@
-GHashTable *
+GHashTable *
nm_client_checkpoint_rollback_finish ()
@@ -757,7 +757,7 @@
-gboolean
+gboolean
nm_client_checkpoint_adjust_rollback_timeout_finish ()
@@ -773,7 +773,7 @@
-gboolean
+gboolean
nm_client_reload_finish ()
@@ -789,7 +789,7 @@
-GVariant *
+GVariant *
nm_client_dbus_call_finish ()
@@ -805,7 +805,7 @@
-gboolean
+gboolean
nm_client_dbus_set_property_finish ()
@@ -821,7 +821,7 @@
-gboolean
+gboolean
nm_utils_file_is_certificate ()
@@ -829,7 +829,7 @@
-gboolean
+gboolean
nm_utils_file_is_private_key ()
@@ -837,7 +837,7 @@
-gboolean
+gboolean
nm_utils_file_is_pkcs12 ()
@@ -853,7 +853,7 @@
-gboolean
+gboolean
nm_client_wait_shutdown_finish ()
@@ -879,36 +879,36 @@
-GPtrArray *
+GPtrArray *
active-connections
Read
-GPtrArray *
+GPtrArray *
all-devices
Read
-
gboolean
+gboolean
can-modify
Read
-GArray *
+GArray *
capabilities
Read
-GPtrArray *
+GPtrArray *
checkpoints
Read
@@ -918,12 +918,12 @@
-GPtrArray *
+GPtrArray *
connections
Read
Read
-
gboolean
+gboolean
connectivity-check-available
Read
-
@@ -935,7 +935,7 @@
gboolean
+gboolean
connectivity-check-enabled
Read / Write
@@ -947,13 +947,13 @@
-GDBusConnection *
+GDBusConnection *
dbus-connection
Read / Write / Construct Only
-GPtrArray *
+GPtrArray *
devices
Read
@@ -976,22 +976,22 @@
-GPtrArray *
+GPtrArray *
dns-configuration
Read
Read
-
guint
+guint
instance-flags
Read / Write / Construct
-
guint
+guint
metered
Read
-
gboolean
+gboolean
networking-enabled
Read / Write
-
@@ -1007,12 +1007,12 @@
gboolean
+gboolean
nm-running
Read
Read
-
guint
+guint
radio-flags
Read
-
@@ -1029,37 +1029,37 @@
gboolean
+gboolean
startup
Read
-GArray *
+GArray *
version-info
Read
-
gboolean
+gboolean
wimax-enabled
Read / Write
-
gboolean
+gboolean
wimax-hardware-enabled
Read
-
gboolean
+gboolean
wireless-enabled
Read / Write
-
gboolean
+gboolean
wireless-hardware-enabled
Read
-
gboolean
+gboolean
wwan-enabled
Read / Write
-
@@ -1078,47 +1078,47 @@
gboolean
+gboolean
wwan-hardware-enabled
Read
void
active-connection-added
-Run First
+Run First
void
active-connection-removed
-Run First
+Run First
void
any-device-added
-Run First
+Run First
void
any-device-removed
-Run First
+Run First
void
connection-added
-Run First
+Run First
void
connection-removed
-Run First
+Run First
void
device-added
-Run First
+Run First
void
device-removed
-Run First
+Run First
@@ -1338,7 +1338,7 @@
╰── NMClientError
GFlags
╰── NMClientInstanceFlags
- GObject
+ GObject
╰── NMClient
@@ -1346,7 +1346,7 @@
void
permission-changed
-Run First
+Run First
Implemented Interfaces
GQuark +GQuark nm_client_error_quark (void);Registers an error quark for NMClient if necessary.
@@ -1501,7 +1501,7 @@ nm_dns_entry_get_priority (@@ -1529,29 +1529,29 @@ 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.
@@ -1521,7 +1521,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 synchronously.
Note that this will block until a NMClient instance is fully initialized.
-This does nothing beside calling g_initable_new(). You are free to call
-g_initable_new() or g_object_new()/g_initable_init() directly for more
+This does nothing beside calling g_initable_new(). You are free to call
+g_initable_new() or g_object_new()/g_initable_init() directly for more
control, to set GObject properties or get access to the NMClient instance
while it is still initializing.
Using the synchronous initialization creates an NMClient instance
-that uses an internal GMainContext. This context is invisible to the
+that uses an internal GMainContext. This context is invisible to the
user. This introduces an additional overhead that is payed not
only during object initialization, but for the entire lifetime of
this object.
-Also, due to this internal GMainContext, the events are no longer
-in sync with other messages from GDBusConnection (but all events
+Also, due to this internal GMainContext, the events are no longer
+in sync with other messages from GDBusConnection (but all events
of the NMClient will themselves still be ordered).
For a serious program, you should therefore avoid these problems by
-using g_async_initable_init_async() or nm_client_new_async() instead.
+using g_async_initable_init_async() or nm_client_new_async() instead.
The sync initialization is still useful for simple scripts or interactive
testing for example via pygobject.
Creating an NMClient instance can only fail for two reasons. First, if you didn't
-provide a NM_CLIENT_DBUS_CONNECTION and the call to g_bus_get()
-fails. You can avoid that by using g_initable_new() directly and
+provide a NM_CLIENT_DBUS_CONNECTION and the call to g_bus_get()
+fails. You can avoid that by using g_initable_new() directly and
set a D-Bus connection.
Second, if you cancelled the creation. If you do that, then note
that after the failure there might still be idle actions pending
@@ -1571,12 +1571,12 @@ does not cause a failure.
cancellable
a GCancellable, or NULL
a GCancellable, or NULL
error
location for a GError, or NULL
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 asynchronously.
callback
will be called when it is done. Use
nm_client_new_finish() to get the result.
This does nothing beside calling g_async_initable_new_async(). You are free to
-call g_async_initable_new_async() or g_object_new()/g_async_initable_init_async()
+
This does nothing beside calling g_async_initable_new_async(). You are free to
+call g_async_initable_new_async() or g_object_new()/g_async_initable_init_async()
directly for more control, to set GObject properties or get access to the NMClient
instance while it is still initializing.
Creating an NMClient instance can only fail for two reasons. First, if you didn't
-provide a NM_CLIENT_DBUS_CONNECTION and the call to g_bus_get()
-fails. You can avoid that by using g_async_initable_new_async() directly and
+provide a NM_CLIENT_DBUS_CONNECTION and the call to g_bus_get()
+fails. You can avoid that by using g_async_initable_new_async() directly and
set a D-Bus connection.
Second, if you cancelled the creation. If you do that, then note
that after the failure there might still be idle actions pending
@@ -1624,7 +1624,7 @@ does not cause a failure.
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.
nm_client_get_dbus_connection ()
-GDBusConnection *
+GDBusConnection *
nm_client_get_dbus_connection (NMClient *client);
-Gets the GDBusConnection of the instance. This can be either passed when
+
Gets the GDBusConnection of the instance. This can be either passed when
constructing the instance (as "dbus-connection" property), or it will be
automatically initialized during async/sync init.
@@ -1727,7 +1727,7 @@ automatically initialized during async/sync init.
Returns
-the D-Bus connection of the client, or NULL if none is set.
+the D-Bus connection of the client, or NULL if none is set.
[transfer none]
Since: 1.22
@@ -1735,10 +1735,10 @@ automatically initialized during async/sync init.
nm_client_get_main_context ()
-GMainContext *
+GMainContext *
nm_client_get_main_context (NMClient *self);
The NMClient instance is permanently associated with the current
-thread default GMainContext, referenced the time when the instance
+thread default GMainContext, referenced the time when the instance
was created. To receive events, the user must iterate this context
and can use it to synchronize access to the client.
Note that even after NMClient instance got destroyed, there might
@@ -1762,7 +1762,7 @@ the
Since: 1.22
@@ -1770,7 +1770,7 @@ the
nm_client_get_context_busy_watcher ()
-GObject *
+GObject *
nm_client_get_context_busy_watcher (NMClient *self);
Parameters
@@ -1804,14 +1804,14 @@ GMainContext running to ensure everything is cleaned up? The answer is
this GObject. Subscribe a weak reference to the returned object and keep
iterating the main context until the object got unreferenced.
Note that after the NMClient instance gets destroyed, all outstanding operations
-will be cancelled right away. That means, the user needs to iterate the GMainContext
+will be cancelled right away. That means, the user needs to iterate the GMainContext
a bit longer, but it is guaranteed that the cleanup happens soon after.
The way of using the context-busy-watch, is by registering a weak pointer to
see when it gets destroyed. That means, user code should not take additional
references on this object to not keep it alive longer.
If you plan to exit the program after releasing the NMClient instance
you may not need to worry about these "leaks". Also, if you anyway plan to continue
-iterating the GMainContext afterwards, then you don't need to care when exactly
+iterating the GMainContext afterwards, then you don't need to care when exactly
NMClient is gone completely.
[transfer none]
@@ -1867,15 +1867,15 @@ nm_client_get_version (
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_version_info ()
-const guint32 *
+const guint32 *
nm_client_get_version_info (NMClient *client,
- gsize *length);
+ gsize *length);
If available, the first element in the array is NM_VERSION which
encodes the daemon version as "(major << 16 | minor << 8 | micro)".
The following elements are a bitfield of NMVersionInfoCapabilities
@@ -1905,7 +1905,7 @@ that indicate that the daemon supports a certain capability.
Returns
the
-list of capabilities reported by the server or NULL
+list of capabilities reported by the server or NULL
if the capabilities are unknown.
[transfer none][array length=length]
@@ -1940,7 +1940,7 @@ nm_client_get_state (
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.
@@ -1967,7 +1967,7 @@ connections at startup.
nm_client_get_nm_running ()
-gboolean
+gboolean
nm_client_get_nm_running (NMClient *client);
Determines whether the daemon is running.
@@ -1987,7 +1987,7 @@ nm_client_get_nm_running (
Returns
- TRUE if the daemon is running
+ TRUE if the daemon is running
@@ -2022,7 +2022,7 @@ nm_client_get_object_by_path (Returns
the NMObject instance that is
cached under dbus_path
-, or NULL if no such object exists.
+, or NULL if no such object exists.
[transfer none]
Since: 1.24
@@ -2056,7 +2056,7 @@ nm_client_get_metered (
nm_client_networking_get_enabled ()
-gboolean
+gboolean
nm_client_networking_get_enabled (NMClient *client);
Whether networking is enabled or disabled.
nm_client_get_capabilities ()
-const guint32 *
+const guint32 *
nm_client_get_capabilities (NMClient *client,
- gsize *length);
+ gsize *length);
Parameters
-Flags: Run First
+Flags: Run First
@@ -6671,7 +6671,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
Flags: Run First
+Flags: Run First
“device-removed” signalvoid 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.
Flags: Run First
+Flags: Run First
“permission-changed” signalvoid 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
+