[telepathy-mission-control/master] mcd-account-manager-creation: re-namespace creation method
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon May 4 06:26:43 PDT 2009
This will stop it colliding with the main-interface version when merging
the .c files (the main version is going to become this version,
basically).
---
src/mcd-account-manager-creation.c | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/src/mcd-account-manager-creation.c b/src/mcd-account-manager-creation.c
index 9d65b27..7555260 100644
--- a/src/mcd-account-manager-creation.c
+++ b/src/mcd-account-manager-creation.c
@@ -57,8 +57,10 @@ mcd_creation_data_free (McdCreationData *cd)
}
static void
-create_account_cb (McdAccountManager *account_manager, McdAccount *account,
- const GError *error, gpointer user_data)
+create_account_with_properties_cb (McdAccountManager *account_manager,
+ McdAccount *account,
+ const GError *error,
+ gpointer user_data)
{
McdCreationData *cd = user_data;
const gchar *object_path;
@@ -106,13 +108,14 @@ create_account_cb (McdAccountManager *account_manager, McdAccount *account,
}
static void
-account_manager_create_account (McSvcAccountManagerInterfaceCreation *self,
- const gchar *manager,
- const gchar *protocol,
- const gchar *display_name,
- GHashTable *parameters,
- GHashTable *properties,
- DBusGMethodInvocation *context)
+account_manager_create_account_with_properties (
+ McSvcAccountManagerInterfaceCreation *self,
+ const gchar *manager,
+ const gchar *protocol,
+ const gchar *display_name,
+ GHashTable *parameters,
+ GHashTable *properties,
+ DBusGMethodInvocation *context)
{
McdCreationData *cd;
@@ -122,7 +125,7 @@ account_manager_create_account (McSvcAccountManagerInterfaceCreation *self,
_mcd_account_manager_create_account (MCD_ACCOUNT_MANAGER (self),
manager, protocol, display_name,
parameters, properties,
- create_account_cb, cd,
+ create_account_with_properties_cb, cd,
(GDestroyNotify)mcd_creation_data_free);
}
@@ -131,9 +134,10 @@ void
account_manager_creation_iface_init (McSvcAccountManagerInterfaceCreationClass *iface,
gpointer iface_data)
{
-#define IMPLEMENT(x) mc_svc_account_manager_interface_creation_implement_##x (\
- iface, account_manager_##x)
- IMPLEMENT(create_account);
+#define IMPLEMENT(x, suffix) \
+ mc_svc_account_manager_interface_creation_implement_##x (\
+ iface, account_manager_##x##suffix)
+ IMPLEMENT(create_account, _with_properties);
#undef IMPLEMENT
}
--
1.5.6.5
More information about the telepathy-commits
mailing list