NMObject

NMObject

Synopsis

enum                NMObjectError;
#define             NM_OBJECT_ERROR
GQuark              nm_object_error_quark               (void);
#define             NM_OBJECT_DBUS_CONNECTION
#define             NM_OBJECT_DBUS_PATH
DBusGConnection *   nm_object_get_connection            (NMObject *object);
const char *        nm_object_get_path                  (NMObject *object);

Description

Details

enum NMObjectError

typedef enum {
	NM_OBJECT_ERROR_UNKNOWN = 0,
	NM_OBJECT_ERROR_OBJECT_CREATION_FAILURE,
} NMObjectError;

Describes errors that may result from operations involving a NMObject.

NM_OBJECT_ERROR_UNKNOWN

unknown or unclassified error

NM_OBJECT_ERROR_OBJECT_CREATION_FAILURE

an error ocured while creating an NMObject

NM_OBJECT_ERROR

#define NM_OBJECT_ERROR nm_object_error_quark ()


nm_object_error_quark ()

GQuark              nm_object_error_quark               (void);

Registers an error quark for NMObject if necessary.

Returns :

the error quark used for NMObject errors.

NM_OBJECT_DBUS_CONNECTION

#define NM_OBJECT_DBUS_CONNECTION "dbus-connection"


NM_OBJECT_DBUS_PATH

#define NM_OBJECT_DBUS_PATH "dbus-path"


nm_object_get_connection ()

DBusGConnection *   nm_object_get_connection            (NMObject *object);

Gets the NMObject's DBusGConnection.

object :

a NMObject

Returns :

the connection. [transfer none]

nm_object_get_path ()

const char *        nm_object_get_path                  (NMObject *object);

Gets the DBus path of the NMObject.

object :

a NMObject

Returns :

the object's path. This is the internal string used by the device, and must not be modified.