updates.
[silc.git] / lib / silccore / silcprivate.h
1 /*
2
3   silcprivate.h
4
5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6
7   Copyright (C) 1997 - 2001 Pekka Riikonen
8
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.
13   
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.
18
19 */
20
21 #ifndef SILCPRIVATE_H
22 #define SILCPRIVATE_H
23
24 /* Forward declaration of the Private Message Payload. */
25 typedef struct SilcPrivateMessagePayloadStruct *SilcPrivateMessagePayload;
26
27 /* Prototypes */
28
29 SilcPrivateMessagePayload 
30 silc_private_message_payload_parse(SilcBuffer buffer, SilcCipher cipher);
31 SilcBuffer silc_private_message_payload_encode(uint16 flags,
32                                                uint16 data_len,
33                                                unsigned char *data,
34                                                SilcCipher cipher);
35 void silc_private_message_payload_free(SilcPrivateMessagePayload payload);
36 uint16 
37 silc_private_message_get_flags(SilcPrivateMessagePayload payload);
38 unsigned char *
39 silc_private_message_get_nickname(SilcPrivateMessagePayload payload,
40                                   uint32 *nickname_len);
41 unsigned char *
42 silc_private_message_get_message(SilcPrivateMessagePayload payload,
43                                  uint32 *message_len);
44
45 #endif