summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice-glue/glue.h
AgeCommit message (Collapse)AuthorFilesLines
11 daysWindows: Don't use dllimport; only apply dllexport to DLL objectsGravatar Nikias Bassen1-7/+1
Public headers declared the API macro as __declspec(dllimport) on Windows unless *_STATIC was defined. That made consumers reference __imp_<symbol>, which only exists in the DLL import library, so linking against the static library failed unless the consumer also defined *_STATIC. All exported symbols are functions, so dllimport is not needed: calls to plain symbols link against both the static library and the import library (via its thunks). Drop it from the public headers. On the library side, apply __declspec(dllexport) only when libtool defines DLL_EXPORT, i.e. when compiling the objects for the DLL. This keeps export directives out of the objects that go into the static library when both are built.
2024-12-27Add extern "C" guards to public headersGravatar Nikias Bassen1-0/+8
2024-02-16Add version function to interfaceGravatar Nikias Bassen1-0/+2
2024-01-30Move LIMD_GLUE_API definitions to public headersGravatar Nikias Bassen1-0/+35