aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-10-23 18:50:22 +0200
committerJay Berkenbilt <ejb@ql.org>2009-10-23 18:50:22 +0200
commitb1702fb16ca6df341a4b784476904e28025c17f1 (patch)
treed0d286d82e33b4bbb58a11cc40c527bf40ded62a /include
parentcfc1f6fcac1f55aaca02792c69f130e6fde5c2d5 (diff)
downloadqpdf-b1702fb16ca6df341a4b784476904e28025c17f1.tar.zst
more tweaking of C error interface
git-svn-id: svn+q:///qpdf/trunk@894 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/Constants.h3
-rw-r--r--include/qpdf/qpdf-c.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/qpdf/Constants.h b/include/qpdf/Constants.h
index d74cace3..c3c6fce2 100644
--- a/include/qpdf/Constants.h
+++ b/include/qpdf/Constants.h
@@ -17,7 +17,8 @@
enum qpdf_error_code_e
{
- qpdf_e_internal = 1, /* logic/programming error -- indicates bug */
+ qpdf_e_success = 0,
+ qpdf_e_internal, /* logic/programming error -- indicates bug */
qpdf_e_system, /* I/O error, memory error, etc. */
qpdf_e_unsupported, /* PDF feature not (yet) supported by qpdf */
qpdf_e_password, /* incorrect password for encrypted file */
diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h
index 492a72ba..4b000a24 100644
--- a/include/qpdf/qpdf-c.h
+++ b/include/qpdf/qpdf-c.h
@@ -142,8 +142,7 @@ extern "C" {
char const* qpdf_get_error_full_text(qpdf_data q, qpdf_error e);
/* Use these functions to extract individual fields from the
- * error; see QPDFExc.hh for details. It is invalid for e to be a
- * null pointer for any of these calls. */
+ * error; see QPDFExc.hh for details. */
QPDF_DLL
enum qpdf_error_code_e qpdf_get_error_code(qpdf_data q, qpdf_error e);
QPDF_DLL