else
{
priv->proxy = dbus_g_proxy_new_from_proxy (DBUS_G_PROXY (priv->signon_proxy),
- SIGNON_AUTH_SESSION_IFACE,
+ SIGNOND_AUTH_SESSION_INTERFACE,
object_path);
dbus_g_object_register_marshaller (signon_marshal_VOID__INT_STRING,
#include "signon-internals.h"
#include <dbus/dbus-glib.h>
+#define SIGNON_ERROR_PREFIX SIGNOND_SERVICE_PREFIX ".Error"
+
GQuark signon_error_quark (void)
{
static gsize quark = 0;
#include <glib-object.h>
#include "signon-enum-types.h"
-#define SIGNON_ERROR_PREFIX "com.nokia.singlesignon.Error"
-
#define SIGNON_ERROR (signon_error_quark())
typedef enum {
#include "signon-utils.h"
#include "signon-errors.h"
-#define SIGNON_IDENTITY_IFACE "com.nokia.singlesignon.SignonIdentity"
-
G_DEFINE_TYPE (SignonIdentity, signon_identity, G_TYPE_OBJECT);
enum
g_return_if_fail (priv->proxy == NULL);
priv->proxy = dbus_g_proxy_new_from_proxy (DBUS_G_PROXY (priv->signon_proxy),
- SIGNON_IDENTITY_IFACE,
+ SIGNOND_IDENTITY_INTERFACE,
object_path);
dbus_g_object_register_marshaller (g_cclosure_marshal_VOID__INT,
#define DEBUG(...) do {} while (0)
#endif
-#define SIGNON_SERVICE "com.nokia.singlesignon"
-#define SIGNON_PATH "/SignonDaemon"
-#define SIGNON_IFACE "com.nokia.singlesignon.SignonDaemon"
-#define SIGNON_AUTH_SESSION_IFACE "com.nokia.singlesignon.SignonAuthSession"
-#define SIGNON_IDENTITY_IFACE "com.nokia.singlesignon.SignonIdentity"
+#include <signoncommon.h>
#include "signon-identity.h"
#include "signon-auth-session.h"
}
proxy = g_object_new (SIGNON_TYPE_PROXY,
- "name", SIGNON_SERVICE,
- "path", SIGNON_PATH,
- "interface", SIGNON_IFACE,
+ "name", SIGNOND_SERVICE,
+ "path", SIGNOND_DAEMON_OBJECTPATH,
+ "interface", SIGNOND_DAEMON_INTERFACE,
"connection", connection,
NULL);