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