2015-04-26 14:18:44 +02:00
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
|
|
|
|
|
2015-04-26 14:18:44 +02:00
|
|
|
#include "dbg.h"
|
|
|
|
#include "log.h"
|
2018-03-17 17:29:09 +01:00
|
|
|
|
2016-03-11 22:23:00 +01:00
|
|
|
#include "cw.h"
|
2015-04-26 14:18:44 +02:00
|
|
|
|
|
|
|
|
2018-03-30 11:58:05 +02:00
|
|
|
/*#include "acpriolist.h"*/
|
2015-04-26 14:18:44 +02:00
|
|
|
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
/*
|
2015-04-26 14:18:44 +02:00
|
|
|
int cw_in_ac_name_with_priority(struct conn *conn, struct cw_action_in *a, uint8_t * data, int len,
|
|
|
|
struct sockaddr *from)
|
|
|
|
{
|
2018-03-17 17:29:09 +01:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
cw_acpriolist_t prios = mbag_get_mavl(conn->config,CW_ITEM_AC_NAME_WITH_PRIORITY);
|
2015-04-26 14:18:44 +02:00
|
|
|
if (!prios)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
cw_acprio_t * prio = malloc(sizeof(cw_acprio_t));
|
|
|
|
if (!prio)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
prio->prio=cw_get_byte(data);
|
|
|
|
prio->name=strndup((char*)data+1,len-1);
|
2018-03-11 00:56:41 +01:00
|
|
|
mavl_replace(prios,prio,NULL);
|
2018-03-17 17:29:09 +01:00
|
|
|
|
2015-04-26 14:18:44 +02:00
|
|
|
return 1;
|
|
|
|
}
|
2018-03-17 17:29:09 +01:00
|
|
|
*/
|