~ubuntu-branches/ubuntu/quantal/apparmor/quantal-updates

« back to all changes in this revision

Viewing changes to parser/libapparmor_re/flex-tables.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-03-23 16:42:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070323164201-jkax6f0oku087b7l
Tags: upstream-2.0.1+510.dfsg
ImportĀ upstreamĀ versionĀ 2.0.1+510.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __FLEX_TABLES_H
 
2
#define __FLEX_TABLES_H
 
3
 
 
4
#include <stdlib.h>
 
5
#include <stdint.h>
 
6
 
 
7
#define YYTH_MAGIC      0xF13C57B1
 
8
 
 
9
struct table_set_header {
 
10
        uint32_t        th_magic;       /* TH_MAGIC */
 
11
        uint32_t        th_hsize;
 
12
        uint32_t        th_ssize;
 
13
        uint16_t        th_flags;
 
14
        char            th_version[];
 
15
/*      char            th_name[];
 
16
        char            th_pad64[];*/
 
17
} __attribute__ ((packed));
 
18
 
 
19
#define YYTD_ID_ACCEPT  1
 
20
#define YYTD_ID_BASE    2
 
21
#define YYTD_ID_CHK     3
 
22
#define YYTD_ID_DEF     4
 
23
#define YYTD_ID_EC      5
 
24
#define YYTD_ID_META    6
 
25
#define YYTD_ID_NXT     8
 
26
 
 
27
#define YYTD_DATA8      1
 
28
#define YYTD_DATA16     2
 
29
#define YYTD_DATA32     4
 
30
 
 
31
struct table_header {
 
32
        uint16_t        td_id;
 
33
        uint16_t        td_flags;
 
34
        uint32_t        td_hilen;
 
35
        uint32_t        td_lolen;
 
36
        char            td_data[];
 
37
/*      char            td_pad64[];*/
 
38
} __attribute__ ((packed));
 
39
 
 
40
#endif