diff options
Diffstat (limited to 'clients/common/nm-polkit-listener.h')
-rw-r--r-- | clients/common/nm-polkit-listener.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/clients/common/nm-polkit-listener.h b/clients/common/nm-polkit-listener.h index c14d5932bc..f6290013b7 100644 --- a/clients/common/nm-polkit-listener.h +++ b/clients/common/nm-polkit-listener.h @@ -6,24 +6,28 @@ #ifndef __NM_POLKIT_LISTENER_H__ #define __NM_POLKIT_LISTENER_H__ -#define NM_POLKIT_LISTENER_SIGNAL_REGISTERED "registered" -#define NM_POLKIT_LISTENER_SIGNAL_REQUEST_SYNC "request-sync" -#define NM_POLKIT_LISTENER_SIGNAL_AUTH_SUCCESS "auth-success" -#define NM_POLKIT_LISTENER_SIGNAL_AUTH_FAILURE "auth-failure" -#define NM_POLKIT_LISTENER_SIGNAL_ERROR "error" +#define NM_POLKIT_LISTENER_SIGNAL_REGISTERED "registered" +#define NM_POLKIT_LISTENER_SIGNAL_REQUEST_SYNC "request-sync" +#define NM_POLKIT_LISTENER_SIGNAL_AUTH_SUCCESS "auth-success" +#define NM_POLKIT_LISTENER_SIGNAL_AUTH_FAILURE "auth-failure" +#define NM_POLKIT_LISTENER_SIGNAL_ERROR "error" -typedef struct _NMPolkitListener NMPolkitListener; +typedef struct _NMPolkitListener NMPolkitListener; typedef struct _NMPolkitListenerClass NMPolkitListenerClass; -#define NM_TYPE_POLKIT_LISTENER (nm_polkit_listener_get_type ()) -#define NM_POLKIT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_POLKIT_LISTENER, NMPolkitListener)) -#define NM_POLKIT_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_POLKIT_LISTENER, NMPolkitListenerClass)) -#define NM_IS_POLKIT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_POLKIT_LISTENER)) -#define NM_IS_POLKIT_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_POLKIT_LISTENER)) -#define NM_POLKIT_LISTENER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_POLKIT_LISTENER, NMPolkitListenerClass)) +#define NM_TYPE_POLKIT_LISTENER (nm_polkit_listener_get_type()) +#define NM_POLKIT_LISTENER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_POLKIT_LISTENER, NMPolkitListener)) +#define NM_POLKIT_LISTENER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_POLKIT_LISTENER, NMPolkitListenerClass)) +#define NM_IS_POLKIT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_POLKIT_LISTENER)) +#define NM_IS_POLKIT_LISTENER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_POLKIT_LISTENER)) +#define NM_POLKIT_LISTENER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_POLKIT_LISTENER, NMPolkitListenerClass)) -GType nm_polkit_listener_get_type (void); +GType nm_polkit_listener_get_type(void); -NMPolkitListener *nm_polkit_listener_new (GDBusConnection *dbus_connection, gboolean session_agent); +NMPolkitListener *nm_polkit_listener_new(GDBusConnection *dbus_connection, gboolean session_agent); #endif /* __NM_POLKIT_LISTENER_H__ */ |