diff src/util.h @ 7134:67f9b43c402a

[gaim-migrate @ 7701] I think this is the fifth Yahoo authentication method Gaim's seen in its days. Please tell me if anything stops working. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 03 Oct 2003 23:01:13 +0000
parents d40966338ea6
children d14e026611c0
line wrap: on
line diff
--- a/src/util.h	Fri Oct 03 21:57:44 2003 +0000
+++ b/src/util.h	Fri Oct 03 23:01:13 2003 +0000
@@ -454,10 +454,30 @@
 					const char *user_agent, gboolean http11,
 					void (*cb)(void *, const char *, size_t),
 					void *data);
+/**
+ * Decodes a URL into a plain string.
+ *
+ * This will change hex codes and such to their ascii equivalents.
+ *
+ * @param str The string to translate.
+ *
+ * @return The resulting string.
+ */	
+char *gaim_url_decode(const char *str);
+
+/**
+ * Encodes a URL into an escaped string.
+ *
+ * This will change non-alphanumeric characters to hex codes.
+ *
+ * @param str The string to translate.
+ *
+ * @return The resulting string.
+ */
+char *gaim_url_encode(const char *str);
 
 /*@}*/
 
-
 /**************************************************************************
  * UTF8 String Functions
  **************************************************************************/