-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If needed, a dummy CurlIo class is used so SWIG generated files with EXV_USE_CURL enabled can be linked with libexiv2 built with EXV_USE_CURL disabled. Similarly SWIG generated files with EXV_USE_CURL disabled can be linked with libexiv2 built with EXV_USE_CURL enabled.
- Loading branch information
1 parent
a1e64cf
commit bf8838b
Showing
20 changed files
with
3,410 additions
and
1,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// python-exiv2 - Python interface to libexiv2 | ||
// http://github.com/jim-easterbrook/python-exiv2 | ||
// Copyright (C) 2024 Jim Easterbrook [email protected] | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
// Replacement for CurlIo missing from linked libexiv2 | ||
// First ifdef EXV_USE_CURL detects SWIGging with EXV_USE_CURL set | ||
// Second ifndef EXV_USE_CURL detects compiling with EXV_USE_CURL unset | ||
#ifdef EXV_USE_CURL | ||
%{ | ||
#ifndef EXV_USE_CURL | ||
namespace Exiv2 { | ||
class CurlIo : public RemoteIo { | ||
public: | ||
CurlIo(const std::string& url, size_t blockSize=0) { | ||
throw std::runtime_error( | ||
"CurlIo not enabled in linked libexiv2"); | ||
}; | ||
}; | ||
} | ||
#endif | ||
%} | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.