Wed, 19 Aug 2015 21:50:10 -0400
facebook: display images in-line
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
1 | /* purple |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
2 | * |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
6 | * |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
11 | * |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
16 | * |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
20 | */ |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
21 | |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
22 | #ifndef _FACEBOOK_HTTP_H_ |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
23 | #define _FACEBOOK_HTTP_H_ |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
24 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
25 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
26 | * SECTION:http |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
27 | * @section_id: facebook-http |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
28 | * @short_description: <filename>http.h</filename> |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
29 | * @title: HTTP Utilities |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
30 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
31 | * The HTTP utilities. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
32 | */ |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
33 | |
|
37309
556eea7a45da
facebook: merged local glibcompat.h into libpurple's
James Geboski <jgeboski@gmail.com>
parents:
37265
diff
changeset
|
34 | #include <glib.h> |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
35 | |
|
37309
556eea7a45da
facebook: merged local glibcompat.h into libpurple's
James Geboski <jgeboski@gmail.com>
parents:
37265
diff
changeset
|
36 | #include <libpurple/http.h> |
|
37265
df6d420a48b7
facebook: added glib compatibility symbols
James Geboski <jgeboski@gmail.com>
parents:
37257
diff
changeset
|
37 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
38 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
39 | * FB_HTTP_ERROR: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
40 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
41 | * The #GQuark of the domain of HTTP errors. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
42 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
43 | #define FB_HTTP_ERROR fb_http_error_quark() |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
44 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
45 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
46 | * FbHttpParams: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
47 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
48 | * Represents a set of key/value HTTP parameters. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
49 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
50 | typedef GHashTable FbHttpParams; |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
51 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
52 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
53 | * FbHttpError: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
54 | * @FB_HTTP_ERROR_SUCCESS: There is no error. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
55 | * @FB_HTTP_ERROR_NOMATCH: The name does not match anything. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
56 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
57 | * The error codes for the #FB_HTTP_ERROR domain. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
58 | */ |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
59 | typedef enum |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
60 | { |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
61 | FB_HTTP_ERROR_SUCCESS = 0, |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
62 | FB_HTTP_ERROR_NOMATCH |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
63 | } FbHttpError; |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
64 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
65 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
66 | * fb_http_error_quark: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
67 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
68 | * Gets the #GQuark of the domain of HTTP errors. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
69 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
70 | * Returns: The #GQuark of the domain. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
71 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
72 | GQuark |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
73 | fb_http_error_quark(void); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
74 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
75 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
76 | * fb_http_error_chk: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
77 | * @res: The #PurpleHttpResponse. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
78 | * @error: The return location for the #GError, or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
79 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
80 | * Checks a #PurpleHttpResponse for success. This optionally assigns an |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
81 | * appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
82 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
83 | * Returns: #TRUE if the request was successful, otherwise #FALSE. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
84 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
85 | gboolean |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
86 | fb_http_error_chk(PurpleHttpResponse *res, GError **error); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
87 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
88 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
89 | * fb_http_params_new: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
90 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
91 | * Creates a new #FbHttpParams. The returned #FbHttpParams should be |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
92 | * freed with #fb_http_params_free() when no longer needed. Optionally, |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
93 | * instead of freeing, the returned #FbHttpParams can be closed with |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
94 | * #fb_http_params_close(). |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
95 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
96 | * Returns: The new #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
97 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
98 | FbHttpParams * |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
99 | fb_http_params_new(void); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
100 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
101 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
102 | * fb_http_params_new_parse: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
103 | * @data: The string containing HTTP parameters. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
104 | * @isurl: TRUE if @data is a URL, otherwise FALSE. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
105 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
106 | * Creates a new #FbHttpParams. This parses the #FbHttpParams from a |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
107 | * string, which can be a URL. The returned #FbHttpParams should be |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
108 | * freed with #fb_http_params_free() when no longer needed. Optionally, |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
109 | * instead of freeing, the returned #FbHttpParams can be closed with |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
110 | * #fb_http_params_close(). |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
111 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
112 | * Returns: The new #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
113 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
114 | FbHttpParams * |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
115 | fb_http_params_new_parse(const gchar *data, gboolean isurl); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
116 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
117 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
118 | * fb_http_params_free: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
119 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
120 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
121 | * Frees all memory used by the #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
122 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
123 | void |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
124 | fb_http_params_free(FbHttpParams *params); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
125 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
126 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
127 | * fb_http_params_close: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
128 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
129 | * @url: The URL or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
130 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
131 | * Closes the #FbHttpParams by returning a string representing the HTTP |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
132 | * parameters. If @url is non-#NULL, then the parameters are appended |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
133 | * to the value of @url. This frees the #FbHttpParams. The returned |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
134 | * string should be freed with #g_free() when no longer needed. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
135 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
136 | * Returns: The string representation of the HTTP parameters. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
137 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
138 | gchar * |
|
37315
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
139 | fb_http_params_close(FbHttpParams *params, const gchar *url); |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
140 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
141 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
142 | * fb_http_params_get_bool: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
143 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
144 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
145 | * @error: The return location for the #GError, or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
146 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
147 | * Gets a boolean value from the #FbHttpParams. This optionally assigns |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
148 | * an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
149 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
150 | * Return: The boolean value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
151 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
152 | gboolean |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
153 | fb_http_params_get_bool(FbHttpParams *params, const gchar *name, |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
154 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
155 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
156 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
157 | * fb_http_params_get_dbl: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
158 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
159 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
160 | * @error: The return location for the #GError, or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
161 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
162 | * Gets a floating point value from the #FbHttpParams. This optionally |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
163 | * assigns an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
164 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
165 | * Return: The floating point value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
166 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
167 | gdouble |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
168 | fb_http_params_get_dbl(FbHttpParams *params, const gchar *name, |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
169 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
170 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
171 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
172 | * fb_http_params_get_int: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
173 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
174 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
175 | * @error: The return location for the #GError, or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
176 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
177 | * Gets an integer value from the #FbHttpParams. This optionally |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
178 | * assigns an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
179 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
180 | * Return: The integer value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
181 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
182 | gint64 |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
183 | fb_http_params_get_int(FbHttpParams *params, const gchar *name, |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
184 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
185 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
186 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
187 | * fb_http_params_get_str: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
188 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
189 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
190 | * @error: The return location for the #GError, or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
191 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
192 | * Gets a string value from the #FbHttpParams. This optionally assigns |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
193 | * an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
194 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
195 | * Return: The string value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
196 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
197 | const gchar * |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
198 | fb_http_params_get_str(FbHttpParams *params, const gchar *name, |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
199 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
200 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
201 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
202 | * fb_http_params_dup_str: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
203 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
204 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
205 | * @error: The return location for the #GError, or #NULL. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
206 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
207 | * Gets a duplicated string value from the #FbHttpParams. This |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
208 | * optionally assigns an appropriate #GError upon failure. The returned |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
209 | * string should be freed with #g_free() when no longer needed. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
210 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
211 | * Return: The duplicated string value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
212 | */ |
|
37315
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
213 | gchar * |
|
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
214 | fb_http_params_dup_str(FbHttpParams *params, const gchar *name, |
|
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
215 | GError **error); |
|
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
216 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
217 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
218 | * fb_http_params_set_bool: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
219 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
220 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
221 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
222 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
223 | * Sets a boolean value to the #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
224 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
225 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
226 | fb_http_params_set_bool(FbHttpParams *params, const gchar *name, |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
227 | gboolean value); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
228 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
229 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
230 | * fb_http_params_set_dbl: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
231 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
232 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
233 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
234 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
235 | * Sets a floating point value to the #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
236 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
237 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
238 | fb_http_params_set_dbl(FbHttpParams *params, const gchar *name, gdouble value); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
239 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
240 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
241 | * fb_http_params_set_int: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
242 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
243 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
244 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
245 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
246 | * Sets an integer value to the #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
247 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
248 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
249 | fb_http_params_set_int(FbHttpParams *params, const gchar *name, gint64 value); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
250 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
251 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
252 | * fb_http_params_set_str: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
253 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
254 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
255 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
256 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
257 | * Sets a string value to the #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
258 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
259 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
260 | fb_http_params_set_str(FbHttpParams *params, const gchar *name, |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
261 | const gchar *value); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
262 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
263 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
264 | * fb_http_params_set_strf: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
265 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
266 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
267 | * @format: The format string literal. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
268 | * @...: The arguments for @format. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
269 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
270 | * Sets a formatted string value to the #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
271 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
272 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
273 | fb_http_params_set_strf(FbHttpParams *params, const gchar *name, |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
274 | const gchar *format, ...) |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
275 | G_GNUC_PRINTF(3, 4); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
276 | |
|
37354
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
277 | /** |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
278 | * fb_http_urlcmp: |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
279 | * @url1: The first URL. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
280 | * @url2: The second URL. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
281 | * @protocol: #TRUE to match the protocols, otherwise #FALSE. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
282 | * |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
283 | * Compares two URLs. This is more reliable than just comparing two URL |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
284 | * strings, as it avoids casing in some areas, while not in others. It |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
285 | * can also, optionally, ignore the matching of the URL protocol. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
286 | * |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
287 | * Returns: #TRUE if the URLs match, otherwise #FALSE. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
288 | */ |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
289 | gboolean |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
290 | fb_http_urlcmp(const gchar *url1, const gchar *url2, gboolean protocol); |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
291 | |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
292 | #endif /* _FACEBOOK_HTTP_H_ */ |