2022-07-31 17:15:32 +02:00
|
|
|
#include "val.h"
|
2018-03-31 08:37:18 +02:00
|
|
|
|
|
|
|
void * cw_ktv_get_sysptr(mavl_t ktv,const char *key, void * def)
|
|
|
|
{
|
2022-07-31 17:15:32 +02:00
|
|
|
cw_Val_t * k;
|
2018-03-31 08:37:18 +02:00
|
|
|
k = cw_ktv_get(ktv,key,CW_TYPE_SYSPTR);
|
|
|
|
if (k != NULL){
|
|
|
|
return k->val.ptr;
|
|
|
|
}
|
|
|
|
return def;
|
|
|
|
}
|