diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-19 16:32:10 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-20 09:11:29 +0000 |
commit | c7dff02ccbb6bbe505c73df5d83bea8afdc188c3 (patch) | |
tree | 3b8af721a0c9c67b39c9f770db59273475f8f964 /daemon | |
parent | b8fc61bd9b87f9d55d37cd52f584f7706b2af078 (diff) | |
download | libguestfs-c7dff02ccbb6bbe505c73df5d83bea8afdc188c3.tar.gz libguestfs-c7dff02ccbb6bbe505c73df5d83bea8afdc188c3.tar.xz libguestfs-c7dff02ccbb6bbe505c73df5d83bea8afdc188c3.zip |
inspection: Set last errno to ENOTSUP when inspection APIs are not available.
Previously there was no programmatic way to tell if inspection APIs
were unavailable because they are not compiled in (because hivex isn't
around). This contrasts with daemon APIs where the availability is
covered by the guestfs_available API.
Change the inspection APIs so that when they are not available, the
last errno is set to ENOTSUP. (Note that ENOTSUP must be defined on
all POSIX platforms).
This allows programs to detect if they are using a version of
libguestfs that was compiled without support for inspection, without
having to parse error messages.
Diffstat (limited to 'daemon')
0 files changed, 0 insertions, 0 deletions