X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xcbgen%2Fexpr.py;h=f9d5179f0529ba8959a69fe0834a96994e4dab12;hb=84bfd909bc3774a459b11614cfebeaa584a1eb38;hp=274c29089b0be51e7b43535346221e6567904e11;hpb=c4497cdbf0640c376cdebb0a9e5ea62458e6ba51;p=free-sw%2Fxcb%2Fproto diff --git a/xcbgen/expr.py b/xcbgen/expr.py index 274c290..f9d5179 100644 --- a/xcbgen/expr.py +++ b/xcbgen/expr.py @@ -11,14 +11,17 @@ class Field(object): visible is true iff the field should be in the request API. wire is true iff the field should be in the request structure. auto is true iff the field is on the wire but not in the request API (e.g. opcode) + enum is the enum name this field refers to, if any. ''' - def __init__(self, type, field_type, field_name, visible, wire, auto): + def __init__(self, type, field_type, field_name, visible, wire, auto, enum=None, isfd=False): self.type = type self.field_type = field_type self.field_name = field_name + self.enum = enum self.visible = visible self.wire = wire self.auto = auto + self.isfd = isfd class Expression(object):