Renamed KTV to Val.

This commit is contained in:
2022-07-31 17:15:32 +02:00
parent 996446d115
commit a05bbf5fd6
86 changed files with 365 additions and 347 deletions

View File

@ -18,7 +18,7 @@
#include "cw/cw.h"
#include "cw/ktv.h"
#include "cw/val.h"
#include "cw/log.h"
#include "cw/dbg.h"
@ -32,7 +32,7 @@
static int postprocess_join_request(struct conn *conn);
static cw_KTVStruct_t wtp_reboot_statistics[] = {
static cw_ValStruct_t wtp_reboot_statistics[] = {
{CW_TYPE_WORD, "reboot-count", 2,-1},
{CW_TYPE_WORD, "ac-initiated-count", 2,-1},
{CW_TYPE_WORD, "link-failure-count", 2,-1},
@ -44,27 +44,27 @@ static cw_KTVStruct_t wtp_reboot_statistics[] = {
{NULL,NULL,0,0}
};
static cw_KTVStruct_t capwap_timers[] = {
static cw_ValStruct_t capwap_timers[] = {
{CW_TYPE_BYTE, "max-discovery-interval", 1,-1},
{CW_TYPE_BYTE, "echo-interval", 1,-1},
{NULL,NULL,0,0}
};
static cw_KTVStruct_t radio_operational_state[] = {
static cw_ValStruct_t radio_operational_state[] = {
{CW_TYPE_BYTE, "state", 1,-1},
{CW_TYPE_BYTE, "cause", 1,-1},
{NULL,NULL,0,0}
};
static cw_KTVValRange_t radio_admin_state_valguard[]={
static cw_ValValRange_t radio_admin_state_valguard[]={
{0,0,"reserved"},
{1,1,"enabled"},
{2,2,"disabled"},
{0,0,NULL}
};
static cw_KTVStruct_t radio_admin_state[] = {
static cw_ValStruct_t radio_admin_state[] = {
{CW_TYPE_BYTE, NULL, 1,-1, radio_admin_state_valguard},
{NULL,NULL,0,0}
};
@ -748,7 +748,7 @@ static struct cw_MsgDef messages[] = {
static int postprocess_join_request(struct conn *conn)
{
cw_KTV_t * result;
cw_Val_t * result;
result = cw_ktv_get(conn->remote_cfg,"session-id",CW_TYPE_BSTR16);
if (result != NULL){

View File

@ -25,7 +25,7 @@
#include "cw/dbg.h"
#include "cw/cw.h"
#include "cw/ktv.h"
#include "cw/val.h"
#include "cw/keys.h"

View File

@ -7,7 +7,7 @@
#include "cw/capwap.h"
#include "cw/cw.h"
#include "cw/ktv.h"
#include "cw/val.h"
#include "cw/keys.h"

View File

@ -53,7 +53,7 @@ int capwap_out_capwap_control_ip_address(struct cw_ElemHandler * eh,
char key[CW_KTV_MAX_KEY_LEN];
int i;
int wtps;
cw_KTV_t * address;
cw_Val_t * address;
uint8_t *d;
d = dst;

View File

@ -5,7 +5,7 @@
int capwap_out_capwap_local_ip_address(struct cw_ElemHandler * eh,
struct cw_ElemHandlerParams * params, uint8_t * dst)
{
cw_KTV_t * ip;
cw_Val_t * ip;
ip = cw_ktv_get(params->local_cfg,eh->key,CW_TYPE_IPADDRESS);
if (ip==NULL){
return 0;

View File

@ -1,7 +1,7 @@
#include "cw/conn.h"
#include "cw/log.h"
#include "cw/ktv.h"
#include "cw/val.h"
#include "cw/msgset.h"
#include "cw/keys.h"
#include "cw/cw.h"
@ -11,7 +11,7 @@ static int write_boarddata_subelem(uint8_t * dst, mavl_t ktv, const char * paren
const char *skey, int type){
char key[256];
cw_KTV_t * val;
cw_Val_t * val;
uint8_t *d;
d=dst;
@ -40,7 +40,7 @@ static int write_boarddata_subelem(uint8_t * dst, mavl_t ktv, const char * paren
int capwap_out_wtp_board_data(struct cw_ElemHandler * eh,
struct cw_ElemHandlerParams * params, uint8_t * dst)
{
cw_KTV_t * val;
cw_Val_t * val;
mavl_t cfg;
uint8_t * d;
char key[256];

View File

@ -1,7 +1,7 @@
#include "cw/log.h"
#include "cw/cw.h"
#include "cw/ktv.h"
#include "cw/val.h"
#include "cw/keys.h"
#include "cw/dbg.h"
@ -31,7 +31,7 @@ int capwap_out_wtp_descriptor(struct cw_ElemHandler * eh,
int len,l;
/* // XXX Dummy WTP Descriptor Header */
uint8_t *d;
cw_KTV_t * val;
cw_Val_t * val;
d = dst+4;

View File

@ -2,7 +2,7 @@
#include "cw/mod.h"
#include "cw/log.h"
#include "cw/dbg.h"
#include "cw/ktv.h"
#include "cw/val.h"
#include "cw/keys.h"
#include "cw/dtls.h"