From 44cbd3d4b477f855d46259f7fbc743c0b96c7678 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 12 Oct 2009 01:15:55 +0000 Subject: do DLL_EXPORT only in header files and only at the class or top-level function level git-svn-id: svn+q:///qpdf/trunk@796 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/qpdf-c.cc | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'libqpdf/qpdf-c.cc') diff --git a/libqpdf/qpdf-c.cc b/libqpdf/qpdf-c.cc index 966d3dbb..abc74c95 100644 --- a/libqpdf/qpdf-c.cc +++ b/libqpdf/qpdf-c.cc @@ -33,7 +33,6 @@ _qpdf_data::~_qpdf_data() delete qpdf; } -DLL_EXPORT qpdf_data qpdf_init() { QTC::TC("qpdf", "qpdf-c called qpdf_init"); @@ -42,7 +41,6 @@ qpdf_data qpdf_init() return qpdf; } -DLL_EXPORT void qpdf_cleanup(qpdf_data* qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_cleanup"); @@ -50,14 +48,12 @@ void qpdf_cleanup(qpdf_data* qpdf) *qpdf = 0; } -DLL_EXPORT QPDF_BOOL qpdf_more_errors(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_more_errors"); return (qpdf->error.empty() ? QPDF_FALSE : QPDF_TRUE); } -DLL_EXPORT QPDF_BOOL qpdf_more_warnings(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_more_warnings"); @@ -80,7 +76,6 @@ QPDF_BOOL qpdf_more_warnings(qpdf_data qpdf) } } -DLL_EXPORT char const* qpdf_next_error(qpdf_data qpdf) { if (qpdf_more_errors(qpdf)) @@ -96,7 +91,6 @@ char const* qpdf_next_error(qpdf_data qpdf) } } -DLL_EXPORT char const* qpdf_next_warning(qpdf_data qpdf) { if (qpdf_more_warnings(qpdf)) @@ -112,28 +106,24 @@ char const* qpdf_next_warning(qpdf_data qpdf) } } -DLL_EXPORT void qpdf_set_suppress_warnings(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_suppress_warnings"); qpdf->qpdf->setSuppressWarnings(value); } -DLL_EXPORT void qpdf_set_ignore_xref_streams(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_ignore_xref_streams"); qpdf->qpdf->setIgnoreXRefStreams(value); } -DLL_EXPORT void qpdf_set_attempt_recovery(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_attempt_recovery"); qpdf->qpdf->setAttemptRecovery(value); } -DLL_EXPORT QPDF_ERROR_CODE qpdf_read(qpdf_data qpdf, char const* filename, char const* password) { @@ -155,7 +145,6 @@ QPDF_ERROR_CODE qpdf_read(qpdf_data qpdf, char const* filename, return status; } -DLL_EXPORT char const* qpdf_get_pdf_version(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_get_pdf_version"); @@ -163,7 +152,6 @@ char const* qpdf_get_pdf_version(qpdf_data qpdf) return qpdf->tmp_string.c_str(); } -DLL_EXPORT char const* qpdf_get_user_password(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_get_user_password"); @@ -171,84 +159,72 @@ char const* qpdf_get_user_password(qpdf_data qpdf) return qpdf->tmp_string.c_str(); } -DLL_EXPORT QPDF_BOOL qpdf_is_linearized(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_is_linearized"); return (qpdf->qpdf->isLinearized() ? QPDF_TRUE : QPDF_FALSE); } -DLL_EXPORT QPDF_BOOL qpdf_is_encrypted(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_is_encrypted"); return (qpdf->qpdf->isEncrypted() ? QPDF_TRUE : QPDF_FALSE); } -DLL_EXPORT QPDF_BOOL qpdf_allow_accessibility(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_accessibility"); return qpdf->qpdf->allowAccessibility(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_extract_all(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_extract_all"); return qpdf->qpdf->allowExtractAll(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_print_low_res(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_print_low_res"); return qpdf->qpdf->allowPrintLowRes(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_print_high_res(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_print_high_res"); return qpdf->qpdf->allowPrintHighRes(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_modify_assembly(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_modify_assembly"); return qpdf->qpdf->allowModifyAssembly(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_modify_form(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_modify_form"); return qpdf->qpdf->allowModifyForm(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_modify_annotation(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_modify_annotation"); return qpdf->qpdf->allowModifyAnnotation(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_modify_other(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_modify_other"); return qpdf->qpdf->allowModifyOther(); } -DLL_EXPORT QPDF_BOOL qpdf_allow_modify_all(qpdf_data qpdf) { QTC::TC("qpdf", "qpdf-c called qpdf_allow_modify_all"); return qpdf->qpdf->allowModifyAll(); } -DLL_EXPORT QPDF_ERROR_CODE qpdf_init_write(qpdf_data qpdf, char const* filename) { QPDF_ERROR_CODE status = QPDF_SUCCESS; @@ -275,7 +251,6 @@ QPDF_ERROR_CODE qpdf_init_write(qpdf_data qpdf, char const* filename) return status; } -DLL_EXPORT void qpdf_set_object_stream_mode(qpdf_data qpdf, int mode) { QTC::TC("qpdf", "qpdf-c called qpdf_set_object_stream_mode"); @@ -299,7 +274,6 @@ void qpdf_set_object_stream_mode(qpdf_data qpdf, int mode) qpdf->qpdf_writer->setObjectStreamMode(omode); } -DLL_EXPORT void qpdf_set_stream_data_mode(qpdf_data qpdf, int mode) { QTC::TC("qpdf", "qpdf-c called qpdf_set_stream_data_mode"); @@ -321,28 +295,24 @@ void qpdf_set_stream_data_mode(qpdf_data qpdf, int mode) qpdf->qpdf_writer->setStreamDataMode(smode); } -DLL_EXPORT void qpdf_set_content_normalization(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_content_normalization"); qpdf->qpdf_writer->setContentNormalization(value); } -DLL_EXPORT void qpdf_set_qdf_mode(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_qdf_mode"); qpdf->qpdf_writer->setQDFMode(value); } -DLL_EXPORT void qpdf_set_static_ID(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_static_ID"); qpdf->qpdf_writer->setStaticID(value); } -DLL_EXPORT void qpdf_set_suppress_original_object_IDs( qpdf_data qpdf, QPDF_BOOL value) { @@ -350,14 +320,12 @@ void qpdf_set_suppress_original_object_IDs( qpdf->qpdf_writer->setSuppressOriginalObjectIDs(value); } -DLL_EXPORT void qpdf_set_preserve_encryption(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_preserve_encryption"); qpdf->qpdf_writer->setPreserveEncryption(value); } -DLL_EXPORT void qpdf_set_r2_encryption_parameters( qpdf_data qpdf, char const* user_password, char const* owner_password, QPDF_BOOL allow_print, QPDF_BOOL allow_modify, @@ -369,7 +337,6 @@ void qpdf_set_r2_encryption_parameters( allow_print, allow_modify, allow_extract, allow_annotate); } -DLL_EXPORT void qpdf_set_r3_encryption_parameters( qpdf_data qpdf, char const* user_password, char const* owner_password, QPDF_BOOL allow_accessibility, QPDF_BOOL allow_extract, @@ -389,28 +356,24 @@ void qpdf_set_r3_encryption_parameters( QPDFWriter::r3m_all)); } -DLL_EXPORT void qpdf_set_linearization(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_linearization"); qpdf->qpdf_writer->setLinearization(value); } -DLL_EXPORT void qpdf_set_minimum_pdf_version(qpdf_data qpdf, char const* version) { QTC::TC("qpdf", "qpdf-c called qpdf_set_minimum_pdf_version"); qpdf->qpdf_writer->setMinimumPDFVersion(version); } -DLL_EXPORT void qpdf_force_pdf_version(qpdf_data qpdf, char const* version) { QTC::TC("qpdf", "qpdf-c called qpdf_force_pdf_version"); qpdf->qpdf_writer->forcePDFVersion(version); } -DLL_EXPORT QPDF_ERROR_CODE qpdf_write(qpdf_data qpdf) { QPDF_ERROR_CODE status = QPDF_SUCCESS; -- cgit v1.2.3-54-g00ecf