dbus/dbus dbus-glib.h,1.11,1.12

Colin Walters walters at freedesktop.org
Fri Jun 17 07:29:50 PDT 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv20123/dbus

Modified Files:
	dbus-glib.h 
Log Message:
2005-06-17  Colin Walters  <walters at verbum.org>

	* glib/dbus-gproxy.c (dbus_g_proxy_emit_remote_signal): Don't
	spew warnings if we get malformed remote signals.

	* glib/dbus-gobject.c (propsig_iterate): New function.
	(lookup_object_info): New function, extracted from
	lookup_object_and_method.
	(introspect_properties, introspect_signals): Delete; these
	are merged into write_interface.
	(write_interface): Write out signals and properties here;
	dump the org.gtk.object stuff and use the interface given
	in the introspection data blob.  Also fix up property XML.
	(lookup_values): New function.
	(introspect_interfaces): Gather a mapping from interface to a
	list of its methods, signals, and properties, then write out
	each interface.
	(lookup_object_and_method): Use lookup_object_info.
	(struct DBusGSignalClosure): Add interface.
	(dbus_g_signal_closure_new): Add interface. Don't dup signame;
	we can just use the constant data.
	(dbus_g_signal_closure_finalize): Don't free signal name.
	(signal_emitter_marshaller): Use interface from signal closure.
	(export_signals): Only export signals mentioned in introspection
	blob.
	(dbus_g_connection_register_g_object): Warn if we have no
	introspection data for an object.
	(funcsig_equal): Remove unused variable.
	(dbus_g_object_register_marshaller): Take varargs instead of
	list.
	(dbus_g_object_register_marshaller_array): New function,
	extracted from old dbus_g_object_register_marshaller.

	* glib/dbus-binding-tool-glib.c (struct DBusBindingToolCData): Add
	signals and property data.
	(write_quoted_string): New function, extracted from generate_glue.
	(generate_glue): Write signals and properties to introspection
	blob.

	* dbus/dbus-glib.h (struct DBusGObjectInfo): Include
	exported_signals and exported_properties.
	(dbus_g_object_register_marshaller): Update prototype.
	(dbus_g_object_register_marshaller_array): Prototype.
	
	* test/glib/test-dbus-glib.c: Extend testing to cover new signals.

	* test/glib/test-service-glib.c: Add new test signals and method
	to emit them.

	* test/glib/test-service-glib.xml: Add some test signals.

	* test/glib/Makefile.am (BUILT_SOURCES): Add my-object-marshal.c
	and my-object-marshal.h
	(test_service_glib_SOURCES, test_dbus_glib_SOURCES): Add
	my-object-marshal.c.
	(my-object-marshal.c, my-object-marshal.h): Implement.

	* test/glib/.cvsignore: Update.

	* doc/TODO: Remove two GLib TODO items fixed by this
	patch.


Index: dbus-glib.h
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-glib.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- dbus-glib.h	14 Jun 2005 15:52:41 -0000	1.11
+++ dbus-glib.h	17 Jun 2005 14:29:48 -0000	1.12
@@ -109,9 +109,11 @@
   int   format_version;         /**< Allows us to change the rest of this struct
                                  *   by adding DBusGObjectInfo2, DBusGObjectInfo3, etc.
                                  */
-  const DBusGMethodInfo *infos; /**< Array of method pointers */
-  int   n_infos;                /**< Length of the infos array */
+  const DBusGMethodInfo *method_infos; /**< Array of method pointers */
+  int   n_method_infos;                /**< Length of the infos array */
   const char *data;             /**< Introspection data */
+  const char *exported_signals;  /**< Exported signals */
+  const char *exported_properties;  /**< Exported properties */
 };
 
 void dbus_g_object_type_install_info     (GType                 object_type,
@@ -189,13 +191,16 @@
 void         dbus_g_value_iterator_recurse          (DBusGValueIterator   *iter,
 						     DBusGValueIterator   *sub);
 
-void         dbus_g_value_free              (DBusGValue          *value);
+void         dbus_g_value_free                      (DBusGValue          *value);
 
 
-void         dbus_g_object_register_marshaller  (GType             rettype,
-						 guint             n_types,
-						 const GType      *param_types,
-						 GClosureMarshal   marshaller);
+void         dbus_g_object_register_marshaller      (GClosureMarshal  marshaller,
+						     GType            rettype,
+						     ...);
+void         dbus_g_object_register_marshaller_array(GClosureMarshal  marshaller,
+						     GType            rettype,
+						     guint            n_types,
+						     const GType*     types);
 
 typedef struct DBusGProxy       DBusGProxy;
 typedef struct DBusGProxyClass  DBusGProxyClass;



More information about the dbus-commit mailing list