diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-07 19:28:30 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-08 15:11:07 +0000 |
commit | 1521c64102c36ec4ab75529d246c92802d3f310c (patch) | |
tree | 0d0ea513b293fe50a882e17f448559212f2540fa /daemon/debug.c | |
parent | f3240bc31e9de78eb40f34841e06a42fc7a81fe7 (diff) | |
download | libguestfs-1521c64102c36ec4ab75529d246c92802d3f310c.tar.gz libguestfs-1521c64102c36ec4ab75529d246c92802d3f310c.tar.xz libguestfs-1521c64102c36ec4ab75529d246c92802d3f310c.zip |
generator: Introduce error code (errcode) concept.
There was a lot of repeated code to map return types (eg. RErr)
to error cases (eg. -1 or NULL).
This commit introduces an error code type and two functions to
map return types to error codes and error codes to strings.
Cherry picked from commit 8037da06feea097716ce700f38c0eac0d5411a7c
and rebased against stable 1.8 branch.
Diffstat (limited to 'daemon/debug.c')
0 files changed, 0 insertions, 0 deletions