stringref.h

Go to the documentation of this file.
00001 /* TODO: Can we just replace this whole thing with a GCache */
00002 
00028 #ifndef _PURPLE_STRINGREF_H_
00029 #define _PURPLE_STRINGREF_H_
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 typedef struct _PurpleStringref PurpleStringref;
00036 
00047 PurpleStringref *purple_stringref_new(const char *value);
00048 
00061 PurpleStringref *purple_stringref_new_noref(const char *value);
00062 
00073 PurpleStringref *purple_stringref_printf(const char *format, ...);
00074 
00082 PurpleStringref *purple_stringref_ref(PurpleStringref *stringref);
00083 
00091 void purple_stringref_unref(PurpleStringref *stringref);
00092 
00109 const char *purple_stringref_value(const PurpleStringref *stringref);
00110 
00122 int purple_stringref_cmp(const PurpleStringref *s1, const PurpleStringref *s2);
00123 
00131 size_t purple_stringref_len(const PurpleStringref *stringref);
00132 
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136 
00137 #endif /* _PURPLE_STRINGREF_H_ */