summaryrefslogtreecommitdiff
path: root/src/bonjour-self.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bonjour-self.c')
-rw-r--r--src/bonjour-self.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bonjour-self.c b/src/bonjour-self.c
index 08d22a71..330bcae4 100644
--- a/src/bonjour-self.c
+++ b/src/bonjour-self.c
@@ -30,6 +30,10 @@
#include "sha1/sha1-util.h"
+#ifdef ENABLE_OLPC
+#define KEY_SEGMENT_SIZE 200
+#endif
+
#define RETURN_FALSE_IF_FAIL(error_type) \
if (error_type != kDNSServiceErr_NoError) return FALSE;
@@ -563,7 +567,9 @@ salut_bonjour_self_new (SalutConnection *connection,
const gchar *last_name,
const gchar *jid,
const gchar *email,
- const gchar *published_name)
+ const gchar *published_name,
+ const GArray *olpc_key,
+ const gchar *olpc_color)
{
return g_object_new (SALUT_TYPE_BONJOUR_SELF,
"connection", connection,
@@ -574,5 +580,9 @@ salut_bonjour_self_new (SalutConnection *connection,
"jid", jid,
"email", email,
"published-name", published_name,
+#ifdef ENABLE_OLPC
+ "olpc-key", olpc_key,
+ "olpc-color", olpc_color,
+#endif
NULL);
}