libragephoto: add C++ namespaces (API change)
- RagePhoto::saveFile() -> use const char* instead of std::string - RagePhoto C++ -> C API: try catch for throwable functions (to match C impl. behaviour) - Rename header files and classes
This commit is contained in:
parent
b94e66624b
commit
e1cf6df258
14 changed files with 275 additions and 249 deletions
|
@ -36,10 +36,10 @@ option(RAGEPHOTO_C_LIBRARY "Build libragephoto as C library" OFF)
|
|||
if (RAGEPHOTO_C_LIBRARY)
|
||||
set(RAGEPHOTO_HEADERS
|
||||
src/core/RagePhoto.h
|
||||
src/core/RagePhotoA
|
||||
src/core/RagePhotoA.hpp
|
||||
src/core/RagePhotoB
|
||||
src/core/RagePhotoB.hpp
|
||||
src/core/ragephoto_c
|
||||
src/core/ragephoto_c.hpp
|
||||
src/core/RagePhoto
|
||||
src/core/RagePhoto.hpp
|
||||
src/core/RagePhotoLibrary.h
|
||||
src/core/RagePhotoTypedefs.h
|
||||
)
|
||||
|
@ -48,10 +48,10 @@ if (RAGEPHOTO_C_LIBRARY)
|
|||
)
|
||||
else()
|
||||
set(RAGEPHOTO_HEADERS
|
||||
src/core/ragephoto_cxx
|
||||
src/core/ragephoto_cxx.hpp
|
||||
src/core/RagePhoto
|
||||
src/core/RagePhoto.hpp
|
||||
src/core/RagePhotoB
|
||||
src/core/RagePhotoB.hpp
|
||||
src/core/RagePhotoLibrary.h
|
||||
src/core/RagePhotoTypedefs.h
|
||||
)
|
||||
|
@ -80,8 +80,8 @@ else()
|
|||
set(LIBRAGEPHOTO_API LIBRAGEPHOTO_CXX_C)
|
||||
list(APPEND RAGEPHOTO_HEADERS
|
||||
src/core/RagePhoto.h
|
||||
src/core/RagePhotoA
|
||||
src/core/RagePhotoA.hpp
|
||||
src/core/ragephoto_c
|
||||
src/core/ragephoto_c.hpp
|
||||
)
|
||||
else()
|
||||
set(LIBRAGEPHOTO_API LIBRAGEPHOTO_CXX_ONLY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue