diff --git a/src/cw/cw_type_bstr16.c b/src/cw/cw_type_bstr16.c index e3ad8c24..e7bcad37 100644 --- a/src/cw/cw_type_bstr16.c +++ b/src/cw/cw_type_bstr16.c @@ -81,6 +81,11 @@ static int len ( struct cw_KTV * data ){ return bstr16_len(data->val.ptr); } +static void * data(struct cw_KTV_t * data) +{ + return bstr16_data(data); +} + const struct cw_Type cw_type_bstr16 = { "Bstr16", /* name */ del, /* del */ @@ -88,5 +93,6 @@ const struct cw_Type cw_type_bstr16 = { get, /* get */ to_str, /* to_str */ from_str, /* from_str */ - len /* len */ + len, /* len */ + data /* data */ }; diff --git a/src/cw/ktv.h b/src/cw/ktv.h index 18c9197d..092b7b99 100644 --- a/src/cw/ktv.h +++ b/src/cw/ktv.h @@ -77,6 +77,8 @@ struct cw_Type { int (*len)(cw_KTV_t *); + + void *(*data)(cw_KTV_t *); }; typedef struct cw_Type cw_Type_t;