Add support for part of the Constraint-s

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16357 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-12-06 19:59:52 +00:00
parent fcfe7bc161
commit f1f22c334f

View File

@@ -111,6 +111,10 @@ struct range {
int max; int max;
}; };
enum ctype { CT_CONTENTS, CT_USER } ;
struct constraint_spec;
struct type { struct type {
Typetype type; Typetype type;
struct memhead *members; struct memhead *members;
@@ -118,10 +122,21 @@ struct type {
struct type *subtype; struct type *subtype;
struct tagtype tag; struct tagtype tag;
struct range *range; struct range *range;
struct constraint_spec *constraint;
}; };
typedef struct type Type; typedef struct type Type;
struct constraint_spec {
enum ctype ctype;
union {
struct {
Type *type;
struct value *encoding;
} content;
} u;
};
struct objid { struct objid {
const char *label; const char *label;
int value; int value;