diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-03-01 12:26:15 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-03-01 12:26:15 +0000 |
commit | 37d7ebe5b14540a315bb4d2e4a65b04c456f5700 (patch) | |
tree | 272a14bc9414b2c6d8b079701b8415f30fe38ce4 /tools/libxl/idl.txt | |
parent | 23aba672e7221e1a49a1e9662d4a40ca6d375bd2 (diff) | |
download | xen-37d7ebe5b14540a315bb4d2e4a65b04c456f5700.tar.gz xen-37d7ebe5b14540a315bb4d2e4a65b04c456f5700.tar.bz2 xen-37d7ebe5b14540a315bb4d2e4a65b04c456f5700.zip |
libxl: autogenerate libxl_FOO_init and libxl_FOO_init_FIELD
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/idl.txt')
-rw-r--r-- | tools/libxl/idl.txt | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/tools/libxl/idl.txt b/tools/libxl/idl.txt index 183e4fb4ca..ecd613a0fe 100644 --- a/tools/libxl/idl.txt +++ b/tools/libxl/idl.txt @@ -44,6 +44,22 @@ Type.autogenerate_dispose_fn: (default: True) Indicates if the above named Type.dispose_fn should be autogenerated. +Type.init_val: (default: None) + + C expression for the value to initialise instances of this type to. + + If present takes precendence over init_fn (see below). + +Type.init_fn: (default: typename + "_init" if dir in [IN, BOTH] and + type != None) + + The name of the C function which will initialist Type. + +Type.autogenerate_init_fn: (default: True if dir in [IN, BOTH]) + + Indicates if the above named Type.init_fn should be + autogenerated. + Type.json_fn: (default: typename + "_gen_json" or None if type == None) The name of the C function which will generate a YAJL data structure @@ -105,10 +121,13 @@ idl.Aggregate Each field has the following properties: - Field.type The type of the member (a idl.Type). - Field.name The name of the member (can be None for anonymous - fields). - Field.const Boolean, true if the member is const. + Field.type The type of the member (a idl.Type). + Field.name The name of the member (can be None for anonymous + fields). + Field.const Boolean, true if the member is const. + Field.init_val The initialisation value for this field. Takes + precendence over both Field.type.init_val and + Field.type.init_fn. idl.Struct |