*/
-/****h* silccore/SilcNotifyAPI
+/****h* silccore/SILC Notify Interface
*
* DESCRIPTION
*
*
* NAME
*
- * typedef uint16 SilcNotifyType;
+ * typedef SilcUInt16 SilcNotifyType;
*
* DESCRIPTION
*
*
* SOURCE
*/
-typedef uint16 SilcNotifyType;
+typedef SilcUInt16 SilcNotifyType;
/* SILC notify types. Server may send these notify types to client to
notify of some action. */
#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 */
+#define SILC_NOTIFY_TYPE_ERROR 16 /* error notify */
+#define SILC_NOTIFY_TYPE_WATCH 17 /* watch notify */
/***/
/* Prototypes */
*
* SYNOPSIS
*
- * SilcNotifyPayload silc_notify_payload_parse(SilcBuffer buffer);
+ * SilcNotifyPayload
+ * silc_notify_payload_parse(const unsigned char *payload,
+ * SilcUInt32 payload_len);
*
* DESCRIPTION
*
* The `buffer' is the raw payload data.
*
***/
-SilcNotifyPayload silc_notify_payload_parse(SilcBuffer buffer);
+SilcNotifyPayload silc_notify_payload_parse(const unsigned char *payload,
+ SilcUInt32 payload_len);
/****f* silccore/SilcNotifyAPI/silc_notify_payload_encode
*
* SYNOPSIS
*
- * SilcBuffer silc_notify_payload_encode(SilcNotifyType type, uint32 argc,
+ * SilcBuffer silc_notify_payload_encode(SilcNotifyType type,
+ * SilcUInt32 argc,
* va_list ap);
*
* DESCRIPTION
*
* Encode notify payload with variable argument list. If `argc' is > 0
* argument payloads will be associated to the notify payload. Variable
- * arguments must be {usigned char *, uint32 (len)}.
+ * arguments must be {unsigned char *, SilcUInt32 (len)}.
*
***/
-SilcBuffer silc_notify_payload_encode(SilcNotifyType type, uint32 argc,
+SilcBuffer silc_notify_payload_encode(SilcNotifyType type, SilcUInt32 argc,
va_list ap);
/****f* silccore/SilcNotifyAPI/silc_notify_payload_encode_args
*
* SYNOPSIS
*
- * SilcBuffer silc_notify_payload_encode_args(SilcNotifyType type,
- * uint32 argc,
+ * SilcBuffer silc_notify_payload_encode_args(SilcNotifyType type,
+ * SilcUInt32 argc,
* SilcBuffer args);
*
* DESCRIPTION
*
***/
SilcBuffer silc_notify_payload_encode_args(SilcNotifyType type,
- uint32 argc,
+ SilcUInt32 argc,
SilcBuffer args);
/****f* silccore/SilcNotifyAPI/silc_notify_payload_free
*
* SYNOPSIS
*
- * uint32 silc_notify_get_arg_num(SilcNotifyPayload payload);
+ * SilcUInt32 silc_notify_get_arg_num(SilcNotifyPayload payload);
*
* DESCRIPTION
*
* Return the number of the arguments associated with the Notify Payload.
*
***/
-uint32 silc_notify_get_arg_num(SilcNotifyPayload payload);
+SilcUInt32 silc_notify_get_arg_num(SilcNotifyPayload payload);
/****f* silccore/SilcNotifyAPI/silc_notify_get_args
*