[gnome-online-accounts] provider: add an extension point for GoaProviderFactory implementations



commit a45fba786046a261e557588a0f4b4f4d23d85e66
Author: Marco Barisione <marco barisione collabora co uk>
Date:   Wed Jul 24 16:47:00 2013 +0100

    provider: add an extension point for GoaProviderFactory implementations
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696267

 src/goabackend/goaprovider-priv.h |    7 +++++++
 src/goabackend/goaprovider.c      |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaprovider-priv.h b/src/goabackend/goaprovider-priv.h
index 5ab8bee..763e824 100644
--- a/src/goabackend/goaprovider-priv.h
+++ b/src/goabackend/goaprovider-priv.h
@@ -36,6 +36,13 @@ G_BEGIN_DECLS
  */
 #define GOA_PROVIDER_EXTENSION_POINT_NAME "goa-backend-provider"
 
+/**
+ * GOA_PROVIDER_FACTORY_EXTENSION_POINT_NAME:
+ *
+ * Extension point for #GoaProviderFactory implementations.
+ */
+#define GOA_PROVIDER_FACTORY_EXTENSION_POINT_NAME "goa-backend-provider-factory"
+
 void goa_provider_ensure_extension_points_registered (void);
 
 G_END_DECLS
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index d7d78a0..0bd73ea 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -28,6 +28,7 @@
 #include "goalogging.h"
 #include "goaprovider.h"
 #include "goaprovider-priv.h"
+#include "goaproviderfactory.h"
 #include "goaexchangeprovider.h"
 #include "goagoogleprovider.h"
 #include "goafacebookprovider.h"
@@ -775,6 +776,9 @@ goa_provider_ensure_extension_points_registered (void)
       extension_point = g_io_extension_point_register (GOA_PROVIDER_EXTENSION_POINT_NAME);
       g_io_extension_point_set_required_type (extension_point, GOA_TYPE_PROVIDER);
 
+      extension_point = g_io_extension_point_register (GOA_PROVIDER_FACTORY_EXTENSION_POINT_NAME);
+      g_io_extension_point_set_required_type (extension_point, GOA_TYPE_PROVIDER_FACTORY);
+
       g_once_init_leave (&once_init_value, 1);
     }
 }


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