projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added defines for yaz_options return values.
[yaz-moved-to-github.git]
/
include
/
yaz
/
options.h
diff --git
a/include/yaz/options.h
b/include/yaz/options.h
index
ccf6d9c
..
6fd9cd3
100644
(file)
--- a/
include/yaz/options.h
+++ b/
include/yaz/options.h
@@
-37,6
+37,7
@@
YAZ_BEGIN_CDECL
YAZ_BEGIN_CDECL
+
/** \brief parser command-line options
\arg desc command argument description (allowed options)
\arg argv main argv
/** \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);
*/
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
YAZ_END_CDECL
#endif