Fixed ZDE build - missing header file
[ZeXOS.git] / apps / zjab / xmpp.h
blob241e4c41b57f4029f30ac8d86370b92467b01fba
1 /*
2 * ZeX/OS
3 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _XMPP_H
21 #define _XMPP_H
23 #define XMPP_MECHANISM_PLAIN 0x1
24 #define XMPP_MECHANISM_DIGEST 0x2
26 typedef struct {
27 char *server;
28 int port;
29 char *session;
30 char *mechanism;
31 char *user;
32 char *password;
33 char *resource;
34 } xmpp_t;
36 extern int xmpp_presence (char *show, char *status);
37 extern int xmpp_message (char *to, char *message, unsigned len);
38 extern int xmpp_session_set (char *id, unsigned len);
39 extern int xmpp_mechanism_set (char *mechanism, unsigned len);
40 extern int xmpp_bind ();
41 extern int xmpp_session ();
42 extern int xmpp_message_from (char *from, unsigned from_len, char *msg, unsigned msg_len);
43 extern int xmpp_connect (char *server, int port);
44 extern int xmpp_close ();
45 extern void xmpp_setup (char *user, char *password, char *resource);
46 extern int xmpp_loop ();
48 #endif