summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Isaacson <eitan.isaacson@collabora.co.uk>2011-03-15 23:07:04 (GMT)
committerEitan Isaacson <eitan.isaacson@collabora.co.uk>2011-03-15 23:07:04 (GMT)
commit027b7738473b0be356e8fccdc121abd36b2ca67e (patch)
tree4aa6a19a5f045641ce62d6f014e60962c12dff86
parent62ec1aff353e196c2f0639fd32bfe149d2a43509 (diff)
downloadlibsocialweb-027b7738473b0be356e8fccdc121abd36b2ca67e.tar.gz
libsocialweb-027b7738473b0be356e8fccdc121abd36b2ca67e.tar.xz
smugmug: implemented Collections.GetCreatableTypes()
-rw-r--r--services/smugmug/smugmug.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/services/smugmug/smugmug.c b/services/smugmug/smugmug.c
index d80b9c2..6649ff1 100644
--- a/services/smugmug/smugmug.c
+++ b/services/smugmug/smugmug.c
@@ -738,6 +738,22 @@ _smugmug_collections_get_details (SwCollectionsIface *self,
}
static void
+_smugmug_collections_get_creatable_types (SwCollectionsIface *self,
+ DBusGMethodInvocation *context)
+{
+ GArray *creatable_types = g_array_sized_new (TRUE, TRUE,
+ sizeof (guint), 1);
+ guint v = PHOTO | VIDEO;
+
+ g_array_append_val (creatable_types, v);
+
+ sw_collections_iface_return_from_get_creatable_types (context,
+ creatable_types);
+
+ g_array_free (creatable_types, TRUE);
+}
+
+static void
collections_iface_init (gpointer g_iface,
gpointer iface_data)
{
@@ -751,6 +767,9 @@ collections_iface_init (gpointer g_iface,
sw_collections_iface_implement_get_details (klass,
_smugmug_collections_get_details);
+
+ sw_collections_iface_implement_get_creatable_types (klass,
+ _smugmug_collections_get_creatable_types);
}
/* Photo Upload Interface */