/* SPDX-License-Identifier: GPL-2.0 */1/*2* A symbol table (symtab) maintains associations between symbol3* strings and datum values. The type of the datum values4* is arbitrary. The symbol table type is implemented5* using the hash table type (hashtab).6*7* Author : Stephen Smalley, <[email protected]>8*/910#ifndef _SS_SYMTAB_H_11#define _SS_SYMTAB_H_1213#include "hashtab.h"1415struct symtab {16struct hashtab table; /* hash table (keyed on a string) */17u32 nprim; /* number of primary names in table */18};1920int symtab_init(struct symtab *s, u32 size);2122int symtab_insert(struct symtab *s, char *name, void *datum);23void *symtab_search(struct symtab *s, const char *name);2425#endif /* _SS_SYMTAB_H_ */262728