summaryrefslogtreecommitdiffstats
path: root/src/listfs.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-09 17:47:07 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-11-09 19:50:57 +0000
commita3b6751863b4e7e620dd1b75b4a8d8187d2069a5 (patch)
treee217f7c6b152612453fb0054f16112a610180e77 /src/listfs.c
parent2013e005bd02f5706887c8861f10410ffd82084f (diff)
downloadlibguestfs-a3b6751863b4e7e620dd1b75b4a8d8187d2069a5.tar.gz
libguestfs-a3b6751863b4e7e620dd1b75b4a8d8187d2069a5.tar.xz
libguestfs-a3b6751863b4e7e620dd1b75b4a8d8187d2069a5.zip
lib: Add new C API calls: guestfs_push_error_handler,
guestfs_pop_error_handler. The addition of these calls makes it much simpler to temporarily disable or ignore errors: guestfs_push_error_handler (g, NULL, NULL); guestfs_mkdir (g, "/foo"); /* We don't care if this fails. */ guestfs_pop_error_handler (g); Note these calls are used by the C API only. They are not necessary in other languages, because those map errors to exceptions. The subsequent commits change existing code to use push/pop instead of laboriously saving and restoring the error handler.
Diffstat (limited to 'src/listfs.c')
0 files changed, 0 insertions, 0 deletions