| 56 * Creates an immutable reference-counted string object. The newly |
56 * Creates an immutable reference-counted string object. The newly |
| 57 * created object will have a reference count of zero, and if it is |
57 * created object will have a reference count of zero, and if it is |
| 58 * not referenced before the next iteration of the mainloop it will |
58 * not referenced before the next iteration of the mainloop it will |
| 59 * be freed at that time. |
59 * be freed at that time. |
| 60 * |
60 * |
| 61 * Returns: A newly allocated string reference object with a refcount |
61 * Returns: (skip) (transfer full): A newly allocated string reference object with a refcount |
| 62 * of zero. |
62 * of zero. |
| 63 */ |
63 */ |
| 64 PurpleStringref *purple_stringref_new_noref(const char *value); |
64 PurpleStringref *purple_stringref_new_noref(const char *value); |
| 65 |
65 |
| 66 /** |
66 /** |
| 70 * |
70 * |
| 71 * Creates an immutable reference-counted string object from a printf |
71 * Creates an immutable reference-counted string object from a printf |
| 72 * format specification and arguments. The created object will have a |
72 * format specification and arguments. The created object will have a |
| 73 * reference count of 1. |
73 * reference count of 1. |
| 74 * |
74 * |
| 75 * Returns: A newly allocated string reference object with a refcount |
75 * Returns: (skip): A newly allocated string reference object with a refcount |
| 76 * of 1. |
76 * of 1. |
| 77 */ |
77 */ |
| 78 PurpleStringref *purple_stringref_printf(const char *format, ...); |
78 PurpleStringref *purple_stringref_printf(const char *format, ...); |
| 79 |
79 |
| 80 /** |
80 /** |
| 81 * purple_stringref_ref: |
81 * purple_stringref_ref: |
| 82 * @stringref: String to be referenced. |
82 * @stringref: String to be referenced. |
| 83 * |
83 * |
| 84 * Increase the reference count of the given stringref. |
84 * Increase the reference count of the given stringref. |
| 85 * |
85 * |
| 86 * Returns: A pointer to the referenced string. |
86 * Returns: (skip) (transfer full): A pointer to the referenced string. |
| 87 */ |
87 */ |
| 88 PurpleStringref *purple_stringref_ref(PurpleStringref *stringref); |
88 PurpleStringref *purple_stringref_ref(PurpleStringref *stringref); |
| 89 |
89 |
| 90 /** |
90 /** |
| 91 * purple_stringref_unref: |
91 * purple_stringref_unref: |