diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-09 08:12:02 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-09 08:12:02 -0400 |
commit | e4f615faf36e0163a5b550df9916a1e6198770b9 (patch) | |
tree | 13c54155e33b228a5a3661a0aea859bfd2de4616 /include/strlist.h | |
parent | 3357f87a5efe478be2433787c29de640dc21b33d (diff) | |
download | stasis-e4f615faf36e0163a5b550df9916a1e6198770b9.tar.gz |
Address shortcomings and bugs flushed out by unit tests
Diffstat (limited to 'include/strlist.h')
-rw-r--r-- | include/strlist.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |