Wed, 24 Jun 2015 08:18:55 -0400
facebook: merged fb_api_cb_thread_info() and fb_api_cb_thread_list()
/* purple * * Purple is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */ #ifndef _FACEBOOK_HTTP_H_ #define _FACEBOOK_HTTP_H_ #include <libpurple/http.h> #include "glibcompat.h" #define FB_HTTP_ERROR fb_http_error_quark() typedef GHashTable FbHttpParams; typedef enum _FbHttpError FbHttpError; enum _FbHttpError { FB_HTTP_ERROR_SUCCESS = 0, FB_HTTP_ERROR_NOMATCH }; GQuark fb_http_error_quark(void); gboolean fb_http_error_chk(PurpleHttpResponse *res, GError **error); FbHttpParams * fb_http_params_new(void); FbHttpParams * fb_http_params_new_parse(const gchar *data, gboolean isurl); void fb_http_params_free(FbHttpParams *params); gchar * fb_http_params_close(FbHttpParams *params, gsize *size); gboolean fb_http_params_get_bool(FbHttpParams *params, const gchar *name, GError **error); gdouble fb_http_params_get_dbl(FbHttpParams *params, const gchar *name, GError **error); gint64 fb_http_params_get_int(FbHttpParams *params, const gchar *name, GError **error); const gchar * fb_http_params_get_str(FbHttpParams *params, const gchar *name, GError **error); gboolean fb_http_params_chk_bool(FbHttpParams *params, const gchar *name, gboolean *value); gboolean fb_http_params_chk_dbl(FbHttpParams *params, const gchar *name, gdouble *value); gboolean fb_http_params_chk_int(FbHttpParams *params, const gchar *name, gint64 *value); gboolean fb_http_params_chk_str(FbHttpParams *params, const gchar *name, const gchar **value); void fb_http_params_set_bool(FbHttpParams *params, const gchar *name, gboolean value); void fb_http_params_set_dbl(FbHttpParams *params, const gchar *name, gdouble value); void fb_http_params_set_int(FbHttpParams *params, const gchar *name, gint64 value); void fb_http_params_set_str(FbHttpParams *params, const gchar *name, const gchar *value); void fb_http_params_set_strf(FbHttpParams *params, const gchar *name, const gchar *format, ...) G_GNUC_PRINTF(3, 4); #endif /* _FACEBOOK_HTTP_H_ */