stringref.h
Go to the documentation of this file.00001
00002
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _PURPLE_STRINGREF_H_
00030 #define _PURPLE_STRINGREF_H_
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036 typedef struct _PurpleStringref PurpleStringref;
00037
00048 PurpleStringref *purple_stringref_new(const char *value);
00049
00062 PurpleStringref *purple_stringref_new_noref(const char *value);
00063
00074 PurpleStringref *purple_stringref_printf(const char *format, ...);
00075
00083 PurpleStringref *purple_stringref_ref(PurpleStringref *stringref);
00084
00092 void purple_stringref_unref(PurpleStringref *stringref);
00093
00110 const char *purple_stringref_value(const PurpleStringref *stringref);
00111
00123 int purple_stringref_cmp(const PurpleStringref *s1, const PurpleStringref *s2);
00124
00132 size_t purple_stringref_len(const PurpleStringref *stringref);
00133
00134 #ifdef __cplusplus
00135 }
00136 #endif
00137
00138 #endif