summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-error.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-15 20:35:22 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-16 23:21:50 -0500
commit0b6c04bb45c3947f32ae5116f8c2a485cd32b734 (patch)
treebc468826feced622bb9314a1ff0f58a130c40431 /src/libsystemd-bus/bus-error.h
parent6241164b73573fdf5beed29f7f200eb88181c07a (diff)
bus: use gperf to map error string to errno
Diffstat (limited to 'src/libsystemd-bus/bus-error.h')
-rw-r--r--src/libsystemd-bus/bus-error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-error.h b/src/libsystemd-bus/bus-error.h
index f6b9824c95..cf0ad9d545 100644
--- a/src/libsystemd-bus/bus-error.h
+++ b/src/libsystemd-bus/bus-error.h
@@ -26,6 +26,14 @@
#include "sd-bus.h"
#include "macro.h"
+struct name_error_mapping {
+ const char* name;
+ int code;
+};
+typedef struct name_error_mapping name_error_mapping;
+
+const name_error_mapping* bus_error_mapping_lookup(const char *str, unsigned int len);
+
bool bus_error_is_dirty(sd_bus_error *e);
const char *bus_error_message(const sd_bus_error *e, int error);