2022-07-31 17:15:32 +02:00
|
|
|
#include "val.h"
|
2018-04-04 10:27:56 +02:00
|
|
|
|
|
|
|
uint8_t cw_ktv_get_bool(mavl_t ktv,const char *key, uint8_t def)
|
|
|
|
{
|
2022-07-31 17:15:32 +02:00
|
|
|
cw_Val_t * k;
|
2018-04-04 10:27:56 +02:00
|
|
|
k = cw_ktv_get(ktv,key,CW_TYPE_BOOL);
|
|
|
|
if (k != NULL){
|
|
|
|
return k->val.boolean;
|
|
|
|
}
|
|
|
|
return def;
|
|
|
|
}
|