X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=1dd8b206e0cbe3c7ad3ffbc77d0f1732f45a8732;hp=e5e2681f3ac3d2957a3c74d1dcea13b4eb3ffce5;hb=3bc55551356532c17403508dfd8466beb2b9db1e;hpb=d186e9d3d371162774d026f85823d9615ac3bbbc diff --git a/src/generator.ml b/src/generator.ml index e5e2681..1dd8b20 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -808,6 +808,31 @@ C is defined and set to C<1>."); "\ Return the command trace flag."); + ("set_direct", (RErr, [Bool "direct"]), -1, [FishAlias "direct"], + [InitNone, Always, TestOutputFalse ( + [["set_direct"; "false"]; + ["get_direct"]])], + "enable or disable direct appliance mode", + "\ +If the direct appliance mode flag is enabled, then stdin and +stdout are passed directly through to the appliance once it +is launched. + +One consequence of this is that log messages aren't caught +by the library and handled by C, +but go straight to stdout. + +You probably don't want to use this unless you know what you +are doing. + +The default is disabled."); + + ("get_direct", (RBool "direct", []), -1, [], + [], + "get direct appliance mode flag", + "\ +Return the direct appliance mode flag."); + ] (* daemon_functions are any functions which cause some action