jacc

Jabber/XMPP client for Plan 9
git clone git://r-36.net/jacc
Log | Files | Refs | LICENSE

jacs.h (713B)


      1 #ifndef JACS_H
      2 #define JACS_H
      3 
      4 #include "roster.h"
      5 
      6 enum {
      7 	NONE 	= 0x00,
      8 	STREAM,
      9 	AUTH,
     10 	ERROR,
     11 	MESSAGE,
     12 	MESSAGE_INNER,
     13 	IQ,
     14 	IQ_INNER,
     15 	IQ_ERROR,
     16 	IQ_REGISTER,
     17 	IQ_REGISTER_INST,
     18 	IQ_REGISTER_INNE,
     19 	END
     20 };
     21 
     22 int xmljacc(int sock);
     23 int loginjacc(int sock, char *serv);
     24 int userjacc(int sock, char *user, char *pass, char *res);
     25 int versionjacc(int sock, char *from, char *to, char *id);
     26 int presencejacc(int sock, char *stat, char *show, char *from, char *to);
     27 int featuresjacc(int sock, char *from, char *to, char *id);
     28 int answersjacc(int sock, char *who, char *t, char *id, ilist *l);
     29 int xmlnsjacc(int sock, char *who, char *t, char *id);
     30 int xmlnsnegjacc(int sock, char *who, char *t, char *id);
     31 
     32 #endif
     33