| libnm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
enum NMObjectError; #define NM_OBJECT_ERROR GQuark nm_object_error_quark (void); #define NM_OBJECT_DBUS_CONNECTION #define NM_OBJECT_DBUS_PATH NMObject; NMObjectClass; DBusGConnection * nm_object_get_connection (NMObject *object); const char * nm_object_get_path (NMObject *object);
GObject +----NMObject +----NMClient +----NMDevice +----NMWimaxNsp +----NMAccessPoint +----NMIP4Config +----NMIP6Config +----NMActiveConnection +----NMDHCP4Config +----NMDHCP6Config
"dbus-connection" DBusGConnection* : Read / Write / Construct Only "dbus-path" gchar* : Read / Write / Construct Only
typedef enum {
NM_OBJECT_ERROR_UNKNOWN = 0,
NM_OBJECT_ERROR_OBJECT_CREATION_FAILURE,
} NMObjectError;
Describes errors that may result from operations involving a NMObject.
| unknown or unclassified error | |
| an error ocured while creating an NMObject |
GQuark nm_object_error_quark (void);
Registers an error quark for NMObject if necessary.
Returns : |
the error quark used for NMObject errors. |
typedef struct {
GObjectClass parent;
/* Signals */
/* The "object-creation-failed" signal is PRIVATE for libnm-glib and
* is not meant for any external usage. It indicates that an error
* occured during creation of an object.
*/
void (*object_creation_failed) (NMObject *master_object,
GError *error,
char *failed_path);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMObjectClass;
DBusGConnection * nm_object_get_connection (NMObject *object);
Gets the NMObject's DBusGConnection.
|
a NMObject |
Returns : |
the connection. [transfer none] |
"dbus-connection" property "dbus-connection" DBusGConnection* : Read / Write / Construct Only
Connection.
"dbus-path" property"dbus-path" gchar* : Read / Write / Construct Only
DBus Object Path.
Default value: NULL
"object-creation-failed" signalvoid user_function (NMObject *master_object,
gpointer error,
gpointer failed_path,
gpointer user_data) : Run First
Indicates that an error occured while creating an NMObject object
during property handling of master_object.
Note: Be aware that the signal is private for libnm-glib's internal use.
|
the object that received the signal |
|
the error that occured while creating object |
|
object path of the failed object |
|
user data set when the signal handler was connected. |