From e4f615faf36e0163a5b550df9916a1e6198770b9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 9 Jun 2024 08:12:02 -0400 Subject: Address shortcomings and bugs flushed out by unit tests --- include/strlist.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/strlist.h') diff --git a/include/strlist.h b/include/strlist.h index 2d3c3cf..3f35e23 100644 --- a/include/strlist.h +++ b/include/strlist.h @@ -44,4 +44,12 @@ struct StrList *strlist_copy(struct StrList *pStrList); int strlist_cmp(struct StrList *a, struct StrList *b); void strlist_free(struct StrList **pStrList); +#define STRLIST_E_SUCCESS 0 +#define STRLIST_E_OUT_OF_RANGE 1 +#define STRLIST_E_INVALID_VALUE 2 +#define STRLIST_E_UNKNOWN 3 +extern int strlist_errno; +const char *strlist_get_error(int flag); + + #endif //OMC_STRLIST_H -- cgit