regedit: make all hives descend from a root node
authorChris Davis <cd.rattan@gmail.com>
Tue, 1 Jul 2014 06:19:53 +0000 (23:19 -0700)
committerMichael Adam <obnox@samba.org>
Wed, 1 Oct 2014 12:32:09 +0000 (14:32 +0200)
commitf9a2f2eb7cc3c69f20ab615dd98b750414672fe3
treea1c7b709dfb797d44df004d166839f2c6f0db055
parent41d5112407d7426d75671ac6967e62b080f63857
regedit: make all hives descend from a root node

This helps simplify cleanup, since each node's talloc context is the
parent node, and freeing the root node will destroy the entire tree
without any extra utility functions.

It also wouldn't be hard to extend this later on to support browsing
multiple registries at the same time.

Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/regedit.c
source3/utils/regedit_treeview.c
source3/utils/regedit_treeview.h