X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=generator%2Fgenerator_actions.ml;h=b409938833af01c34bc91c2533b9b7a8ce2ac031;hb=b4c853f7d493af1d71f352832fed29eb7e377e8f;hp=34a82bda750a396a4de87a125ccd23061f50ea11;hpb=163be3d72a3f3dc902bcd0856d8aec448bc7907f;p=libguestfs.git diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 34a82bd..b409938 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -1276,6 +1276,21 @@ If unavailable this is returned as an empty string C<\"\">. Please read L for more details."); + ("inspect_get_hostname", (RString "hostname", [Device "root"], []), -1, [], + [], + "get hostname of the operating system", + "\ +This function should only be called with a root device string +as returned by C. + +This function returns the hostname of the operating system +as found by inspection of the guest's configuration files. + +If the hostname could not be determined, then the +string C is returned. + +Please read L for more details."); + ] (* daemon_functions are any functions which cause some action