summaryrefslogtreecommitdiff
path: root/src/upb_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_string.h')
-rw-r--r--src/upb_string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upb_string.h b/src/upb_string.h
index 505ac5b..c1caddc 100644
--- a/src/upb_string.h
+++ b/src/upb_string.h
@@ -58,6 +58,11 @@ INLINE void upb_string_unref(struct upb_string *str)
if(upb_mmhead_unref(&str->mmhead)) upb_string_destroy(str);
}
+INLINE void upb_string_ref(struct upb_string *str)
+{
+ upb_mmhead_ref(&str->mmhead);
+}
+
/* Resizes the string to size, reallocating if necessary. Does not preserve
* existing data. */
INLINE void upb_string_resize(struct upb_string *str, uint32_t size)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback