242
283
/* --------------------------------------------------------- */
243
284
xmlnode jutil_presnew(int type, char *to, char *status); /* Create a skeleton presence packet */
244
285
xmlnode jutil_iqnew(int type, char *ns); /* Create a skeleton iq packet */
245
287
xmlnode jutil_msgnew(char *type, char *to, char *subj, char *body);
246
288
/* Create a skeleton message packet */
247
290
xmlnode jutil_header(char* xmlns, char* server); /* Create a skeleton stream packet */
248
291
int jutil_priority(xmlnode x); /* Determine priority of this packet */
249
292
void jutil_tofrom(xmlnode x); /* Swaps to/from fields on a packet */