5 Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7 Copyright (C) 2000 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
24 /* Forward declarations */
25 typedef struct SilcIDPayloadStruct *SilcIDPayload;
26 typedef struct SilcArgumentPayloadStruct *SilcArgumentPayload;
29 SilcIDPayload silc_id_payload_parse(SilcBuffer buffer);
30 SilcBuffer silc_id_payload_encode(void *id, unsigned short len,
32 SilcArgumentPayload silc_argument_payload_parse(SilcBuffer buffer,
34 SilcIDPayload silc_id_payload_parse_data(unsigned char *data,
36 void silc_id_payload_free(SilcIDPayload payload);
37 SilcIdType silc_id_payload_get_type(SilcIDPayload payload);
38 void *silc_id_payload_get_id(SilcIDPayload payload);
39 SilcBuffer silc_argument_payload_encode(unsigned int argc,
41 unsigned int *argv_lens,
42 unsigned int *argv_types);
43 void silc_argument_payload_free(SilcArgumentPayload payload);
44 unsigned int silc_argument_get_arg_num(SilcArgumentPayload payload);
45 unsigned char *silc_argument_get_first_arg(SilcArgumentPayload payload,
46 unsigned int *ret_len);
47 unsigned char *silc_argument_get_next_arg(SilcArgumentPayload payload,
48 unsigned int *ret_len);
49 unsigned char *silc_argument_get_arg_type(SilcArgumentPayload payload,
51 unsigned int *ret_len);