diff libpurple/stringref.h @ 15853:c5487dd19e61

merge of '31ed92ba1b530f050510b4958686e3013ba4176c' and '41f65a78d919384ad599d73c656a367d92292a41'
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 20 Mar 2007 14:37:22 +0000
parents 32c366eeeb99
children 84d53c3c699d
line wrap: on
line diff
--- a/libpurple/stringref.h	Tue Mar 20 14:37:16 2007 +0000
+++ b/libpurple/stringref.h	Tue Mar 20 14:37:22 2007 +0000
@@ -2,9 +2,9 @@
  * @file stringref.h Reference-counted immutable strings
  * @ingroup core
  *
- * gaim
+ * purple
  *
- * Gaim is the legal property of its developers, whose names are too numerous
+ * Purple is the legal property of its developers, whose names are too numerous
  * to list here.  Please refer to the COPYRIGHT file distributed with this
  * source distribution.
  *
@@ -23,14 +23,14 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
-#ifndef _GAIM_STRINGREF_H_
-#define _GAIM_STRINGREF_H_
+#ifndef _PURPLE_STRINGREF_H_
+#define _PURPLE_STRINGREF_H_
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef struct _GaimStringref GaimStringref;
+typedef struct _PurpleStringref PurpleStringref;
 
 /**
  * Creates an immutable reference-counted string object.  The newly
@@ -42,7 +42,7 @@
  * @return A newly allocated string reference object with a refcount
  *         of 1.
  */
-GaimStringref *gaim_stringref_new(const char *value);
+PurpleStringref *purple_stringref_new(const char *value);
 
 /**
  * Creates an immutable reference-counted string object.  The newly
@@ -56,7 +56,7 @@
  * @return A newly allocated string reference object with a refcount
  *         of zero.
  */
-GaimStringref *gaim_stringref_new_noref(const char *value);
+PurpleStringref *purple_stringref_new_noref(const char *value);
 
 /**
  * Creates an immutable reference-counted string object from a printf
@@ -68,7 +68,7 @@
  * @return A newly allocated string reference object with a refcount
  *         of 1.
  */
-GaimStringref *gaim_stringref_printf(const char *format, ...);
+PurpleStringref *purple_stringref_printf(const char *format, ...);
 
 /**
  * Increase the reference count of the given stringref.
@@ -77,7 +77,7 @@
  *
  * @return A pointer to the referenced string.
  */
-GaimStringref *gaim_stringref_ref(GaimStringref *stringref);
+PurpleStringref *purple_stringref_ref(PurpleStringref *stringref);
 
 /**
  * Decrease the reference count of the given stringref.  If this
@@ -86,7 +86,7 @@
  *
  * @param stringref String to be dereferenced.
  */
-void gaim_stringref_unref(GaimStringref *stringref);
+void purple_stringref_unref(PurpleStringref *stringref);
 
 /**
  * Retrieve the value of a stringref.
@@ -104,7 +104,7 @@
  *
  * @return The contents of the string reference.
  */
-const char *gaim_stringref_value(const GaimStringref *stringref);
+const char *purple_stringref_value(const PurpleStringref *stringref);
 
 /**
  * Compare two stringrefs for string equality.  This returns the same
@@ -117,7 +117,7 @@
  *
  * @return An ordering indication on s1 and s2.
  */
-int gaim_stringref_cmp(const GaimStringref *s1, const GaimStringref *s2);
+int purple_stringref_cmp(const PurpleStringref *s1, const PurpleStringref *s2);
 
 /**
  * Find the length of the string inside a stringref.
@@ -126,10 +126,10 @@
  *
  * @return The length of the string in stringref
  */
-size_t gaim_stringref_len(const GaimStringref *stringref);
+size_t purple_stringref_len(const PurpleStringref *stringref);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* _GAIM_STRINGREF_H_ */
+#endif /* _PURPLE_STRINGREF_H_ */