diff src/util.h @ 5136:381da05cb5ed

[gaim-migrate @ 5500] this started out as simply adding an option to right-click on a jabber buddy and re-request authorization. Then I ended up chasing the disgusting mess of const vs non-const parameters all over gaim. The end result is that you can now right-click on jabber buddies and re-request auth like you can for ICQ. Also, a lot more things are const that should be, I fixed a bug or two, and I cleaned up one of my least favorite functions in gaim (linkify_text). It is now decidedly less evil. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 15 Apr 2003 04:18:00 +0000
parents 4691c5936c01
children 8d8bf0d31a23
line wrap: on
line diff
--- a/src/util.h	Tue Apr 15 03:45:31 2003 +0000
+++ b/src/util.h	Tue Apr 15 04:18:00 2003 +0000
@@ -106,13 +106,11 @@
 /**
  * Adds the necessary HTML code to turn URIs into HTML links in a string.
  *
- * The string passed must be able to store at least BUF_LEN * 2 bytes.
+ * @param str The string to linkify.
  *
- * @param str The string to linkify.
- * 
- * @return The length of the new string.
+ * @return The linkified text.
  */
-gint linkify_text(char *str);
+char *linkify_text(const char *str);
 
 /**
  * Converts seconds into a human-readable form.
@@ -247,7 +245,7 @@
  *
  * @return The string with carriage returns.
  */
-char *add_cr(char *);
+char *add_cr(const char *);
 
 /**
  * Strips all linefeeds from a string.