updates.
[silc.git] / lib / silccore / silcnotify.h
index 2cf198f5590c72d5b82bed4e08f1ac72eea67b46..ca64ca14e5c63b2035d0b2a1382eafaff3523c1d 100644 (file)
@@ -28,10 +28,9 @@ typedef struct SilcNotifyPayloadStruct *SilcNotifyPayload;
 typedef unsigned short SilcNotifyType;
 
 /* SILC notify types. Server may send these notify types to client to
-   notify of some action. Server also sends human readable notify message
-   to the client which client may ignore. */
+   notify of some action. */
 #define SILC_NOTIFY_TYPE_NONE            0 /* no specific type */
-#define SILC_NOTIFY_TYPE_INVITE          1 /* "invites you to channel" */
+#define SILC_NOTIFY_TYPE_INVITE          1 /* invites/invite list change */
 #define SILC_NOTIFY_TYPE_JOIN            2 /* "has joined channel" */
 #define SILC_NOTIFY_TYPE_LEAVE           3 /* "has left channel" */
 #define SILC_NOTIFY_TYPE_SIGNOFF         4 /* "signoff" */
@@ -42,11 +41,18 @@ typedef unsigned short SilcNotifyType;
 #define SILC_NOTIFY_TYPE_MOTD            9 /* message of the day */
 #define SILC_NOTIFY_TYPE_CHANNEL_CHANGE  10 /* Channel's ID has changed */
 #define SILC_NOTIFY_TYPE_SERVER_SIGNOFF  11 /* Server quitting SILC */
+#define SILC_NOTIFY_TYPE_KICKED          12 /* Kicked from channel */
+#define SILC_NOTIFY_TYPE_KILLED          13 /* Killed from the network */
+#define SILC_NOTIFY_TYPE_UMODE_CHANGE    14 /* user mode was changed */
+#define SILC_NOTIFY_TYPE_BAN             15 /* ban list change */
 
 /* Prototypes */
 SilcNotifyPayload silc_notify_payload_parse(SilcBuffer buffer);
 SilcBuffer silc_notify_payload_encode(SilcNotifyType type, unsigned int argc, 
                                      va_list ap);
+SilcBuffer silc_notify_payload_encode_args(SilcNotifyType type, 
+                                          unsigned int argc,
+                                          SilcBuffer args);
 void silc_notify_payload_free(SilcNotifyPayload payload);
 SilcNotifyType silc_notify_get_type(SilcNotifyPayload payload);
 unsigned int silc_notify_get_arg_num(SilcNotifyPayload payload);