/***
This file is part of systemd.
Copyright 2012 Kay Sievers <kay@vrfy.org>
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include "sparse-endian.h"
#include "util.h"
/* on-disk trie objects */
struct trie_header_f {
/* version of tool which created the file */
/* size of structures to allow them to grow */
/* offset of the root trie node */
/* size of the nodes and string section */
} _packed_;
struct trie_node_f {
/* prefix of lookup string, shared by all children */
/* size of children entry array appended to the node */
/* size of value entry array appended to the node */
} _packed_;
/* array of child entries, follows directly the node record */
struct trie_child_entry_f {
/* index of the child node */
uint8_t c;
/* offset of the child node */
} _packed_;
struct trie_value_entry_f {
} _packed_;