summaryrefslogtreecommitdiff
path: root/p11-kit/uri.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-05-13 22:27:07 +0200
committerStef Walter <stefw@gnome.org>2012-05-13 22:27:07 +0200
commitcaa953cba4d2d0cdd4823eb2f1c4f24bbf18a231 (patch)
treef303e5018500104b9d807628f196d5baf2c9336f /p11-kit/uri.h
parent7bd4114182fcc86cd2515708fdf4d76622e0237d (diff)
Preconditions to check for input probs and out of memory
* We don't try to guarantee completely robust and problem free behavior in cases where the caller or process isn't behaving. We consider these to be outside of our control.
Diffstat (limited to 'p11-kit/uri.h')
-rw-r--r--p11-kit/uri.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/p11-kit/uri.h b/p11-kit/uri.h
index 98a233d..7e03349 100644
--- a/p11-kit/uri.h
+++ b/p11-kit/uri.h
@@ -46,7 +46,7 @@ extern "C" {
typedef enum {
P11_KIT_URI_OK = 0,
- P11_KIT_URI_NO_MEMORY = -1,
+ P11_KIT_URI_UNEXPECTED = -1,
P11_KIT_URI_BAD_SCHEME = -2,
P11_KIT_URI_BAD_ENCODING = -3,
P11_KIT_URI_BAD_SYNTAX = -4,
@@ -54,6 +54,8 @@ typedef enum {
P11_KIT_URI_NOT_FOUND = -6,
} P11KitUriResult;
+#define P11_KIT_URI_NO_MEMORY P11_KIT_URI_UNEXPECTED
+
typedef enum {
P11_KIT_URI_FOR_OBJECT = (1 << 1),
P11_KIT_URI_FOR_TOKEN = (1 << 2),