actube/src/cw/cw_in_generic_with_index.c

19 lines
393 B
C
Raw Normal View History

#include "cw.h"
2022-08-13 09:47:12 +02:00
#include "dbg.h"
int cw_in_generic_with_index(struct cw_ElemHandler *eh,
struct cw_ElemHandlerParams *params,
uint8_t * data, int len)
{
char key[CW_KTV_MAX_KEY_LEN];
int idx;
2022-08-13 09:47:12 +02:00
cw_dbg(DBG_X,"Fix cw_in_generic_with_index");
stop();
idx = cw_get_byte(data);
sprintf(key,"%s.%d",eh->key,idx);
2022-08-13 09:47:12 +02:00
// cw_cfg_add(params->cfg,key,eh->type,NULL,data+1,len-1);
return 1;
}