evolution r36085 - branches/mail-dbus-remoting/mail
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36085 - branches/mail-dbus-remoting/mail
- Date: Tue, 26 Aug 2008 15:08:58 +0000 (UTC)
Author: sragavan
Date: Tue Aug 26 15:08:58 2008
New Revision: 36085
URL: http://svn.gnome.org/viewvc/evolution?rev=36085&view=rev
Log:
Kill CamelFOORemote to CamelObjectRemote
Modified:
branches/mail-dbus-remoting/mail/camel-session-remote.c
branches/mail-dbus-remoting/mail/camel-session-remote.h
Modified: branches/mail-dbus-remoting/mail/camel-session-remote.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-session-remote.c (original)
+++ branches/mail-dbus-remoting/mail/camel-session-remote.c Tue Aug 26 15:08:58 2008
@@ -7,9 +7,8 @@
#include <dbind.h>
#include <evo-dbus.h>
#include "camel-session-remote.h"
+#include "camel-object-remote.h"
-#define CAMEL_SESSION_INTERFACE "org.gnome.evolution.camel.session"
-#define CAMEL_SESSION_OBJECT_PATH "/org/gnome/evolution/camel/session"
#define CAMEL_DBUS_NAME "org.gnome.evolution.camel"
#define d(x) x
@@ -56,7 +55,7 @@
char *
camel_session_remote_get_password (CamelSessionRemote *session,
- CamelStoreRemote *service,
+ CamelObjectRemote *service,
const char *domain,
const char *prompt,
const char *item,
@@ -87,7 +86,7 @@
}
char *
-camel_session_remote_get_storage_path (CamelSessionRemote *session, CamelStoreRemote *service)
+camel_session_remote_get_storage_path (CamelSessionRemote *session, CamelObjectRemote *service)
{
gboolean ret;
DBusError error;
@@ -115,7 +114,7 @@
void
camel_session_remote_forget_password (CamelSessionRemote *session,
- CamelStoreRemote *service,
+ CamelObjectRemote *service,
const char *domain,
const char *item)
{
@@ -143,14 +142,14 @@
return;
}
-CamelStoreRemote *
+CamelObjectRemote *
camel_session_remote_get_service (CamelSessionRemote *session, const char *url_string,
CamelProviderType type, CamelException *ex)
{
gboolean ret;
DBusError error;
char *service;
- CamelStoreRemote *rstore;
+ CamelObjectRemote *rstore;
dbus_error_init (&error);
/* Invoke the appropriate dbind call to MailSessionRemoteImpl */
@@ -167,8 +166,10 @@
return NULL;
}
- rstore = g_new (CamelStoreRemote, 1);
+ rstore = g_new0 (CamelObjectRemote, 1);
rstore->object_id = service;
+ rstore->type = CAMEL_RO_STORE;
+ rstore->hooks = NULL;
d(printf("Camel session get service remotely\n"));
return rstore;
Modified: branches/mail-dbus-remoting/mail/camel-session-remote.h
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-session-remote.h (original)
+++ branches/mail-dbus-remoting/mail/camel-session-remote.h Tue Aug 26 15:08:58 2008
@@ -7,6 +7,7 @@
#define CAMEL_SESSION_REMOTE_H
#include "camel-store-remote.h"
+#include "camel-object-remote.h"
typedef struct {
char *object_id;
@@ -25,22 +26,22 @@
const char *storage_path);
char *camel_session_remote_get_password (CamelSessionRemote *session,
- CamelStoreRemote *service,
+ CamelObjectRemote *service,
const char *domain,
const char *prompt,
const char *item,
guint32 flags);
char *camel_session_remote_get_storage_path (CamelSessionRemote *session,
- CamelStoreRemote *service);
+ CamelObjectRemote *service);
void camel_session_remote_forget_password (CamelSessionRemote *session,
- CamelStoreRemote *service,
+ CamelObjectRemote *service,
const char *domain,
const char *item);
-CamelStoreRemote *camel_session_remote_get_service (CamelSessionRemote *session,
+CamelObjectRemote *camel_session_remote_get_service (CamelSessionRemote *session,
const char *url_string,
CamelProviderType type,
CamelException *ex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]