summaryrefslogtreecommitdiffstats
path: root/jacs/jacs.h
blob: 2475a2317c7376403583c526d219d03a3a0dd12f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef JACS_H
#define JACS_H

#include "roster.h"

enum {
	NONE 	= 0x00,
	STREAM,
	AUTH,
	ERROR,
	MESSAGE,
	MESSAGE_INNER,
	IQ,
	IQ_INNER,
	IQ_ERROR,
	IQ_REGISTER,
	IQ_REGISTER_INST,
	IQ_REGISTER_INNE,
	END
};

int xmljacc(int sock);
int loginjacc(int sock, char *serv);
int userjacc(int sock, char *user, char *pass, char *res);
int versionjacc(int sock, char *from, char *to, char *id);
int presencejacc(int sock, char *stat, char *show, char *from, char *to);
int featuresjacc(int sock, char *from, char *to, char *id);
int answersjacc(int sock, char *who, char *t, char *id, ilist *l);
int xmlnsjacc(int sock, char *who, char *t, char *id);
int xmlnsnegjacc(int sock, char *who, char *t, char *id);

#endif