diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2018-03-28 14:57:56 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2018-03-29 13:44:03 +0100 |
commit | a31ccd111b6ff21a1e49806c1e6e0861a9e45446 (patch) | |
tree | f58f53222997ee17b29ae54c0be1e1d01bfe599b /openjpeg/src/bin/common/opj_getopt.h | |
parent | 25971c91d6433b0249d3b721b75ef704afe0a09c (diff) | |
download | ghostpdl-a31ccd111b6ff21a1e49806c1e6e0861a9e45446.tar.gz |
Update OpenJPEG to 2.3.0
Incorporates changes from:
1) Add predefined openjpeg headers.
71242c9a04bb76b8b17fc489d62a91d04c1ad60c
2) Import patches from Sumatra's tree.
8b89e4b5750069172522ecf85e69d094b5e567e7
3) Avoid getenv call in openjpeg
202a0318a7b3a397fcd5d015dcad4293474f464c
Diffstat (limited to 'openjpeg/src/bin/common/opj_getopt.h')
-rw-r--r-- | openjpeg/src/bin/common/opj_getopt.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/openjpeg/src/bin/common/opj_getopt.h b/openjpeg/src/bin/common/opj_getopt.h new file mode 100644 index 000000000..18ac24d46 --- /dev/null +++ b/openjpeg/src/bin/common/opj_getopt.h @@ -0,0 +1,28 @@ +/* last review : october 29th, 2002 */ + +#ifndef _GETOPT_H_ +#define _GETOPT_H_ + +typedef struct opj_option { + const char *name; + int has_arg; + int *flag; + int val; +} opj_option_t; + +#define NO_ARG 0 +#define REQ_ARG 1 +#define OPT_ARG 2 + +extern int opj_opterr; +extern int opj_optind; +extern int opj_optopt; +extern int opj_optreset; +extern char *opj_optarg; + +extern int opj_getopt(int nargc, char *const *nargv, const char *ostr); +extern int opj_getopt_long(int argc, char * const argv[], const char *optstring, + const opj_option_t *longopts, int totlen); +extern void opj_reset_options_reading(void); + +#endif /* _GETOPT_H_ */ |