X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foptions.h;h=6fd9cd360822e3f5397458a63ebc7f666608b4d7;hb=0a6170ad8a87e0bae603dd6a128d7bdc91967ab8;hp=ccf6d9c15b7807a63b14bb8d0b09d5452d392278;hpb=9495b9ae90634603fb390ff56da459e3c8137a63;p=yaz-moved-to-github.git 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