From: Adam Dickmeiss Date: Sun, 16 Mar 2008 11:32:56 +0000 (+0100) Subject: Added defines for yaz_options return values. X-Git-Tag: v3.0.30~84 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=0a6170ad8a87e0bae603dd6a128d7bdc91967ab8 Added defines for yaz_options return values. --- 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