Skip to content

Commit 75a85d6

Browse files
Tidy up some easyaccess functions
1 parent 6f27274 commit 75a85d6

File tree

3 files changed

+48
-10
lines changed

3 files changed

+48
-10
lines changed

src/interface/shared/exv_options.i

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ namespace Exiv2 {
7878
// Macro to not call a function if libexiv2 version is <= 0.27.3
7979
%define EXV_ENABLE_EASYACCESS_FUNCTION(signature)
8080
%fragment("_set_python_exception");
81-
%fragment("set_EXV_ENABLE_FILESYSTEM");
8281
%exception signature {
8382
try {
8483
%#if EXIV2_TEST_VERSION(0, 27, 4)

src/swig-0_27_7/easyaccess_wrap.cxx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4252,15 +4252,6 @@ static void _set_python_exception() {
42524252
return;
42534253
};
42544254

4255-
4256-
#if !EXIV2_TEST_VERSION(0, 28, 3)
4257-
#define EXV_ENABLE_FILESYSTEM
4258-
#endif
4259-
// Copy EXV_ENABLE_FILESYSTEM for use in macro
4260-
#ifdef EXV_ENABLE_FILESYSTEM
4261-
#define _EXV_ENABLE_FILESYSTEM
4262-
#endif
4263-
42644255
#ifdef __cplusplus
42654256
extern "C" {
42664257
#endif

src/swig-0_28_3/easyaccess_wrap.cxx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4367,7 +4367,11 @@ SWIGINTERN PyObject *_wrap_dateTimeOriginal(PyObject *self, PyObject *args) {
43674367

43684368
{
43694369
try {
4370+
#if EXIV2_TEST_VERSION(0, 27, 4)
43704371
result = Exiv2::dateTimeOriginal((Exiv2::ExifData const &)*arg1);
4372+
#else
4373+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
4374+
#endif
43714375
}
43724376
catch(std::exception const& e) {
43734377
_set_python_exception();
@@ -5115,7 +5119,11 @@ SWIGINTERN PyObject *_wrap_shutterSpeedValue(PyObject *self, PyObject *args) {
51155119

51165120
{
51175121
try {
5122+
#if EXIV2_TEST_VERSION(0, 27, 4)
51185123
result = Exiv2::shutterSpeedValue((Exiv2::ExifData const &)*arg1);
5124+
#else
5125+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5126+
#endif
51195127
}
51205128
catch(std::exception const& e) {
51215129
_set_python_exception();
@@ -5159,7 +5167,11 @@ SWIGINTERN PyObject *_wrap_apertureValue(PyObject *self, PyObject *args) {
51595167

51605168
{
51615169
try {
5170+
#if EXIV2_TEST_VERSION(0, 27, 4)
51625171
result = Exiv2::apertureValue((Exiv2::ExifData const &)*arg1);
5172+
#else
5173+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5174+
#endif
51635175
}
51645176
catch(std::exception const& e) {
51655177
_set_python_exception();
@@ -5203,7 +5215,11 @@ SWIGINTERN PyObject *_wrap_brightnessValue(PyObject *self, PyObject *args) {
52035215

52045216
{
52055217
try {
5218+
#if EXIV2_TEST_VERSION(0, 27, 4)
52065219
result = Exiv2::brightnessValue((Exiv2::ExifData const &)*arg1);
5220+
#else
5221+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5222+
#endif
52075223
}
52085224
catch(std::exception const& e) {
52095225
_set_python_exception();
@@ -5247,7 +5263,11 @@ SWIGINTERN PyObject *_wrap_exposureBiasValue(PyObject *self, PyObject *args) {
52475263

52485264
{
52495265
try {
5266+
#if EXIV2_TEST_VERSION(0, 27, 4)
52505267
result = Exiv2::exposureBiasValue((Exiv2::ExifData const &)*arg1);
5268+
#else
5269+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5270+
#endif
52515271
}
52525272
catch(std::exception const& e) {
52535273
_set_python_exception();
@@ -5291,7 +5311,11 @@ SWIGINTERN PyObject *_wrap_maxApertureValue(PyObject *self, PyObject *args) {
52915311

52925312
{
52935313
try {
5314+
#if EXIV2_TEST_VERSION(0, 27, 4)
52945315
result = Exiv2::maxApertureValue((Exiv2::ExifData const &)*arg1);
5316+
#else
5317+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5318+
#endif
52955319
}
52965320
catch(std::exception const& e) {
52975321
_set_python_exception();
@@ -5379,7 +5403,11 @@ SWIGINTERN PyObject *_wrap_lightSource(PyObject *self, PyObject *args) {
53795403

53805404
{
53815405
try {
5406+
#if EXIV2_TEST_VERSION(0, 27, 4)
53825407
result = Exiv2::lightSource((Exiv2::ExifData const &)*arg1);
5408+
#else
5409+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5410+
#endif
53835411
}
53845412
catch(std::exception const& e) {
53855413
_set_python_exception();
@@ -5423,7 +5451,11 @@ SWIGINTERN PyObject *_wrap_flash(PyObject *self, PyObject *args) {
54235451

54245452
{
54255453
try {
5454+
#if EXIV2_TEST_VERSION(0, 27, 4)
54265455
result = Exiv2::flash((Exiv2::ExifData const &)*arg1);
5456+
#else
5457+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5458+
#endif
54275459
}
54285460
catch(std::exception const& e) {
54295461
_set_python_exception();
@@ -5555,7 +5587,11 @@ SWIGINTERN PyObject *_wrap_subjectArea(PyObject *self, PyObject *args) {
55555587

55565588
{
55575589
try {
5590+
#if EXIV2_TEST_VERSION(0, 27, 4)
55585591
result = Exiv2::subjectArea((Exiv2::ExifData const &)*arg1);
5592+
#else
5593+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5594+
#endif
55595595
}
55605596
catch(std::exception const& e) {
55615597
_set_python_exception();
@@ -5599,7 +5635,11 @@ SWIGINTERN PyObject *_wrap_flashEnergy(PyObject *self, PyObject *args) {
55995635

56005636
{
56015637
try {
5638+
#if EXIV2_TEST_VERSION(0, 27, 4)
56025639
result = Exiv2::flashEnergy((Exiv2::ExifData const &)*arg1);
5640+
#else
5641+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5642+
#endif
56035643
}
56045644
catch(std::exception const& e) {
56055645
_set_python_exception();
@@ -5643,7 +5683,11 @@ SWIGINTERN PyObject *_wrap_exposureIndex(PyObject *self, PyObject *args) {
56435683

56445684
{
56455685
try {
5686+
#if EXIV2_TEST_VERSION(0, 27, 4)
56465687
result = Exiv2::exposureIndex((Exiv2::ExifData const &)*arg1);
5688+
#else
5689+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5690+
#endif
56475691
}
56485692
catch(std::exception const& e) {
56495693
_set_python_exception();
@@ -5687,7 +5731,11 @@ SWIGINTERN PyObject *_wrap_sensingMethod(PyObject *self, PyObject *args) {
56875731

56885732
{
56895733
try {
5734+
#if EXIV2_TEST_VERSION(0, 27, 4)
56905735
result = Exiv2::sensingMethod((Exiv2::ExifData const &)*arg1);
5736+
#else
5737+
throw Exiv2::Error(Exiv2::kerFunctionNotSupported);
5738+
#endif
56915739
}
56925740
catch(std::exception const& e) {
56935741
_set_python_exception();

0 commit comments

Comments
 (0)