diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-11-28 15:38:29 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-11-28 15:38:29 -0800 |
commit | a95ab58e79c50b0927eae2b834d3de20a8effc36 (patch) | |
tree | 2cfb873d3a9d0976aca4ba6d9b1208335b725c3d /src/upb_string.h | |
parent | 246a36998bc0e6800959ff76c2a8c76ff8de3561 (diff) |
Overhaul defs to derive from a common base.
Diffstat (limited to 'src/upb_string.h')
-rw-r--r-- | src/upb_string.h | 5 |
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) |