telepathy-mission-control: mcd-dbusprop: remove support for filtering property setting through an ACL
Simon McVittie
smcv at kemper.freedesktop.org
Fri Sep 7 06:30:38 PDT 2012
Module: telepathy-mission-control
Branch: master
Commit: 362ef681dbaea571ccfccc3dbe06f2218780d217
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=362ef681dbaea571ccfccc3dbe06f2218780d217
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed Aug 29 11:18:11 2012 +0100
mcd-dbusprop: remove support for filtering property setting through an ACL
This provided an asynchronous API for getting and setting properties,
which nothing actually calls into, and nothing in MC supports setting
properties asynchronously anyway. Into the bin it goes!
Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54633
---
src/mcd-dbusprop.c | 106 ----------------------------------------------------
src/mcd-dbusprop.h | 28 --------------
2 files changed, 0 insertions(+), 134 deletions(-)
diff --git a/src/mcd-dbusprop.c b/src/mcd-dbusprop.c
index e48927d..01307f6 100644
--- a/src/mcd-dbusprop.c
+++ b/src/mcd-dbusprop.c
@@ -32,9 +32,6 @@
#include "mcd-dbusprop.h"
#include "mcd-debug.h"
-#include "mission-control-plugins/mission-control-plugins.h"
-#include "mission-control-plugins/implementation.h"
-
#define MCD_INTERFACES_QUARK get_interfaces_quark()
static GQuark
@@ -188,25 +185,6 @@ mcd_dbusprop_set_property (TpSvcDBusProperties *self,
}
void
-dbusprop_acl_set (TpSvcDBusProperties *self,
- const gchar *interface,
- const gchar *property,
- const GValue *value,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params)
-{
- gchar *name = g_strdup_printf ("%s.%s", interface, property);
- gboolean ok = mcp_dbus_acl_authorised (dbus, context,
- DBUS_ACL_TYPE_SET_PROPERTY,
- name, params);
- g_free (name);
-
- if (ok)
- dbusprop_set (self, interface, property, value, context);
-}
-
-void
dbusprop_set (TpSvcDBusProperties *self,
const gchar *interface_name,
const gchar *property_name,
@@ -253,25 +231,6 @@ mcd_dbusprop_get_property (TpSvcDBusProperties *self,
}
void
-dbusprop_acl_get (TpSvcDBusProperties *self,
- const gchar *interface,
- const gchar *property,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params)
-{
- gchar *name = g_strdup_printf ("%s.%s", interface, property);
- gboolean ok = mcp_dbus_acl_authorised (dbus, context,
- DBUS_ACL_TYPE_GET_PROPERTY,
- name, params);
- g_free (name);
-
- if (ok)
- dbusprop_get (self, interface, property, context);
-}
-
-
-void
dbusprop_get (TpSvcDBusProperties *self,
const gchar *interface_name,
const gchar *property_name,
@@ -339,24 +298,6 @@ get_all_iter (GetAllData *data)
}
}
-void
-dbusprop_acl_get_all (TpSvcDBusProperties *self,
- const gchar *interface,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params)
-{
- gchar *name = g_strdup_printf ("%s.*", interface);
- gboolean ok = mcp_dbus_acl_authorised (dbus, context,
- DBUS_ACL_TYPE_GET_PROPERTY,
- name, params);
-
- g_free (name);
-
- if (ok)
- dbusprop_get_all (self, interface, context);
-}
-
typedef struct
{
TpSvcDBusProperties *tp_svc_props;
@@ -364,53 +305,6 @@ typedef struct
gchar *property;
} DBusPropAsyncData;
-static void
-dbusprop_acl_get_all_async_complete (DBusGMethodInvocation *context,
- gpointer data)
-{
- DBusPropAsyncData *ad = data;
-
- dbusprop_get_all (ad->tp_svc_props, ad->interface, context);
-}
-
-static void
-dbusprop_acl_get_all_async_cleanup (gpointer data)
-{
- DBusPropAsyncData *ad = data;
-
- g_object_unref (ad->tp_svc_props);
- g_free (ad->interface);
- g_free (ad->property);
- g_slice_free (DBusPropAsyncData, data);
-}
-
-void
-dbusprop_acl_get_all_async_start (TpSvcDBusProperties *self,
- const gchar *interface,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params)
-{
- DBusPropAsyncData *data = g_slice_new0 (DBusPropAsyncData);
- gchar *name = g_strdup_printf ("%s.*", interface);
-
- data->tp_svc_props = g_object_ref (self);
- data->interface = g_strdup (interface);
- data->property = NULL;
-
- mcp_dbus_acl_authorised_async (dbus,
- context,
- DBUS_ACL_TYPE_GET_PROPERTY,
- name,
- params,
- dbusprop_acl_get_all_async_complete,
- data,
- dbusprop_acl_get_all_async_cleanup);
-
- g_free (name);
-}
-
-
void
dbusprop_get_all (TpSvcDBusProperties *self,
const gchar *interface_name,
diff --git a/src/mcd-dbusprop.h b/src/mcd-dbusprop.h
index fbac31b..fa5091c 100644
--- a/src/mcd-dbusprop.h
+++ b/src/mcd-dbusprop.h
@@ -119,34 +119,6 @@ gboolean mcd_dbusprop_get_property (TpSvcDBusProperties *self,
GValue *value,
GError **error);
-void dbusprop_acl_set (TpSvcDBusProperties *self,
- const gchar *interface,
- const gchar *property,
- const GValue *value,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params);
-
-void dbusprop_acl_get (TpSvcDBusProperties *self,
- const gchar *interface,
- const gchar *property,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable * params);
-
-void dbusprop_acl_get_all (TpSvcDBusProperties *self,
- const gchar *interface,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params);
-
-void
-dbusprop_acl_get_all_async_start (TpSvcDBusProperties *self,
- const gchar *interface,
- DBusGMethodInvocation *context,
- TpDBusDaemon *dbus,
- GHashTable *params);
-
void dbusprop_set (TpSvcDBusProperties *self,
const gchar *interface_name,
const gchar *property_name,
More information about the telepathy-commits
mailing list