diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-12 12:50:49 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-12 12:50:49 +0100 |
commit | 9286f556c6a9e6967fcac8aacdae3660821c4c7a (patch) | |
tree | 944f0429a1e046a7bf247eb9f02529d8ef26b4c5 /java/t/GuestFS080OptArgs.java | |
parent | e80f3687322f91642e8d196de38892174f8c648a (diff) | |
download | libguestfs-9286f556c6a9e6967fcac8aacdae3660821c4c7a.tar.gz libguestfs-9286f556c6a9e6967fcac8aacdae3660821c4c7a.tar.xz libguestfs-9286f556c6a9e6967fcac8aacdae3660821c4c7a.zip |
generator: Add c_function (C function name) to each action struct.
This field, which is generated internally by the generator, is the
name of the C function corresponding to each action.
For actions that have NO optional arguments, it's just "guestfs_<name>".
For actions that have any optional arguments, it is
"guestfs_<name>_argv" (since any binding has to construct the optional
argument struct explicitly).
In a future commit, this mapping may become more complex.
This commit also "fixes" the C# bindings which didn't handle optional
arguments properly at all. In fact, it doesn't fix this, it just
changes it enough that it probably now compiles. We should either
compile and test the bindings routinely with Mono, or drop them, since
they are starting to bit-rot.
In the GObject bindings, I have added a space between the C function
name and the first paren.
Apart from the C# and GObject changes, this is just code motion. It
was verified by diffing the output of the generator before and after.
Diffstat (limited to 'java/t/GuestFS080OptArgs.java')
0 files changed, 0 insertions, 0 deletions