Commit | Line | Data |
---|---|---|
970ed795 | 1 | /////////////////////////////////////////////////////////////////////////////// |
3abe9331 | 2 | // Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | // All rights reserved. This program and the accompanying materials |
4 | // are made available under the terms of the Eclipse Public License v1.0 | |
5 | // which accompanies this distribution, and is available at | |
6 | // http://www.eclipse.org/legal/epl-v10.html | |
7 | /////////////////////////////////////////////////////////////////////////////// | |
8 | #ifndef _ASN1P_H | |
9 | #define _ASN1P_H | |
10 | ||
11 | #include <sys/types.h> | |
12 | ||
13 | typedef struct { | |
14 | const char *dispname; /**< is like "@...foo.bar" */ | |
15 | size_t parent_level; /**< 0 means outermost. */ | |
16 | const char *parent_typename; | |
17 | const char *type_name; | |
18 | char *sourcecode; /**< to access the field */ | |
19 | } AtNotation_t; | |
20 | ||
21 | typedef struct { | |
22 | size_t nElements; | |
23 | AtNotation_t *elements; | |
24 | } AtNotationList_t; | |
25 | ||
26 | typedef struct { | |
27 | const char *alt; /* alternative */ | |
28 | const char *alt_dispname; | |
29 | const char *alt_typename; | |
30 | const char *alt_typedescrname; | |
31 | const char **valuenames; /* !!! */ | |
32 | const char **const_valuenames; /** this replaces valuenames in new | |
33 | BER stuff */ | |
34 | } OpentypeAlternative_t; | |
35 | ||
36 | typedef struct { | |
37 | size_t nElements; | |
38 | OpentypeAlternative_t *elements; | |
39 | } OpentypeAlternativeList_t; | |
40 | ||
41 | typedef struct { | |
42 | AtNotationList_t anl; | |
43 | OpentypeAlternativeList_t oal; | |
44 | } Opentype_t; | |
45 | ||
46 | #endif /* _ASN1P_H */ |