1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

renamed export symbols

This commit is contained in:
Falk Werner 2019-02-25 21:39:41 +01:00
parent cc38995b5f
commit 1b4a3277b6
5 changed files with 16 additions and 16 deletions

View File

@ -77,7 +77,7 @@ add_library(wsfs-adapter SHARED ${WSFS_ADAPTER_SOURCES} ${WSFS_COMMON_SOURCES})
set_target_properties(wsfs-adapter PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(wsfs-adapter PROPERTIES SOVERSION 0)
set_target_properties(wsfs-adapter PROPERTIES C_VISIBILITY_PRESET hidden)
set_target_properties(wsfs-adapter PROPERTIES COMPILE_DEFINITIONS "WSFS_API=WSFS_EXPORT")
set_target_properties(wsfs-adapter PROPERTIES COMPILE_DEFINITIONS "WSFSA_API=WSFSA_EXPORT")
target_include_directories(wsfs-adapter PUBLIC lib ${EXTRA_INCLUDE_DIRS})
target_compile_options(wsfs-adapter PUBLIC ${EXTRA_CFLAGS})

View File

@ -1,15 +1,15 @@
#ifndef WSFS_ADAPTER_API_H
#define WSFS_ADAPTER_API_H
#ifndef WSFS_API
#define WSFS_API
#ifndef WSFSA_API
#define WSFSA_API
#endif
#ifndef WSFS_EXPORT
#ifndef WSFSA_EXPORT
#ifdef __GNUC__
#define WSFS_EXPORT __attribute__ ((visibility ("default")))
#define WSFSA_EXPORT __attribute__ ((visibility ("default")))
#else
#define WSFS_EXPORT
#define WSFSA_EXPORT
#endif
#endif

View File

@ -11,16 +11,16 @@ extern "C"
{
#endif
extern WSFS_API struct wsfs_server * wsfs_server_create(
extern WSFSA_API struct wsfs_server * wsfs_server_create(
struct wsfs_server_config * config);
extern WSFS_API void wsfs_server_dispose(
extern WSFSA_API void wsfs_server_dispose(
struct wsfs_server * server);
extern WSFS_API void wsfs_server_run(
extern WSFSA_API void wsfs_server_run(
struct wsfs_server * server);
extern WSFS_API void wsfs_server_shutdown(
extern WSFSA_API void wsfs_server_shutdown(
struct wsfs_server * server);
#ifdef __cplusplus

View File

@ -18,13 +18,13 @@ extern "C"
{
#endif
extern WSFS_API void wsfs_server_config_init(
extern WSFSA_API void wsfs_server_config_init(
struct wsfs_server_config * config);
extern WSFS_API void wsfs_server_config_cleanup(
extern WSFSA_API void wsfs_server_config_cleanup(
struct wsfs_server_config * config);
extern WSFS_API void wsfs_server_config_clone(
extern WSFSA_API void wsfs_server_config_clone(
struct wsfs_server_config * config,
struct wsfs_server_config * clone);

View File

@ -11,13 +11,13 @@ extern "C"
{
#endif
extern WSFS_API struct wsfs_server_protocol * wsfs_server_protocol_create(
extern WSFSA_API struct wsfs_server_protocol * wsfs_server_protocol_create(
char * mount_point);
extern WSFS_API void wsfs_server_protocol_dispose(
extern WSFSA_API void wsfs_server_protocol_dispose(
struct wsfs_server_protocol * protocol);
extern WSFS_API void wsfs_server_protocol_init_lws(
extern WSFSA_API void wsfs_server_protocol_init_lws(
struct wsfs_server_protocol * protocol,
struct lws_protocols * lws_protocol);