![]() |
![]() |
![]() |
![]() |
const char *const *
nm_dns_entry_get_nameservers (NMDnsEntry *entry
);
void nm_client_new_async (GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMClientInstanceFlags
nm_client_get_instance_flags (NMClient *self
);
GDBusConnection *
nm_client_get_dbus_connection (NMClient *client
);
GObject *
nm_client_get_context_busy_watcher (NMClient *self
);
NMObject * nm_client_get_object_by_path (NMClient *client
,const char *dbus_path
);
const guint32 * nm_client_get_capabilities (NMClient *client
,gsize *length
);
gboolean nm_client_networking_set_enabled (NMClient *client
,gboolean enabled
,GError **error
);
nm_client_networking_set_enabled
is deprecated and should not be used in newly-written code.
void nm_client_wireless_set_enabled (NMClient *client
,gboolean enabled
);
nm_client_wireless_set_enabled
is deprecated and should not be used in newly-written code.
gboolean
nm_client_wireless_hardware_get_enabled
(NMClient *client
);
void nm_client_wwan_set_enabled (NMClient *client
,gboolean enabled
);
nm_client_wwan_set_enabled
is deprecated and should not be used in newly-written code.
gboolean
nm_client_wwan_hardware_get_enabled (NMClient *client
);
gboolean
nm_client_wimax_get_enabled (NMClient *client
);
nm_client_wimax_get_enabled
is deprecated and should not be used in newly-written code.
void nm_client_wimax_set_enabled (NMClient *client
,gboolean enabled
);
nm_client_wimax_set_enabled
is deprecated and should not be used in newly-written code.
gboolean
nm_client_wimax_hardware_get_enabled (NMClient *client
);
nm_client_wimax_hardware_get_enabled
is deprecated and should not be used in newly-written code.
gboolean
nm_client_connectivity_check_get_available
(NMClient *client
);
gboolean
nm_client_connectivity_check_get_enabled
(NMClient *client
);
void nm_client_connectivity_check_set_enabled (NMClient *client
,gboolean enabled
);
nm_client_connectivity_check_set_enabled
is deprecated and should not be used in newly-written code.
const char *
nm_client_connectivity_check_get_uri (NMClient *client
);
gboolean nm_client_get_logging (NMClient *client
,char **level
,char **domains
,GError **error
);
nm_client_get_logging
is deprecated and should not be used in newly-written code.
gboolean nm_client_set_logging (NMClient *client
,const char *level
,const char *domains
,GError **error
);
nm_client_set_logging
is deprecated and should not be used in newly-written code.
NMClientPermissionResult nm_client_get_permission_result (NMClient *client
,NMClientPermission permission
);
NMConnectivityState nm_client_check_connectivity (NMClient *client
,GCancellable *cancellable
,GError **error
);
nm_client_check_connectivity
is deprecated and should not be used in newly-written code.
void nm_client_check_connectivity_async (NMClient *client
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMConnectivityState nm_client_check_connectivity_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
gboolean nm_client_save_hostname (NMClient *client
,const char *hostname
,GCancellable *cancellable
,GError **error
);
nm_client_save_hostname
is deprecated and should not be used in newly-written code.
void nm_client_save_hostname_async (NMClient *client
,const char *hostname
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_save_hostname_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
NMDevice * nm_client_get_device_by_path (NMClient *client
,const char *object_path
);
NMDevice * nm_client_get_device_by_iface (NMClient *client
,const char *iface
);
const GPtrArray *
nm_client_get_active_connections (NMClient *client
);
NMActiveConnection *
nm_client_get_primary_connection (NMClient *client
);
NMActiveConnection *
nm_client_get_activating_connection (NMClient *client
);
void nm_client_activate_connection_async (NMClient *client
,NMConnection *connection
,NMDevice *device
,const char *specific_object
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMActiveConnection * nm_client_activate_connection_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_add_and_activate_connection_async (NMClient *client
,NMConnection *partial
,NMDevice *device
,const char *specific_object
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMActiveConnection * nm_client_add_and_activate_connection_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_add_and_activate_connection2 (NMClient *client
,NMConnection *partial
,NMDevice *device
,const char *specific_object
,GVariant *options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMActiveConnection * nm_client_add_and_activate_connection2_finish (NMClient *client
,GAsyncResult *result
,GVariant **out_result
,GError **error
);
gboolean nm_client_deactivate_connection (NMClient *client
,NMActiveConnection *active
,GCancellable *cancellable
,GError **error
);
nm_client_deactivate_connection
is deprecated and should not be used in newly-written code.
void nm_client_deactivate_connection_async (NMClient *client
,NMActiveConnection *active
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_deactivate_connection_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
NMRemoteConnection * nm_client_get_connection_by_id (NMClient *client
,const char *id
);
NMRemoteConnection * nm_client_get_connection_by_path (NMClient *client
,const char *path
);
NMRemoteConnection * nm_client_get_connection_by_uuid (NMClient *client
,const char *uuid
);
void nm_client_add_connection_async (NMClient *client
,NMConnection *connection
,gboolean save_to_disk
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMRemoteConnection * nm_client_add_connection_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_add_connection2 (NMClient *client
,GVariant *settings
,NMSettingsAddConnection2Flags flags
,GVariant *args
,gboolean ignore_out_result
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMRemoteConnection * nm_client_add_connection2_finish (NMClient *client
,GAsyncResult *result
,GVariant **out_result
,GError **error
);
gboolean nm_client_load_connections (NMClient *client
,char **filenames
,char ***failures
,GCancellable *cancellable
,GError **error
);
nm_client_load_connections
is deprecated and should not be used in newly-written code.
void nm_client_load_connections_async (NMClient *client
,char **filenames
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_load_connections_finish (NMClient *client
,char ***failures
,GAsyncResult *result
,GError **error
);
gboolean nm_client_reload_connections (NMClient *client
,GCancellable *cancellable
,GError **error
);
nm_client_reload_connections
is deprecated and should not be used in newly-written code.
void nm_client_reload_connections_async (NMClient *client
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_reload_connections_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
const GPtrArray *
nm_client_get_dns_configuration (NMClient *client
);
void nm_client_checkpoint_create (NMClient *client
,const GPtrArray *devices
,guint32 rollback_timeout
,NMCheckpointCreateFlags flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMCheckpoint * nm_client_checkpoint_create_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_checkpoint_destroy (NMClient *client
,const char *checkpoint_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_checkpoint_destroy_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_checkpoint_rollback (NMClient *client
,const char *checkpoint_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
GHashTable * nm_client_checkpoint_rollback_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_checkpoint_adjust_rollback_timeout (NMClient *client
,const char *checkpoint_path
,guint32 add_timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_checkpoint_adjust_rollback_timeout_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_reload (NMClient *client
,NMManagerReloadFlags flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_reload_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_dbus_call (NMClient *client
,const char *object_path
,const char *interface_name
,const char *method_name
,GVariant *parameters
,const GVariantType *reply_type
,int timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
GVariant * nm_client_dbus_call_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
void nm_client_dbus_set_property (NMClient *client
,const char *object_path
,const char *interface_name
,const char *property_name
,GVariant *value
,int timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_client_dbus_set_property_finish (NMClient *client
,GAsyncResult *result
,GError **error
);
special value to indicate no flags. |
||
by default, NMClient
will fetch the permissions via "GetPermissions" and refetch them when
"CheckPermissions" signal gets received. By setting this flag, this behavior
can be disabled. You can toggle this flag to enable and disable automatic
fetching of the permissions. Watch also |
Since: 1.24
#define NM_CLIENT_NETWORKING_ENABLED "networking-enabled"
NM_CLIENT_NETWORKING_ENABLED
is deprecated and should not be used in newly-written code.
#define NM_CLIENT_WIRELESS_ENABLED "wireless-enabled"
NM_CLIENT_WIRELESS_ENABLED
is deprecated and should not be used in newly-written code.
#define NM_CLIENT_WWAN_ENABLED "wwan-enabled"
NM_CLIENT_WWAN_ENABLED
is deprecated and should not be used in newly-written code.
#define NM_CLIENT_WIMAX_ENABLED "wimax-enabled"
NM_CLIENT_WIMAX_ENABLED
is deprecated and should not be used in newly-written code.
#define NM_CLIENT_WIRELESS_HARDWARE_ENABLED "wireless-hardware-enabled"
#define NM_CLIENT_CONNECTIVITY_CHECK_AVAILABLE "connectivity-check-available"
#define NM_CLIENT_CONNECTIVITY_CHECK_ENABLED "connectivity-check-enabled"
NM_CLIENT_CONNECTIVITY_CHECK_ENABLED
is deprecated and should not be used in newly-written code.
#define NM_CLIENT_ACTIVE_CONNECTION_ADDED "active-connection-added"
#define NM_CLIENT_ACTIVE_CONNECTION_REMOVED "active-connection-removed"
Describes errors that may result from operations involving a NMClient.
D-Bus operations may also return errors from other domains, including NMManagerError, NMSettingsError, NMAgentManagerError, and NMConnectionError.
unknown or unclassified error |
||
an operation that requires NetworkManager failed because NetworkManager is not running |
||
NetworkManager claimed that an operation succeeded, but the object that was allegedly created (eg, NMRemoteConnection, NMActiveConnection) was apparently destroyed before NMClient could create a representation of it. |