summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-error.h
diff options
context:
space:
mode:
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);