From 0a6170ad8a87e0bae603dd6a128d7bdc91967ab8 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 16 Mar 2008 12:32:56 +0100 Subject: [PATCH] Added defines for yaz_options return values. --- include/yaz/options.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/yaz/options.h b/include/yaz/options.h index ccf6d9c..6fd9cd3 100644 --- a/include/yaz/options.h +++ b/include/yaz/options.h @@ -37,6 +37,7 @@ YAZ_BEGIN_CDECL + /** \brief parser command-line options \arg desc command argument description (allowed options) \arg argv main argv @@ -58,6 +59,9 @@ YAZ_BEGIN_CDECL */ YAZ_EXPORT int options (const char *desc, char **argv, int argc, char **arg); +#define YAZ_OPTIONS_ERROR (-1) +#define YAZ_OPTIONS_EOF (-2) + YAZ_END_CDECL #endif -- 1.7.10.4