~ubuntu-branches/ubuntu/breezy/checkpolicy/breezy

« back to all changes in this revision

Viewing changes to symtab.h

  • Committer: Bazaar Package Importer
  • Author(s): Russell Coker
  • Date: 2004-05-20 04:32:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040520043200-w4lzkx37dmmc3wt9
Tags: upstream-1.10
ImportĀ upstreamĀ versionĀ 1.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* Author : Stephen Smalley, <sds@epoch.ncsc.mil> */
 
3
 
 
4
/* FLASK */
 
5
 
 
6
/*
 
7
 * A symbol table (symtab) maintains associations between symbol
 
8
 * strings and datum values.  The type of the datum values
 
9
 * is arbitrary.  The symbol table type is implemented
 
10
 * using the hash table type (hashtab).
 
11
 */ 
 
12
 
 
13
#ifndef _SYMTAB_H_
 
14
#define _SYMTAB_H_
 
15
 
 
16
#include "hashtab.h"
 
17
 
 
18
typedef struct {
 
19
        hashtab_t table;        /* hash table (keyed on a string) */
 
20
        __u32 nprim;            /* number of primary names in table */
 
21
} symtab_t;
 
22
 
 
23
int symtab_init(symtab_t *, unsigned int size);
 
24
 
 
25
#endif  /* _SYMTAB_H_ */
 
26
 
 
27
/* FLASK */
 
28