1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/msnutils.h Fri Aug 21 13:25:11 2009 -0700
1.3 @@ -0,0 +1,60 @@
1.4 +/**
1.5 + * @file msnutils.h Utility functions
1.6 + *
1.7 + * purple
1.8 + *
1.9 + * Purple is the legal property of its developers, whose names are too numerous
1.10 + * to list here. Please refer to the COPYRIGHT file distributed with this
1.11 + * source distribution.
1.12 + *
1.13 + * This program is free software; you can redistribute it and/or modify
1.14 + * it under the terms of the GNU General Public License as published by
1.15 + * the Free Software Foundation; either version 2 of the License, or
1.16 + * (at your option) any later version.
1.17 + *
1.18 + * This program is distributed in the hope that it will be useful,
1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 + * GNU General Public License for more details.
1.22 + *
1.23 + * You should have received a copy of the GNU General Public License
1.24 + * along with this program; if not, write to the Free Software
1.25 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.26 + */
1.27 +#ifndef _MSN_UTILS_H_
1.28 +#define _MSN_UTILS_H_
1.29 +
1.30 +/*encode the str to RFC2047 style*/
1.31 +char * msn_encode_mime(const char *str);
1.32 +
1.33 +/**
1.34 + * Generate the Random GUID
1.35 + */
1.36 +char * rand_guid(void);
1.37 +
1.38 +/**
1.39 + * Parses the MSN message formatting into a format compatible with Purple.
1.40 + *
1.41 + * @param mime The mime header with the formatting.
1.42 + * @param pre_ret The returned prefix string.
1.43 + * @param post_ret The returned postfix string.
1.44 + *
1.45 + * @return The new message.
1.46 + */
1.47 +void msn_parse_format(const char *mime, char **pre_ret, char **post_ret);
1.48 +
1.49 +/**
1.50 + * Parses the Purple message formatting (html) into the MSN format.
1.51 + *
1.52 + * @param html The html message to format.
1.53 + * @param attributes The returned attributes string.
1.54 + * @param message The returned message string.
1.55 + *
1.56 + * @return The new message.
1.57 + */
1.58 +void msn_import_html(const char *html, char **attributes, char **message);
1.59 +
1.60 +void msn_parse_socket(const char *str, char **ret_host, int *ret_port);
1.61 +void msn_handle_chl(char *input, char *output);
1.62 +
1.63 +#endif /* _MSN_UTILS_H_ */