db-ctl-base: make use of user supplied exit function
authorAndy Zhou <azhou@nicira.com>
Tue, 14 Jul 2015 06:24:11 +0000 (23:24 -0700)
committerAndy Zhou <azhou@nicira.com>
Fri, 17 Jul 2015 20:01:49 +0000 (13:01 -0700)
commitce6f1d1fc55a26e3ae56d81fadfffde566937c62
treecf3c708cf5eeefe6b30da799f959a3d9043a1855
parenta35da174c80e4bf3c05c762cfc629079b75347f9
db-ctl-base: make use of user supplied exit function

The user is required to expose the_idl and the_idl_txn global variables,
so that memory can be cleaned up on fatal errors. This patch changes to
ask user to supply an exit function via ctl_init(). What user needs to
do on exit can now remain private.

Signed-off-by: Andy Zhou <azhou@nicira.com>
lib/db-ctl-base.c
lib/db-ctl-base.h
utilities/ovs-vsctl.c
vtep/vtep-ctl.c