/* $Id$ */ #ifndef MICQ_IM_CLI_H #define MICQ_IM_CLI_H typedef enum { auth_req = 1, auth_grant, auth_deny, auth_add } auth_t; struct Message_s { Contact *cont; char *send_message; char *plain_message; UDWORD type; UDWORD origin; UDWORD trans; UDWORD maxsize; /* to handle too long messages */ UBYTE maxenc; int otrinjected:1; int otrencrypted:2; int force:1; }; Message *MsgC (void); void MsgD (Message *msg); UBYTE IMCliMsg (Contact *cont, UDWORD type, const char *msg, Opt *opt); void IMSetStatus (Connection *serv, Contact *cont, status_t status, const char *msg); UBYTE IMCliReMsg (Contact *cont, Message *msg); /* no log */ void IMCliInfo (Connection *serv, Contact *cont, int group); void IMCliAuth (Contact *cont, const char *msg, auth_t how); #endif /* MICQ_IM_CLI_H */