X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2Fgenerator_types.ml;h=a480aac9742e45f842ea54c59f8223b30972fe2a;hb=403ac796a5067ac558ceca2409270eb55b477299;hp=262fb2057193e12cbdefcd444ab436e910b1f867;hpb=14490c3e1aac61c6ac90f28828896683f64f0dc9;p=libguestfs.git diff --git a/generator/generator_types.ml b/generator/generator_types.ml index 262fb20..a480aac 100644 --- a/generator/generator_types.ml +++ b/generator/generator_types.ml @@ -185,6 +185,23 @@ and argt = *) | FileIn of string | FileOut of string + (* This specifies an opaque pointer that is passed through + * untouched. Only non-daemon functions are supported. + * + * Pointer ("foo *", "bar") translates to "foo *bar" in the + * C API. The pointer ("bar") cannot be NULL. + * + * This is less well supported in other language bindings: + * if the pointer type is known then we may be able to produce + * a suitable binding, otherwise this is translated into a 64 + * bit int. + * + * Functions with this parameter type are not supported at all + * in guestfish (the function must be declared "NotInFish" else + * you will get an error). Also the function cannot contain + * tests, although we should fix this in future. + *) + | Pointer of (string * string) type flags = | ProtocolLimitWarning (* display warning about protocol size limits *)