dbus/dbus dbus-glib.h,1.16,1.17

Colin Walters walters at freedesktop.org
Thu Jun 30 11:22:15 PDT 2005


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

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

	* test/glib/test-dbus-glib.c:
	* test/glib/test-service-glib.c:
	* test/glib/test-service-glib.xml: Update tests for new error
	setting bits, also add async tests (patch from Ross Burton).

	* test/glib/Makefile.am (test_service_glib_LDADD): Add
	DBUS_GLIB_THREADS_LIBS.

	* glib/dbus-gproxy.c (get_name_owner)
	(dbus_g_pending_call_end_valist): Ditto.

	* glib/dbus-gobject.c (error_metadata): New mapping from GError
	domain (GQuark) to DBusGErrorInfo.  
	(gerror_domaincode_to_dbus_error_name): Attempt to look up error
	quark in error_metadata.  Take message interface as default
	error message interface.
	(gerror_to_dbus_error_message): Pass message interface.
	(dbus_set_g_error): Resurrected.
	(dbus_g_error_info_free): New function.
	(dbus_g_object_type_install_info): Use g_type_class_ref instead
	of _peek to actually create the object class if it hasn't been
	created yet.
	(dbus_g_error_domain_register): New function.

	* glib/dbus-gmain.c (dbus_g_bus_get): Switch to dbus_set_g_error.

	* glib/dbus-gparser.c (validate_signature): Ditto.

	* dbus/dbus-glib.h (dbus_g_error_set): Delete.
	(dbus_g_error_domain_register): Prototype.

	* glib/dbus-glib.c (dbus_g_error_set): Delete.
	Update tests.


Index: dbus-glib.h
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-glib.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- dbus-glib.h	29 Jun 2005 23:52:35 -0000	1.16
+++ dbus-glib.h	30 Jun 2005 18:22:10 -0000	1.17
@@ -81,9 +81,6 @@
 #include <dbus/dbus-glib-error-enum.h>    
 } DBusGError;
 
-void             dbus_g_error_set         (GError     **error,
-					   const char  *name,
-					   const char  *msg);
 gboolean         dbus_g_error_has_name    (GError      *error,
 					   const char  *name);
 const char *     dbus_g_error_get_name    (GError      *error);
@@ -126,6 +123,10 @@
 void       dbus_g_object_type_install_info     (GType                 object_type,
                                                 const DBusGObjectInfo *info);
 
+void       dbus_g_error_domain_register        (GQuark                domain,
+						const char *          default_iface,
+						GType                 code_enum);
+
 void       dbus_g_connection_register_g_object (DBusGConnection       *connection,
 						const char            *at_path,
 						GObject               *object);



More information about the dbus-commit mailing list