00001 00027 #ifndef _GAIM_STRINGREF_H_ 00028 #define _GAIM_STRINGREF_H_ 00029 00037 typedef struct _GaimStringref { 00038 guint32 ref; 00045 char value[1]; 00049 } GaimStringref; 00050 00061 GaimStringref *gaim_stringref_new(const char *value); 00062 00075 GaimStringref *gaim_stringref_new_noref(const char *value); 00076 00087 GaimStringref *gaim_stringref_printf(const char *format, ...); 00088 00096 GaimStringref *gaim_stringref_ref(GaimStringref *stringref); 00097 00105 void gaim_stringref_unref(GaimStringref *stringref); 00106 00123 const char *gaim_stringref_value(const GaimStringref *stringref); 00124 00136 int gaim_stringref_cmp(const GaimStringref *s1, const GaimStringref *s2); 00137 00145 size_t gaim_stringref_len(const GaimStringref *stringref); 00146 00147 #endif /* _GAIM_STRINGREF_H_ */