mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
Merge branch 'wip/chergert/marshall-matters' into 'master'
gio: specify proper c_marshaller and va_marshallers See merge request GNOME/glib!877
This commit is contained in:
commit
b9e27b77ad
@ -21,6 +21,7 @@
|
||||
#include "gactiongroup.h"
|
||||
#include "gaction.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gactiongroup
|
||||
@ -260,7 +261,7 @@ g_action_group_default_init (GActionGroupInterface *iface)
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
|
||||
G_STRUCT_OFFSET (GActionGroupInterface, action_added),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__STRING,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
||||
@ -281,7 +282,7 @@ g_action_group_default_init (GActionGroupInterface *iface)
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
|
||||
G_STRUCT_OFFSET (GActionGroupInterface, action_removed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__STRING,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
||||
@ -303,10 +304,13 @@ g_action_group_default_init (GActionGroupInterface *iface)
|
||||
G_STRUCT_OFFSET (GActionGroupInterface,
|
||||
action_enabled_changed),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_BOOLEAN,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (g_action_group_signals[SIGNAL_ACTION_ENABLED_CHANGED],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_g_cclosure_marshal_VOID__STRING_BOOLEANv);
|
||||
|
||||
/**
|
||||
* GActionGroup::action-state-changed:
|
||||
@ -327,10 +331,13 @@ g_action_group_default_init (GActionGroupInterface *iface)
|
||||
G_STRUCT_OFFSET (GActionGroupInterface,
|
||||
action_state_changed),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_VARIANT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_VARIANT);
|
||||
g_signal_set_va_marshaller (g_action_group_signals[SIGNAL_ACTION_STATE_CHANGED],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_g_cclosure_marshal_VOID__STRING_VARIANTv);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "gcancellable.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
#include <gioerror.h>
|
||||
#include <gfile.h>
|
||||
|
||||
@ -1177,9 +1178,13 @@ g_app_launch_context_class_init (GAppLaunchContextClass *klass)
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GAppLaunchContextClass, launched),
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL,
|
||||
_g_cclosure_marshal_VOID__OBJECT_VARIANT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_APP_INFO, G_TYPE_VARIANT);
|
||||
g_signal_set_va_marshaller (signals[LAUNCHED],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__OBJECT_VARIANTv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "gfile.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@ -1532,7 +1533,7 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_STARTUP] =
|
||||
g_signal_new (I_("startup"), G_TYPE_APPLICATION, G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, startup),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
* GApplication::shutdown:
|
||||
@ -1544,7 +1545,7 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_SHUTDOWN] =
|
||||
g_signal_new (I_("shutdown"), G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, shutdown),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
* GApplication::activate:
|
||||
@ -1556,7 +1557,7 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_ACTIVATE] =
|
||||
g_signal_new (I_("activate"), G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, activate),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0);
|
||||
|
||||
|
||||
/**
|
||||
@ -1572,8 +1573,12 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_OPEN] =
|
||||
g_signal_new (I_("open"), G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, open),
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL,
|
||||
_g_cclosure_marshal_VOID__POINTER_INT_STRING,
|
||||
G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_INT, G_TYPE_STRING);
|
||||
g_signal_set_va_marshaller (g_application_signals[SIGNAL_OPEN],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_VOID__POINTER_INT_STRINGv);
|
||||
|
||||
/**
|
||||
* GApplication::command-line:
|
||||
@ -1592,8 +1597,11 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_signal_new (I_("command-line"), G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, command_line),
|
||||
g_signal_accumulator_first_wins, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_INT__OBJECT,
|
||||
G_TYPE_INT, 1, G_TYPE_APPLICATION_COMMAND_LINE);
|
||||
g_signal_set_va_marshaller (g_application_signals[SIGNAL_COMMAND_LINE],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_INT__OBJECTv);
|
||||
|
||||
/**
|
||||
* GApplication::handle-local-options:
|
||||
@ -1652,8 +1660,12 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_HANDLE_LOCAL_OPTIONS] =
|
||||
g_signal_new (I_("handle-local-options"), G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, handle_local_options),
|
||||
g_application_handle_local_options_accumulator, NULL, NULL,
|
||||
g_application_handle_local_options_accumulator, NULL,
|
||||
_g_cclosure_marshal_INT__BOXED,
|
||||
G_TYPE_INT, 1, G_TYPE_VARIANT_DICT);
|
||||
g_signal_set_va_marshaller (g_application_signals[SIGNAL_HANDLE_LOCAL_OPTIONS],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_INT__BOXEDv);
|
||||
|
||||
/**
|
||||
* GApplication::name-lost:
|
||||
@ -1672,8 +1684,12 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_NAME_LOST] =
|
||||
g_signal_new (I_("name-lost"), G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, name_lost),
|
||||
g_signal_accumulator_true_handled, NULL, NULL,
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (g_application_signals[SIGNAL_NAME_LOST],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_BOOLEAN__VOIDv);
|
||||
}
|
||||
|
||||
/* Application ID validity {{{1 */
|
||||
|
@ -141,7 +141,7 @@ g_cancellable_class_init (GCancellableClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GCancellableClass, cancelled),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
}
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "gdbusprivate.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gdbusauthobserver
|
||||
@ -198,11 +199,14 @@ g_dbus_auth_observer_class_init (GDBusAuthObserverClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusAuthObserverClass, authorize_authenticated_peer),
|
||||
_g_signal_accumulator_false_handled,
|
||||
NULL, /* accu_data */
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECT,
|
||||
G_TYPE_BOOLEAN,
|
||||
2,
|
||||
G_TYPE_IO_STREAM,
|
||||
G_TYPE_CREDENTIALS);
|
||||
g_signal_set_va_marshaller (signals[AUTHORIZE_AUTHENTICATED_PEER_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv);
|
||||
|
||||
/**
|
||||
* GDBusAuthObserver::allow-mechanism:
|
||||
@ -222,10 +226,13 @@ g_dbus_auth_observer_class_init (GDBusAuthObserverClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusAuthObserverClass, allow_mechanism),
|
||||
_g_signal_accumulator_false_handled,
|
||||
NULL, /* accu_data */
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__STRING,
|
||||
G_TYPE_BOOLEAN,
|
||||
1,
|
||||
G_TYPE_STRING);
|
||||
g_signal_set_va_marshaller (signals[ALLOW_MECHANISM_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_BOOLEAN__STRINGv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -111,6 +111,7 @@
|
||||
#include "giostream.h"
|
||||
#include "gasyncresult.h"
|
||||
#include "gtask.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#include "gunixconnection.h"
|
||||
@ -1049,11 +1050,14 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusConnectionClass, closed),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__BOOLEAN_BOXED,
|
||||
G_TYPE_NONE,
|
||||
2,
|
||||
G_TYPE_BOOLEAN,
|
||||
G_TYPE_ERROR);
|
||||
g_signal_set_va_marshaller (signals[CLOSED_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__BOOLEAN_BOXEDv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1714,7 +1714,7 @@ g_dbus_daemon_class_init (GDBusDaemonClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "gdbusprivate.h"
|
||||
#include "gdbusmethodinvocation.h"
|
||||
#include "gdbusconnection.h"
|
||||
#include "gmarshal-internal.h"
|
||||
#include "gtask.h"
|
||||
#include "gioerror.h"
|
||||
|
||||
@ -248,10 +249,13 @@ g_dbus_interface_skeleton_class_init (GDBusInterfaceSkeletonClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusInterfaceSkeletonClass, g_authorize_method),
|
||||
_g_signal_accumulator_false_handled,
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT,
|
||||
G_TYPE_BOOLEAN,
|
||||
1,
|
||||
G_TYPE_DBUS_METHOD_INVOCATION);
|
||||
g_signal_set_va_marshaller (signals[G_AUTHORIZE_METHOD_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECTv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -65,7 +65,7 @@ g_dbus_object_default_init (GDBusObjectIface *iface)
|
||||
G_STRUCT_OFFSET (GDBusObjectIface, interface_added),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
1,
|
||||
G_TYPE_DBUS_INTERFACE);
|
||||
@ -85,7 +85,7 @@ g_dbus_object_default_init (GDBusObjectIface *iface)
|
||||
G_STRUCT_OFFSET (GDBusObjectIface, interface_removed),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
1,
|
||||
G_TYPE_DBUS_INTERFACE);
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "gdbusutils.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gdbusobjectmanager
|
||||
@ -51,6 +52,16 @@
|
||||
typedef GDBusObjectManagerIface GDBusObjectManagerInterface;
|
||||
G_DEFINE_INTERFACE (GDBusObjectManager, g_dbus_object_manager, G_TYPE_OBJECT)
|
||||
|
||||
enum {
|
||||
OBJECT_ADDED,
|
||||
OBJECT_REMOVED,
|
||||
INTERFACE_ADDED,
|
||||
INTERFACE_REMOVED,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
||||
static guint signals[N_SIGNALS];
|
||||
|
||||
static void
|
||||
g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
|
||||
{
|
||||
@ -63,16 +74,17 @@ g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
g_signal_new (I_("object-added"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, object_added),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE,
|
||||
1,
|
||||
G_TYPE_DBUS_OBJECT);
|
||||
signals[OBJECT_ADDED] =
|
||||
g_signal_new (I_("object-added"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, object_added),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
1,
|
||||
G_TYPE_DBUS_OBJECT);
|
||||
|
||||
/**
|
||||
* GDBusObjectManager::object-removed:
|
||||
@ -83,16 +95,17 @@ g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
g_signal_new (I_("object-removed"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, object_removed),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE,
|
||||
1,
|
||||
G_TYPE_DBUS_OBJECT);
|
||||
signals[OBJECT_REMOVED] =
|
||||
g_signal_new (I_("object-removed"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, object_removed),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
1,
|
||||
G_TYPE_DBUS_OBJECT);
|
||||
|
||||
/**
|
||||
* GDBusObjectManager::interface-added:
|
||||
@ -107,17 +120,21 @@ g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
g_signal_new (I_("interface-added"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, interface_added),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
2,
|
||||
G_TYPE_DBUS_OBJECT,
|
||||
G_TYPE_DBUS_INTERFACE);
|
||||
signals[INTERFACE_ADDED] =
|
||||
g_signal_new (I_("interface-added"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, interface_added),
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT,
|
||||
G_TYPE_NONE,
|
||||
2,
|
||||
G_TYPE_DBUS_OBJECT,
|
||||
G_TYPE_DBUS_INTERFACE);
|
||||
g_signal_set_va_marshaller (signals[INTERFACE_ADDED],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECTv);
|
||||
|
||||
/**
|
||||
* GDBusObjectManager::interface-removed:
|
||||
@ -132,17 +149,21 @@ g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
g_signal_new (I_("interface-removed"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, interface_removed),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
2,
|
||||
G_TYPE_DBUS_OBJECT,
|
||||
G_TYPE_DBUS_INTERFACE);
|
||||
signals[INTERFACE_REMOVED] =
|
||||
g_signal_new (I_("interface-removed"),
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerIface, interface_removed),
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT,
|
||||
G_TYPE_NONE,
|
||||
2,
|
||||
G_TYPE_DBUS_OBJECT,
|
||||
G_TYPE_DBUS_INTERFACE);
|
||||
g_signal_set_va_marshaller (signals[INTERFACE_REMOVED],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECTv);
|
||||
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "gdbusinterface.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gdbusobjectmanagerclient
|
||||
@ -517,7 +518,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerClientClass, interface_proxy_signal),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT_STRING_STRING_VARIANT,
|
||||
G_TYPE_NONE,
|
||||
5,
|
||||
G_TYPE_DBUS_OBJECT_PROXY,
|
||||
@ -525,6 +526,9 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_VARIANT);
|
||||
g_signal_set_va_marshaller (signals[INTERFACE_PROXY_SIGNAL_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT_STRING_STRING_VARIANTv);
|
||||
|
||||
/**
|
||||
* GDBusObjectManagerClient::interface-proxy-properties-changed:
|
||||
@ -556,13 +560,16 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusObjectManagerClientClass, interface_proxy_properties_changed),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT_VARIANT_BOXED,
|
||||
G_TYPE_NONE,
|
||||
4,
|
||||
G_TYPE_DBUS_OBJECT_PROXY,
|
||||
G_TYPE_DBUS_PROXY,
|
||||
G_TYPE_VARIANT,
|
||||
G_TYPE_STRV);
|
||||
g_signal_set_va_marshaller (signals[INTERFACE_PROXY_PROPERTIES_CHANGED_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT_VARIANT_BOXEDv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -42,6 +42,7 @@
|
||||
#endif
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gdbusproxy
|
||||
@ -595,11 +596,14 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusProxyClass, g_properties_changed),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__VARIANT_BOXED,
|
||||
G_TYPE_NONE,
|
||||
2,
|
||||
G_TYPE_VARIANT,
|
||||
G_TYPE_STRV | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
g_signal_set_va_marshaller (signals[PROPERTIES_CHANGED_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__VARIANT_BOXEDv);
|
||||
|
||||
/**
|
||||
* GDBusProxy::g-signal:
|
||||
@ -618,12 +622,15 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusProxyClass, g_signal),
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_STRING_VARIANT,
|
||||
G_TYPE_NONE,
|
||||
3,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_VARIANT);
|
||||
g_signal_set_va_marshaller (signals[SIGNAL_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__STRING_STRING_VARIANTv);
|
||||
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "ginetsocketaddress.h"
|
||||
#include "ginputstream.h"
|
||||
#include "giostream.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#include <unistd.h>
|
||||
@ -452,10 +453,13 @@ g_dbus_server_class_init (GDBusServerClass *klass)
|
||||
G_STRUCT_OFFSET (GDBusServerClass, new_connection),
|
||||
g_signal_accumulator_true_handled,
|
||||
NULL, /* accu_data */
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT,
|
||||
G_TYPE_BOOLEAN,
|
||||
1,
|
||||
G_TYPE_DBUS_CONNECTION);
|
||||
g_signal_set_va_marshaller (_signals[NEW_CONNECTION_SIGNAL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECTv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -78,7 +78,7 @@ g_drive_default_init (GDriveInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDriveIface, changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -95,7 +95,7 @@ g_drive_default_init (GDriveInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDriveIface, disconnected),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -110,7 +110,7 @@ g_drive_default_init (GDriveInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDriveIface, eject_button),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -127,7 +127,7 @@ g_drive_default_init (GDriveInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDriveIface, stop_button),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "gtlsdatabase.h"
|
||||
#include "gtlsinteraction.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gdtlsconnection
|
||||
@ -317,10 +318,13 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GDtlsConnectionInterface, accept_certificate),
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_FLAGS,
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
G_TYPE_TLS_CERTIFICATE,
|
||||
G_TYPE_TLS_CERTIFICATE_FLAGS);
|
||||
g_signal_set_va_marshaller (signals[ACCEPT_CERTIFICATE],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_FLAGSv);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include "gfilemonitor.h"
|
||||
#include "gioenumtypes.h"
|
||||
#include "gmarshal-internal.h"
|
||||
#include "gfile.h"
|
||||
#include "gvfs.h"
|
||||
#include "glibintl.h"
|
||||
@ -181,9 +182,12 @@ g_file_monitor_class_init (GFileMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GFileMonitorClass, changed),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUM,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_FILE, G_TYPE_FILE, G_TYPE_FILE_MONITOR_EVENT);
|
||||
g_signal_set_va_marshaller (g_file_monitor_changed_signal,
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUMv);
|
||||
|
||||
g_object_class_install_property (object_class, PROP_RATE_LIMIT,
|
||||
g_param_spec_int ("rate-limit",
|
||||
|
@ -105,7 +105,7 @@ g_filename_completer_class_init (GFilenameCompleterClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GFilenameCompleterClass, got_completion_data),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "glistmodel.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT)
|
||||
|
||||
@ -141,9 +142,12 @@ g_list_model_default_init (GListModelInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
_g_cclosure_marshal_VOID__UINT_UINT_UINT,
|
||||
G_TYPE_NONE,
|
||||
3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (g_list_model_changed_signal,
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_g_cclosure_marshal_VOID__UINT_UINT_UINTv);
|
||||
}
|
||||
|
||||
/**
|
||||
|
2632
gio/gmarshal-internal.c
Normal file
2632
gio/gmarshal-internal.c
Normal file
File diff suppressed because it is too large
Load Diff
503
gio/gmarshal-internal.h
Normal file
503
gio/gmarshal-internal.h
Normal file
@ -0,0 +1,503 @@
|
||||
/* GObject - GLib Type, Object, Parameter and Signal Library
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General
|
||||
* Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef ___G_CCLOSURE_MARSHAL_MARSHAL_H__
|
||||
#define ___G_CCLOSURE_MARSHAL_MARSHAL_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* BOOLEAN:OBJECT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__OBJECTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* BOOLEAN:OBJECT,FLAGS */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__OBJECT_FLAGS (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__OBJECT_FLAGSv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* BOOLEAN:OBJECT,OBJECT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__OBJECT_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* BOOLEAN:POINTER,INT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__POINTER_INT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__POINTER_INTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* BOOLEAN:STRING */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__STRING (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__STRINGv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* BOOLEAN:UINT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__UINT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__UINTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* BOOLEAN:VOID */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__VOID (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_BOOLEAN__VOIDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* INT:BOXED */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_INT__BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_INT__BOXEDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* INT:OBJECT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_INT__OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_INT__OBJECTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:BOOLEAN,BOXED */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__BOOLEAN_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__BOOLEAN_BOXEDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:ENUM,OBJECT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__ENUM_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__ENUM_OBJECTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:ENUM,OBJECT,OBJECT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:INT,INT,INT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__INT_INT_INT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__INT_INT_INTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:OBJECT,OBJECT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:OBJECT,OBJECT,ENUM */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUM (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUMv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:OBJECT,OBJECT,STRING,STRING,VARIANT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT_STRING_STRING_VARIANT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT_STRING_STRING_VARIANTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:OBJECT,OBJECT,VARIANT,BOXED */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT_VARIANT_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_OBJECT_VARIANT_BOXEDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:OBJECT,VARIANT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_VARIANT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__OBJECT_VARIANTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:POINTER,INT,STRING */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__POINTER_INT_STRING (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__POINTER_INT_STRINGv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,BOOLEAN */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_BOOLEAN (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_BOOLEANv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,BOXED */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_BOXEDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,BOXED,BOXED */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_BOXED_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_BOXED_BOXEDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,INT64,INT64 */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_INT64_INT64 (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_INT64_INT64v (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,STRING,STRING,FLAGS */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_STRING_STRING_FLAGS (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_STRING_STRING_FLAGSv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,STRING,VARIANT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_STRING_VARIANT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_STRING_VARIANTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:STRING,VARIANT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_VARIANT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__STRING_VARIANTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:UINT,UINT,UINT */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__UINT_UINT_UINT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__UINT_UINT_UINTv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
/* VOID:VARIANT,BOXED */
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__VARIANT_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
G_GNUC_INTERNAL
|
||||
void _g_cclosure_marshal_VOID__VARIANT_BOXEDv (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
va_list args,
|
||||
gpointer marshal_data,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* ___G_CCLOSURE_MARSHAL_MARSHAL_H__ */
|
28
gio/gmarshal-internal.list
Normal file
28
gio/gmarshal-internal.list
Normal file
@ -0,0 +1,28 @@
|
||||
BOOLEAN:OBJECT
|
||||
BOOLEAN:OBJECT,FLAGS
|
||||
BOOLEAN:OBJECT,OBJECT
|
||||
BOOLEAN:POINTER,INT
|
||||
BOOLEAN:STRING
|
||||
BOOLEAN:UINT
|
||||
BOOLEAN:VOID
|
||||
INT:BOXED
|
||||
INT:OBJECT
|
||||
VOID:BOOLEAN,BOXED
|
||||
VOID:ENUM,OBJECT
|
||||
VOID:ENUM,OBJECT,OBJECT
|
||||
VOID:INT,INT,INT
|
||||
VOID:OBJECT,OBJECT
|
||||
VOID:OBJECT,OBJECT,ENUM
|
||||
VOID:OBJECT,OBJECT,STRING,STRING,VARIANT
|
||||
VOID:OBJECT,OBJECT,VARIANT,BOXED
|
||||
VOID:OBJECT,VARIANT
|
||||
VOID:POINTER,INT,STRING
|
||||
VOID:STRING,BOOLEAN
|
||||
VOID:STRING,BOXED
|
||||
VOID:STRING,BOXED,BOXED
|
||||
VOID:STRING,INT64,INT64
|
||||
VOID:STRING,STRING,STRING,FLAGS
|
||||
VOID:STRING,STRING,VARIANT
|
||||
VOID:STRING,VARIANT
|
||||
VOID:UINT,UINT,UINT
|
||||
VOID:VARIANT,BOXED
|
@ -22,6 +22,7 @@
|
||||
#include "gmenumodel.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gmenumodel
|
||||
@ -452,8 +453,12 @@ g_menu_model_class_init (GMenuModelClass *class)
|
||||
g_menu_model_items_changed_signal =
|
||||
g_signal_new (I_("items-changed"), G_TYPE_MENU_MODEL,
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE,
|
||||
_g_cclosure_marshal_VOID__INT_INT_INT,
|
||||
G_TYPE_NONE,
|
||||
3, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (g_menu_model_items_changed_signal,
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_VOID__INT_INT_INTv);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ g_mount_default_init (GMountInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountIface, changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -95,7 +95,7 @@ g_mount_default_init (GMountInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountIface, unmounted),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
/**
|
||||
* GMount::pre-unmount:
|
||||
@ -114,7 +114,7 @@ g_mount_default_init (GMountInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountIface, pre_unmount),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "gmountoperation.h"
|
||||
#include "gioenumtypes.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
|
||||
/**
|
||||
@ -321,9 +322,12 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, ask_password),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_STRING_STRING_FLAGS,
|
||||
G_TYPE_NONE, 4,
|
||||
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_ASK_PASSWORD_FLAGS);
|
||||
g_signal_set_va_marshaller (signals[ASK_PASSWORD],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_g_cclosure_marshal_VOID__STRING_STRING_STRING_FLAGSv);
|
||||
|
||||
/**
|
||||
* GMountOperation::ask-question:
|
||||
@ -344,9 +348,12 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, ask_question),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_BOXED,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_STRV);
|
||||
g_signal_set_va_marshaller (signals[ASK_QUESTION],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_g_cclosure_marshal_VOID__STRING_BOXEDv);
|
||||
|
||||
/**
|
||||
* GMountOperation::reply:
|
||||
@ -361,7 +368,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, reply),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__ENUM,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_MOUNT_OPERATION_RESULT);
|
||||
|
||||
@ -382,7 +389,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, aborted),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -414,9 +421,12 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, show_processes),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_BOXED_BOXED,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_STRING, G_TYPE_ARRAY, G_TYPE_STRV);
|
||||
g_signal_set_va_marshaller (signals[SHOW_PROCESSES],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_g_cclosure_marshal_VOID__STRING_BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GMountOperation::show-unmount-progress:
|
||||
@ -452,9 +462,13 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, show_unmount_progress),
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL,
|
||||
_g_cclosure_marshal_VOID__STRING_INT64_INT64,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_STRING, G_TYPE_INT64, G_TYPE_INT64);
|
||||
g_signal_set_va_marshaller (signals[SHOW_UNMOUNT_PROGRESS],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_g_cclosure_marshal_VOID__STRING_INT64_INT64v);
|
||||
|
||||
/**
|
||||
* GMountOperation:username:
|
||||
|
@ -321,7 +321,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GNetworkMonitorInterface, network_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__BOOLEAN,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_BOOLEAN);
|
||||
|
||||
|
@ -169,7 +169,7 @@ g_resolver_class_init (GResolverClass *resolver_class)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GResolverClass, reload),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "gsettings-mapping.h"
|
||||
#include "gsettingsschema-internal.h"
|
||||
#include "gaction.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
#include "strinfo.c"
|
||||
|
||||
@ -743,7 +744,7 @@ g_settings_class_init (GSettingsClass *class)
|
||||
g_signal_new (I_("changed"), G_TYPE_SETTINGS,
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
|
||||
G_STRUCT_OFFSET (GSettingsClass, changed),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE,
|
||||
NULL, NULL, NULL, G_TYPE_NONE,
|
||||
1, G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
@ -777,8 +778,11 @@ g_settings_class_init (GSettingsClass *class)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GSettingsClass, change_event),
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__POINTER_INT,
|
||||
G_TYPE_BOOLEAN, 2, G_TYPE_POINTER, G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (g_settings_signals[SIGNAL_CHANGE_EVENT],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_BOOLEAN__POINTER_INTv);
|
||||
|
||||
/**
|
||||
* GSettings::writable-changed:
|
||||
@ -797,7 +801,7 @@ g_settings_class_init (GSettingsClass *class)
|
||||
g_signal_new (I_("writable-changed"), G_TYPE_SETTINGS,
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
|
||||
G_STRUCT_OFFSET (GSettingsClass, writable_changed),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE,
|
||||
NULL, NULL, NULL, G_TYPE_NONE,
|
||||
1, G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
@ -832,7 +836,11 @@ g_settings_class_init (GSettingsClass *class)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GSettingsClass, writable_change_event),
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
NULL, G_TYPE_BOOLEAN, 1, G_TYPE_UINT);
|
||||
_g_cclosure_marshal_BOOLEAN__UINT,
|
||||
G_TYPE_BOOLEAN, 1, G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (g_settings_signals[SIGNAL_WRITABLE_CHANGE_EVENT],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_BOOLEAN__UINTv);
|
||||
|
||||
/**
|
||||
* GSettings:backend:
|
||||
|
@ -395,7 +395,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
|
||||
G_TYPE_SIMPLE_ACTION,
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_MUST_COLLECT,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VARIANT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_VARIANT);
|
||||
|
||||
@ -445,7 +445,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
|
||||
G_TYPE_SIMPLE_ACTION,
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_MUST_COLLECT,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VARIANT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_VARIANT);
|
||||
|
||||
|
@ -49,6 +49,7 @@
|
||||
#include <gio/gtlsclientconnection.h>
|
||||
#include <gio/ginetaddress.h>
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/* As recommended by RFC 8305 this is the time it waits
|
||||
* on a connection before starting another concurrent attempt.
|
||||
@ -832,11 +833,14 @@ g_socket_client_class_init (GSocketClientClass *class)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GSocketClientClass, event),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECT,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_SOCKET_CLIENT_EVENT,
|
||||
G_TYPE_SOCKET_CONNECTABLE,
|
||||
G_TYPE_IO_STREAM);
|
||||
g_signal_set_va_marshaller (signals[EVENT],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECTv);
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_FAMILY,
|
||||
g_param_spec_enum ("family",
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <gio/gsocketconnection.h>
|
||||
#include <gio/ginetsocketaddress.h>
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
|
||||
/**
|
||||
@ -181,10 +182,14 @@ g_socket_listener_class_init (GSocketListenerClass *klass)
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GSocketListenerClass, event),
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL,
|
||||
_g_cclosure_marshal_VOID__ENUM_OBJECT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_SOCKET_LISTENER_EVENT,
|
||||
G_TYPE_SOCKET);
|
||||
g_signal_set_va_marshaller (signals[EVENT],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_g_cclosure_marshal_VOID__ENUM_OBJECTv);
|
||||
|
||||
source_quark = g_quark_from_static_string ("g-socket-listener-source");
|
||||
}
|
||||
|
@ -64,6 +64,7 @@
|
||||
#include "gsocketlistener.h"
|
||||
#include "gsocketconnection.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
struct _GSocketServicePrivate
|
||||
{
|
||||
@ -346,8 +347,12 @@ g_socket_service_class_init (GSocketServiceClass *class)
|
||||
g_signal_new (I_("incoming"), G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GSocketServiceClass, incoming),
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
NULL, G_TYPE_BOOLEAN,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECT,
|
||||
G_TYPE_BOOLEAN,
|
||||
2, G_TYPE_SOCKET_CONNECTION, G_TYPE_OBJECT);
|
||||
g_signal_set_va_marshaller (g_socket_service_incoming_signal,
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv);
|
||||
|
||||
/**
|
||||
* GSocketService:active:
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include "gsocketconnection.h"
|
||||
#include "gthreadedsocketservice.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
struct _GThreadedSocketServicePrivate
|
||||
{
|
||||
@ -238,8 +239,12 @@ g_threaded_socket_service_class_init (GThreadedSocketServiceClass *class)
|
||||
g_signal_new (I_("run"), G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GThreadedSocketServiceClass, run),
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
NULL, G_TYPE_BOOLEAN,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECT,
|
||||
G_TYPE_BOOLEAN,
|
||||
2, G_TYPE_SOCKET_CONNECTION, G_TYPE_OBJECT);
|
||||
g_signal_set_va_marshaller (g_threaded_socket_service_run_signal,
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv);
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_MAX_THREADS,
|
||||
g_param_spec_int ("max-threads",
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "gtlsdatabase.h"
|
||||
#include "gtlsinteraction.h"
|
||||
#include "glibintl.h"
|
||||
#include "gmarshal-internal.h"
|
||||
|
||||
/**
|
||||
* SECTION:gtlsconnection
|
||||
@ -345,10 +346,13 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GTlsConnectionClass, accept_certificate),
|
||||
g_signal_accumulator_true_handled, NULL,
|
||||
NULL,
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_FLAGS,
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
G_TYPE_TLS_CERTIFICATE,
|
||||
G_TYPE_TLS_CERTIFICATE_FLAGS);
|
||||
g_signal_set_va_marshaller (signals[ACCEPT_CERTIFICATE],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_g_cclosure_marshal_BOOLEAN__OBJECT_FLAGSv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1929,7 +1929,7 @@ g_unix_mount_monitor_class_init (GUnixMountMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -1944,7 +1944,7 @@ g_unix_mount_monitor_class_init (GUnixMountMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0,
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ g_volume_default_init (GVolumeInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeIface, changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
@ -108,7 +108,7 @@ g_volume_default_init (GVolumeInterface *iface)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeIface, removed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, volume_added),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_VOLUME);
|
||||
|
||||
/**
|
||||
@ -109,7 +109,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, volume_removed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_VOLUME);
|
||||
|
||||
/**
|
||||
@ -124,7 +124,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, volume_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_VOLUME);
|
||||
|
||||
/**
|
||||
@ -139,7 +139,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_added),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_MOUNT);
|
||||
|
||||
/**
|
||||
@ -154,7 +154,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_removed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_MOUNT);
|
||||
|
||||
/**
|
||||
@ -172,7 +172,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_pre_unmount),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_MOUNT);
|
||||
|
||||
/**
|
||||
@ -187,7 +187,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, mount_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_MOUNT);
|
||||
|
||||
/**
|
||||
@ -202,7 +202,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_connected),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_DRIVE);
|
||||
|
||||
/**
|
||||
@ -217,7 +217,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_disconnected),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_DRIVE);
|
||||
|
||||
/**
|
||||
@ -232,7 +232,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_DRIVE);
|
||||
|
||||
/**
|
||||
@ -249,7 +249,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_eject_button),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_DRIVE);
|
||||
|
||||
/**
|
||||
@ -266,7 +266,7 @@ g_volume_monitor_class_init (GVolumeMonitorClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GVolumeMonitorClass, drive_stop_button),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_DRIVE);
|
||||
|
||||
}
|
||||
|
@ -526,6 +526,7 @@ gio_sources = files(
|
||||
'gioscheduler.c',
|
||||
'giostream.c',
|
||||
'gloadableicon.c',
|
||||
'gmarshal-internal.c',
|
||||
'gmount.c',
|
||||
'gmemoryinputstream.c',
|
||||
'gmemoryoutputstream.c',
|
||||
@ -1003,4 +1004,15 @@ subdir('fam')
|
||||
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
||||
if build_tests
|
||||
subdir('tests')
|
||||
endif
|
||||
endif
|
||||
|
||||
# The following is an example for building internal marshallers that are used
|
||||
# by GIO. We cannot guarantee glib-genmarshal availability while building GLib
|
||||
# so they are pre-generated and placed into gmarshal-internal.[ch].
|
||||
#
|
||||
# gmarshal_internal = gnome.genmarshal('gmarshal-internal',
|
||||
# sources: 'gmarshal-internal.list',
|
||||
# prefix: '_g_cclosure_marshal',
|
||||
# valist_marshallers: true,
|
||||
# internal: true,
|
||||
# )
|
||||
|
@ -529,7 +529,7 @@ g_object_do_class_init (GObjectClass *class)
|
||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE | G_SIGNAL_DETAILED | G_SIGNAL_NO_HOOKS | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GObjectClass, notify),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__PARAM,
|
||||
NULL,
|
||||
G_TYPE_NONE,
|
||||
1, G_TYPE_PARAM);
|
||||
|
||||
|
@ -1410,8 +1410,14 @@ g_signal_query (guint signal_id,
|
||||
* in their class_init method by doing super_class->signal_handler = my_signal_handler.
|
||||
* Instead they will have to use g_signal_override_class_handler().
|
||||
*
|
||||
* If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as
|
||||
* the marshaller for this signal.
|
||||
* If @c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as
|
||||
* the marshaller for this signal. In some simple cases, g_signal_new()
|
||||
* will use a more optimized c_marshaller and va_marshaller for the signal
|
||||
* instead of g_cclosure_marshal_generic().
|
||||
*
|
||||
* If @c_marshaller is non-%NULL, you need to also specify a va_marshaller
|
||||
* using g_signal_set_va_marshaller() or the generic va_marshaller will
|
||||
* be used.
|
||||
*
|
||||
* Returns: the signal id
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user