X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=97dc6ac4e43708cc053eb769e9bc271cdbd09aba;hp=fcac9f839803044cc8f02a60c98724df766abc03;hb=b8b0c99b46172712aa190f70182734934587af7b;hpb=0f24424f357e854a9da382de11e4fe81305c8743 diff --git a/src/generator.ml b/src/generator.ml index fcac9f8..97dc6ac 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -9981,6 +9981,24 @@ L. For further discussion on this topic, refer to L. +=head1 STORING DATA IN THE HANDLE + +The handle returned from L is a hash reference. The hash +normally contains a single element: + + { + _g => [private data used by libguestfs] + } + +Callers can add other elements to this hash to store data for their own +purposes. The data lasts for the lifetime of the handle. + +Any fields whose names begin with an underscore are reserved +for private use by libguestfs. We may add more in future. + +It is recommended that callers prefix the name of their field(s) +with some unique string, to avoid conflicts with other users. + =head1 COPYRIGHT Copyright (C) %s Red Hat Inc.