More work on typeless

This commit is contained in:
2022-08-13 09:47:12 +02:00
parent add6ffa314
commit 370942ef7e
69 changed files with 1030 additions and 507 deletions

View File

@ -8,7 +8,6 @@
#include "mavltypes.h"
#include "bstr.h"
#include "cfg.h"
/**
@ -24,6 +23,8 @@
#define CW_KTV_MAX_KEY_LEN 1024
typedef struct mavl cw_Cfg_t;
/**
* @struct cw_Val
* @file ktv.h
@ -93,7 +94,7 @@ struct cw_Type {
int (*cast)(cw_Val_t *);
int (*read)(cw_Cfg_t *cfg, const char * key, const uint8_t *src, int len, const void * param);
int (*write)(cw_Cfg_t *cfg, const char *key, const uint8_t *dst, const void * param);
int (*write)(cw_Cfg_t *cfg, const char *key, uint8_t *dst, const void * param);
};
typedef struct cw_Type cw_Type_t;
@ -134,6 +135,7 @@ struct cw_ValEnum{
const void * type;
int (*fun_in)();
int (*fun_out)();
void *param;
};
typedef struct cw_ValEnum cw_ValEnum_t;