X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcnotify.h;h=9215e2b48a1bd4752a23982f30467308fbdf8fae;hb=d56fa9060fe64259cf6a94a282d82e9eaaf1b32e;hp=fd7662ad29ed025cf345722c171e7a1750c330c9;hpb=ba5e36dbc0321270f06c4aad79e296e4cce1212b;p=silc.git diff --git a/lib/silccore/silcnotify.h b/lib/silccore/silcnotify.h index fd7662ad..9215e2b4 100644 --- a/lib/silccore/silcnotify.h +++ b/lib/silccore/silcnotify.h @@ -21,6 +21,9 @@ #ifndef SILCNOTIFY_H #define SILCNOTIFY_H +/* Forward declarations */ +typedef struct SilcNotifyPayloadStruct *SilcNotifyPayload; + /* Type definition of notify type */ typedef unsigned short SilcNotifyType; @@ -35,4 +38,14 @@ typedef unsigned short SilcNotifyType; #define SILC_NOTIFY_TYPE_TOPIC_SET 5 /* "topic has been changed" */ #define SILC_NOTIFY_TYPE_NICK_CHANGE 6 /* "has changed nickname" */ +/* Prototypes */ +SilcNotifyPayload silc_notify_payload_parse(SilcBuffer buffer); +SilcBuffer silc_notify_payload_encode(SilcNotifyType type, char *message, + unsigned int argc, va_list ap); +void silc_notify_payload_free(SilcNotifyPayload payload); +SilcNotifyType silc_notify_get_type(SilcNotifyPayload payload); +unsigned int silc_notify_get_arg_num(SilcNotifyPayload payload); +unsigned char *silc_notify_get_message(SilcNotifyPayload payload); +SilcArgumentPayload silc_notify_get_args(SilcNotifyPayload payload); + #endif