vlog: Use OVS_CONSTRUCTOR for vlog initialization
authorHelmut Schaa <helmut.schaa@googlemail.com>
Fri, 13 Dec 2013 13:05:01 +0000 (14:05 +0100)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Dec 2013 17:15:01 +0000 (09:15 -0800)
commit86e504e102aa69c379cd465966daf197152618e6
tree199fd8925d8943f6105f2a881fb3c0a3fce977b8
parent6164839f3ee00436b32af3100c903ee152803117
vlog: Use OVS_CONSTRUCTOR for vlog initialization

This allows to get rid of some special segment handling to allow
distributed registering of vlog modules.

Instead use a global list and vlog module constructor functions to
build up the list. That means vlog modules reside within the
compilation unit they are defined in and can be iterated upon
by using the global list vlog_modules.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/vlog.c
lib/vlog.h