static char * pbservice = "pubsub.vespa.holoscopio.com";
static char * authed_jid = "vespa";
-iks *
+static iks *
createiq (char *type, char *to, char *qnam, char *xmlns, iks **query)
{
static int id = 0;
return iq;
}
-void
+static void
catnode (iksparser *parser, char *node)
{
iks *iq;
iks_delete (iq);
}
-void
+static void
listnode (iksparser *parser, char *node)
{
iks *iq;
iks_delete (iq);
}
-void
+static void
createnode (iksparser *parser, char *node)
{
iks *iq;
iks_delete (iq);
}
-void
+static void
getnode (iksparser *parser, char *node)
{
iks *iq;
iks_delete (iq);
}
-void
+static void
vcard (iksparser *parser)
{
iks *iq;
iks_delete (iq);
}
-iks *
+static iks *
createmood (char *line)
{
iks *mood;
return mood;
}
-void
+static void
pushmood (iksparser *parser, char *node, char *line)
{
iks *iq;
iks_delete (iq);
}
-iks *
+static iks *
createtune (char *line)
{
iks *tune;
return tune;
}
-void
+static void
pushtune (iksparser *parser, char *node, iks *tune)
{
iks *iq;
}
-void
+static void
process_mood (iksparser *parser, char *cmdline)
{
char *cmd;
free (orig_cmdline);
}
-int
+static int
xmpp_session_hook (iksparser *parser, iks *node)
{
iks *iq;
return 0;
}
-int
+static int
xmpp_initial_presence_hook (iksparser *parser, iks *node)
{
iks *pres;
return 0;
}
-int
+static int
xmpp_id_hook (iksparser *parser, iks *node, char *id)
{
if (!iks_strcmp (id, "bind1"))
return 1;
}
-int
+static int
xmpp_ns_hook (iksparser *parser, iks *node, char *ns)
{
return 1;
}
-int
+static int
xmpp_iq_error (iksparser *parser, iks *node)
{
iks *enode;
return 0;
}
-int
+static int
xmpp_tls_hook (iksparser *parser, iks *node)
{
iks_start_tls (parser);
return 0;
}
-int
+static int
xmpp_sasl_hook (iksparser *parser, iks* node)
{
iks_start_sasl (parser, IKS_SASL_DIGEST_MD5, username, password);
return 0;
}
-int
+static int
xmpp_bind_hook (iksparser *parser, iks *node)
{
iks *iq;
return 0;
}
-int
+static int
xmpp_features_hook (iksparser *parser, iks *node)
{
iks *feat;
return 1;
}
-int
+static int
xmpp_other_hook (iksparser *parser, iks *node, char *ns)
{
if (!iks_strcmp (ns, "urn:ietf:params:xml:ns:xmpp-sasl"))
return IKS_OK;
}
-gboolean
+static gboolean
handler (GIOChannel *channel, GIOCondition cond, gpointer data)
{
iksparser *parser = data;
return TRUE;
}
-void
+static void
tune_add_dbus_arg (iks *tune, DBusMessageIter *args)
{
DBusMessageIter entry;
}
}
-iks *
+static iks *
tune_from_dbus (DBusMessage *msg)
{
DBusMessageIter args;
return tune;
}
-DBusHandlerResult
+static DBusHandlerResult
gettune (DBusConnection *conn, DBusMessage *msg, void *data)
{
iks *tune;
dbus_connection_add_filter (conn, gettune, parser, NULL);
}
-void
+static void
loop (iksparser *parser)
{
GIOChannel *channel;