diff options
author | Dan Winship <danw@gnome.org> | 2013-05-06 13:37:25 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-05-08 14:59:29 -0400 |
commit | d529580cbb62024c74d9b955e118d856c7b19b77 (patch) | |
tree | 9edb42ffec3b4cf83577a2fa19caef7b9e319f5f /libnm-glib | |
parent | ec0a66861ecd3778a14e610c5fc3b42b499ffea6 (diff) | |
download | NetworkManager-d529580cbb62024c74d9b955e118d856c7b19b77.tar.gz |
libnm-glib, core: use g_cclosure_marshal_generic
Since we depend on new glib now, we can just use the generic
marshaller rather than generating our own.
Diffstat (limited to 'libnm-glib')
-rw-r--r-- | libnm-glib/Makefile.am | 7 | ||||
-rw-r--r-- | libnm-glib/nm-client.c | 10 | ||||
-rw-r--r-- | libnm-glib/nm-device-modem.c | 1 | ||||
-rw-r--r-- | libnm-glib/nm-device.c | 6 | ||||
-rw-r--r-- | libnm-glib/nm-object.c | 4 | ||||
-rw-r--r-- | libnm-glib/nm-remote-settings.c | 11 | ||||
-rw-r--r-- | libnm-glib/nm-secret-agent.c | 6 | ||||
-rw-r--r-- | libnm-glib/nm-vpn-connection.c | 6 |
8 files changed, 15 insertions, 36 deletions
diff --git a/libnm-glib/Makefile.am b/libnm-glib/Makefile.am index 974cc0d289..d4b97c0a88 100644 --- a/libnm-glib/Makefile.am +++ b/libnm-glib/Makefile.am @@ -119,8 +119,7 @@ libnm_glib_la_csources = \ nm-secret-agent.c \ nm-device-wimax.c \ nm-wimax-nsp.c \ - nm-glib-enum-types.c \ - nm-glib-marshal.c + nm-glib-enum-types.c libnm_glib_la_private_headers = \ nm-object-private.h \ @@ -128,7 +127,6 @@ libnm_glib_la_private_headers = \ nm-types-private.h \ nm-object-cache.h \ nm-remote-connection-private.h \ - nm-glib-marshal.h \ nm-dbus-helpers-private.h libnm_glib_la_SOURCES = \ @@ -140,9 +138,6 @@ nm_glib_enum_types_sources = $(libnminclude_HEADERS) GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM -GLIB_GENERATED += nm-glib-marshal.h nm-glib-marshal.c -nm_glib_marshal_sources = $(libnm_glib_la_SOURCES) - libnm_glib_la_LIBADD = \ $(top_builddir)/libnm-util/libnm-util.la \ $(builddir)/libdeprecated-nm-glib.la \ diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c index 8cac927c67..9c9371eff2 100644 --- a/libnm-glib/nm-client.c +++ b/libnm-glib/nm-client.c @@ -29,7 +29,6 @@ #include "nm-device-ethernet.h" #include "nm-device-wifi.h" #include "nm-device-private.h" -#include "nm-glib-marshal.h" #include "nm-types-private.h" #include "nm-object-private.h" #include "nm-active-connection.h" @@ -2016,8 +2015,7 @@ nm_client_class_init (NMClientClass *client_class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMClientClass, device_added), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, + NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_OBJECT); @@ -2033,8 +2031,7 @@ nm_client_class_init (NMClientClass *client_class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMClientClass, device_removed), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, + NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_OBJECT); @@ -2050,8 +2047,7 @@ nm_client_class_init (NMClientClass *client_class) g_signal_new ("permission-changed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, - 0, NULL, NULL, - _nm_glib_marshal_VOID__UINT_UINT, + 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); } diff --git a/libnm-glib/nm-device-modem.c b/libnm-glib/nm-device-modem.c index d7f48ce616..f2407352f0 100644 --- a/libnm-glib/nm-device-modem.c +++ b/libnm-glib/nm-device-modem.c @@ -33,7 +33,6 @@ #include "nm-device-modem.h" #include "nm-device-private.h" #include "nm-object-private.h" -#include "nm-glib-marshal.h" G_DEFINE_TYPE (NMDeviceModem, nm_device_modem, NM_TYPE_DEVICE) diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c index 049b591933..43a5932220 100644 --- a/libnm-glib/nm-device.c +++ b/libnm-glib/nm-device.c @@ -44,7 +44,6 @@ #include "nm-object-cache.h" #include "nm-remote-connection.h" #include "nm-types.h" -#include "nm-glib-marshal.h" #include "nm-dbus-glib-types.h" #include "nm-glib-compat.h" #include "nm-utils.h" @@ -328,7 +327,7 @@ constructed (GObject *object) register_properties (NM_DEVICE (object)); - dbus_g_object_register_marshaller (_nm_glib_marshal_VOID__UINT_UINT_UINT, + dbus_g_object_register_marshaller (g_cclosure_marshal_generic, G_TYPE_NONE, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID); @@ -813,8 +812,7 @@ nm_device_class_init (NMDeviceClass *device_class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMDeviceClass, state_changed), - NULL, NULL, - _nm_glib_marshal_VOID__UINT_UINT_UINT, + NULL, NULL, NULL, G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT); } diff --git a/libnm-glib/nm-object.c b/libnm-glib/nm-object.c index 70d6144b47..d143520c6d 100644 --- a/libnm-glib/nm-object.c +++ b/libnm-glib/nm-object.c @@ -31,7 +31,6 @@ #include "nm-dbus-glib-types.h" #include "nm-glib-compat.h" #include "nm-types.h" -#include "nm-glib-marshal.h" #include "nm-dbus-helpers-private.h" #define DEBUG 0 @@ -461,8 +460,7 @@ nm_object_class_init (NMObjectClass *nm_object_class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMObjectClass, object_creation_failed), - NULL, NULL, - _nm_glib_marshal_VOID__POINTER_POINTER, + NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER); } diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c index 0960160d7d..a911866919 100644 --- a/libnm-glib/nm-remote-settings.c +++ b/libnm-glib/nm-remote-settings.c @@ -25,7 +25,6 @@ #include <NetworkManager.h> #include <nm-connection.h> -#include "nm-glib-marshal.h" #include "nm-dbus-glib-types.h" #include "nm-remote-settings.h" #include "nm-remote-connection-private.h" @@ -876,7 +875,7 @@ constructed (GObject *object) DBUS_INTERFACE_DBUS); g_assert (priv->dbus_proxy); - dbus_g_object_register_marshaller (_nm_glib_marshal_VOID__STRING_STRING_STRING, + dbus_g_object_register_marshaller (g_cclosure_marshal_generic, G_TYPE_NONE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID); @@ -910,7 +909,7 @@ constructed (GObject *object) g_assert (priv->props_proxy); /* Monitor properties */ - dbus_g_object_register_marshaller (g_cclosure_marshal_VOID__BOXED, + dbus_g_object_register_marshaller (g_cclosure_marshal_generic, G_TYPE_NONE, DBUS_TYPE_G_MAP_OF_VARIANT, G_TYPE_INVALID); @@ -1224,8 +1223,7 @@ nm_remote_settings_class_init (NMRemoteSettingsClass *class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMRemoteSettingsClass, new_connection), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, + NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_OBJECT); signals[CONNECTIONS_READ] = @@ -1233,8 +1231,7 @@ nm_remote_settings_class_init (NMRemoteSettingsClass *class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMRemoteSettingsClass, connections_read), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, + NULL, NULL, NULL, G_TYPE_NONE, 0); } diff --git a/libnm-glib/nm-secret-agent.c b/libnm-glib/nm-secret-agent.c index c293e5e41e..2205f7e7bd 100644 --- a/libnm-glib/nm-secret-agent.c +++ b/libnm-glib/nm-secret-agent.c @@ -26,7 +26,6 @@ #include "NetworkManager.h" #include "nm-secret-agent.h" #include "nm-glib-enum-types.h" -#include "nm-glib-marshal.h" #include "nm-dbus-helpers-private.h" static void impl_secret_agent_get_secrets (NMSecretAgent *self, @@ -824,7 +823,7 @@ nm_secret_agent_init (NMSecretAgent *self) DBUS_INTERFACE_DBUS); g_assert (priv->dbus_proxy); - dbus_g_object_register_marshaller (_nm_glib_marshal_VOID__STRING_STRING_STRING, + dbus_g_object_register_marshaller (g_cclosure_marshal_generic, G_TYPE_NONE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID); @@ -1010,8 +1009,7 @@ nm_secret_agent_class_init (NMSecretAgentClass *class) g_signal_new (NM_SECRET_AGENT_REGISTRATION_RESULT, G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, - 0, NULL, NULL, - g_cclosure_marshal_VOID__POINTER, + 0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (class), diff --git a/libnm-glib/nm-vpn-connection.c b/libnm-glib/nm-vpn-connection.c index bf69033797..abea04adb9 100644 --- a/libnm-glib/nm-vpn-connection.c +++ b/libnm-glib/nm-vpn-connection.c @@ -25,7 +25,6 @@ #include "nm-vpn-connection.h" #include "NetworkManager.h" #include "nm-utils.h" -#include "nm-glib-marshal.h" #include "nm-object-private.h" #include "nm-active-connection.h" @@ -174,7 +173,7 @@ constructed (GObject *object) priv->proxy = _nm_object_new_proxy (NM_OBJECT (object), NULL, NM_DBUS_INTERFACE_VPN_CONNECTION); - dbus_g_object_register_marshaller (_nm_glib_marshal_VOID__UINT_UINT, + dbus_g_object_register_marshaller (g_cclosure_marshal_generic, G_TYPE_NONE, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID); @@ -268,8 +267,7 @@ nm_vpn_connection_class_init (NMVPNConnectionClass *connection_class) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMVPNConnectionClass, vpn_state_changed), - NULL, NULL, - _nm_glib_marshal_VOID__UINT_UINT, + NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); } |