[libsocialweb] Made service errors proper dbus errors.



commit 9878c18ad9347d1ba4f453c7f7da09b39ec1dcd4
Author: Eitan Isaacson <eitan monotonous org>
Date:   Wed Feb 9 11:32:29 2011 -0800

    Made service errors proper dbus errors.

 libsocialweb/sw-service.c |    4 +++-
 libsocialweb/sw-service.h |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libsocialweb/sw-service.c b/libsocialweb/sw-service.c
index 0362fca..79ba587 100644
--- a/libsocialweb/sw-service.c
+++ b/libsocialweb/sw-service.c
@@ -108,7 +108,9 @@ sw_service_class_init (SwServiceClass *klass)
   object_class->dispose = sw_service_dispose;
   object_class->constructed = sw_service_constructed;
 
-  dbus_g_error_domain_register (SW_SERVICE_ERROR, NULL, SW_TYPE_SERVICE_ERROR);
+  dbus_g_error_domain_register (SW_SERVICE_ERROR,
+                                "com.meego.libsocialweb.ServiceError",
+                                SW_TYPE_SERVICE_ERROR);
 }
 
 static void
diff --git a/libsocialweb/sw-service.h b/libsocialweb/sw-service.h
index bfc5792..794caf2 100644
--- a/libsocialweb/sw-service.h
+++ b/libsocialweb/sw-service.h
@@ -31,8 +31,8 @@ G_BEGIN_DECLS
 #define SW_TYPE_SERVICE sw_service_get_type()
 
 typedef enum {
-  SW_SERVICE_ERROR_NO_KEYS,
-  SW_SERVICE_ERROR_INVALID_QUERY
+  SW_SERVICE_ERROR_NO_KEYS, /*< nick=NoKeys >*/
+  SW_SERVICE_ERROR_INVALID_QUERY, /*< nick=InvalidQuery >*/
 } SwServiceError;
 
 #define SW_SERVICE_ERROR sw_service_error_quark ()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]