[gnome-photos/wip/rishi/share-point: 8/16] utils: Add an extension point for PhotosSharePointOnline sub-classes



commit 4cd0030d08b8e50c76a82706bc859a0ec9c0ec3a
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jul 27 18:46:59 2016 +0200

    utils: Add an extension point for PhotosSharePointOnline sub-classes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751181

 src/photos-utils.c |    4 ++++
 src/photos-utils.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-utils.c b/src/photos-utils.c
index ab4dfba..5287bd2 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -52,6 +52,7 @@
 #include "photos-operation-saturation.h"
 #include "photos-query.h"
 #include "photos-share-point.h"
+#include "photos-share-point-online.h"
 #include "photos-source.h"
 #include "photos-tool.h"
 #include "photos-tool-colors.h"
@@ -860,6 +861,9 @@ photos_utils_ensure_extension_points (void)
       extension_point = g_io_extension_point_register (PHOTOS_SHARE_POINT_EXTENSION_POINT_NAME);
       g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_SHARE_POINT);
 
+      extension_point = g_io_extension_point_register (PHOTOS_SHARE_POINT_ONLINE_EXTENSION_POINT_NAME);
+      g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_SHARE_POINT_ONLINE);
+
       extension_point = g_io_extension_point_register (PHOTOS_TOOL_EXTENSION_POINT_NAME);
       g_io_extension_point_set_required_type (extension_point, PHOTOS_TYPE_TOOL);
 
diff --git a/src/photos-utils.h b/src/photos-utils.h
index 1f5f994..81327b7 100644
--- a/src/photos-utils.h
+++ b/src/photos-utils.h
@@ -51,6 +51,7 @@ G_BEGIN_DECLS
 
 #define PHOTOS_BASE_ITEM_EXTENSION_POINT_NAME "photos-base-item"
 #define PHOTOS_SHARE_POINT_EXTENSION_POINT_NAME "photos-share-point"
+#define PHOTOS_SHARE_POINT_ONLINE_EXTENSION_POINT_NAME "photos-share-point-online"
 #define PHOTOS_TOOL_EXTENSION_POINT_NAME "photos-tool"
 #define PHOTOS_TRACKER_CONTROLLER_EXTENSION_POINT_NAME "photos-tracker-controller"
 


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