symtab.h 601 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * A symbol table (symtab) maintains associations between symbol
  4. * strings and datum values. The type of the datum values
  5. * is arbitrary. The symbol table type is implemented
  6. * using the hash table type (hashtab).
  7. *
  8. * Author : Stephen Smalley, <sds@tycho.nsa.gov>
  9. */
  10. #ifndef _SS_SYMTAB_H_
  11. #define _SS_SYMTAB_H_
  12. #include "hashtab.h"
  13. struct symtab {
  14. struct hashtab *table; /* hash table (keyed on a string) */
  15. u32 nprim; /* number of primary names in table */
  16. };
  17. int symtab_init(struct symtab *s, unsigned int size);
  18. #endif /* _SS_SYMTAB_H_ */