2022-07-31 17:15:32 +02:00
|
|
|
#include "val.h"
|
2018-04-04 09:25:16 +02:00
|
|
|
#include "bstr.h"
|
|
|
|
|
|
|
|
bstr16_t cw_ktv_get_bstr16(mavl_t ktv,const char *key, bstr16_t def)
|
|
|
|
{
|
2022-07-31 17:15:32 +02:00
|
|
|
cw_Val_t * k;
|
2018-04-04 09:59:55 +02:00
|
|
|
k = cw_ktv_get(ktv,key,CW_TYPE_BSTR16);
|
2018-04-04 09:25:16 +02:00
|
|
|
if (k != NULL){
|
|
|
|
return bstr16_create(k->type->data(k),k->type->len(k));
|
|
|
|
}
|
|
|
|
return def;
|
|
|
|
}
|
|
|
|
|