diff -r 97bddd687cf8 -r 14857ad5b6b7 libpurple/protocols/facebook/http.h --- a/libpurple/protocols/facebook/http.h Mon Aug 17 16:20:38 2015 -0400 +++ b/libpurple/protocols/facebook/http.h Mon Aug 17 23:15:10 2015 -0400 @@ -274,4 +274,19 @@ const gchar *format, ...) G_GNUC_PRINTF(3, 4); +/** + * fb_http_urlcmp: + * @url1: The first URL. + * @url2: The second URL. + * @protocol: #TRUE to match the protocols, otherwise #FALSE. + * + * Compares two URLs. This is more reliable than just comparing two URL + * strings, as it avoids casing in some areas, while not in others. It + * can also, optionally, ignore the matching of the URL protocol. + * + * Returns: #TRUE if the URLs match, otherwise #FALSE. + */ +gboolean +fb_http_urlcmp(const gchar *url1, const gchar *url2, gboolean protocol); + #endif /* _FACEBOOK_HTTP_H_ */