regedit: make all hives descend from a root node

Enterprise / Samba - Chris Davis [gmail.com] - 1 October 2014 07:32 UTC

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.

f9a2f2e regedit: make all hives descend from a root node
source3/utils/regedit.c | 60 ++++---------------------
source3/utils/regedit_treeview.c | 90 +++++++++++++++++++++++++++-----------
source3/utils/regedit_treeview.h | 6 +++
3 files changed, 79 insertions(+), 77 deletions(-)

Upstream: gitweb.samba.org


  • Share