libudev-hwdb-def.h revision 2001208c2ab631a69896d1f670c26846b70d1fb7
/***
This file is part of systemd.
Copyright 2012 Kay Sievers <kay.sievers@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/>.
***/
#ifndef _LIBUDEV_HWDB_DEF_H_
#define _LIBUDEV_HWDB_DEF_H_
#include "sparse-endian.h"
/* on-disk trie objects */
_packed_ 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 */
};
/* array of child entries, follows directly the node record */
_packed_ struct trie_child_entry_f {
/* index of the child node */
uint8_t c;
/* offset of the child node */
};
_packed_ struct trie_value_entry_f {
};
#endif