diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/src/lib/eina_binbuf_template_c.x | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libraries/eina/src/lib/eina_binbuf_template_c.x b/libraries/eina/src/lib/eina_binbuf_template_c.x index 613a715..7e0c539 100644 --- a/libraries/eina/src/lib/eina_binbuf_template_c.x +++ b/libraries/eina/src/lib/eina_binbuf_template_c.x | |||
@@ -65,6 +65,15 @@ _FUNC_EXPAND(new)(void) | |||
65 | return buf; | 65 | return buf; |
66 | } | 66 | } |
67 | 67 | ||
68 | EAPI _STRBUF_STRUCT_NAME * | ||
69 | _FUNC_EXPAND(manage_new_length)(_STRBUF_DATA_TYPE *str, size_t length) | ||
70 | { | ||
71 | _STRBUF_STRUCT_NAME *buf = | ||
72 | eina_strbuf_common_manage_new(_STRBUF_CSIZE, (void *) str, length); | ||
73 | EINA_MAGIC_SET(buf, _STRBUF_MAGIC); | ||
74 | return buf; | ||
75 | } | ||
76 | |||
68 | EAPI void | 77 | EAPI void |
69 | _FUNC_EXPAND(free)(_STRBUF_STRUCT_NAME *buf) | 78 | _FUNC_EXPAND(free)(_STRBUF_STRUCT_NAME *buf) |
70 | { | 79 | { |