2018-03-27 07:07:14 +02:00
|
|
|
|
|
|
|
#include "cw.h"
|
|
|
|
#include "dbg.h"
|
|
|
|
|
|
|
|
int cw_out_radio_generic(struct cw_ElemHandler * handler, struct cw_ElemHandlerParams * params
|
|
|
|
, uint8_t * dst)
|
|
|
|
{
|
|
|
|
int len,i,l;
|
|
|
|
int radios;
|
|
|
|
len =0;
|
|
|
|
|
|
|
|
radios = cw_ktv_get_byte(params->conn->local_cfg,"wtp-descriptor/max-radios",0);
|
|
|
|
|
2018-03-27 07:50:43 +02:00
|
|
|
for(i=1;i<radios+1;i++){
|
2018-03-28 10:11:47 +02:00
|
|
|
l = cw_write_radio_element(handler,params,i,dst+len);
|
2018-03-27 07:07:14 +02:00
|
|
|
cw_dbg_elem(DBG_ELEM_OUT,params->conn,params->msgdata->type,handler,dst,l);
|
|
|
|
len+=l;
|
|
|
|
}
|
|
|
|
return len;
|
|
|
|
}
|
2018-03-28 10:11:47 +02:00
|
|
|
|