diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-09-20 18:30:34 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-10-14 17:36:18 +0200 |
commit | df4f82a9ad29f4572aa1e8f1fb508ff00627ea73 (patch) | |
tree | 707e2bec2ba8f5f30a0e9a017d0ebd856b738b0b /src/frontends/maemo | |
parent | 8464e25a0f9b895df27cf0110b693440a2b34083 (diff) | |
download | strongswan-df4f82a9ad29f4572aa1e8f1fb508ff00627ea73.tar.bz2 strongswan-df4f82a9ad29f4572aa1e8f1fb508ff00627ea73.tar.xz |
Maemo: Register the status applet with libosso.
Diffstat (limited to 'src/frontends/maemo')
-rw-r--r-- | src/frontends/maemo/src/strongswan-status.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/frontends/maemo/src/strongswan-status.c b/src/frontends/maemo/src/strongswan-status.c index eb7202845..cf8964a6a 100644 --- a/src/frontends/maemo/src/strongswan-status.c +++ b/src/frontends/maemo/src/strongswan-status.c @@ -14,6 +14,7 @@ */ #include <hildon/hildon.h> +#include <libosso.h> #include "strongswan-status.h" #include "strongswan-connections.h" @@ -23,6 +24,11 @@ STRONGSWAN_TYPE_STATUS, \ StrongswanStatusPrivate)) +#define OSSO_CHARON_NAME "charon" +#define OSSO_CHARON_SERVICE "org.strongswan."OSSO_CHARON_NAME +#define OSSO_CHARON_OBJECT "/org/strongswan/"OSSO_CHARON_NAME +#define OSSO_CHARON_IFACE "org.strongswan."OSSO_CHARON_NAME + #define ICON_SIZE_STATUS 18 #define ICON_SIZE_BUTTON 48 @@ -41,6 +47,8 @@ struct _StrongswanStatusPrivate GtkWidget *selector; GtkWidget *box; + osso_context_t *context; + StrongswanConnections *conns; gchar *current; @@ -162,6 +170,12 @@ strongswan_status_init (StrongswanStatus *plugin) StrongswanStatusPrivate *priv = STRONGSWAN_STATUS_GET_PRIVATE (plugin); plugin->priv = priv; + priv->context = osso_initialize (OSSO_STATUS_SERVICE, "0.0.1", TRUE, NULL); + if (!priv->context) + { + return; + } + priv->conns = strongswan_connections_new (); load_icons(priv); |