Mercurial > pidgin
annotate libpurple/protocols/msn/msnutils.h @ 32657:bf292bb5657e
Remove unused variable.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 13 Feb 2011 07:39:13 +0000 |
parents | 5981b4116b52 |
children | 0ab12023a1bc |
rev | line source |
---|---|
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
1 /** |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
2 * @file msnutils.h Utility functions |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
3 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
4 * purple |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
5 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
6 * Purple is the legal property of its developers, whose names are too numerous |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
7 * to list here. Please refer to the COPYRIGHT file distributed with this |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
8 * source distribution. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
9 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
10 * This program is free software; you can redistribute it and/or modify |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
11 * it under the terms of the GNU General Public License as published by |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
12 * the Free Software Foundation; either version 2 of the License, or |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
13 * (at your option) any later version. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
14 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
15 * This program is distributed in the hope that it will be useful, |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
18 * GNU General Public License for more details. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
19 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
20 * You should have received a copy of the GNU General Public License |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
21 * along with this program; if not, write to the Free Software |
20514
723b5a2f91ce
explicit merge of 'd565bd9a8e62d3302ac14bb7c3a68a52c0c6a65e'
Richard Laager <rlaager@wiktel.com>
parents:
20424
diff
changeset
|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
23 */ |
28983
462cb893521b
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents:
20514
diff
changeset
|
24 #ifndef MSN_UTILS_H |
462cb893521b
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents:
20514
diff
changeset
|
25 #define MSN_UTILS_H |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
26 |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
27 /*encode the str to RFC2047 style*/ |
28983
462cb893521b
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents:
20514
diff
changeset
|
28 char *msn_encode_mime(const char *str); |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
29 |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
30 /** |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
31 * Generate the Random GUID |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
32 */ |
28983
462cb893521b
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents:
20514
diff
changeset
|
33 char *rand_guid(void); |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
34 |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
35 /** |
30993
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
36 * Encodes the spaces in a string |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
37 * |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
38 * @param str The string to be encoded. |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
39 * @param buf The buffer to hold the encoded string. |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
40 * @param len The maximum length (including NUL) to put in @buf. |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
41 * |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
42 * @return Whether @str was able to fit in @buf. |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
43 */ |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
44 gboolean |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
45 msn_encode_spaces(const char *str, char *buf, size_t len); |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
46 |
dc996aa83f49
Combine the encode_spaces function and the stuff for the display name
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30745
diff
changeset
|
47 /** |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
48 * Parses the MSN message formatting into a format compatible with Purple. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
49 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
50 * @param mime The mime header with the formatting. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
51 * @param pre_ret The returned prefix string. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
52 * @param post_ret The returned postfix string. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
53 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
54 * @return The new message. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
55 */ |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
56 void msn_parse_format(const char *mime, char **pre_ret, char **post_ret); |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
57 |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
58 /** |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
59 * Parses the Purple message formatting (html) into the MSN format. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
60 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
61 * @param html The html message to format. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
62 * @param attributes The returned attributes string. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
63 * @param message The returned message string. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
64 * |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
65 * @return The new message. |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
66 */ |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
67 void msn_import_html(const char *html, char **attributes, char **message); |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
68 |
30703 | 69 /** |
70 * Parses a socket string. | |
71 * | |
72 * @param str A host:port string. | |
73 * @param ret_host Return string value of the host. | |
74 * @param ret_port Return integer value of the port. | |
75 */ | |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
76 void msn_parse_socket(const char *str, char **ret_host, int *ret_port); |
30703 | 77 |
78 /** | |
30745
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
79 * Verify if the email is a vaild passport. |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
80 * |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
81 * @param passport The email |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
82 * |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
83 * @return True if it is a valid passport, else FALSE |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
84 */ |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
85 gboolean msn_email_is_valid(const char *passport); |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
86 |
0201164946a3
msn_email_is_valid looks a lot like a util function, move it there.
masca@cpw.pidgin.im
parents:
30703
diff
changeset
|
87 /** |
30703 | 88 * Handle MSN Challenge Computation |
89 * This algorithm references | |
90 * http://imfreedom.org/wiki/index.php/MSN:NS/Challenges | |
91 * | |
92 * @param input Challenge input. | |
93 * @param output Callenge output. | |
94 */ | |
20400
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
95 void msn_handle_chl(char *input, char *output); |
ea9a5566a156
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4' (head 36b8a3e05397b5918f311a046fa580c5bb8846e0)
Richard Laager <rlaager@wiktel.com>
parents:
diff
changeset
|
96 |
31043
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
97 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
98 * Read a byte from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
99 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
100 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
101 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
102 * @return 8-bit byte |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
103 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
104 guint8 msn_read8(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
105 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
106 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
107 * Read a little-endian short from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
108 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
109 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
110 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
111 * @return 16-bit short |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
112 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
113 guint16 msn_read16le(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
114 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
115 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
116 * Read a big-endian short from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
117 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
118 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
119 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
120 * @return 16-bit short |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
121 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
122 guint16 msn_read16be(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
123 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
124 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
125 * Read a little-endian int from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
126 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
127 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
128 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
129 * @return 32-bit int |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
130 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
131 guint32 msn_read32le(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
132 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
133 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
134 * Read a big-endian int from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
135 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
136 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
137 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
138 * @return 32-bit int |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
139 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
140 guint32 msn_read32be(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
141 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
142 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
143 * Read a little-endian long from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
144 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
145 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
146 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
147 * @return 64-bit long |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
148 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
149 guint64 msn_read64le(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
150 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
151 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
152 * Read a big-endian long from a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
153 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
154 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
155 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
156 * @return 64-bit long |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
157 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
158 guint64 msn_read64be(const char *buf); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
159 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
160 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
161 * Write a byte to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
162 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
163 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
164 * @param data 8-bit byte. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
165 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
166 void msn_write8(char *buf, guint8 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
167 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
168 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
169 * Write a little-endian short to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
170 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
171 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
172 * @param data short. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
173 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
174 void msn_write16le(char *buf, guint16 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
175 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
176 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
177 * Write a big-endian short to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
178 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
179 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
180 * @param data short. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
181 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
182 void msn_write16be(char *buf, guint16 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
183 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
184 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
185 * Write a little-endian int to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
186 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
187 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
188 * @param data int. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
189 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
190 void msn_write32le(char *buf, guint32 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
191 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
192 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
193 * Write a big-endian int to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
194 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
195 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
196 * @param data int. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
197 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
198 void msn_write32be(char *buf, guint32 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
199 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
200 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
201 * Write a little-endian long to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
202 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
203 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
204 * @param data long. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
205 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
206 void msn_write64le(char *buf, guint64 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
207 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
208 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
209 * Write a big-endian long to a buffer |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
210 * |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
211 * @param buf Pointer to buffer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
212 * @param data short |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
213 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
214 void msn_write64be(char *buf, guint64 data); |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
215 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
216 /** |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
217 * Same as above, but these increment the buf pointer. |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
218 */ |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
219 #define msn_pop8(buf) msn_read8((buf+=1)-1) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
220 #define msn_pop16le(buf) msn_read16le((buf+=2)-2) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
221 #define msn_pop16be(buf) msn_read16be((buf+=2)-2) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
222 #define msn_pop32le(buf) msn_read32le((buf+=4)-4) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
223 #define msn_pop32be(buf) msn_read32be((buf+=4)-4) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
224 #define msn_pop64le(buf) msn_read64le((buf+=8)-8) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
225 #define msn_pop64be(buf) msn_read64be((buf+=8)-8) |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
226 #define msn_push8(buf, data) msn_write8(buf, data), buf+=1 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
227 #define msn_push16le(buf, data) msn_write16le(buf, data), buf+=2 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
228 #define msn_push16be(buf, data) msn_write16be(buf, data), buf+=2 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
229 #define msn_push32le(buf, data) msn_write32le(buf, data), buf+=4 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
230 #define msn_push32be(buf, data) msn_write32be(buf, data), buf+=4 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
231 #define msn_push64le(buf, data) msn_write64le(buf, data), buf+=8 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
232 #define msn_push64be(buf, data) msn_write64be(buf, data), buf+=8 |
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
233 |
28983
462cb893521b
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents:
20514
diff
changeset
|
234 #endif /* MSN_UTILS_H */ |
31043
5981b4116b52
Add some buffer reading/writing functions. I don't know if these are
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30993
diff
changeset
|
235 |