Mercurial > pidgin.yaz
comparison src/stringref.h @ 7767:1f4005fcd872
[gaim-migrate @ 8412]
As Nathan pointed out, a printf'd stringref is probably desirable
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Fri, 05 Dec 2003 17:28:22 +0000 |
parents | dc79649b829d |
children | 4e5c48ea9478 |
comparison
equal
deleted
inserted
replaced
7766:9d6ba1c44cb7 | 7767:1f4005fcd872 |
---|---|
40 * created object will have a reference count of 1. | 40 * created object will have a reference count of 1. |
41 * | 41 * |
42 * @param value This will be the value of the string; it will be | 42 * @param value This will be the value of the string; it will be |
43 * duplicated. | 43 * duplicated. |
44 * | 44 * |
45 * @return A newly allocated string reference object. | 45 * @return A newly allocated string reference object with a refcount |
46 * of 1. | |
46 */ | 47 */ |
47 GaimStringref *gaim_stringref_new(const char *value); | 48 GaimStringref *gaim_stringref_new(const char *value); |
49 | |
50 /** | |
51 * Creates an immutable reference-counted string object from a printf | |
52 * format specification and arguments. The created object will have a | |
53 * reference count of 1. | |
54 * | |
55 * @param format A printf-style format specification. | |
56 * | |
57 * @return A newly allocated string reference object with a refcount | |
58 * of 1. | |
59 */ | |
60 GaimStringref *gaim_stringref_printf(const char *format, ...); | |
48 | 61 |
49 /** | 62 /** |
50 * Increase the reference count of the given stringref. | 63 * Increase the reference count of the given stringref. |
51 * | 64 * |
52 * @param stringref String to be referenced. | 65 * @param stringref String to be referenced. |