]> git.ozlabs.org Git - ccan/blobdiff - ccan/aga/aga.h
aga: Error codes
[ccan] / ccan / aga / aga.h
index aa4126a79768d5afe55e9ada39c71b34b684c1b6..867515030a560501ed0c158ec63c406a39a335c7 100644 (file)
@@ -195,6 +195,18 @@ void aga_init_graph_(struct aga_graph *g,
                                (aga_edge_info_fn)(eifn_));             \
        } while (0)
 
+/**
+ * enum aga_error - Error codes for aga routines
+ *
+ * These error codes are returned by aga_error() for errors detected
+ * within aga itself (rather than errors reported by supplied
+ * callbacks, which should be negative
+ */
+enum aga_error {
+       /* No error */
+       AGA_ERR_NONE = 0,
+};
+
 /**
  * aga_error - Determine error state of a graph
  * @g: the graph