24 #ifndef __CONFIG_NET_HANDLER_H_
25 #define __CONFIG_NET_HANDLER_H_
27 #include <core/threading/thread.h>
28 #include <netcomm/fawkes/handler.h>
29 #include <core/utils/lock_queue.h>
30 #include <core/utils/lock_list.h>
32 #include <config/net_messages.h>
33 #include <config/config.h>
34 #include <config/change_handler.h>
44 class FawkesNetworkHub;
73 void send_inv_value(
unsigned int clid,
const char *path);
76 T * prepare_msg(
const char *path,
bool is_default)
78 T * m = (T *)calloc(1,
sizeof(T));
79 strncpy(m->cp.path, path, CONFIG_MSG_PATH_LENGTH);
80 m->cp.is_default = is_default;
85 T * prepare_string_msg(
const char *path,
bool is_default,
size_t s_length)
87 T * m = (T *)calloc(1,
sizeof(T) + s_length);
88 strncpy(m->cp.path, path, CONFIG_MSG_PATH_LENGTH);
89 m->cp.is_default = is_default;
90 m->s_length = s_length;
94 Configuration *__config;
95 FawkesNetworkHub *__hub;
96 LockQueue< FawkesNetworkMessage * > __inbound_queue;
98 LockList< unsigned int > __subscribers;
99 LockList< unsigned int >::iterator __sit;