Thu, 25 Aug 2022 21:34:53 -0500
Port the invite dialog to GTK4
Testing Done:
Opened the dialog via conversations -> invite and made sure it worked as expected.
Reviewed at https://reviews.imfreedom.org/r/1644/
|
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 | |
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37473
diff
changeset
|
22 | #ifndef PURPLE_FACEBOOK_HTTP_H |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37473
diff
changeset
|
23 | #define PURPLE_FACEBOOK_HTTP_H |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
24 | |
|
37309
556eea7a45da
facebook: merged local glibcompat.h into libpurple's
James Geboski <jgeboski@gmail.com>
parents:
37265
diff
changeset
|
25 | #include <glib.h> |
|
40029
70a9571132e4
Convert most Facebook prpl to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
26 | #include <libsoup/soup.h> |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
27 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
28 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
29 | * FB_HTTP_ERROR: |
|
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 #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
|
32 | */ |
|
37471
32c1e77d0474
facebook: coding style consistencies
James Geboski <jgeboski@gmail.com>
parents:
37433
diff
changeset
|
33 | #define FB_HTTP_ERROR fb_http_error_quark() |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
34 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
35 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
36 | * FbHttpParams: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
37 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
38 | * 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
|
39 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
40 | typedef GHashTable FbHttpParams; |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
41 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
42 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
43 | * FbHttpError: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
44 | * @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
|
45 | * @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
|
46 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
47 | * 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
|
48 | */ |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
49 | typedef enum |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
50 | { |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
51 | FB_HTTP_ERROR_SUCCESS = 0, |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
52 | FB_HTTP_ERROR_NOMATCH |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
53 | } FbHttpError; |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
54 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
55 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
56 | * fb_http_error_quark: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
57 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
58 | * 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
|
59 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
60 | * Returns: The #GQuark of the domain. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
61 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
62 | GQuark |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
63 | fb_http_error_quark(void); |
|
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_chk: |
|
40029
70a9571132e4
Convert most Facebook prpl to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
67 | * @res: The #SoupMessage. |
|
37415
a06ade737f26
facebook: fixed grammar errors in the GTK-Doc
James Geboski <jgeboski@gmail.com>
parents:
37354
diff
changeset
|
68 | * @error: The return location for the #GError or #NULL. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
69 | * |
|
40029
70a9571132e4
Convert most Facebook prpl to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
70 | * Checks a #SoupMessage for success. This optionally assigns an |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
71 | * appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
72 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
73 | * 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
|
74 | */ |
|
40029
70a9571132e4
Convert most Facebook prpl to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
75 | gboolean fb_http_error_chk(SoupMessage *res, GError **error); |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
76 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
77 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
78 | * fb_http_params_new: |
|
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 | * 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
|
81 | * 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
|
82 | * 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
|
83 | * #fb_http_params_close(). |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
84 | * |
|
41293
bfd8314a1a74
Add missing return transfer annotation in Facebook
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41122
diff
changeset
|
85 | * Returns: (transfer full): The new #FbHttpParams. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
86 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
87 | FbHttpParams * |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
88 | fb_http_params_new(void); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
89 | |
|
37347
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 | * fb_http_params_new_parse: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
92 | * @data: The string containing HTTP parameters. |
|
37473
9fd3018c170f
facebook: trivial GTK-Doc fixes
James Geboski <jgeboski@gmail.com>
parents:
37471
diff
changeset
|
93 | * @isurl: #TRUE if @data is a URL, otherwise #FALSE. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
94 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
95 | * 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
|
96 | * 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
|
97 | * 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
|
98 | * 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
|
99 | * #fb_http_params_close(). |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
100 | * |
|
41293
bfd8314a1a74
Add missing return transfer annotation in Facebook
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41122
diff
changeset
|
101 | * Returns: (transfer full): The new #FbHttpParams. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
102 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
103 | FbHttpParams * |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
104 | 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
|
105 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
106 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
107 | * fb_http_params_free: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
108 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
109 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
110 | * 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
|
111 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
112 | void |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
113 | fb_http_params_free(FbHttpParams *params); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
114 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
115 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
116 | * fb_http_params_get_bool: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
117 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
118 | * @name: The parameter name. |
|
37415
a06ade737f26
facebook: fixed grammar errors in the GTK-Doc
James Geboski <jgeboski@gmail.com>
parents:
37354
diff
changeset
|
119 | * @error: The return location for the #GError or #NULL. |
|
37347
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 | * 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
|
122 | * an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
123 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
124 | * Return: The boolean value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
125 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
126 | gboolean |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
127 | 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
|
128 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
129 | |
|
37347
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 | * fb_http_params_get_dbl: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
132 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
133 | * @name: The parameter name. |
|
37415
a06ade737f26
facebook: fixed grammar errors in the GTK-Doc
James Geboski <jgeboski@gmail.com>
parents:
37354
diff
changeset
|
134 | * @error: The return location for the #GError or #NULL. |
|
37347
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 | * 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
|
137 | * assigns an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
138 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
139 | * Return: The floating point value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
140 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
141 | gdouble |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
142 | 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
|
143 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
144 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
145 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
146 | * fb_http_params_get_int: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
147 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
148 | * @name: The parameter name. |
|
37415
a06ade737f26
facebook: fixed grammar errors in the GTK-Doc
James Geboski <jgeboski@gmail.com>
parents:
37354
diff
changeset
|
149 | * @error: The return location for the #GError or #NULL. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
150 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
151 | * 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
|
152 | * assigns an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
153 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
154 | * Return: The integer value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
155 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
156 | gint64 |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
157 | 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
|
158 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
159 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
160 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
161 | * fb_http_params_get_str: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
162 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
163 | * @name: The parameter name. |
|
37415
a06ade737f26
facebook: fixed grammar errors in the GTK-Doc
James Geboski <jgeboski@gmail.com>
parents:
37354
diff
changeset
|
164 | * @error: The return location for the #GError or #NULL. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
165 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
166 | * 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
|
167 | * an appropriate #GError upon failure. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
168 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
169 | * Return: The string value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
170 | */ |
|
37257
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
171 | const gchar * |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
172 | 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
|
173 | GError **error); |
|
5ba291680ac4
facebook: compare checksums before fetching icons
James Geboski <jgeboski@gmail.com>
parents:
37250
diff
changeset
|
174 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
175 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
176 | * fb_http_params_dup_str: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
177 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
178 | * @name: The parameter name. |
|
37415
a06ade737f26
facebook: fixed grammar errors in the GTK-Doc
James Geboski <jgeboski@gmail.com>
parents:
37354
diff
changeset
|
179 | * @error: The return location for the #GError or #NULL. |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
180 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
181 | * 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
|
182 | * 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
|
183 | * 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
|
184 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
185 | * Return: The duplicated string value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
186 | */ |
|
37315
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
187 | gchar * |
|
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
188 | 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
|
189 | GError **error); |
|
7a7771557143
facebook: implemented handling of message attachments
James Geboski <jgeboski@gmail.com>
parents:
37314
diff
changeset
|
190 | |
|
37347
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 | * fb_http_params_set_bool: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
193 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
194 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
195 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
196 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
197 | * 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
|
198 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
199 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
200 | 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
|
201 | gboolean value); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
202 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
203 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
204 | * fb_http_params_set_dbl: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
205 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
206 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
207 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
208 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
209 | * 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
|
210 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
211 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
212 | 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
|
213 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
214 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
215 | * fb_http_params_set_int: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
216 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
217 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
218 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
219 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
220 | * 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
|
221 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
222 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
223 | 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
|
224 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
225 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
226 | * fb_http_params_set_str: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
227 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
228 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
229 | * @value: The value. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
230 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
231 | * 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
|
232 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
233 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
234 | 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
|
235 | const gchar *value); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
236 | |
|
37347
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
237 | /** |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
238 | * fb_http_params_set_strf: |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
239 | * @params: The #FbHttpParams. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
240 | * @name: The parameter name. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
241 | * @format: The format string literal. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
242 | * @...: The arguments for @format. |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
243 | * |
|
34d43f8c10d1
facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents:
37315
diff
changeset
|
244 | * 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
|
245 | */ |
|
37250
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
246 | void |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
247 | 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
|
248 | const gchar *format, ...) |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
249 | G_GNUC_PRINTF(3, 4); |
|
3f5570a17b15
facebook: initial import of bitlbee-facebook
James Geboski <jgeboski@gmail.com>
parents:
diff
changeset
|
250 | |
|
37354
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
251 | /** |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
252 | * fb_http_urlcmp: |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
253 | * @url1: The first URL. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
254 | * @url2: The second URL. |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
255 | * @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
|
256 | * |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
257 | * 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
|
258 | * 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
|
259 | * 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
|
260 | * |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
261 | * 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
|
262 | */ |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
263 | gboolean |
|
14857ad5b6b7
facebook: fixed URL comparisons being overly strict
James Geboski <jgeboski@gmail.com>
parents:
37347
diff
changeset
|
264 | 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
|
265 | |
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37473
diff
changeset
|
266 | #endif /* PURPLE_FACEBOOK_HTTP_H */ |