Add support for extensions submodule.
This commit is contained in:
1 parent
80e0e1e029
commit
263aa64c49
12 files changed
+253
-141
No files matched your search
@@ -35,5 +35,6 @@ noinst_HEADERS = \
|
||||
vconn-ssl.h \
|
||||
vconn-stream.h \
|
||||
vlog-socket.h \
|
||||
vlog-modules.def \
|
||||
vlog.h \
|
||||
xtoxll.h
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Modules that can emit log messages. */
|
||||
VLOG_MODULE(chain)
|
||||
VLOG_MODULE(controller)
|
||||
VLOG_MODULE(ctlpath)
|
||||
VLOG_MODULE(daemon)
|
||||
VLOG_MODULE(datapath)
|
||||
VLOG_MODULE(dhcp)
|
||||
VLOG_MODULE(dhcp_client)
|
||||
VLOG_MODULE(dpif)
|
||||
VLOG_MODULE(dpctl)
|
||||
VLOG_MODULE(fault)
|
||||
VLOG_MODULE(flow)
|
||||
VLOG_MODULE(learning_switch)
|
||||
VLOG_MODULE(mac_learning)
|
||||
VLOG_MODULE(netdev)
|
||||
VLOG_MODULE(netlink)
|
||||
VLOG_MODULE(ofp_discover)
|
||||
VLOG_MODULE(poll_loop)
|
||||
VLOG_MODULE(secchan)
|
||||
VLOG_MODULE(rconn)
|
||||
VLOG_MODULE(switch)
|
||||
VLOG_MODULE(terminal)
|
||||
VLOG_MODULE(socket_util)
|
||||
VLOG_MODULE(vconn_netlink)
|
||||
VLOG_MODULE(vconn_tcp)
|
||||
VLOG_MODULE(vconn_ssl)
|
||||
VLOG_MODULE(vconn_stream)
|
||||
VLOG_MODULE(vconn_unix)
|
||||
VLOG_MODULE(vconn)
|
||||
VLOG_MODULE(vlog)
|
||||
|
||||
#ifdef HAVE_EXT
|
||||
#include "ext/vlogext-modules.def"
|
||||
#endif
|
||||
|
||||
#undef VLOG_MODULE
|
||||
+1
-33
@@ -63,42 +63,10 @@ enum vlog_facility {
|
||||
const char *vlog_get_facility_name(enum vlog_facility);
|
||||
enum vlog_facility vlog_get_facility_val(const char *name);
|
||||
|
||||
/* Modules that can emit log messages. */
|
||||
#define VLOG_MODULES \
|
||||
VLOG_MODULE(chain) \
|
||||
VLOG_MODULE(controller) \
|
||||
VLOG_MODULE(ctlpath) \
|
||||
VLOG_MODULE(daemon) \
|
||||
VLOG_MODULE(datapath) \
|
||||
VLOG_MODULE(dhcp) \
|
||||
VLOG_MODULE(dhcp_client) \
|
||||
VLOG_MODULE(dpif) \
|
||||
VLOG_MODULE(dpctl) \
|
||||
VLOG_MODULE(fault) \
|
||||
VLOG_MODULE(flow) \
|
||||
VLOG_MODULE(learning_switch) \
|
||||
VLOG_MODULE(mac_learning) \
|
||||
VLOG_MODULE(netdev) \
|
||||
VLOG_MODULE(netlink) \
|
||||
VLOG_MODULE(ofp_discover) \
|
||||
VLOG_MODULE(poll_loop) \
|
||||
VLOG_MODULE(secchan) \
|
||||
VLOG_MODULE(rconn) \
|
||||
VLOG_MODULE(switch) \
|
||||
VLOG_MODULE(socket_util) \
|
||||
VLOG_MODULE(vconn_netlink) \
|
||||
VLOG_MODULE(vconn_tcp) \
|
||||
VLOG_MODULE(vconn_ssl) \
|
||||
VLOG_MODULE(vconn_stream) \
|
||||
VLOG_MODULE(vconn_unix) \
|
||||
VLOG_MODULE(vconn) \
|
||||
VLOG_MODULE(vlog) \
|
||||
|
||||
/* VLM_ constant for each vlog module. */
|
||||
enum vlog_module {
|
||||
#define VLOG_MODULE(NAME) VLM_##NAME,
|
||||
VLOG_MODULES
|
||||
#undef VLOG_MODULE
|
||||
#include "vlog-modules.def"
|
||||
VLM_N_MODULES,
|
||||
VLM_ANY_MODULE = -1
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user