+/*
+** Copyright (C) 2006 Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+**
+*/
+
#ifndef JABBER_H
#define JABBER_H
#include <gnet.h>
+#include <iksemel.h>
+#include <gsasl.h>
#include "nethook.h"
+typedef struct _jabber_data_t jabber_data_t;
+
+struct _jabber_data_t
+{
+ iksparser *parser;
+ Gsasl *ctx;
+ Gsasl_session *client;
+ Gsasl_session *server;
+};
+
+jabber_data_t* jabber_data_new (gpointer, gpointer);
+void jabber_data_destroy (gpointer);
+
net_hook_t* jabber_hook_new (GConn *conn);
void jabber_hook_destroy (net_hook_t*);
+net_hook_t* jabber_server_hook_new (net_hook_t*, char*);
+GString* jabber_new_start (iks* node);
#endif