diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index a65cbd9fcc..e18c983fd0 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -12,7 +12,7 @@ on: - .github/workflows/c.yaml jobs: coverage: - name: Test + name: Code Coverage runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -38,8 +38,19 @@ jobs: bash <(curl -s https://codecov.io/bash) -s c/build || echo "Codecov did not collect coverage reports"; - gcc6-release: - name: GCC6 - Release + ubuntu-lts: + strategy: + matrix: + build_type: [ "Debug", "Release" ] + compiler: [ + { c: "gcc-6", cxx: "g++-6", package: "gcc-6 g++-6" }, + { c: "clang-6.0", cxx: "clang++-6.0", package: "clang-6.0" } + ] + build_shared_libraries: [ true, false ] + exclude: [ + { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: false } + ] + name: "Ubuntu 18.04 (Build: ${{ matrix.build_type }}, Compilers: ${{ matrix.compiler.c }}/${{ matrix.compiler.cxx }}, Shared Library: ${{ matrix.build_shared_libraries }})" runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -50,81 +61,68 @@ jobs: - name: Setup run: | sudo apt-get -qq update - sudo apt-get -qq install libeigen3-dev libserialport-dev + sudo apt-get -qq install libeigen3-dev libserialport-dev ${{ matrix.compiler.package }} - - name: Run tests - run: make test-c - env: - CMAKEFLAGS: -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true - - - name: Build examples - run: make -C c/build examples + - name: Configure + run: | + cmake -S c -B build \ + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DCMAKE_C_COMPILER=${{ matrix.compiler.c }} \ + -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} \ + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} \ + -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" \ + -DINSTALL_GTEST=false \ + -DBUILD_EXAMPLES=true + - name: Build + run: cmake --build build - clang6-debug: - name: Clang6 - Debug - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 + - name: Example + run: cmake --build build --target examples - - name: Setup - run: | - sudo apt-get -qq update - sudo apt-get -qq install clang-6.0 libeigen3-dev libserialport-dev + - name: Test + run: cmake --build build --target do-all-tests - - name: Run tests - run: make test-c - env: - CMAKEFLAGS: -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXAMPLES=true - CC: clang-6.0 - CXX: clang++-6.0 + - name: Install + run: cmake --build build --target install - - name: Build examples - run: make -C c/build examples + - name: Test Package + run: | + cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install" + cmake --build c/test_package/build - clang6-release: - name: Clang6 - Release - runs-on: ubuntu-18.04 + macos: + name: macOS Catalina + runs-on: macos-10.15 steps: - uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0 - - name: Setup + - name: Configure run: | - sudo apt-get -qq update - sudo apt-get -qq install clang-6.0 libeigen3-dev libserialport-dev - - - name: Run tests - run: make test-c - env: - CMAKEFLAGS: -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true - CC: clang-6.0 - CXX: clang++-6.0 + cmake -S c -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" \ + -DINSTALL_GTEST=false - - name: Build examples - run: make -C c/build examples + - name: Build + run: cmake --build build + - name: Test + run: cmake --build build --target do-all-tests - macos: - name: macos - runs-on: macos-10.15 - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 + - name: Install + run: cmake --build build --target install - - name: Run tests - run: make test-c - env: - CC: clang - CXX: clang++ + - name: Test Package + run: | + cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install" + cmake --build c/test_package/build big-endian: @@ -150,42 +148,43 @@ jobs: CMAKEFLAGS: -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-static" -Dgtest_disable_pthreads=ON - windows-minGW: - name: Windows MinGW + windows-2019: + strategy: + matrix: + generator: [ "MinGW Makefiles", "Visual Studio 16 2019" ] + build_shared_libraries: [ true, false ] + name: "Windows 2019 (Generator: ${{ matrix.generator }}, Shared Library: ${{ matrix.build_shared_libraries }})" runs-on: windows-2019 steps: - - uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0 - name: Configure - run: cmake -G "MinGW Makefiles" -S c -B build + run: | + cmake -G "${{ matrix.generator }}" -S c -B build ` + -DCMAKE_BUILD_TYPE=Release ` + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} ` + -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" ` + -Dgtest_force_shared_crt=true ` + -DINSTALL_GTEST=false - name: Build - run: cmake --build build --target all - - - name: Test - run: cmake --build build --target do-all-tests + run: cmake --build build + - name: Build Test + run: cmake --build build --target build-all-tests - windows-vs-2019: - name: Windows VS 2019 - runs-on: windows-2019 - steps: - - - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 - - - name: Configure - run: cmake -G "Visual Studio 16 2019" -S c -B build -D gtest_force_shared_crt=true + - name: Run Test + run: cmake --build build --target do-all-tests + if: ${{ !matrix.build_shared_libraries }} - - name: Build - run: cmake --build build --target ALL_BUILD + - name: Install + run: cmake --build build --target install - - name: Test - run: cmake --build build --target do-all-tests + - name: Test Package + run: | + cmake -G "${{ matrix.generator }}" -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install" + cmake --build c/test_package/build diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt index 254425d302..eb3ed6d7e9 100644 --- a/c/CMakeLists.txt +++ b/c/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.12) project(libsbp C CXX) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake" "${CMAKE_CURRENT_LIST_DIR}/cmake/common") diff --git a/c/include/libsbp/common.h b/c/include/libsbp/common.h index 26d203e453..bc00177df6 100644 --- a/c/include/libsbp/common.h +++ b/c/include/libsbp/common.h @@ -109,6 +109,7 @@ typedef struct sbp_msg_callbacks_node sbp_msg_callbacks_node_t; #define SBP_DEPRECATED __attribute__((deprecated)) #define SBP_ATTR_FORMAT(fmt,args) __attribute__((format(printf,fmt,args))) #define SBP_ATTR_VFORMAT(fmt) __attribute__((format(printf,fmt,0))) +#define SBP_EXPORT __attribute__((visibility("default"))) #elif defined(_MSC_VER) @@ -120,6 +121,14 @@ typedef struct sbp_msg_callbacks_node sbp_msg_callbacks_node_t; #define SBP_ATTR_FORMAT(fmt,args) #define SBP_ATTR_VFORMAT(fmt) +#if !defined(_WINDLL) +#define SBP_EXPORT +#elif defined(sbp_EXPORTS) +#define SBP_EXPORT __declspec(dllexport) +#else +#define SBP_EXPORT __declspec(dllimport) +#endif + #elif defined(__ghs__) #define SBP_PACK_START /* Intentionally empty */ @@ -129,6 +138,7 @@ typedef struct sbp_msg_callbacks_node sbp_msg_callbacks_node_t; #define SBP_DEPRECATED /* Intentionally empty */ #define SBP_ATTR_FORMAT(fmt,args) #define SBP_ATTR_VFORMAT(fmt) +#define SBP_EXPORT /* Intentionally empty */ #else diff --git a/c/include/libsbp/cpp/message_handler.h b/c/include/libsbp/cpp/message_handler.h index d6a76bc3de..a48c6802be 100644 --- a/c/include/libsbp/cpp/message_handler.h +++ b/c/include/libsbp/cpp/message_handler.h @@ -13,11 +13,12 @@ #ifndef SBP_CPP_MESSAGE_HANDLER_H_ #define SBP_CPP_MESSAGE_HANDLER_H_ -#include #include +#include +#include -#include #include +#include namespace sbp { @@ -145,7 +146,7 @@ class CallbackInterface { * @tparam MsgTypes List of SBP message types to register callbacks for */ template - class MessageHandler : public details::CallbackInterface { +class MessageHandler : public details::CallbackInterface { static constexpr size_t kMsgCount = sizeof...(MsgTypes); State &state_; diff --git a/c/include/libsbp/edc.h b/c/include/libsbp/edc.h index bfeb3c55ad..861799a0dc 100644 --- a/c/include/libsbp/edc.h +++ b/c/include/libsbp/edc.h @@ -19,7 +19,7 @@ extern "C" { #endif -u16 crc16_ccitt(const u8 *buf, u32 len, u16 crc); +SBP_EXPORT u16 crc16_ccitt(const u8 *buf, u32 len, u16 crc); #ifdef __cplusplus } diff --git a/c/include/libsbp/legacy/api.h b/c/include/libsbp/legacy/api.h index 961275f897..287d75af84 100644 --- a/c/include/libsbp/legacy/api.h +++ b/c/include/libsbp/legacy/api.h @@ -41,7 +41,7 @@ typedef void (*sbp_frame_callback_t)(u16 sender_id, u16 msg_type, * `SBP_CALLBACK_ERROR` if the callback was already * registered for that message type. */ -s8 sbp_payload_callback_register(sbp_state_t* s, u16 msg_type, sbp_msg_callback_t cb, void* context, +SBP_EXPORT s8 sbp_payload_callback_register(sbp_state_t* s, u16 msg_type, sbp_msg_callback_t cb, void* context, sbp_msg_callbacks_node_t *node); /** Register a frame callback for a msg_type. @@ -56,7 +56,7 @@ s8 sbp_payload_callback_register(sbp_state_t* s, u16 msg_type, sbp_msg_callback_ * `SBP_CALLBACK_ERROR` if the if callback was already * registered for that message type. */ -s8 sbp_frame_callback_register(sbp_state_t* s, u16 msg_type, +SBP_EXPORT s8 sbp_frame_callback_register(sbp_state_t* s, u16 msg_type, sbp_frame_callback_t cb, void* context, sbp_msg_callbacks_node_t *node); @@ -69,7 +69,7 @@ s8 sbp_frame_callback_register(sbp_state_t* s, u16 msg_type, * \return `SBP_OK` (0) if successful, `SBP_NULL_ERROR` if a usage error, * `SBP_CALLBACK_ERROR` if the node already exists */ -s8 sbp_all_payload_callback_register(sbp_state_t *s, sbp_frame_callback_t cb, +SBP_EXPORT s8 sbp_all_payload_callback_register(sbp_state_t *s, sbp_frame_callback_t cb, void *context, sbp_msg_callbacks_node_t *node); /** Directly process an SBP frame. @@ -92,7 +92,7 @@ s8 sbp_all_payload_callback_register(sbp_state_t *s, sbp_frame_callback_t cb, * SBP_OK_CALLBACK_UNDEFINED` (2) if message decoded with no * associated callback. */ -s8 sbp_frame_process(sbp_state_t *s, u16 sender_id, u16 msg_type, +SBP_EXPORT s8 sbp_frame_process(sbp_state_t *s, u16 sender_id, u16 msg_type, u8 payload_len, u8 payload[], u16 frame_len, u8 frame[], u8 cb_mask); /** Directly process an SBP message. @@ -108,7 +108,7 @@ s8 sbp_frame_process(sbp_state_t *s, u16 sender_id, u16 msg_type, * `SBP_OK_CALLBACK_UNDEFINED` (2) if message decoded with no associated * callback. */ -s8 sbp_payload_process(sbp_state_t *s, u16 sender_id, u16 msg_type, u8 msg_len, +SBP_EXPORT s8 sbp_payload_process(sbp_state_t *s, u16 sender_id, u16 msg_type, u8 msg_len, u8 payload[]); /** Send SBP messages. @@ -140,7 +140,7 @@ s8 sbp_payload_process(sbp_state_t *s, u16 sender_id, u16 msg_type, u8 msg_len, * \return `SBP_OK` (0) if successful, `SBP_WRITE_ERROR` if the message could * not be sent or was only partially sent. */ -s8 sbp_payload_send(sbp_state_t *s, u16 msg_type, u16 sender_id, u8 len, u8 *payload, +SBP_EXPORT s8 sbp_payload_send(sbp_state_t *s, u16 msg_type, u16 sender_id, u8 len, u8 *payload, sbp_write_fn_t write); #ifdef __cplusplus diff --git a/c/include/libsbp/legacy/cpp/frame_handler.h b/c/include/libsbp/legacy/cpp/frame_handler.h index e211cb85f7..6609180ac1 100644 --- a/c/include/libsbp/legacy/cpp/frame_handler.h +++ b/c/include/libsbp/legacy/cpp/frame_handler.h @@ -13,8 +13,9 @@ #ifndef SBP_LEGACY_CPP_FRAME_HANDLER_H #define SBP_LEGACY_CPP_FRAME_HANDLER_H -#include #include +#include +#include #include #include @@ -193,4 +194,4 @@ class AllFrameHandler { } /* namespace sbp */ -#endif /* SBP_LEGACY_CPP_MESSAGE_HANDLER_H */ +#endif /* SBP_LEGACY_CPP_FRAME_HANDLER_H */ diff --git a/c/include/libsbp/legacy/cpp/payload_handler.h b/c/include/libsbp/legacy/cpp/payload_handler.h index ef38634689..67cbbd31c1 100644 --- a/c/include/libsbp/legacy/cpp/payload_handler.h +++ b/c/include/libsbp/legacy/cpp/payload_handler.h @@ -143,7 +143,7 @@ class PayloadCallbackInterface { * @tparam MsgTypes List of SBP message types to register callbacks for */ template - class PayloadHandler : public details::PayloadCallbackInterface { +class PayloadHandler : public details::PayloadCallbackInterface { static constexpr std::size_t kMsgCount = sizeof...(MsgTypes); State &state_; diff --git a/c/include/libsbp/sbp.h b/c/include/libsbp/sbp.h index 1c2b307678..b3e6a0912a 100644 --- a/c/include/libsbp/sbp.h +++ b/c/include/libsbp/sbp.h @@ -148,11 +148,11 @@ struct sbp_state { /** \} */ -s8 sbp_remove_callback(sbp_state_t *s, sbp_msg_callbacks_node_t *node); -void sbp_clear_callbacks(sbp_state_t* s); -void sbp_state_init(sbp_state_t *s); -void sbp_state_set_io_context(sbp_state_t *s, void* context); -s8 sbp_process(sbp_state_t *s, sbp_read_fn_t read); +SBP_EXPORT s8 sbp_remove_callback(sbp_state_t *s, sbp_msg_callbacks_node_t *node); +SBP_EXPORT void sbp_clear_callbacks(sbp_state_t* s); +SBP_EXPORT void sbp_state_init(sbp_state_t *s); +SBP_EXPORT void sbp_state_set_io_context(sbp_state_t *s, void* context); +SBP_EXPORT s8 sbp_process(sbp_state_t *s, sbp_read_fn_t read); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/AcqSvProfile.h b/c/include/libsbp/v4/acquisition/AcqSvProfile.h index e3e5c92227..18e59f4d1e 100644 --- a/c/include/libsbp/v4/acquisition/AcqSvProfile.h +++ b/c/include/libsbp/v4/acquisition/AcqSvProfile.h @@ -138,8 +138,9 @@ static inline size_t sbp_acq_sv_profile_encoded_len( * @param msg Instance of sbp_acq_sv_profile_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_acq_sv_profile_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_acq_sv_profile_t *msg); +SBP_EXPORT s8 sbp_acq_sv_profile_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_acq_sv_profile_t *msg); /** * Decode an instance of sbp_acq_sv_profile_t from wire representation @@ -156,8 +157,9 @@ s8 sbp_acq_sv_profile_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_acq_sv_profile_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_acq_sv_profile_t *msg); +SBP_EXPORT s8 sbp_acq_sv_profile_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_acq_sv_profile_t *msg); /** * Compare two instances of sbp_acq_sv_profile_t @@ -174,8 +176,8 @@ s8 sbp_acq_sv_profile_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_acq_sv_profile_t instance * @return 0, <0, >0 */ -int sbp_acq_sv_profile_cmp(const sbp_acq_sv_profile_t *a, - const sbp_acq_sv_profile_t *b); +SBP_EXPORT int sbp_acq_sv_profile_cmp(const sbp_acq_sv_profile_t *a, + const sbp_acq_sv_profile_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h b/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h index 547b0014a8..8b7d5ce3df 100644 --- a/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h +++ b/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h @@ -136,8 +136,9 @@ static inline size_t sbp_acq_sv_profile_dep_encoded_len( * @param msg Instance of sbp_acq_sv_profile_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_acq_sv_profile_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_acq_sv_profile_dep_t *msg); +SBP_EXPORT s8 +sbp_acq_sv_profile_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_acq_sv_profile_dep_t *msg); /** * Decode an instance of sbp_acq_sv_profile_dep_t from wire representation @@ -154,9 +155,9 @@ s8 sbp_acq_sv_profile_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_acq_sv_profile_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_acq_sv_profile_dep_t *msg); +SBP_EXPORT s8 sbp_acq_sv_profile_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_acq_sv_profile_dep_t *msg); /** * Compare two instances of sbp_acq_sv_profile_dep_t @@ -173,8 +174,8 @@ s8 sbp_acq_sv_profile_dep_decode(const uint8_t *buf, uint8_t len, * @param b sbp_acq_sv_profile_dep_t instance * @return 0, <0, >0 */ -int sbp_acq_sv_profile_dep_cmp(const sbp_acq_sv_profile_dep_t *a, - const sbp_acq_sv_profile_dep_t *b); +SBP_EXPORT int sbp_acq_sv_profile_dep_cmp(const sbp_acq_sv_profile_dep_t *a, + const sbp_acq_sv_profile_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h index 32ea2d4f82..f577c12359 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h @@ -99,8 +99,9 @@ static inline size_t sbp_msg_acq_result_encoded_len( * @param msg Instance of sbp_msg_acq_result_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_acq_result_t *msg); +SBP_EXPORT s8 sbp_msg_acq_result_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_acq_result_t *msg); /** * Decode an instance of sbp_msg_acq_result_t from wire representation @@ -117,8 +118,9 @@ s8 sbp_msg_acq_result_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_acq_result_t *msg); +SBP_EXPORT s8 sbp_msg_acq_result_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_acq_result_t *msg); /** * Send an instance of sbp_msg_acq_result_t with the given write function * @@ -135,9 +137,9 @@ s8 sbp_msg_acq_result_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_acq_result_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_acq_result_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_acq_result_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_acq_result_t @@ -154,8 +156,8 @@ s8 sbp_msg_acq_result_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_acq_result_t instance * @return 0, <0, >0 */ -int sbp_msg_acq_result_cmp(const sbp_msg_acq_result_t *a, - const sbp_msg_acq_result_t *b); +SBP_EXPORT int sbp_msg_acq_result_cmp(const sbp_msg_acq_result_t *a, + const sbp_msg_acq_result_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_A.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_A.h index d4b2836bcc..48908fc9f6 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_A.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_A.h @@ -97,9 +97,9 @@ static inline size_t sbp_msg_acq_result_dep_a_encoded_len( * @param msg Instance of sbp_msg_acq_result_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_acq_result_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_acq_result_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_acq_result_dep_a_t *msg); /** * Decode an instance of sbp_msg_acq_result_dep_a_t from wire representation @@ -116,9 +116,9 @@ s8 sbp_msg_acq_result_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_acq_result_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_acq_result_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_acq_result_dep_a_t *msg); /** * Send an instance of sbp_msg_acq_result_dep_a_t with the given write function * @@ -135,9 +135,9 @@ s8 sbp_msg_acq_result_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_acq_result_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_acq_result_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_acq_result_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_acq_result_dep_a_t @@ -154,8 +154,8 @@ s8 sbp_msg_acq_result_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_acq_result_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_acq_result_dep_a_cmp(const sbp_msg_acq_result_dep_a_t *a, - const sbp_msg_acq_result_dep_a_t *b); +SBP_EXPORT int sbp_msg_acq_result_dep_a_cmp( + const sbp_msg_acq_result_dep_a_t *a, const sbp_msg_acq_result_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_B.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_B.h index 38174fdba4..8808daf0c4 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_B.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_B.h @@ -97,9 +97,9 @@ static inline size_t sbp_msg_acq_result_dep_b_encoded_len( * @param msg Instance of sbp_msg_acq_result_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_b_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_acq_result_dep_b_t *msg); +SBP_EXPORT s8 +sbp_msg_acq_result_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_acq_result_dep_b_t *msg); /** * Decode an instance of sbp_msg_acq_result_dep_b_t from wire representation @@ -116,9 +116,9 @@ s8 sbp_msg_acq_result_dep_b_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_acq_result_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_acq_result_dep_b_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_acq_result_dep_b_t *msg); /** * Send an instance of sbp_msg_acq_result_dep_b_t with the given write function * @@ -135,9 +135,9 @@ s8 sbp_msg_acq_result_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_acq_result_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_acq_result_dep_b_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_acq_result_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_acq_result_dep_b_t @@ -154,8 +154,8 @@ s8 sbp_msg_acq_result_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_acq_result_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_acq_result_dep_b_cmp(const sbp_msg_acq_result_dep_b_t *a, - const sbp_msg_acq_result_dep_b_t *b); +SBP_EXPORT int sbp_msg_acq_result_dep_b_cmp( + const sbp_msg_acq_result_dep_b_t *a, const sbp_msg_acq_result_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_C.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_C.h index 7ded7882ee..fa1e627204 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_C.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_C.h @@ -96,9 +96,9 @@ static inline size_t sbp_msg_acq_result_dep_c_encoded_len( * @param msg Instance of sbp_msg_acq_result_dep_c_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_c_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_acq_result_dep_c_t *msg); +SBP_EXPORT s8 +sbp_msg_acq_result_dep_c_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_acq_result_dep_c_t *msg); /** * Decode an instance of sbp_msg_acq_result_dep_c_t from wire representation @@ -115,9 +115,9 @@ s8 sbp_msg_acq_result_dep_c_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_c_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_acq_result_dep_c_t *msg); +SBP_EXPORT s8 sbp_msg_acq_result_dep_c_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_acq_result_dep_c_t *msg); /** * Send an instance of sbp_msg_acq_result_dep_c_t with the given write function * @@ -134,9 +134,9 @@ s8 sbp_msg_acq_result_dep_c_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_result_dep_c_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_acq_result_dep_c_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_acq_result_dep_c_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_acq_result_dep_c_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_acq_result_dep_c_t @@ -153,8 +153,8 @@ s8 sbp_msg_acq_result_dep_c_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_acq_result_dep_c_t instance * @return 0, <0, >0 */ -int sbp_msg_acq_result_dep_c_cmp(const sbp_msg_acq_result_dep_c_t *a, - const sbp_msg_acq_result_dep_c_t *b); +SBP_EXPORT int sbp_msg_acq_result_dep_c_cmp( + const sbp_msg_acq_result_dep_c_t *a, const sbp_msg_acq_result_dep_c_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h index 08e92d43e7..af16435dea 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h @@ -94,8 +94,9 @@ static inline size_t sbp_msg_acq_sv_profile_encoded_len( * @param msg Instance of sbp_msg_acq_sv_profile_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_sv_profile_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_acq_sv_profile_t *msg); +SBP_EXPORT s8 +sbp_msg_acq_sv_profile_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_acq_sv_profile_t *msg); /** * Decode an instance of sbp_msg_acq_sv_profile_t from wire representation @@ -112,9 +113,9 @@ s8 sbp_msg_acq_sv_profile_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_sv_profile_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_acq_sv_profile_t *msg); +SBP_EXPORT s8 sbp_msg_acq_sv_profile_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_acq_sv_profile_t *msg); /** * Send an instance of sbp_msg_acq_sv_profile_t with the given write function * @@ -131,9 +132,9 @@ s8 sbp_msg_acq_sv_profile_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_sv_profile_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_acq_sv_profile_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_acq_sv_profile_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_acq_sv_profile_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_acq_sv_profile_t @@ -150,8 +151,8 @@ s8 sbp_msg_acq_sv_profile_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_acq_sv_profile_t instance * @return 0, <0, >0 */ -int sbp_msg_acq_sv_profile_cmp(const sbp_msg_acq_sv_profile_t *a, - const sbp_msg_acq_sv_profile_t *b); +SBP_EXPORT int sbp_msg_acq_sv_profile_cmp(const sbp_msg_acq_sv_profile_t *a, + const sbp_msg_acq_sv_profile_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE_DEP.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE_DEP.h index 780d4de6e0..c709998815 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE_DEP.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE_DEP.h @@ -93,9 +93,9 @@ static inline size_t sbp_msg_acq_sv_profile_dep_encoded_len( * @param msg Instance of sbp_msg_acq_sv_profile_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_sv_profile_dep_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_acq_sv_profile_dep_t *msg); +SBP_EXPORT s8 +sbp_msg_acq_sv_profile_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_acq_sv_profile_dep_t *msg); /** * Decode an instance of sbp_msg_acq_sv_profile_dep_t from wire representation @@ -112,9 +112,9 @@ s8 sbp_msg_acq_sv_profile_dep_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_sv_profile_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_acq_sv_profile_dep_t *msg); +SBP_EXPORT s8 sbp_msg_acq_sv_profile_dep_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_acq_sv_profile_dep_t *msg); /** * Send an instance of sbp_msg_acq_sv_profile_dep_t with the given write * function @@ -132,9 +132,9 @@ s8 sbp_msg_acq_sv_profile_dep_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_acq_sv_profile_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_acq_sv_profile_dep_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_acq_sv_profile_dep_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_acq_sv_profile_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_acq_sv_profile_dep_t @@ -151,8 +151,9 @@ s8 sbp_msg_acq_sv_profile_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_acq_sv_profile_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_acq_sv_profile_dep_cmp(const sbp_msg_acq_sv_profile_dep_t *a, - const sbp_msg_acq_sv_profile_dep_t *b); +SBP_EXPORT int sbp_msg_acq_sv_profile_dep_cmp( + const sbp_msg_acq_sv_profile_dep_t *a, + const sbp_msg_acq_sv_profile_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/api.h b/c/include/libsbp/v4/api.h index 740adc8f10..df224b19c4 100644 --- a/c/include/libsbp/v4/api.h +++ b/c/include/libsbp/v4/api.h @@ -22,12 +22,12 @@ extern "C" { typedef void (*sbp_decoded_callback_t)(u16 sender_id, sbp_msg_type_t msg_type, const sbp_msg_t *msg, void *context); -s8 sbp_callback_register(sbp_state_t* s, sbp_msg_type_t msg_type, sbp_decoded_callback_t cb, void* context, +SBP_EXPORT s8 sbp_callback_register(sbp_state_t* s, sbp_msg_type_t msg_type, sbp_decoded_callback_t cb, void* context, sbp_msg_callbacks_node_t *node); -s8 sbp_all_message_callback_register(sbp_state_t *s, sbp_decoded_callback_t cb, void* context, +SBP_EXPORT s8 sbp_all_message_callback_register(sbp_state_t *s, sbp_decoded_callback_t cb, void* context, sbp_msg_callbacks_node_t *node); -s8 sbp_message_process(sbp_state_t *s, u16 sender_id, sbp_msg_type_t msg_type, const sbp_msg_t *msg); -s8 sbp_message_send(sbp_state_t *s, sbp_msg_type_t msg_type, u16 sender_id, const sbp_msg_t *msg, +SBP_EXPORT s8 sbp_message_process(sbp_state_t *s, u16 sender_id, sbp_msg_type_t msg_type, const sbp_msg_t *msg); +SBP_EXPORT s8 sbp_message_send(sbp_state_t *s, sbp_msg_type_t msg_type, u16 sender_id, const sbp_msg_t *msg, sbp_write_fn_t write); #ifdef __cplusplus diff --git a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h index 5c5cb4d6ed..4b3f8d6b09 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h @@ -54,7 +54,7 @@ typedef struct { * * @param msg sbp_msg_bootloader_handshake_dep_a_t instance */ -void sbp_msg_bootloader_handshake_dep_a_handshake_init( +SBP_EXPORT void sbp_msg_bootloader_handshake_dep_a_handshake_init( sbp_msg_bootloader_handshake_dep_a_t *msg); /** @@ -64,7 +64,7 @@ void sbp_msg_bootloader_handshake_dep_a_handshake_init( * @return true is sbp_msg_bootloader_handshake_dep_a_t::handshake is valid for * encoding purposes, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_valid( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_valid( const sbp_msg_bootloader_handshake_dep_a_t *msg); /** @@ -78,7 +78,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_valid( * @param b sbp_msg_bootloader_handshake_dep_a_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_bootloader_handshake_dep_a_handshake_strcmp( +SBP_EXPORT int sbp_msg_bootloader_handshake_dep_a_handshake_strcmp( const sbp_msg_bootloader_handshake_dep_a_t *a, const sbp_msg_bootloader_handshake_dep_a_t *b); @@ -89,7 +89,7 @@ int sbp_msg_bootloader_handshake_dep_a_handshake_strcmp( * @return Size of sbp_msg_bootloader_handshake_dep_a_t::handshake in wire * representation */ -size_t sbp_msg_bootloader_handshake_dep_a_handshake_encoded_len( +SBP_EXPORT size_t sbp_msg_bootloader_handshake_dep_a_handshake_encoded_len( const sbp_msg_bootloader_handshake_dep_a_t *msg); /** @@ -102,7 +102,7 @@ size_t sbp_msg_bootloader_handshake_dep_a_handshake_encoded_len( * @param msg sbp_msg_bootloader_handshake_dep_a_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_bootloader_handshake_dep_a_handshake_space_remaining( +SBP_EXPORT size_t sbp_msg_bootloader_handshake_dep_a_handshake_space_remaining( const sbp_msg_bootloader_handshake_dep_a_t *msg); /** * Set sbp_msg_bootloader_handshake_dep_a_t::handshake @@ -121,7 +121,7 @@ size_t sbp_msg_bootloader_handshake_dep_a_handshake_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_set( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_set( sbp_msg_bootloader_handshake_dep_a_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -143,7 +143,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_set_raw( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_set_raw( sbp_msg_bootloader_handshake_dep_a_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -166,7 +166,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_printf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_printf( sbp_msg_bootloader_handshake_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -185,7 +185,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_vprintf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_vprintf( sbp_msg_bootloader_handshake_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -206,7 +206,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_append_printf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_append_printf( sbp_msg_bootloader_handshake_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -225,7 +225,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_dep_a_handshake_append_vprintf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_dep_a_handshake_append_vprintf( sbp_msg_bootloader_handshake_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -235,7 +235,7 @@ bool sbp_msg_bootloader_handshake_dep_a_handshake_append_vprintf( * @param msg sbp_msg_bootloader_handshake_dep_a_t instance * @return String contents */ -const char *sbp_msg_bootloader_handshake_dep_a_handshake_get( +SBP_EXPORT const char *sbp_msg_bootloader_handshake_dep_a_handshake_get( const sbp_msg_bootloader_handshake_dep_a_t *msg); /** @@ -246,7 +246,7 @@ const char *sbp_msg_bootloader_handshake_dep_a_handshake_get( * @param msg sbp_msg_bootloader_handshake_dep_a_t instance * @return Length of string */ -size_t sbp_msg_bootloader_handshake_dep_a_handshake_strlen( +SBP_EXPORT size_t sbp_msg_bootloader_handshake_dep_a_handshake_strlen( const sbp_msg_bootloader_handshake_dep_a_t *msg); /** @@ -281,7 +281,7 @@ static inline size_t sbp_msg_bootloader_handshake_dep_a_encoded_len( * @param msg Instance of sbp_msg_bootloader_handshake_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_dep_a_encode( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_bootloader_handshake_dep_a_t *msg); @@ -303,7 +303,7 @@ s8 sbp_msg_bootloader_handshake_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_dep_a_decode( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_bootloader_handshake_dep_a_t *msg); /** @@ -323,7 +323,7 @@ s8 sbp_msg_bootloader_handshake_dep_a_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_dep_a_send( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_bootloader_handshake_dep_a_t *msg, sbp_write_fn_t write); @@ -342,7 +342,7 @@ s8 sbp_msg_bootloader_handshake_dep_a_send( * @param b sbp_msg_bootloader_handshake_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_bootloader_handshake_dep_a_cmp( +SBP_EXPORT int sbp_msg_bootloader_handshake_dep_a_cmp( const sbp_msg_bootloader_handshake_dep_a_t *a, const sbp_msg_bootloader_handshake_dep_a_t *b); diff --git a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h index f257174caa..f0a39566fb 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h @@ -84,7 +84,7 @@ static inline size_t sbp_msg_bootloader_handshake_req_encoded_len( * @param msg Instance of sbp_msg_bootloader_handshake_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_req_encode( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_req_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_bootloader_handshake_req_t *msg); @@ -105,7 +105,7 @@ s8 sbp_msg_bootloader_handshake_req_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_req_decode( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_req_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_bootloader_handshake_req_t *msg); /** @@ -125,7 +125,7 @@ s8 sbp_msg_bootloader_handshake_req_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_req_send( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_req_send( sbp_state_t *s, u16 sender_id, const sbp_msg_bootloader_handshake_req_t *msg, sbp_write_fn_t write); @@ -144,7 +144,7 @@ s8 sbp_msg_bootloader_handshake_req_send( * @param b sbp_msg_bootloader_handshake_req_t instance * @return 0, <0, >0 */ -int sbp_msg_bootloader_handshake_req_cmp( +SBP_EXPORT int sbp_msg_bootloader_handshake_req_cmp( const sbp_msg_bootloader_handshake_req_t *a, const sbp_msg_bootloader_handshake_req_t *b); diff --git a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h index b4b4bfc9e8..ca6c9b9848 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h @@ -62,7 +62,7 @@ typedef struct { * * @param msg sbp_msg_bootloader_handshake_resp_t instance */ -void sbp_msg_bootloader_handshake_resp_version_init( +SBP_EXPORT void sbp_msg_bootloader_handshake_resp_version_init( sbp_msg_bootloader_handshake_resp_t *msg); /** @@ -72,7 +72,7 @@ void sbp_msg_bootloader_handshake_resp_version_init( * @return true is sbp_msg_bootloader_handshake_resp_t::version is valid for * encoding purposes, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_valid( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_valid( const sbp_msg_bootloader_handshake_resp_t *msg); /** @@ -86,7 +86,7 @@ bool sbp_msg_bootloader_handshake_resp_version_valid( * @param b sbp_msg_bootloader_handshake_resp_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_bootloader_handshake_resp_version_strcmp( +SBP_EXPORT int sbp_msg_bootloader_handshake_resp_version_strcmp( const sbp_msg_bootloader_handshake_resp_t *a, const sbp_msg_bootloader_handshake_resp_t *b); @@ -97,7 +97,7 @@ int sbp_msg_bootloader_handshake_resp_version_strcmp( * @return Size of sbp_msg_bootloader_handshake_resp_t::version in wire * representation */ -size_t sbp_msg_bootloader_handshake_resp_version_encoded_len( +SBP_EXPORT size_t sbp_msg_bootloader_handshake_resp_version_encoded_len( const sbp_msg_bootloader_handshake_resp_t *msg); /** @@ -110,7 +110,7 @@ size_t sbp_msg_bootloader_handshake_resp_version_encoded_len( * @param msg sbp_msg_bootloader_handshake_resp_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_bootloader_handshake_resp_version_space_remaining( +SBP_EXPORT size_t sbp_msg_bootloader_handshake_resp_version_space_remaining( const sbp_msg_bootloader_handshake_resp_t *msg); /** * Set sbp_msg_bootloader_handshake_resp_t::version @@ -129,7 +129,7 @@ size_t sbp_msg_bootloader_handshake_resp_version_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_set( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_set( sbp_msg_bootloader_handshake_resp_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -151,7 +151,7 @@ bool sbp_msg_bootloader_handshake_resp_version_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_set_raw( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_set_raw( sbp_msg_bootloader_handshake_resp_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -173,7 +173,7 @@ bool sbp_msg_bootloader_handshake_resp_version_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_printf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_printf( sbp_msg_bootloader_handshake_resp_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -191,7 +191,7 @@ bool sbp_msg_bootloader_handshake_resp_version_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_vprintf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_vprintf( sbp_msg_bootloader_handshake_resp_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -212,7 +212,7 @@ bool sbp_msg_bootloader_handshake_resp_version_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_append_printf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_append_printf( sbp_msg_bootloader_handshake_resp_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -231,7 +231,7 @@ bool sbp_msg_bootloader_handshake_resp_version_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_bootloader_handshake_resp_version_append_vprintf( +SBP_EXPORT bool sbp_msg_bootloader_handshake_resp_version_append_vprintf( sbp_msg_bootloader_handshake_resp_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -241,7 +241,7 @@ bool sbp_msg_bootloader_handshake_resp_version_append_vprintf( * @param msg sbp_msg_bootloader_handshake_resp_t instance * @return String contents */ -const char *sbp_msg_bootloader_handshake_resp_version_get( +SBP_EXPORT const char *sbp_msg_bootloader_handshake_resp_version_get( const sbp_msg_bootloader_handshake_resp_t *msg); /** @@ -252,7 +252,7 @@ const char *sbp_msg_bootloader_handshake_resp_version_get( * @param msg sbp_msg_bootloader_handshake_resp_t instance * @return Length of string */ -size_t sbp_msg_bootloader_handshake_resp_version_strlen( +SBP_EXPORT size_t sbp_msg_bootloader_handshake_resp_version_strlen( const sbp_msg_bootloader_handshake_resp_t *msg); /** @@ -287,7 +287,7 @@ static inline size_t sbp_msg_bootloader_handshake_resp_encoded_len( * @param msg Instance of sbp_msg_bootloader_handshake_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_resp_encode( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_resp_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_bootloader_handshake_resp_t *msg); @@ -308,7 +308,7 @@ s8 sbp_msg_bootloader_handshake_resp_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_resp_decode( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_resp_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_bootloader_handshake_resp_t *msg); /** @@ -328,7 +328,7 @@ s8 sbp_msg_bootloader_handshake_resp_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_handshake_resp_send( +SBP_EXPORT s8 sbp_msg_bootloader_handshake_resp_send( sbp_state_t *s, u16 sender_id, const sbp_msg_bootloader_handshake_resp_t *msg, sbp_write_fn_t write); @@ -347,7 +347,7 @@ s8 sbp_msg_bootloader_handshake_resp_send( * @param b sbp_msg_bootloader_handshake_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_bootloader_handshake_resp_cmp( +SBP_EXPORT int sbp_msg_bootloader_handshake_resp_cmp( const sbp_msg_bootloader_handshake_resp_t *a, const sbp_msg_bootloader_handshake_resp_t *b); diff --git a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_JUMP_TO_APP.h b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_JUMP_TO_APP.h index 6bc7b6812f..c90d9bfcf4 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_JUMP_TO_APP.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_JUMP_TO_APP.h @@ -80,7 +80,7 @@ static inline size_t sbp_msg_bootloader_jump_to_app_encoded_len( * @param msg Instance of sbp_msg_bootloader_jump_to_app_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_jump_to_app_encode( +SBP_EXPORT s8 sbp_msg_bootloader_jump_to_app_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_bootloader_jump_to_app_t *msg); @@ -101,9 +101,9 @@ s8 sbp_msg_bootloader_jump_to_app_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_jump_to_app_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_bootloader_jump_to_app_t *msg); +SBP_EXPORT s8 sbp_msg_bootloader_jump_to_app_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_bootloader_jump_to_app_t *msg); /** * Send an instance of sbp_msg_bootloader_jump_to_app_t with the given write * function @@ -121,7 +121,7 @@ s8 sbp_msg_bootloader_jump_to_app_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_bootloader_jump_to_app_send( +SBP_EXPORT s8 sbp_msg_bootloader_jump_to_app_send( sbp_state_t *s, u16 sender_id, const sbp_msg_bootloader_jump_to_app_t *msg, sbp_write_fn_t write); @@ -140,7 +140,7 @@ s8 sbp_msg_bootloader_jump_to_app_send( * @param b sbp_msg_bootloader_jump_to_app_t instance * @return 0, <0, >0 */ -int sbp_msg_bootloader_jump_to_app_cmp( +SBP_EXPORT int sbp_msg_bootloader_jump_to_app_cmp( const sbp_msg_bootloader_jump_to_app_t *a, const sbp_msg_bootloader_jump_to_app_t *b); diff --git a/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_REQ.h b/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_REQ.h index 08b9557db7..375c11f338 100644 --- a/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_REQ.h +++ b/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_REQ.h @@ -85,9 +85,9 @@ static inline size_t sbp_msg_nap_device_dna_req_encoded_len( * @param msg Instance of sbp_msg_nap_device_dna_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_nap_device_dna_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_nap_device_dna_req_t *msg); +SBP_EXPORT s8 +sbp_msg_nap_device_dna_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_nap_device_dna_req_t *msg); /** * Decode an instance of sbp_msg_nap_device_dna_req_t from wire representation @@ -104,9 +104,9 @@ s8 sbp_msg_nap_device_dna_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_nap_device_dna_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_nap_device_dna_req_t *msg); +SBP_EXPORT s8 sbp_msg_nap_device_dna_req_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_nap_device_dna_req_t *msg); /** * Send an instance of sbp_msg_nap_device_dna_req_t with the given write * function @@ -124,9 +124,9 @@ s8 sbp_msg_nap_device_dna_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_nap_device_dna_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_nap_device_dna_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_nap_device_dna_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_nap_device_dna_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_nap_device_dna_req_t @@ -143,8 +143,9 @@ s8 sbp_msg_nap_device_dna_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_nap_device_dna_req_t instance * @return 0, <0, >0 */ -int sbp_msg_nap_device_dna_req_cmp(const sbp_msg_nap_device_dna_req_t *a, - const sbp_msg_nap_device_dna_req_t *b); +SBP_EXPORT int sbp_msg_nap_device_dna_req_cmp( + const sbp_msg_nap_device_dna_req_t *a, + const sbp_msg_nap_device_dna_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_RESP.h b/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_RESP.h index 829af80890..6f75a9c240 100644 --- a/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_RESP.h +++ b/c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_RESP.h @@ -84,9 +84,9 @@ static inline size_t sbp_msg_nap_device_dna_resp_encoded_len( * @param msg Instance of sbp_msg_nap_device_dna_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_nap_device_dna_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_nap_device_dna_resp_t *msg); +SBP_EXPORT s8 sbp_msg_nap_device_dna_resp_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_nap_device_dna_resp_t *msg); /** * Decode an instance of sbp_msg_nap_device_dna_resp_t from wire representation @@ -103,9 +103,9 @@ s8 sbp_msg_nap_device_dna_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_nap_device_dna_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_nap_device_dna_resp_t *msg); +SBP_EXPORT s8 sbp_msg_nap_device_dna_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_nap_device_dna_resp_t *msg); /** * Send an instance of sbp_msg_nap_device_dna_resp_t with the given write * function @@ -123,9 +123,9 @@ s8 sbp_msg_nap_device_dna_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_nap_device_dna_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_nap_device_dna_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_nap_device_dna_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_nap_device_dna_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_nap_device_dna_resp_t @@ -142,8 +142,9 @@ s8 sbp_msg_nap_device_dna_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_nap_device_dna_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_nap_device_dna_resp_cmp(const sbp_msg_nap_device_dna_resp_t *a, - const sbp_msg_nap_device_dna_resp_t *b); +SBP_EXPORT int sbp_msg_nap_device_dna_resp_cmp( + const sbp_msg_nap_device_dna_resp_t *a, + const sbp_msg_nap_device_dna_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h b/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h index c5525ff289..3a8bcc557e 100644 --- a/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h +++ b/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h @@ -102,8 +102,9 @@ static inline size_t sbp_msg_ext_event_encoded_len( * @param msg Instance of sbp_msg_ext_event_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ext_event_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ext_event_t *msg); +SBP_EXPORT s8 sbp_msg_ext_event_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ext_event_t *msg); /** * Decode an instance of sbp_msg_ext_event_t from wire representation @@ -120,8 +121,9 @@ s8 sbp_msg_ext_event_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ext_event_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_ext_event_t *msg); +SBP_EXPORT s8 sbp_msg_ext_event_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ext_event_t *msg); /** * Send an instance of sbp_msg_ext_event_t with the given write function * @@ -138,8 +140,9 @@ s8 sbp_msg_ext_event_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ext_event_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ext_event_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ext_event_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ext_event_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ext_event_t @@ -156,8 +159,8 @@ s8 sbp_msg_ext_event_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ext_event_t instance * @return 0, <0, >0 */ -int sbp_msg_ext_event_cmp(const sbp_msg_ext_event_t *a, - const sbp_msg_ext_event_t *b); +SBP_EXPORT int sbp_msg_ext_event_cmp(const sbp_msg_ext_event_t *a, + const sbp_msg_ext_event_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_REQ.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_REQ.h index 2d325bc775..21f53b0585 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_REQ.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_REQ.h @@ -82,9 +82,9 @@ static inline size_t sbp_msg_fileio_config_req_encoded_len( * @param msg Instance of sbp_msg_fileio_config_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_config_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_fileio_config_req_t *msg); +SBP_EXPORT s8 +sbp_msg_fileio_config_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_config_req_t *msg); /** * Decode an instance of sbp_msg_fileio_config_req_t from wire representation @@ -101,9 +101,9 @@ s8 sbp_msg_fileio_config_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_config_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_config_req_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_config_req_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_fileio_config_req_t *msg); /** * Send an instance of sbp_msg_fileio_config_req_t with the given write function * @@ -120,9 +120,9 @@ s8 sbp_msg_fileio_config_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_config_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_config_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_config_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_config_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_config_req_t @@ -139,8 +139,8 @@ s8 sbp_msg_fileio_config_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_config_req_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_config_req_cmp(const sbp_msg_fileio_config_req_t *a, - const sbp_msg_fileio_config_req_t *b); +SBP_EXPORT int sbp_msg_fileio_config_req_cmp( + const sbp_msg_fileio_config_req_t *a, const sbp_msg_fileio_config_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_RESP.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_RESP.h index fe64866bcc..dddc7c04f5 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_RESP.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_RESP.h @@ -98,9 +98,9 @@ static inline size_t sbp_msg_fileio_config_resp_encoded_len( * @param msg Instance of sbp_msg_fileio_config_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_config_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_fileio_config_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_fileio_config_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_config_resp_t *msg); /** * Decode an instance of sbp_msg_fileio_config_resp_t from wire representation @@ -117,9 +117,9 @@ s8 sbp_msg_fileio_config_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_config_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_config_resp_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_config_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_fileio_config_resp_t *msg); /** * Send an instance of sbp_msg_fileio_config_resp_t with the given write * function @@ -137,9 +137,9 @@ s8 sbp_msg_fileio_config_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_config_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_config_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_config_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_config_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_config_resp_t @@ -156,8 +156,9 @@ s8 sbp_msg_fileio_config_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_config_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_config_resp_cmp(const sbp_msg_fileio_config_resp_t *a, - const sbp_msg_fileio_config_resp_t *b); +SBP_EXPORT int sbp_msg_fileio_config_resp_cmp( + const sbp_msg_fileio_config_resp_t *a, + const sbp_msg_fileio_config_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_REQ.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_REQ.h index 80bda6065b..ef7a179dde 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_REQ.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_REQ.h @@ -71,7 +71,7 @@ typedef struct { * * @param msg sbp_msg_fileio_read_dir_req_t instance */ -void sbp_msg_fileio_read_dir_req_dirname_init( +SBP_EXPORT void sbp_msg_fileio_read_dir_req_dirname_init( sbp_msg_fileio_read_dir_req_t *msg); /** @@ -81,7 +81,7 @@ void sbp_msg_fileio_read_dir_req_dirname_init( * @return true is sbp_msg_fileio_read_dir_req_t::dirname is valid for encoding * purposes, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_valid( +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_valid( const sbp_msg_fileio_read_dir_req_t *msg); /** @@ -94,7 +94,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_valid( * @param b sbp_msg_fileio_read_dir_req_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_fileio_read_dir_req_dirname_strcmp( +SBP_EXPORT int sbp_msg_fileio_read_dir_req_dirname_strcmp( const sbp_msg_fileio_read_dir_req_t *a, const sbp_msg_fileio_read_dir_req_t *b); @@ -104,7 +104,7 @@ int sbp_msg_fileio_read_dir_req_dirname_strcmp( * @param msg sbp_msg_fileio_read_dir_req_t instance * @return Size of sbp_msg_fileio_read_dir_req_t::dirname in wire representation */ -size_t sbp_msg_fileio_read_dir_req_dirname_encoded_len( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_req_dirname_encoded_len( const sbp_msg_fileio_read_dir_req_t *msg); /** @@ -117,7 +117,7 @@ size_t sbp_msg_fileio_read_dir_req_dirname_encoded_len( * @param msg sbp_msg_fileio_read_dir_req_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_fileio_read_dir_req_dirname_space_remaining( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_req_dirname_space_remaining( const sbp_msg_fileio_read_dir_req_t *msg); /** * Set sbp_msg_fileio_read_dir_req_t::dirname @@ -136,10 +136,9 @@ size_t sbp_msg_fileio_read_dir_req_dirname_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_set(sbp_msg_fileio_read_dir_req_t *msg, - const char *new_str, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_set( + sbp_msg_fileio_read_dir_req_t *msg, const char *new_str, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_fileio_read_dir_req_t::dirname from a raw buffer @@ -159,7 +158,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_set(sbp_msg_fileio_read_dir_req_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_set_raw( +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_set_raw( sbp_msg_fileio_read_dir_req_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -181,7 +180,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_printf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_printf( sbp_msg_fileio_read_dir_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -199,7 +198,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_vprintf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_vprintf( sbp_msg_fileio_read_dir_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -219,7 +218,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_append_printf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_append_printf( sbp_msg_fileio_read_dir_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -237,7 +236,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_req_dirname_append_vprintf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_req_dirname_append_vprintf( sbp_msg_fileio_read_dir_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -247,7 +246,7 @@ bool sbp_msg_fileio_read_dir_req_dirname_append_vprintf( * @param msg sbp_msg_fileio_read_dir_req_t instance * @return String contents */ -const char *sbp_msg_fileio_read_dir_req_dirname_get( +SBP_EXPORT const char *sbp_msg_fileio_read_dir_req_dirname_get( const sbp_msg_fileio_read_dir_req_t *msg); /** @@ -258,7 +257,7 @@ const char *sbp_msg_fileio_read_dir_req_dirname_get( * @param msg sbp_msg_fileio_read_dir_req_t instance * @return Length of string */ -size_t sbp_msg_fileio_read_dir_req_dirname_strlen( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_req_dirname_strlen( const sbp_msg_fileio_read_dir_req_t *msg); /** @@ -292,9 +291,9 @@ static inline size_t sbp_msg_fileio_read_dir_req_encoded_len( * @param msg Instance of sbp_msg_fileio_read_dir_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_dir_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_fileio_read_dir_req_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_read_dir_req_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_read_dir_req_t *msg); /** * Decode an instance of sbp_msg_fileio_read_dir_req_t from wire representation @@ -311,9 +310,9 @@ s8 sbp_msg_fileio_read_dir_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_dir_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_read_dir_req_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_read_dir_req_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_fileio_read_dir_req_t *msg); /** * Send an instance of sbp_msg_fileio_read_dir_req_t with the given write * function @@ -331,9 +330,9 @@ s8 sbp_msg_fileio_read_dir_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_dir_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_read_dir_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_read_dir_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_read_dir_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_read_dir_req_t @@ -350,8 +349,9 @@ s8 sbp_msg_fileio_read_dir_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_read_dir_req_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_read_dir_req_cmp(const sbp_msg_fileio_read_dir_req_t *a, - const sbp_msg_fileio_read_dir_req_t *b); +SBP_EXPORT int sbp_msg_fileio_read_dir_req_cmp( + const sbp_msg_fileio_read_dir_req_t *a, + const sbp_msg_fileio_read_dir_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_RESP.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_RESP.h index ad73c906da..2aaea8be2c 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_RESP.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_RESP.h @@ -63,7 +63,7 @@ typedef struct { * * @param msg sbp_msg_fileio_read_dir_resp_t instance */ -void sbp_msg_fileio_read_dir_resp_contents_init( +SBP_EXPORT void sbp_msg_fileio_read_dir_resp_contents_init( sbp_msg_fileio_read_dir_resp_t *msg); /** @@ -73,7 +73,7 @@ void sbp_msg_fileio_read_dir_resp_contents_init( * @return true is sbp_msg_fileio_read_dir_resp_t::contents is valid for * encoding purposes, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_valid( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_valid( const sbp_msg_fileio_read_dir_resp_t *msg); /** @@ -86,7 +86,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_valid( * @param b sbp_msg_fileio_read_dir_resp_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_fileio_read_dir_resp_contents_strcmp( +SBP_EXPORT int sbp_msg_fileio_read_dir_resp_contents_strcmp( const sbp_msg_fileio_read_dir_resp_t *a, const sbp_msg_fileio_read_dir_resp_t *b); @@ -97,7 +97,7 @@ int sbp_msg_fileio_read_dir_resp_contents_strcmp( * @return Size of sbp_msg_fileio_read_dir_resp_t::contents in wire * representation */ -size_t sbp_msg_fileio_read_dir_resp_contents_encoded_len( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_resp_contents_encoded_len( const sbp_msg_fileio_read_dir_resp_t *msg); /** @@ -110,7 +110,7 @@ size_t sbp_msg_fileio_read_dir_resp_contents_encoded_len( * @param msg sbp_msg_fileio_read_dir_resp_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_fileio_read_dir_resp_contents_space_remaining( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_resp_contents_space_remaining( const sbp_msg_fileio_read_dir_resp_t *msg); /** * Return the number of sections in sbp_msg_fileio_read_dir_resp_t::contents @@ -118,7 +118,7 @@ size_t sbp_msg_fileio_read_dir_resp_contents_space_remaining( * @param msg sbp_msg_fileio_read_dir_resp_t instance * @return Number of sections in string */ -size_t sbp_msg_fileio_read_dir_resp_contents_count_sections( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_resp_contents_count_sections( const sbp_msg_fileio_read_dir_resp_t *msg); /** @@ -132,7 +132,7 @@ size_t sbp_msg_fileio_read_dir_resp_contents_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_add_section( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_add_section( sbp_msg_fileio_read_dir_resp_t *msg, const char *new_str); /** @@ -148,7 +148,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_add_section_printf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_add_section_printf( sbp_msg_fileio_read_dir_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -164,7 +164,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_add_section_vprintf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_add_section_vprintf( sbp_msg_fileio_read_dir_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -186,7 +186,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_append( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_append( sbp_msg_fileio_read_dir_resp_t *msg, const char *str); /** @@ -207,7 +207,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_append( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_append_printf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_append_printf( sbp_msg_fileio_read_dir_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -230,7 +230,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_dir_resp_contents_append_vprintf( +SBP_EXPORT bool sbp_msg_fileio_read_dir_resp_contents_append_vprintf( sbp_msg_fileio_read_dir_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -245,7 +245,7 @@ bool sbp_msg_fileio_read_dir_resp_contents_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_fileio_read_dir_resp_contents_get_section( +SBP_EXPORT const char *sbp_msg_fileio_read_dir_resp_contents_get_section( const sbp_msg_fileio_read_dir_resp_t *msg, size_t section); /** @@ -259,7 +259,7 @@ const char *sbp_msg_fileio_read_dir_resp_contents_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_fileio_read_dir_resp_contents_section_strlen( +SBP_EXPORT size_t sbp_msg_fileio_read_dir_resp_contents_section_strlen( const sbp_msg_fileio_read_dir_resp_t *msg, size_t section); /** @@ -293,7 +293,7 @@ static inline size_t sbp_msg_fileio_read_dir_resp_encoded_len( * @param msg Instance of sbp_msg_fileio_read_dir_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_dir_resp_encode( +SBP_EXPORT s8 sbp_msg_fileio_read_dir_resp_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_fileio_read_dir_resp_t *msg); @@ -312,9 +312,9 @@ s8 sbp_msg_fileio_read_dir_resp_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_dir_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_read_dir_resp_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_read_dir_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_fileio_read_dir_resp_t *msg); /** * Send an instance of sbp_msg_fileio_read_dir_resp_t with the given write * function @@ -332,9 +332,9 @@ s8 sbp_msg_fileio_read_dir_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_dir_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_read_dir_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_read_dir_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_read_dir_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_read_dir_resp_t @@ -351,8 +351,9 @@ s8 sbp_msg_fileio_read_dir_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_read_dir_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_read_dir_resp_cmp(const sbp_msg_fileio_read_dir_resp_t *a, - const sbp_msg_fileio_read_dir_resp_t *b); +SBP_EXPORT int sbp_msg_fileio_read_dir_resp_cmp( + const sbp_msg_fileio_read_dir_resp_t *a, + const sbp_msg_fileio_read_dir_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_REQ.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_REQ.h index 8c209ff964..6d03b22d1d 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_REQ.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_REQ.h @@ -75,7 +75,8 @@ typedef struct { * * @param msg sbp_msg_fileio_read_req_t instance */ -void sbp_msg_fileio_read_req_filename_init(sbp_msg_fileio_read_req_t *msg); +SBP_EXPORT void sbp_msg_fileio_read_req_filename_init( + sbp_msg_fileio_read_req_t *msg); /** * Test sbp_msg_fileio_read_req_t::filename for validity @@ -84,7 +85,7 @@ void sbp_msg_fileio_read_req_filename_init(sbp_msg_fileio_read_req_t *msg); * @return true is sbp_msg_fileio_read_req_t::filename is valid for encoding * purposes, false otherwise */ -bool sbp_msg_fileio_read_req_filename_valid( +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_valid( const sbp_msg_fileio_read_req_t *msg); /** @@ -97,8 +98,8 @@ bool sbp_msg_fileio_read_req_filename_valid( * @param b sbp_msg_fileio_read_req_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_fileio_read_req_filename_strcmp(const sbp_msg_fileio_read_req_t *a, - const sbp_msg_fileio_read_req_t *b); +SBP_EXPORT int sbp_msg_fileio_read_req_filename_strcmp( + const sbp_msg_fileio_read_req_t *a, const sbp_msg_fileio_read_req_t *b); /** * Get the encoded size of sbp_msg_fileio_read_req_t::filename @@ -106,7 +107,7 @@ int sbp_msg_fileio_read_req_filename_strcmp(const sbp_msg_fileio_read_req_t *a, * @param msg sbp_msg_fileio_read_req_t instance * @return Size of sbp_msg_fileio_read_req_t::filename in wire representation */ -size_t sbp_msg_fileio_read_req_filename_encoded_len( +SBP_EXPORT size_t sbp_msg_fileio_read_req_filename_encoded_len( const sbp_msg_fileio_read_req_t *msg); /** @@ -119,7 +120,7 @@ size_t sbp_msg_fileio_read_req_filename_encoded_len( * @param msg sbp_msg_fileio_read_req_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_fileio_read_req_filename_space_remaining( +SBP_EXPORT size_t sbp_msg_fileio_read_req_filename_space_remaining( const sbp_msg_fileio_read_req_t *msg); /** * Set sbp_msg_fileio_read_req_t::filename @@ -138,9 +139,9 @@ size_t sbp_msg_fileio_read_req_filename_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_req_filename_set(sbp_msg_fileio_read_req_t *msg, - const char *new_str, - bool should_trunc, size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_set( + sbp_msg_fileio_read_req_t *msg, const char *new_str, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_fileio_read_req_t::filename from a raw buffer @@ -160,11 +161,9 @@ bool sbp_msg_fileio_read_req_filename_set(sbp_msg_fileio_read_req_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_req_filename_set_raw(sbp_msg_fileio_read_req_t *msg, - const char *new_buf, - size_t new_buf_len, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_set_raw( + sbp_msg_fileio_read_req_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_fileio_read_req_t::filename with printf style formatting @@ -184,10 +183,9 @@ bool sbp_msg_fileio_read_req_filename_set_raw(sbp_msg_fileio_read_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_req_filename_printf(sbp_msg_fileio_read_req_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - ...) SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_printf( + sbp_msg_fileio_read_req_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_fileio_read_req_t::filename with printf style formatting @@ -203,11 +201,9 @@ bool sbp_msg_fileio_read_req_filename_printf(sbp_msg_fileio_read_req_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_req_filename_vprintf(sbp_msg_fileio_read_req_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_vprintf( + sbp_msg_fileio_read_req_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_fileio_read_req_t::filename with printf style formatting @@ -225,7 +221,7 @@ bool sbp_msg_fileio_read_req_filename_vprintf(sbp_msg_fileio_read_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_req_filename_append_printf( +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_append_printf( sbp_msg_fileio_read_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -243,7 +239,7 @@ bool sbp_msg_fileio_read_req_filename_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_read_req_filename_append_vprintf( +SBP_EXPORT bool sbp_msg_fileio_read_req_filename_append_vprintf( sbp_msg_fileio_read_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -253,7 +249,7 @@ bool sbp_msg_fileio_read_req_filename_append_vprintf( * @param msg sbp_msg_fileio_read_req_t instance * @return String contents */ -const char *sbp_msg_fileio_read_req_filename_get( +SBP_EXPORT const char *sbp_msg_fileio_read_req_filename_get( const sbp_msg_fileio_read_req_t *msg); /** @@ -264,8 +260,8 @@ const char *sbp_msg_fileio_read_req_filename_get( * @param msg sbp_msg_fileio_read_req_t instance * @return Length of string */ -size_t sbp_msg_fileio_read_req_filename_strlen( - const sbp_msg_fileio_read_req_t *msg); +SBP_EXPORT size_t +sbp_msg_fileio_read_req_filename_strlen(const sbp_msg_fileio_read_req_t *msg); /** * Get encoded size of an instance of sbp_msg_fileio_read_req_t @@ -298,8 +294,9 @@ static inline size_t sbp_msg_fileio_read_req_encoded_len( * @param msg Instance of sbp_msg_fileio_read_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_fileio_read_req_t *msg); +SBP_EXPORT s8 +sbp_msg_fileio_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_read_req_t *msg); /** * Decode an instance of sbp_msg_fileio_read_req_t from wire representation @@ -316,9 +313,9 @@ s8 sbp_msg_fileio_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_read_req_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_read_req_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_fileio_read_req_t *msg); /** * Send an instance of sbp_msg_fileio_read_req_t with the given write function * @@ -335,9 +332,9 @@ s8 sbp_msg_fileio_read_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_read_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_read_req_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_fileio_read_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_read_req_t @@ -354,8 +351,8 @@ s8 sbp_msg_fileio_read_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_read_req_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_read_req_cmp(const sbp_msg_fileio_read_req_t *a, - const sbp_msg_fileio_read_req_t *b); +SBP_EXPORT int sbp_msg_fileio_read_req_cmp(const sbp_msg_fileio_read_req_t *a, + const sbp_msg_fileio_read_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_RESP.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_RESP.h index e1d48725be..e714acad77 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_RESP.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_READ_RESP.h @@ -99,9 +99,9 @@ static inline size_t sbp_msg_fileio_read_resp_encoded_len( * @param msg Instance of sbp_msg_fileio_read_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_fileio_read_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_fileio_read_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_read_resp_t *msg); /** * Decode an instance of sbp_msg_fileio_read_resp_t from wire representation @@ -118,9 +118,9 @@ s8 sbp_msg_fileio_read_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_read_resp_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_read_resp_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_fileio_read_resp_t *msg); /** * Send an instance of sbp_msg_fileio_read_resp_t with the given write function * @@ -137,9 +137,9 @@ s8 sbp_msg_fileio_read_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_read_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_read_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_read_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_read_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_read_resp_t @@ -156,8 +156,8 @@ s8 sbp_msg_fileio_read_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_read_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_read_resp_cmp(const sbp_msg_fileio_read_resp_t *a, - const sbp_msg_fileio_read_resp_t *b); +SBP_EXPORT int sbp_msg_fileio_read_resp_cmp( + const sbp_msg_fileio_read_resp_t *a, const sbp_msg_fileio_read_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h index ee98f9eec8..9373b9a7ae 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h @@ -57,7 +57,8 @@ typedef struct { * * @param msg sbp_msg_fileio_remove_t instance */ -void sbp_msg_fileio_remove_filename_init(sbp_msg_fileio_remove_t *msg); +SBP_EXPORT void sbp_msg_fileio_remove_filename_init( + sbp_msg_fileio_remove_t *msg); /** * Test sbp_msg_fileio_remove_t::filename for validity @@ -66,7 +67,8 @@ void sbp_msg_fileio_remove_filename_init(sbp_msg_fileio_remove_t *msg); * @return true is sbp_msg_fileio_remove_t::filename is valid for encoding * purposes, false otherwise */ -bool sbp_msg_fileio_remove_filename_valid(const sbp_msg_fileio_remove_t *msg); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_valid( + const sbp_msg_fileio_remove_t *msg); /** * Tests 2 instances of sbp_msg_fileio_remove_t::filename for equality @@ -78,8 +80,8 @@ bool sbp_msg_fileio_remove_filename_valid(const sbp_msg_fileio_remove_t *msg); * @param b sbp_msg_fileio_remove_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_fileio_remove_filename_strcmp(const sbp_msg_fileio_remove_t *a, - const sbp_msg_fileio_remove_t *b); +SBP_EXPORT int sbp_msg_fileio_remove_filename_strcmp( + const sbp_msg_fileio_remove_t *a, const sbp_msg_fileio_remove_t *b); /** * Get the encoded size of sbp_msg_fileio_remove_t::filename @@ -87,8 +89,8 @@ int sbp_msg_fileio_remove_filename_strcmp(const sbp_msg_fileio_remove_t *a, * @param msg sbp_msg_fileio_remove_t instance * @return Size of sbp_msg_fileio_remove_t::filename in wire representation */ -size_t sbp_msg_fileio_remove_filename_encoded_len( - const sbp_msg_fileio_remove_t *msg); +SBP_EXPORT size_t +sbp_msg_fileio_remove_filename_encoded_len(const sbp_msg_fileio_remove_t *msg); /** * Query sbp_msg_fileio_remove_t::filename for remaining space @@ -100,7 +102,7 @@ size_t sbp_msg_fileio_remove_filename_encoded_len( * @param msg sbp_msg_fileio_remove_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_fileio_remove_filename_space_remaining( +SBP_EXPORT size_t sbp_msg_fileio_remove_filename_space_remaining( const sbp_msg_fileio_remove_t *msg); /** * Set sbp_msg_fileio_remove_t::filename @@ -119,9 +121,10 @@ size_t sbp_msg_fileio_remove_filename_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_remove_filename_set(sbp_msg_fileio_remove_t *msg, - const char *new_str, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_set(sbp_msg_fileio_remove_t *msg, + const char *new_str, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_fileio_remove_t::filename from a raw buffer @@ -141,11 +144,9 @@ bool sbp_msg_fileio_remove_filename_set(sbp_msg_fileio_remove_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_remove_filename_set_raw(sbp_msg_fileio_remove_t *msg, - const char *new_buf, - size_t new_buf_len, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_set_raw( + sbp_msg_fileio_remove_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_fileio_remove_t::filename with printf style formatting @@ -165,10 +166,9 @@ bool sbp_msg_fileio_remove_filename_set_raw(sbp_msg_fileio_remove_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_remove_filename_printf(sbp_msg_fileio_remove_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_printf( + sbp_msg_fileio_remove_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_fileio_remove_t::filename with printf style formatting @@ -184,10 +184,9 @@ bool sbp_msg_fileio_remove_filename_printf(sbp_msg_fileio_remove_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_remove_filename_vprintf(sbp_msg_fileio_remove_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - va_list ap) SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_vprintf( + sbp_msg_fileio_remove_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_fileio_remove_t::filename with printf style formatting @@ -205,11 +204,9 @@ bool sbp_msg_fileio_remove_filename_vprintf(sbp_msg_fileio_remove_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_remove_filename_append_printf(sbp_msg_fileio_remove_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_append_printf( + sbp_msg_fileio_remove_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Append sbp_msg_fileio_remove_t::filename with printf style formatting @@ -225,11 +222,9 @@ bool sbp_msg_fileio_remove_filename_append_printf(sbp_msg_fileio_remove_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_remove_filename_append_vprintf(sbp_msg_fileio_remove_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_fileio_remove_filename_append_vprintf( + sbp_msg_fileio_remove_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Obtain the string value from sbp_msg_fileio_remove_t::filename @@ -237,7 +232,7 @@ bool sbp_msg_fileio_remove_filename_append_vprintf(sbp_msg_fileio_remove_t *msg, * @param msg sbp_msg_fileio_remove_t instance * @return String contents */ -const char *sbp_msg_fileio_remove_filename_get( +SBP_EXPORT const char *sbp_msg_fileio_remove_filename_get( const sbp_msg_fileio_remove_t *msg); /** @@ -248,8 +243,8 @@ const char *sbp_msg_fileio_remove_filename_get( * @param msg sbp_msg_fileio_remove_t instance * @return Length of string */ -size_t sbp_msg_fileio_remove_filename_strlen( - const sbp_msg_fileio_remove_t *msg); +SBP_EXPORT size_t +sbp_msg_fileio_remove_filename_strlen(const sbp_msg_fileio_remove_t *msg); /** * Get encoded size of an instance of sbp_msg_fileio_remove_t @@ -282,8 +277,9 @@ static inline size_t sbp_msg_fileio_remove_encoded_len( * @param msg Instance of sbp_msg_fileio_remove_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_remove_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_fileio_remove_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_remove_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_fileio_remove_t *msg); /** * Decode an instance of sbp_msg_fileio_remove_t from wire representation @@ -300,8 +296,9 @@ s8 sbp_msg_fileio_remove_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_remove_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_fileio_remove_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_remove_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_fileio_remove_t *msg); /** * Send an instance of sbp_msg_fileio_remove_t with the given write function * @@ -318,9 +315,9 @@ s8 sbp_msg_fileio_remove_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_remove_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_remove_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_remove_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_fileio_remove_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_remove_t @@ -337,8 +334,8 @@ s8 sbp_msg_fileio_remove_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_remove_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_remove_cmp(const sbp_msg_fileio_remove_t *a, - const sbp_msg_fileio_remove_t *b); +SBP_EXPORT int sbp_msg_fileio_remove_cmp(const sbp_msg_fileio_remove_t *a, + const sbp_msg_fileio_remove_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_REQ.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_REQ.h index 70dc12f1d2..0cb8daae08 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_REQ.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_REQ.h @@ -85,7 +85,8 @@ typedef struct { * * @param msg sbp_msg_fileio_write_req_t instance */ -void sbp_msg_fileio_write_req_filename_init(sbp_msg_fileio_write_req_t *msg); +SBP_EXPORT void sbp_msg_fileio_write_req_filename_init( + sbp_msg_fileio_write_req_t *msg); /** * Test sbp_msg_fileio_write_req_t::filename for validity @@ -94,7 +95,7 @@ void sbp_msg_fileio_write_req_filename_init(sbp_msg_fileio_write_req_t *msg); * @return true is sbp_msg_fileio_write_req_t::filename is valid for encoding * purposes, false otherwise */ -bool sbp_msg_fileio_write_req_filename_valid( +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_valid( const sbp_msg_fileio_write_req_t *msg); /** @@ -107,7 +108,7 @@ bool sbp_msg_fileio_write_req_filename_valid( * @param b sbp_msg_fileio_write_req_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_fileio_write_req_filename_strcmp( +SBP_EXPORT int sbp_msg_fileio_write_req_filename_strcmp( const sbp_msg_fileio_write_req_t *a, const sbp_msg_fileio_write_req_t *b); /** @@ -116,7 +117,7 @@ int sbp_msg_fileio_write_req_filename_strcmp( * @param msg sbp_msg_fileio_write_req_t instance * @return Size of sbp_msg_fileio_write_req_t::filename in wire representation */ -size_t sbp_msg_fileio_write_req_filename_encoded_len( +SBP_EXPORT size_t sbp_msg_fileio_write_req_filename_encoded_len( const sbp_msg_fileio_write_req_t *msg); /** @@ -129,7 +130,7 @@ size_t sbp_msg_fileio_write_req_filename_encoded_len( * @param msg sbp_msg_fileio_write_req_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_fileio_write_req_filename_space_remaining( +SBP_EXPORT size_t sbp_msg_fileio_write_req_filename_space_remaining( const sbp_msg_fileio_write_req_t *msg); /** * Set sbp_msg_fileio_write_req_t::filename @@ -148,10 +149,9 @@ size_t sbp_msg_fileio_write_req_filename_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_write_req_filename_set(sbp_msg_fileio_write_req_t *msg, - const char *new_str, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_set( + sbp_msg_fileio_write_req_t *msg, const char *new_str, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_fileio_write_req_t::filename from a raw buffer @@ -171,11 +171,9 @@ bool sbp_msg_fileio_write_req_filename_set(sbp_msg_fileio_write_req_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_fileio_write_req_filename_set_raw(sbp_msg_fileio_write_req_t *msg, - const char *new_buf, - size_t new_buf_len, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_set_raw( + sbp_msg_fileio_write_req_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_fileio_write_req_t::filename with printf style formatting @@ -195,11 +193,9 @@ bool sbp_msg_fileio_write_req_filename_set_raw(sbp_msg_fileio_write_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_write_req_filename_printf(sbp_msg_fileio_write_req_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_printf( + sbp_msg_fileio_write_req_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_fileio_write_req_t::filename with printf style formatting @@ -215,11 +211,9 @@ bool sbp_msg_fileio_write_req_filename_printf(sbp_msg_fileio_write_req_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_write_req_filename_vprintf(sbp_msg_fileio_write_req_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_vprintf( + sbp_msg_fileio_write_req_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_fileio_write_req_t::filename with printf style formatting @@ -237,7 +231,7 @@ bool sbp_msg_fileio_write_req_filename_vprintf(sbp_msg_fileio_write_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_fileio_write_req_filename_append_printf( +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_append_printf( sbp_msg_fileio_write_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -255,7 +249,7 @@ bool sbp_msg_fileio_write_req_filename_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_fileio_write_req_filename_append_vprintf( +SBP_EXPORT bool sbp_msg_fileio_write_req_filename_append_vprintf( sbp_msg_fileio_write_req_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -265,7 +259,7 @@ bool sbp_msg_fileio_write_req_filename_append_vprintf( * @param msg sbp_msg_fileio_write_req_t instance * @return String contents */ -const char *sbp_msg_fileio_write_req_filename_get( +SBP_EXPORT const char *sbp_msg_fileio_write_req_filename_get( const sbp_msg_fileio_write_req_t *msg); /** @@ -276,8 +270,8 @@ const char *sbp_msg_fileio_write_req_filename_get( * @param msg sbp_msg_fileio_write_req_t instance * @return Length of string */ -size_t sbp_msg_fileio_write_req_filename_strlen( - const sbp_msg_fileio_write_req_t *msg); +SBP_EXPORT size_t +sbp_msg_fileio_write_req_filename_strlen(const sbp_msg_fileio_write_req_t *msg); /** * Get encoded size of an instance of sbp_msg_fileio_write_req_t @@ -311,9 +305,9 @@ static inline size_t sbp_msg_fileio_write_req_encoded_len( * @param msg Instance of sbp_msg_fileio_write_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_write_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_fileio_write_req_t *msg); +SBP_EXPORT s8 +sbp_msg_fileio_write_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_write_req_t *msg); /** * Decode an instance of sbp_msg_fileio_write_req_t from wire representation @@ -330,9 +324,9 @@ s8 sbp_msg_fileio_write_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_write_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_write_req_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_write_req_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_fileio_write_req_t *msg); /** * Send an instance of sbp_msg_fileio_write_req_t with the given write function * @@ -349,9 +343,9 @@ s8 sbp_msg_fileio_write_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_write_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_write_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_write_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_write_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_write_req_t @@ -368,8 +362,8 @@ s8 sbp_msg_fileio_write_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_write_req_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_write_req_cmp(const sbp_msg_fileio_write_req_t *a, - const sbp_msg_fileio_write_req_t *b); +SBP_EXPORT int sbp_msg_fileio_write_req_cmp( + const sbp_msg_fileio_write_req_t *a, const sbp_msg_fileio_write_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_RESP.h b/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_RESP.h index 39508f45c8..6f4c3141ae 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_RESP.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_RESP.h @@ -83,9 +83,9 @@ static inline size_t sbp_msg_fileio_write_resp_encoded_len( * @param msg Instance of sbp_msg_fileio_write_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_write_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_fileio_write_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_fileio_write_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fileio_write_resp_t *msg); /** * Decode an instance of sbp_msg_fileio_write_resp_t from wire representation @@ -102,9 +102,9 @@ s8 sbp_msg_fileio_write_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_write_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_fileio_write_resp_t *msg); +SBP_EXPORT s8 sbp_msg_fileio_write_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_fileio_write_resp_t *msg); /** * Send an instance of sbp_msg_fileio_write_resp_t with the given write function * @@ -121,9 +121,9 @@ s8 sbp_msg_fileio_write_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fileio_write_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_fileio_write_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fileio_write_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_fileio_write_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fileio_write_resp_t @@ -140,8 +140,8 @@ s8 sbp_msg_fileio_write_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_fileio_write_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_fileio_write_resp_cmp(const sbp_msg_fileio_write_resp_t *a, - const sbp_msg_fileio_write_resp_t *b); +SBP_EXPORT int sbp_msg_fileio_write_resp_cmp( + const sbp_msg_fileio_write_resp_t *a, const sbp_msg_fileio_write_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h b/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h index 14bfa52852..4ebc4c4328 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h @@ -82,8 +82,9 @@ static inline size_t sbp_msg_flash_done_encoded_len( * @param msg Instance of sbp_msg_flash_done_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_done_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_flash_done_t *msg); +SBP_EXPORT s8 sbp_msg_flash_done_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_flash_done_t *msg); /** * Decode an instance of sbp_msg_flash_done_t from wire representation @@ -100,8 +101,9 @@ s8 sbp_msg_flash_done_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_done_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_flash_done_t *msg); +SBP_EXPORT s8 sbp_msg_flash_done_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_flash_done_t *msg); /** * Send an instance of sbp_msg_flash_done_t with the given write function * @@ -118,9 +120,9 @@ s8 sbp_msg_flash_done_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_done_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_flash_done_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_flash_done_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_flash_done_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_flash_done_t @@ -137,8 +139,8 @@ s8 sbp_msg_flash_done_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_flash_done_t instance * @return 0, <0, >0 */ -int sbp_msg_flash_done_cmp(const sbp_msg_flash_done_t *a, - const sbp_msg_flash_done_t *b); +SBP_EXPORT int sbp_msg_flash_done_cmp(const sbp_msg_flash_done_t *a, + const sbp_msg_flash_done_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h b/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h index c5a507f25b..399e2d5e38 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h @@ -88,8 +88,9 @@ static inline size_t sbp_msg_flash_erase_encoded_len( * @param msg Instance of sbp_msg_flash_erase_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_erase_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_flash_erase_t *msg); +SBP_EXPORT s8 sbp_msg_flash_erase_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_flash_erase_t *msg); /** * Decode an instance of sbp_msg_flash_erase_t from wire representation @@ -106,8 +107,9 @@ s8 sbp_msg_flash_erase_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_erase_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_flash_erase_t *msg); +SBP_EXPORT s8 sbp_msg_flash_erase_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_flash_erase_t *msg); /** * Send an instance of sbp_msg_flash_erase_t with the given write function * @@ -124,9 +126,9 @@ s8 sbp_msg_flash_erase_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_erase_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_flash_erase_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_flash_erase_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_flash_erase_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_flash_erase_t @@ -143,8 +145,8 @@ s8 sbp_msg_flash_erase_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_flash_erase_t instance * @return 0, <0, >0 */ -int sbp_msg_flash_erase_cmp(const sbp_msg_flash_erase_t *a, - const sbp_msg_flash_erase_t *b); +SBP_EXPORT int sbp_msg_flash_erase_cmp(const sbp_msg_flash_erase_t *a, + const sbp_msg_flash_erase_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h b/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h index 600ae96cd1..cde05eac7b 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h @@ -100,8 +100,9 @@ static inline size_t sbp_msg_flash_program_encoded_len( * @param msg Instance of sbp_msg_flash_program_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_program_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_flash_program_t *msg); +SBP_EXPORT s8 sbp_msg_flash_program_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_flash_program_t *msg); /** * Decode an instance of sbp_msg_flash_program_t from wire representation @@ -118,8 +119,9 @@ s8 sbp_msg_flash_program_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_program_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_flash_program_t *msg); +SBP_EXPORT s8 sbp_msg_flash_program_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_flash_program_t *msg); /** * Send an instance of sbp_msg_flash_program_t with the given write function * @@ -136,9 +138,9 @@ s8 sbp_msg_flash_program_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_program_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_flash_program_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_flash_program_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_flash_program_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_flash_program_t @@ -155,8 +157,8 @@ s8 sbp_msg_flash_program_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_flash_program_t instance * @return 0, <0, >0 */ -int sbp_msg_flash_program_cmp(const sbp_msg_flash_program_t *a, - const sbp_msg_flash_program_t *b); +SBP_EXPORT int sbp_msg_flash_program_cmp(const sbp_msg_flash_program_t *a, + const sbp_msg_flash_program_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h b/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h index bb80109a6c..7843c07581 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h @@ -96,8 +96,9 @@ static inline size_t sbp_msg_flash_read_req_encoded_len( * @param msg Instance of sbp_msg_flash_read_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_flash_read_req_t *msg); +SBP_EXPORT s8 +sbp_msg_flash_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_flash_read_req_t *msg); /** * Decode an instance of sbp_msg_flash_read_req_t from wire representation @@ -114,9 +115,9 @@ s8 sbp_msg_flash_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_read_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_flash_read_req_t *msg); +SBP_EXPORT s8 sbp_msg_flash_read_req_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_flash_read_req_t *msg); /** * Send an instance of sbp_msg_flash_read_req_t with the given write function * @@ -133,9 +134,9 @@ s8 sbp_msg_flash_read_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_read_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_flash_read_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_flash_read_req_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_flash_read_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_flash_read_req_t @@ -152,8 +153,8 @@ s8 sbp_msg_flash_read_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_flash_read_req_t instance * @return 0, <0, >0 */ -int sbp_msg_flash_read_req_cmp(const sbp_msg_flash_read_req_t *a, - const sbp_msg_flash_read_req_t *b); +SBP_EXPORT int sbp_msg_flash_read_req_cmp(const sbp_msg_flash_read_req_t *a, + const sbp_msg_flash_read_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h b/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h index 47e7da0650..c27f61c0a1 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h @@ -96,8 +96,9 @@ static inline size_t sbp_msg_flash_read_resp_encoded_len( * @param msg Instance of sbp_msg_flash_read_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_read_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_flash_read_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_flash_read_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_flash_read_resp_t *msg); /** * Decode an instance of sbp_msg_flash_read_resp_t from wire representation @@ -114,9 +115,9 @@ s8 sbp_msg_flash_read_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_read_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_flash_read_resp_t *msg); +SBP_EXPORT s8 sbp_msg_flash_read_resp_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_flash_read_resp_t *msg); /** * Send an instance of sbp_msg_flash_read_resp_t with the given write function * @@ -133,9 +134,9 @@ s8 sbp_msg_flash_read_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_flash_read_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_flash_read_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_flash_read_resp_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_flash_read_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_flash_read_resp_t @@ -152,8 +153,8 @@ s8 sbp_msg_flash_read_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_flash_read_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_flash_read_resp_cmp(const sbp_msg_flash_read_resp_t *a, - const sbp_msg_flash_read_resp_t *b); +SBP_EXPORT int sbp_msg_flash_read_resp_cmp(const sbp_msg_flash_read_resp_t *a, + const sbp_msg_flash_read_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_M25_FLASH_WRITE_STATUS.h b/c/include/libsbp/v4/flash/MSG_M25_FLASH_WRITE_STATUS.h index f3bf6202f3..766013cdf0 100644 --- a/c/include/libsbp/v4/flash/MSG_M25_FLASH_WRITE_STATUS.h +++ b/c/include/libsbp/v4/flash/MSG_M25_FLASH_WRITE_STATUS.h @@ -81,7 +81,7 @@ static inline size_t sbp_msg_m25_flash_write_status_encoded_len( * @param msg Instance of sbp_msg_m25_flash_write_status_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_m25_flash_write_status_encode( +SBP_EXPORT s8 sbp_msg_m25_flash_write_status_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_m25_flash_write_status_t *msg); @@ -102,9 +102,9 @@ s8 sbp_msg_m25_flash_write_status_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_m25_flash_write_status_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_m25_flash_write_status_t *msg); +SBP_EXPORT s8 sbp_msg_m25_flash_write_status_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_m25_flash_write_status_t *msg); /** * Send an instance of sbp_msg_m25_flash_write_status_t with the given write * function @@ -122,7 +122,7 @@ s8 sbp_msg_m25_flash_write_status_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_m25_flash_write_status_send( +SBP_EXPORT s8 sbp_msg_m25_flash_write_status_send( sbp_state_t *s, u16 sender_id, const sbp_msg_m25_flash_write_status_t *msg, sbp_write_fn_t write); @@ -141,7 +141,7 @@ s8 sbp_msg_m25_flash_write_status_send( * @param b sbp_msg_m25_flash_write_status_t instance * @return 0, <0, >0 */ -int sbp_msg_m25_flash_write_status_cmp( +SBP_EXPORT int sbp_msg_m25_flash_write_status_cmp( const sbp_msg_m25_flash_write_status_t *a, const sbp_msg_m25_flash_write_status_t *b); diff --git a/c/include/libsbp/v4/flash/MSG_STM_FLASH_LOCK_SECTOR.h b/c/include/libsbp/v4/flash/MSG_STM_FLASH_LOCK_SECTOR.h index 445eba036d..b4c93742f9 100644 --- a/c/include/libsbp/v4/flash/MSG_STM_FLASH_LOCK_SECTOR.h +++ b/c/include/libsbp/v4/flash/MSG_STM_FLASH_LOCK_SECTOR.h @@ -81,7 +81,7 @@ static inline size_t sbp_msg_stm_flash_lock_sector_encoded_len( * @param msg Instance of sbp_msg_stm_flash_lock_sector_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_flash_lock_sector_encode( +SBP_EXPORT s8 sbp_msg_stm_flash_lock_sector_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_stm_flash_lock_sector_t *msg); @@ -102,9 +102,9 @@ s8 sbp_msg_stm_flash_lock_sector_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_flash_lock_sector_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_stm_flash_lock_sector_t *msg); +SBP_EXPORT s8 sbp_msg_stm_flash_lock_sector_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_stm_flash_lock_sector_t *msg); /** * Send an instance of sbp_msg_stm_flash_lock_sector_t with the given write * function @@ -122,7 +122,7 @@ s8 sbp_msg_stm_flash_lock_sector_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_flash_lock_sector_send( +SBP_EXPORT s8 sbp_msg_stm_flash_lock_sector_send( sbp_state_t *s, u16 sender_id, const sbp_msg_stm_flash_lock_sector_t *msg, sbp_write_fn_t write); @@ -141,8 +141,9 @@ s8 sbp_msg_stm_flash_lock_sector_send( * @param b sbp_msg_stm_flash_lock_sector_t instance * @return 0, <0, >0 */ -int sbp_msg_stm_flash_lock_sector_cmp(const sbp_msg_stm_flash_lock_sector_t *a, - const sbp_msg_stm_flash_lock_sector_t *b); +SBP_EXPORT int sbp_msg_stm_flash_lock_sector_cmp( + const sbp_msg_stm_flash_lock_sector_t *a, + const sbp_msg_stm_flash_lock_sector_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_STM_FLASH_UNLOCK_SECTOR.h b/c/include/libsbp/v4/flash/MSG_STM_FLASH_UNLOCK_SECTOR.h index ee279b2fb4..6105a354b6 100644 --- a/c/include/libsbp/v4/flash/MSG_STM_FLASH_UNLOCK_SECTOR.h +++ b/c/include/libsbp/v4/flash/MSG_STM_FLASH_UNLOCK_SECTOR.h @@ -82,7 +82,7 @@ static inline size_t sbp_msg_stm_flash_unlock_sector_encoded_len( * @param msg Instance of sbp_msg_stm_flash_unlock_sector_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_flash_unlock_sector_encode( +SBP_EXPORT s8 sbp_msg_stm_flash_unlock_sector_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_stm_flash_unlock_sector_t *msg); @@ -103,7 +103,7 @@ s8 sbp_msg_stm_flash_unlock_sector_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_flash_unlock_sector_decode( +SBP_EXPORT s8 sbp_msg_stm_flash_unlock_sector_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_stm_flash_unlock_sector_t *msg); /** @@ -123,7 +123,7 @@ s8 sbp_msg_stm_flash_unlock_sector_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_flash_unlock_sector_send( +SBP_EXPORT s8 sbp_msg_stm_flash_unlock_sector_send( sbp_state_t *s, u16 sender_id, const sbp_msg_stm_flash_unlock_sector_t *msg, sbp_write_fn_t write); @@ -142,7 +142,7 @@ s8 sbp_msg_stm_flash_unlock_sector_send( * @param b sbp_msg_stm_flash_unlock_sector_t instance * @return 0, <0, >0 */ -int sbp_msg_stm_flash_unlock_sector_cmp( +SBP_EXPORT int sbp_msg_stm_flash_unlock_sector_cmp( const sbp_msg_stm_flash_unlock_sector_t *a, const sbp_msg_stm_flash_unlock_sector_t *b); diff --git a/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_REQ.h b/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_REQ.h index 731ecb0c41..86a9ca476a 100644 --- a/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_REQ.h +++ b/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_REQ.h @@ -84,9 +84,9 @@ static inline size_t sbp_msg_stm_unique_id_req_encoded_len( * @param msg Instance of sbp_msg_stm_unique_id_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_unique_id_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_stm_unique_id_req_t *msg); +SBP_EXPORT s8 +sbp_msg_stm_unique_id_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_stm_unique_id_req_t *msg); /** * Decode an instance of sbp_msg_stm_unique_id_req_t from wire representation @@ -103,9 +103,9 @@ s8 sbp_msg_stm_unique_id_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_unique_id_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_stm_unique_id_req_t *msg); +SBP_EXPORT s8 sbp_msg_stm_unique_id_req_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_stm_unique_id_req_t *msg); /** * Send an instance of sbp_msg_stm_unique_id_req_t with the given write function * @@ -122,9 +122,9 @@ s8 sbp_msg_stm_unique_id_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_unique_id_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_stm_unique_id_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_stm_unique_id_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_stm_unique_id_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_stm_unique_id_req_t @@ -141,8 +141,8 @@ s8 sbp_msg_stm_unique_id_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_stm_unique_id_req_t instance * @return 0, <0, >0 */ -int sbp_msg_stm_unique_id_req_cmp(const sbp_msg_stm_unique_id_req_t *a, - const sbp_msg_stm_unique_id_req_t *b); +SBP_EXPORT int sbp_msg_stm_unique_id_req_cmp( + const sbp_msg_stm_unique_id_req_t *a, const sbp_msg_stm_unique_id_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_RESP.h b/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_RESP.h index d4f3b27d7b..c9b73e79c7 100644 --- a/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_RESP.h +++ b/c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_RESP.h @@ -83,9 +83,9 @@ static inline size_t sbp_msg_stm_unique_id_resp_encoded_len( * @param msg Instance of sbp_msg_stm_unique_id_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_unique_id_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_stm_unique_id_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_stm_unique_id_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_stm_unique_id_resp_t *msg); /** * Decode an instance of sbp_msg_stm_unique_id_resp_t from wire representation @@ -102,9 +102,9 @@ s8 sbp_msg_stm_unique_id_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_unique_id_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_stm_unique_id_resp_t *msg); +SBP_EXPORT s8 sbp_msg_stm_unique_id_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_stm_unique_id_resp_t *msg); /** * Send an instance of sbp_msg_stm_unique_id_resp_t with the given write * function @@ -122,9 +122,9 @@ s8 sbp_msg_stm_unique_id_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_stm_unique_id_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_stm_unique_id_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_stm_unique_id_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_stm_unique_id_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_stm_unique_id_resp_t @@ -141,8 +141,9 @@ s8 sbp_msg_stm_unique_id_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_stm_unique_id_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_stm_unique_id_resp_cmp(const sbp_msg_stm_unique_id_resp_t *a, - const sbp_msg_stm_unique_id_resp_t *b); +SBP_EXPORT int sbp_msg_stm_unique_id_resp_cmp( + const sbp_msg_stm_unique_id_resp_t *a, + const sbp_msg_stm_unique_id_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/CarrierPhase.h b/c/include/libsbp/v4/gnss/CarrierPhase.h index c75a685684..bacfd77667 100644 --- a/c/include/libsbp/v4/gnss/CarrierPhase.h +++ b/c/include/libsbp/v4/gnss/CarrierPhase.h @@ -87,8 +87,9 @@ static inline size_t sbp_carrier_phase_encoded_len( * @param msg Instance of sbp_carrier_phase_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_carrier_phase_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_carrier_phase_t *msg); +SBP_EXPORT s8 sbp_carrier_phase_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_carrier_phase_t *msg); /** * Decode an instance of sbp_carrier_phase_t from wire representation @@ -105,8 +106,9 @@ s8 sbp_carrier_phase_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_carrier_phase_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_carrier_phase_t *msg); +SBP_EXPORT s8 sbp_carrier_phase_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_carrier_phase_t *msg); /** * Compare two instances of sbp_carrier_phase_t @@ -123,8 +125,8 @@ s8 sbp_carrier_phase_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_carrier_phase_t instance * @return 0, <0, >0 */ -int sbp_carrier_phase_cmp(const sbp_carrier_phase_t *a, - const sbp_carrier_phase_t *b); +SBP_EXPORT int sbp_carrier_phase_cmp(const sbp_carrier_phase_t *a, + const sbp_carrier_phase_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/GPSTime.h b/c/include/libsbp/v4/gnss/GPSTime.h index d850b16057..c6cb776120 100644 --- a/c/include/libsbp/v4/gnss/GPSTime.h +++ b/c/include/libsbp/v4/gnss/GPSTime.h @@ -92,8 +92,9 @@ static inline size_t sbp_v4_gps_time_encoded_len(const sbp_v4_gps_time_t *msg) { * @param msg Instance of sbp_v4_gps_time_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_v4_gps_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_v4_gps_time_t *msg); +SBP_EXPORT s8 sbp_v4_gps_time_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_v4_gps_time_t *msg); /** * Decode an instance of sbp_v4_gps_time_t from wire representation @@ -110,8 +111,8 @@ s8 sbp_v4_gps_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_v4_gps_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_v4_gps_time_t *msg); +SBP_EXPORT s8 sbp_v4_gps_time_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_v4_gps_time_t *msg); /** * Compare two instances of sbp_v4_gps_time_t @@ -128,7 +129,8 @@ s8 sbp_v4_gps_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_v4_gps_time_t instance * @return 0, <0, >0 */ -int sbp_v4_gps_time_cmp(const sbp_v4_gps_time_t *a, const sbp_v4_gps_time_t *b); +SBP_EXPORT int sbp_v4_gps_time_cmp(const sbp_v4_gps_time_t *a, + const sbp_v4_gps_time_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/GPSTimeDep.h b/c/include/libsbp/v4/gnss/GPSTimeDep.h index 06190c5569..1b1157bb80 100644 --- a/c/include/libsbp/v4/gnss/GPSTimeDep.h +++ b/c/include/libsbp/v4/gnss/GPSTimeDep.h @@ -86,8 +86,9 @@ static inline size_t sbp_gps_time_dep_encoded_len( * @param msg Instance of sbp_gps_time_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gps_time_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_gps_time_dep_t *msg); +SBP_EXPORT s8 sbp_gps_time_dep_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_gps_time_dep_t *msg); /** * Decode an instance of sbp_gps_time_dep_t from wire representation @@ -104,8 +105,8 @@ s8 sbp_gps_time_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gps_time_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_gps_time_dep_t *msg); +SBP_EXPORT s8 sbp_gps_time_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_gps_time_dep_t *msg); /** * Compare two instances of sbp_gps_time_dep_t @@ -122,8 +123,8 @@ s8 sbp_gps_time_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_gps_time_dep_t instance * @return 0, <0, >0 */ -int sbp_gps_time_dep_cmp(const sbp_gps_time_dep_t *a, - const sbp_gps_time_dep_t *b); +SBP_EXPORT int sbp_gps_time_dep_cmp(const sbp_gps_time_dep_t *a, + const sbp_gps_time_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/GPSTimeSec.h b/c/include/libsbp/v4/gnss/GPSTimeSec.h index 85dc1fbf36..184cb18f13 100644 --- a/c/include/libsbp/v4/gnss/GPSTimeSec.h +++ b/c/include/libsbp/v4/gnss/GPSTimeSec.h @@ -86,8 +86,9 @@ static inline size_t sbp_gps_time_sec_encoded_len( * @param msg Instance of sbp_gps_time_sec_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gps_time_sec_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_gps_time_sec_t *msg); +SBP_EXPORT s8 sbp_gps_time_sec_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_gps_time_sec_t *msg); /** * Decode an instance of sbp_gps_time_sec_t from wire representation @@ -104,8 +105,8 @@ s8 sbp_gps_time_sec_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gps_time_sec_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_gps_time_sec_t *msg); +SBP_EXPORT s8 sbp_gps_time_sec_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_gps_time_sec_t *msg); /** * Compare two instances of sbp_gps_time_sec_t @@ -122,8 +123,8 @@ s8 sbp_gps_time_sec_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_gps_time_sec_t instance * @return 0, <0, >0 */ -int sbp_gps_time_sec_cmp(const sbp_gps_time_sec_t *a, - const sbp_gps_time_sec_t *b); +SBP_EXPORT int sbp_gps_time_sec_cmp(const sbp_gps_time_sec_t *a, + const sbp_gps_time_sec_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/GnssSignal.h b/c/include/libsbp/v4/gnss/GnssSignal.h index de196dfa0f..e7ca4e0d4c 100644 --- a/c/include/libsbp/v4/gnss/GnssSignal.h +++ b/c/include/libsbp/v4/gnss/GnssSignal.h @@ -86,8 +86,9 @@ static inline size_t sbp_v4_gnss_signal_encoded_len( * @param msg Instance of sbp_v4_gnss_signal_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_v4_gnss_signal_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_v4_gnss_signal_t *msg); +SBP_EXPORT s8 sbp_v4_gnss_signal_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_v4_gnss_signal_t *msg); /** * Decode an instance of sbp_v4_gnss_signal_t from wire representation @@ -104,8 +105,9 @@ s8 sbp_v4_gnss_signal_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_v4_gnss_signal_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_v4_gnss_signal_t *msg); +SBP_EXPORT s8 sbp_v4_gnss_signal_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_v4_gnss_signal_t *msg); /** * Compare two instances of sbp_v4_gnss_signal_t @@ -122,8 +124,8 @@ s8 sbp_v4_gnss_signal_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_v4_gnss_signal_t instance * @return 0, <0, >0 */ -int sbp_v4_gnss_signal_cmp(const sbp_v4_gnss_signal_t *a, - const sbp_v4_gnss_signal_t *b); +SBP_EXPORT int sbp_v4_gnss_signal_cmp(const sbp_v4_gnss_signal_t *a, + const sbp_v4_gnss_signal_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/GnssSignalDep.h b/c/include/libsbp/v4/gnss/GnssSignalDep.h index bb916a42c7..9212303355 100644 --- a/c/include/libsbp/v4/gnss/GnssSignalDep.h +++ b/c/include/libsbp/v4/gnss/GnssSignalDep.h @@ -93,8 +93,9 @@ static inline size_t sbp_gnss_signal_dep_encoded_len( * @param msg Instance of sbp_gnss_signal_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gnss_signal_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_gnss_signal_dep_t *msg); +SBP_EXPORT s8 sbp_gnss_signal_dep_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_gnss_signal_dep_t *msg); /** * Decode an instance of sbp_gnss_signal_dep_t from wire representation @@ -111,8 +112,9 @@ s8 sbp_gnss_signal_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gnss_signal_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_gnss_signal_dep_t *msg); +SBP_EXPORT s8 sbp_gnss_signal_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_gnss_signal_dep_t *msg); /** * Compare two instances of sbp_gnss_signal_dep_t @@ -129,8 +131,8 @@ s8 sbp_gnss_signal_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_gnss_signal_dep_t instance * @return 0, <0, >0 */ -int sbp_gnss_signal_dep_cmp(const sbp_gnss_signal_dep_t *a, - const sbp_gnss_signal_dep_t *b); +SBP_EXPORT int sbp_gnss_signal_dep_cmp(const sbp_gnss_signal_dep_t *a, + const sbp_gnss_signal_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/gnss/SvId.h b/c/include/libsbp/v4/gnss/SvId.h index 7dbd91fd09..7052fa0137 100644 --- a/c/include/libsbp/v4/gnss/SvId.h +++ b/c/include/libsbp/v4/gnss/SvId.h @@ -85,8 +85,8 @@ static inline size_t sbp_sv_id_encoded_len(const sbp_sv_id_t *msg) { * @param msg Instance of sbp_sv_id_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_sv_id_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_sv_id_t *msg); +SBP_EXPORT s8 sbp_sv_id_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_sv_id_t *msg); /** * Decode an instance of sbp_sv_id_t from wire representation @@ -103,8 +103,8 @@ s8 sbp_sv_id_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_sv_id_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_sv_id_t *msg); +SBP_EXPORT s8 sbp_sv_id_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_sv_id_t *msg); /** * Compare two instances of sbp_sv_id_t @@ -121,7 +121,7 @@ s8 sbp_sv_id_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_sv_id_t instance * @return 0, <0, >0 */ -int sbp_sv_id_cmp(const sbp_sv_id_t *a, const sbp_sv_id_t *b); +SBP_EXPORT int sbp_sv_id_cmp(const sbp_sv_id_t *a, const sbp_sv_id_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/imu/MSG_IMU_AUX.h b/c/include/libsbp/v4/imu/MSG_IMU_AUX.h index 60bdfca6e0..2efc7cb673 100644 --- a/c/include/libsbp/v4/imu/MSG_IMU_AUX.h +++ b/c/include/libsbp/v4/imu/MSG_IMU_AUX.h @@ -91,8 +91,9 @@ static inline size_t sbp_msg_imu_aux_encoded_len(const sbp_msg_imu_aux_t *msg) { * @param msg Instance of sbp_msg_imu_aux_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_imu_aux_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_imu_aux_t *msg); +SBP_EXPORT s8 sbp_msg_imu_aux_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_imu_aux_t *msg); /** * Decode an instance of sbp_msg_imu_aux_t from wire representation @@ -109,8 +110,8 @@ s8 sbp_msg_imu_aux_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_imu_aux_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_imu_aux_t *msg); +SBP_EXPORT s8 sbp_msg_imu_aux_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_imu_aux_t *msg); /** * Send an instance of sbp_msg_imu_aux_t with the given write function * @@ -127,8 +128,9 @@ s8 sbp_msg_imu_aux_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_imu_aux_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_imu_aux_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_imu_aux_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_imu_aux_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_imu_aux_t @@ -145,7 +147,8 @@ s8 sbp_msg_imu_aux_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_imu_aux_t instance * @return 0, <0, >0 */ -int sbp_msg_imu_aux_cmp(const sbp_msg_imu_aux_t *a, const sbp_msg_imu_aux_t *b); +SBP_EXPORT int sbp_msg_imu_aux_cmp(const sbp_msg_imu_aux_t *a, + const sbp_msg_imu_aux_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/imu/MSG_IMU_RAW.h b/c/include/libsbp/v4/imu/MSG_IMU_RAW.h index 4e1876f6b0..ed857b6f04 100644 --- a/c/include/libsbp/v4/imu/MSG_IMU_RAW.h +++ b/c/include/libsbp/v4/imu/MSG_IMU_RAW.h @@ -122,8 +122,9 @@ static inline size_t sbp_msg_imu_raw_encoded_len(const sbp_msg_imu_raw_t *msg) { * @param msg Instance of sbp_msg_imu_raw_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_imu_raw_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_imu_raw_t *msg); +SBP_EXPORT s8 sbp_msg_imu_raw_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_imu_raw_t *msg); /** * Decode an instance of sbp_msg_imu_raw_t from wire representation @@ -140,8 +141,8 @@ s8 sbp_msg_imu_raw_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_imu_raw_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_imu_raw_t *msg); +SBP_EXPORT s8 sbp_msg_imu_raw_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_imu_raw_t *msg); /** * Send an instance of sbp_msg_imu_raw_t with the given write function * @@ -158,8 +159,9 @@ s8 sbp_msg_imu_raw_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_imu_raw_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_imu_raw_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_imu_raw_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_imu_raw_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_imu_raw_t @@ -176,7 +178,8 @@ s8 sbp_msg_imu_raw_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_imu_raw_t instance * @return 0, <0, >0 */ -int sbp_msg_imu_raw_cmp(const sbp_msg_imu_raw_t *a, const sbp_msg_imu_raw_t *b); +SBP_EXPORT int sbp_msg_imu_raw_cmp(const sbp_msg_imu_raw_t *a, + const sbp_msg_imu_raw_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h b/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h index 2c551bc218..9fa9ee24b3 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h @@ -85,7 +85,8 @@ typedef struct { * * @param msg sbp_msg_linux_cpu_state_t instance */ -void sbp_msg_linux_cpu_state_cmdline_init(sbp_msg_linux_cpu_state_t *msg); +SBP_EXPORT void sbp_msg_linux_cpu_state_cmdline_init( + sbp_msg_linux_cpu_state_t *msg); /** * Test sbp_msg_linux_cpu_state_t::cmdline for validity @@ -94,7 +95,7 @@ void sbp_msg_linux_cpu_state_cmdline_init(sbp_msg_linux_cpu_state_t *msg); * @return true is sbp_msg_linux_cpu_state_t::cmdline is valid for encoding * purposes, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_valid( const sbp_msg_linux_cpu_state_t *msg); /** @@ -107,8 +108,8 @@ bool sbp_msg_linux_cpu_state_cmdline_valid( * @param b sbp_msg_linux_cpu_state_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_cpu_state_cmdline_strcmp(const sbp_msg_linux_cpu_state_t *a, - const sbp_msg_linux_cpu_state_t *b); +SBP_EXPORT int sbp_msg_linux_cpu_state_cmdline_strcmp( + const sbp_msg_linux_cpu_state_t *a, const sbp_msg_linux_cpu_state_t *b); /** * Get the encoded size of sbp_msg_linux_cpu_state_t::cmdline @@ -116,7 +117,7 @@ int sbp_msg_linux_cpu_state_cmdline_strcmp(const sbp_msg_linux_cpu_state_t *a, * @param msg sbp_msg_linux_cpu_state_t instance * @return Size of sbp_msg_linux_cpu_state_t::cmdline in wire representation */ -size_t sbp_msg_linux_cpu_state_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_cpu_state_cmdline_encoded_len( const sbp_msg_linux_cpu_state_t *msg); /** @@ -129,7 +130,7 @@ size_t sbp_msg_linux_cpu_state_cmdline_encoded_len( * @param msg sbp_msg_linux_cpu_state_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_cpu_state_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_cpu_state_cmdline_space_remaining( const sbp_msg_linux_cpu_state_t *msg); /** * Set sbp_msg_linux_cpu_state_t::cmdline @@ -148,9 +149,9 @@ size_t sbp_msg_linux_cpu_state_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_set(sbp_msg_linux_cpu_state_t *msg, - const char *new_str, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_set( + sbp_msg_linux_cpu_state_t *msg, const char *new_str, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_linux_cpu_state_t::cmdline from a raw buffer @@ -170,11 +171,9 @@ bool sbp_msg_linux_cpu_state_cmdline_set(sbp_msg_linux_cpu_state_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_set_raw(sbp_msg_linux_cpu_state_t *msg, - const char *new_buf, - size_t new_buf_len, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_set_raw( + sbp_msg_linux_cpu_state_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_linux_cpu_state_t::cmdline with printf style formatting @@ -194,10 +193,9 @@ bool sbp_msg_linux_cpu_state_cmdline_set_raw(sbp_msg_linux_cpu_state_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_printf(sbp_msg_linux_cpu_state_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - ...) SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_printf( + sbp_msg_linux_cpu_state_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_linux_cpu_state_t::cmdline with printf style formatting @@ -213,10 +211,9 @@ bool sbp_msg_linux_cpu_state_cmdline_printf(sbp_msg_linux_cpu_state_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_vprintf(sbp_msg_linux_cpu_state_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - va_list ap) SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_vprintf( + sbp_msg_linux_cpu_state_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_linux_cpu_state_t::cmdline with printf style formatting @@ -234,7 +231,7 @@ bool sbp_msg_linux_cpu_state_cmdline_vprintf(sbp_msg_linux_cpu_state_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_append_printf( sbp_msg_linux_cpu_state_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -252,7 +249,7 @@ bool sbp_msg_linux_cpu_state_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_cpu_state_cmdline_append_vprintf( sbp_msg_linux_cpu_state_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -262,7 +259,7 @@ bool sbp_msg_linux_cpu_state_cmdline_append_vprintf( * @param msg sbp_msg_linux_cpu_state_t instance * @return String contents */ -const char *sbp_msg_linux_cpu_state_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_cpu_state_cmdline_get( const sbp_msg_linux_cpu_state_t *msg); /** @@ -273,8 +270,8 @@ const char *sbp_msg_linux_cpu_state_cmdline_get( * @param msg sbp_msg_linux_cpu_state_t instance * @return Length of string */ -size_t sbp_msg_linux_cpu_state_cmdline_strlen( - const sbp_msg_linux_cpu_state_t *msg); +SBP_EXPORT size_t +sbp_msg_linux_cpu_state_cmdline_strlen(const sbp_msg_linux_cpu_state_t *msg); /** * Get encoded size of an instance of sbp_msg_linux_cpu_state_t @@ -307,8 +304,9 @@ static inline size_t sbp_msg_linux_cpu_state_encoded_len( * @param msg Instance of sbp_msg_linux_cpu_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_cpu_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_linux_cpu_state_t *msg); +SBP_EXPORT s8 +sbp_msg_linux_cpu_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_linux_cpu_state_t *msg); /** * Decode an instance of sbp_msg_linux_cpu_state_t from wire representation @@ -325,9 +323,9 @@ s8 sbp_msg_linux_cpu_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_cpu_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_cpu_state_t *msg); +SBP_EXPORT s8 sbp_msg_linux_cpu_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_linux_cpu_state_t *msg); /** * Send an instance of sbp_msg_linux_cpu_state_t with the given write function * @@ -344,9 +342,9 @@ s8 sbp_msg_linux_cpu_state_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_cpu_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_linux_cpu_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_linux_cpu_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_linux_cpu_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_linux_cpu_state_t @@ -363,8 +361,8 @@ s8 sbp_msg_linux_cpu_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_linux_cpu_state_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_cpu_state_cmp(const sbp_msg_linux_cpu_state_t *a, - const sbp_msg_linux_cpu_state_t *b); +SBP_EXPORT int sbp_msg_linux_cpu_state_cmp(const sbp_msg_linux_cpu_state_t *a, + const sbp_msg_linux_cpu_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE_DEP_A.h b/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE_DEP_A.h index ef92b0ef4c..db6e23e5ff 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE_DEP_A.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE_DEP_A.h @@ -75,7 +75,7 @@ typedef struct { * * @param msg sbp_msg_linux_cpu_state_dep_a_t instance */ -void sbp_msg_linux_cpu_state_dep_a_cmdline_init( +SBP_EXPORT void sbp_msg_linux_cpu_state_dep_a_cmdline_init( sbp_msg_linux_cpu_state_dep_a_t *msg); /** @@ -85,7 +85,7 @@ void sbp_msg_linux_cpu_state_dep_a_cmdline_init( * @return true is sbp_msg_linux_cpu_state_dep_a_t::cmdline is valid for * encoding purposes, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_valid( const sbp_msg_linux_cpu_state_dep_a_t *msg); /** @@ -98,7 +98,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_valid( * @param b sbp_msg_linux_cpu_state_dep_a_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_cpu_state_dep_a_cmdline_strcmp( +SBP_EXPORT int sbp_msg_linux_cpu_state_dep_a_cmdline_strcmp( const sbp_msg_linux_cpu_state_dep_a_t *a, const sbp_msg_linux_cpu_state_dep_a_t *b); @@ -109,7 +109,7 @@ int sbp_msg_linux_cpu_state_dep_a_cmdline_strcmp( * @return Size of sbp_msg_linux_cpu_state_dep_a_t::cmdline in wire * representation */ -size_t sbp_msg_linux_cpu_state_dep_a_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_cpu_state_dep_a_cmdline_encoded_len( const sbp_msg_linux_cpu_state_dep_a_t *msg); /** @@ -122,7 +122,7 @@ size_t sbp_msg_linux_cpu_state_dep_a_cmdline_encoded_len( * @param msg sbp_msg_linux_cpu_state_dep_a_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_cpu_state_dep_a_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_cpu_state_dep_a_cmdline_space_remaining( const sbp_msg_linux_cpu_state_dep_a_t *msg); /** * Set sbp_msg_linux_cpu_state_dep_a_t::cmdline @@ -141,7 +141,7 @@ size_t sbp_msg_linux_cpu_state_dep_a_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_set( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_set( sbp_msg_linux_cpu_state_dep_a_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -163,7 +163,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_set_raw( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_set_raw( sbp_msg_linux_cpu_state_dep_a_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -185,7 +185,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_printf( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_printf( sbp_msg_linux_cpu_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -203,7 +203,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_vprintf( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_vprintf( sbp_msg_linux_cpu_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -223,7 +223,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_append_printf( sbp_msg_linux_cpu_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -241,7 +241,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_cpu_state_dep_a_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_cpu_state_dep_a_cmdline_append_vprintf( sbp_msg_linux_cpu_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -251,7 +251,7 @@ bool sbp_msg_linux_cpu_state_dep_a_cmdline_append_vprintf( * @param msg sbp_msg_linux_cpu_state_dep_a_t instance * @return String contents */ -const char *sbp_msg_linux_cpu_state_dep_a_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_cpu_state_dep_a_cmdline_get( const sbp_msg_linux_cpu_state_dep_a_t *msg); /** @@ -262,7 +262,7 @@ const char *sbp_msg_linux_cpu_state_dep_a_cmdline_get( * @param msg sbp_msg_linux_cpu_state_dep_a_t instance * @return Length of string */ -size_t sbp_msg_linux_cpu_state_dep_a_cmdline_strlen( +SBP_EXPORT size_t sbp_msg_linux_cpu_state_dep_a_cmdline_strlen( const sbp_msg_linux_cpu_state_dep_a_t *msg); /** @@ -296,7 +296,7 @@ static inline size_t sbp_msg_linux_cpu_state_dep_a_encoded_len( * @param msg Instance of sbp_msg_linux_cpu_state_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_cpu_state_dep_a_encode( +SBP_EXPORT s8 sbp_msg_linux_cpu_state_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_cpu_state_dep_a_t *msg); @@ -317,9 +317,9 @@ s8 sbp_msg_linux_cpu_state_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_cpu_state_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_cpu_state_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_linux_cpu_state_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_linux_cpu_state_dep_a_t *msg); /** * Send an instance of sbp_msg_linux_cpu_state_dep_a_t with the given write * function @@ -337,7 +337,7 @@ s8 sbp_msg_linux_cpu_state_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_cpu_state_dep_a_send( +SBP_EXPORT s8 sbp_msg_linux_cpu_state_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_cpu_state_dep_a_t *msg, sbp_write_fn_t write); @@ -356,8 +356,9 @@ s8 sbp_msg_linux_cpu_state_dep_a_send( * @param b sbp_msg_linux_cpu_state_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_cpu_state_dep_a_cmp(const sbp_msg_linux_cpu_state_dep_a_t *a, - const sbp_msg_linux_cpu_state_dep_a_t *b); +SBP_EXPORT int sbp_msg_linux_cpu_state_dep_a_cmp( + const sbp_msg_linux_cpu_state_dep_a_t *a, + const sbp_msg_linux_cpu_state_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h b/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h index e04c2d5fb1..2f94e3b7a5 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h @@ -85,7 +85,8 @@ typedef struct { * * @param msg sbp_msg_linux_mem_state_t instance */ -void sbp_msg_linux_mem_state_cmdline_init(sbp_msg_linux_mem_state_t *msg); +SBP_EXPORT void sbp_msg_linux_mem_state_cmdline_init( + sbp_msg_linux_mem_state_t *msg); /** * Test sbp_msg_linux_mem_state_t::cmdline for validity @@ -94,7 +95,7 @@ void sbp_msg_linux_mem_state_cmdline_init(sbp_msg_linux_mem_state_t *msg); * @return true is sbp_msg_linux_mem_state_t::cmdline is valid for encoding * purposes, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_valid( const sbp_msg_linux_mem_state_t *msg); /** @@ -107,8 +108,8 @@ bool sbp_msg_linux_mem_state_cmdline_valid( * @param b sbp_msg_linux_mem_state_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_mem_state_cmdline_strcmp(const sbp_msg_linux_mem_state_t *a, - const sbp_msg_linux_mem_state_t *b); +SBP_EXPORT int sbp_msg_linux_mem_state_cmdline_strcmp( + const sbp_msg_linux_mem_state_t *a, const sbp_msg_linux_mem_state_t *b); /** * Get the encoded size of sbp_msg_linux_mem_state_t::cmdline @@ -116,7 +117,7 @@ int sbp_msg_linux_mem_state_cmdline_strcmp(const sbp_msg_linux_mem_state_t *a, * @param msg sbp_msg_linux_mem_state_t instance * @return Size of sbp_msg_linux_mem_state_t::cmdline in wire representation */ -size_t sbp_msg_linux_mem_state_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_mem_state_cmdline_encoded_len( const sbp_msg_linux_mem_state_t *msg); /** @@ -129,7 +130,7 @@ size_t sbp_msg_linux_mem_state_cmdline_encoded_len( * @param msg sbp_msg_linux_mem_state_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_mem_state_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_mem_state_cmdline_space_remaining( const sbp_msg_linux_mem_state_t *msg); /** * Set sbp_msg_linux_mem_state_t::cmdline @@ -148,9 +149,9 @@ size_t sbp_msg_linux_mem_state_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_set(sbp_msg_linux_mem_state_t *msg, - const char *new_str, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_set( + sbp_msg_linux_mem_state_t *msg, const char *new_str, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_linux_mem_state_t::cmdline from a raw buffer @@ -170,11 +171,9 @@ bool sbp_msg_linux_mem_state_cmdline_set(sbp_msg_linux_mem_state_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_set_raw(sbp_msg_linux_mem_state_t *msg, - const char *new_buf, - size_t new_buf_len, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_set_raw( + sbp_msg_linux_mem_state_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_linux_mem_state_t::cmdline with printf style formatting @@ -194,10 +193,9 @@ bool sbp_msg_linux_mem_state_cmdline_set_raw(sbp_msg_linux_mem_state_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_printf(sbp_msg_linux_mem_state_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - ...) SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_printf( + sbp_msg_linux_mem_state_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_linux_mem_state_t::cmdline with printf style formatting @@ -213,10 +211,9 @@ bool sbp_msg_linux_mem_state_cmdline_printf(sbp_msg_linux_mem_state_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_vprintf(sbp_msg_linux_mem_state_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - va_list ap) SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_vprintf( + sbp_msg_linux_mem_state_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_linux_mem_state_t::cmdline with printf style formatting @@ -234,7 +231,7 @@ bool sbp_msg_linux_mem_state_cmdline_vprintf(sbp_msg_linux_mem_state_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_append_printf( sbp_msg_linux_mem_state_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -252,7 +249,7 @@ bool sbp_msg_linux_mem_state_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_mem_state_cmdline_append_vprintf( sbp_msg_linux_mem_state_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -262,7 +259,7 @@ bool sbp_msg_linux_mem_state_cmdline_append_vprintf( * @param msg sbp_msg_linux_mem_state_t instance * @return String contents */ -const char *sbp_msg_linux_mem_state_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_mem_state_cmdline_get( const sbp_msg_linux_mem_state_t *msg); /** @@ -273,8 +270,8 @@ const char *sbp_msg_linux_mem_state_cmdline_get( * @param msg sbp_msg_linux_mem_state_t instance * @return Length of string */ -size_t sbp_msg_linux_mem_state_cmdline_strlen( - const sbp_msg_linux_mem_state_t *msg); +SBP_EXPORT size_t +sbp_msg_linux_mem_state_cmdline_strlen(const sbp_msg_linux_mem_state_t *msg); /** * Get encoded size of an instance of sbp_msg_linux_mem_state_t @@ -307,8 +304,9 @@ static inline size_t sbp_msg_linux_mem_state_encoded_len( * @param msg Instance of sbp_msg_linux_mem_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_mem_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_linux_mem_state_t *msg); +SBP_EXPORT s8 +sbp_msg_linux_mem_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_linux_mem_state_t *msg); /** * Decode an instance of sbp_msg_linux_mem_state_t from wire representation @@ -325,9 +323,9 @@ s8 sbp_msg_linux_mem_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_mem_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_mem_state_t *msg); +SBP_EXPORT s8 sbp_msg_linux_mem_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_linux_mem_state_t *msg); /** * Send an instance of sbp_msg_linux_mem_state_t with the given write function * @@ -344,9 +342,9 @@ s8 sbp_msg_linux_mem_state_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_mem_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_linux_mem_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_linux_mem_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_linux_mem_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_linux_mem_state_t @@ -363,8 +361,8 @@ s8 sbp_msg_linux_mem_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_linux_mem_state_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_mem_state_cmp(const sbp_msg_linux_mem_state_t *a, - const sbp_msg_linux_mem_state_t *b); +SBP_EXPORT int sbp_msg_linux_mem_state_cmp(const sbp_msg_linux_mem_state_t *a, + const sbp_msg_linux_mem_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE_DEP_A.h b/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE_DEP_A.h index 8017b9ff62..431f754e4b 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE_DEP_A.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE_DEP_A.h @@ -75,7 +75,7 @@ typedef struct { * * @param msg sbp_msg_linux_mem_state_dep_a_t instance */ -void sbp_msg_linux_mem_state_dep_a_cmdline_init( +SBP_EXPORT void sbp_msg_linux_mem_state_dep_a_cmdline_init( sbp_msg_linux_mem_state_dep_a_t *msg); /** @@ -85,7 +85,7 @@ void sbp_msg_linux_mem_state_dep_a_cmdline_init( * @return true is sbp_msg_linux_mem_state_dep_a_t::cmdline is valid for * encoding purposes, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_valid( const sbp_msg_linux_mem_state_dep_a_t *msg); /** @@ -98,7 +98,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_valid( * @param b sbp_msg_linux_mem_state_dep_a_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_mem_state_dep_a_cmdline_strcmp( +SBP_EXPORT int sbp_msg_linux_mem_state_dep_a_cmdline_strcmp( const sbp_msg_linux_mem_state_dep_a_t *a, const sbp_msg_linux_mem_state_dep_a_t *b); @@ -109,7 +109,7 @@ int sbp_msg_linux_mem_state_dep_a_cmdline_strcmp( * @return Size of sbp_msg_linux_mem_state_dep_a_t::cmdline in wire * representation */ -size_t sbp_msg_linux_mem_state_dep_a_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_mem_state_dep_a_cmdline_encoded_len( const sbp_msg_linux_mem_state_dep_a_t *msg); /** @@ -122,7 +122,7 @@ size_t sbp_msg_linux_mem_state_dep_a_cmdline_encoded_len( * @param msg sbp_msg_linux_mem_state_dep_a_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_mem_state_dep_a_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_mem_state_dep_a_cmdline_space_remaining( const sbp_msg_linux_mem_state_dep_a_t *msg); /** * Set sbp_msg_linux_mem_state_dep_a_t::cmdline @@ -141,7 +141,7 @@ size_t sbp_msg_linux_mem_state_dep_a_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_set( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_set( sbp_msg_linux_mem_state_dep_a_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -163,7 +163,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_set_raw( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_set_raw( sbp_msg_linux_mem_state_dep_a_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -185,7 +185,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_printf( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_printf( sbp_msg_linux_mem_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -203,7 +203,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_vprintf( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_vprintf( sbp_msg_linux_mem_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -223,7 +223,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_append_printf( sbp_msg_linux_mem_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -241,7 +241,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_mem_state_dep_a_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_mem_state_dep_a_cmdline_append_vprintf( sbp_msg_linux_mem_state_dep_a_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -251,7 +251,7 @@ bool sbp_msg_linux_mem_state_dep_a_cmdline_append_vprintf( * @param msg sbp_msg_linux_mem_state_dep_a_t instance * @return String contents */ -const char *sbp_msg_linux_mem_state_dep_a_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_mem_state_dep_a_cmdline_get( const sbp_msg_linux_mem_state_dep_a_t *msg); /** @@ -262,7 +262,7 @@ const char *sbp_msg_linux_mem_state_dep_a_cmdline_get( * @param msg sbp_msg_linux_mem_state_dep_a_t instance * @return Length of string */ -size_t sbp_msg_linux_mem_state_dep_a_cmdline_strlen( +SBP_EXPORT size_t sbp_msg_linux_mem_state_dep_a_cmdline_strlen( const sbp_msg_linux_mem_state_dep_a_t *msg); /** @@ -296,7 +296,7 @@ static inline size_t sbp_msg_linux_mem_state_dep_a_encoded_len( * @param msg Instance of sbp_msg_linux_mem_state_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_mem_state_dep_a_encode( +SBP_EXPORT s8 sbp_msg_linux_mem_state_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_mem_state_dep_a_t *msg); @@ -317,9 +317,9 @@ s8 sbp_msg_linux_mem_state_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_mem_state_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_mem_state_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_linux_mem_state_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_linux_mem_state_dep_a_t *msg); /** * Send an instance of sbp_msg_linux_mem_state_dep_a_t with the given write * function @@ -337,7 +337,7 @@ s8 sbp_msg_linux_mem_state_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_mem_state_dep_a_send( +SBP_EXPORT s8 sbp_msg_linux_mem_state_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_mem_state_dep_a_t *msg, sbp_write_fn_t write); @@ -356,8 +356,9 @@ s8 sbp_msg_linux_mem_state_dep_a_send( * @param b sbp_msg_linux_mem_state_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_mem_state_dep_a_cmp(const sbp_msg_linux_mem_state_dep_a_t *a, - const sbp_msg_linux_mem_state_dep_a_t *b); +SBP_EXPORT int sbp_msg_linux_mem_state_dep_a_cmp( + const sbp_msg_linux_mem_state_dep_a_t *a, + const sbp_msg_linux_mem_state_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_COUNT.h b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_COUNT.h index a4e4300e13..01529b8dc8 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_COUNT.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_COUNT.h @@ -69,7 +69,7 @@ typedef struct { * * @param msg sbp_msg_linux_process_fd_count_t instance */ -void sbp_msg_linux_process_fd_count_cmdline_init( +SBP_EXPORT void sbp_msg_linux_process_fd_count_cmdline_init( sbp_msg_linux_process_fd_count_t *msg); /** @@ -79,7 +79,7 @@ void sbp_msg_linux_process_fd_count_cmdline_init( * @return true is sbp_msg_linux_process_fd_count_t::cmdline is valid for * encoding purposes, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_valid( const sbp_msg_linux_process_fd_count_t *msg); /** @@ -92,7 +92,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_valid( * @param b sbp_msg_linux_process_fd_count_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_process_fd_count_cmdline_strcmp( +SBP_EXPORT int sbp_msg_linux_process_fd_count_cmdline_strcmp( const sbp_msg_linux_process_fd_count_t *a, const sbp_msg_linux_process_fd_count_t *b); @@ -103,7 +103,7 @@ int sbp_msg_linux_process_fd_count_cmdline_strcmp( * @return Size of sbp_msg_linux_process_fd_count_t::cmdline in wire * representation */ -size_t sbp_msg_linux_process_fd_count_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_process_fd_count_cmdline_encoded_len( const sbp_msg_linux_process_fd_count_t *msg); /** @@ -116,7 +116,7 @@ size_t sbp_msg_linux_process_fd_count_cmdline_encoded_len( * @param msg sbp_msg_linux_process_fd_count_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_process_fd_count_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_process_fd_count_cmdline_space_remaining( const sbp_msg_linux_process_fd_count_t *msg); /** * Set sbp_msg_linux_process_fd_count_t::cmdline @@ -135,7 +135,7 @@ size_t sbp_msg_linux_process_fd_count_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_set( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_set( sbp_msg_linux_process_fd_count_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -157,7 +157,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_set_raw( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_set_raw( sbp_msg_linux_process_fd_count_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -179,7 +179,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_printf( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_printf( sbp_msg_linux_process_fd_count_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -197,7 +197,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_vprintf( sbp_msg_linux_process_fd_count_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -217,7 +217,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_append_printf( sbp_msg_linux_process_fd_count_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -235,7 +235,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_count_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_fd_count_cmdline_append_vprintf( sbp_msg_linux_process_fd_count_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -245,7 +245,7 @@ bool sbp_msg_linux_process_fd_count_cmdline_append_vprintf( * @param msg sbp_msg_linux_process_fd_count_t instance * @return String contents */ -const char *sbp_msg_linux_process_fd_count_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_process_fd_count_cmdline_get( const sbp_msg_linux_process_fd_count_t *msg); /** @@ -256,7 +256,7 @@ const char *sbp_msg_linux_process_fd_count_cmdline_get( * @param msg sbp_msg_linux_process_fd_count_t instance * @return Length of string */ -size_t sbp_msg_linux_process_fd_count_cmdline_strlen( +SBP_EXPORT size_t sbp_msg_linux_process_fd_count_cmdline_strlen( const sbp_msg_linux_process_fd_count_t *msg); /** @@ -290,7 +290,7 @@ static inline size_t sbp_msg_linux_process_fd_count_encoded_len( * @param msg Instance of sbp_msg_linux_process_fd_count_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_fd_count_encode( +SBP_EXPORT s8 sbp_msg_linux_process_fd_count_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_process_fd_count_t *msg); @@ -311,9 +311,9 @@ s8 sbp_msg_linux_process_fd_count_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_fd_count_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_process_fd_count_t *msg); +SBP_EXPORT s8 sbp_msg_linux_process_fd_count_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_linux_process_fd_count_t *msg); /** * Send an instance of sbp_msg_linux_process_fd_count_t with the given write * function @@ -331,7 +331,7 @@ s8 sbp_msg_linux_process_fd_count_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_fd_count_send( +SBP_EXPORT s8 sbp_msg_linux_process_fd_count_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_process_fd_count_t *msg, sbp_write_fn_t write); @@ -350,7 +350,7 @@ s8 sbp_msg_linux_process_fd_count_send( * @param b sbp_msg_linux_process_fd_count_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_process_fd_count_cmp( +SBP_EXPORT int sbp_msg_linux_process_fd_count_cmp( const sbp_msg_linux_process_fd_count_t *a, const sbp_msg_linux_process_fd_count_t *b); diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_SUMMARY.h b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_SUMMARY.h index 5f51e3803a..b047a61b29 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_SUMMARY.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_SUMMARY.h @@ -63,7 +63,7 @@ typedef struct { * * @param msg sbp_msg_linux_process_fd_summary_t instance */ -void sbp_msg_linux_process_fd_summary_most_opened_init( +SBP_EXPORT void sbp_msg_linux_process_fd_summary_most_opened_init( sbp_msg_linux_process_fd_summary_t *msg); /** @@ -73,7 +73,7 @@ void sbp_msg_linux_process_fd_summary_most_opened_init( * @return true is sbp_msg_linux_process_fd_summary_t::most_opened is valid for * encoding purposes, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_valid( +SBP_EXPORT bool sbp_msg_linux_process_fd_summary_most_opened_valid( const sbp_msg_linux_process_fd_summary_t *msg); /** @@ -87,7 +87,7 @@ bool sbp_msg_linux_process_fd_summary_most_opened_valid( * @param b sbp_msg_linux_process_fd_summary_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_process_fd_summary_most_opened_strcmp( +SBP_EXPORT int sbp_msg_linux_process_fd_summary_most_opened_strcmp( const sbp_msg_linux_process_fd_summary_t *a, const sbp_msg_linux_process_fd_summary_t *b); @@ -98,7 +98,7 @@ int sbp_msg_linux_process_fd_summary_most_opened_strcmp( * @return Size of sbp_msg_linux_process_fd_summary_t::most_opened in wire * representation */ -size_t sbp_msg_linux_process_fd_summary_most_opened_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_process_fd_summary_most_opened_encoded_len( const sbp_msg_linux_process_fd_summary_t *msg); /** @@ -111,7 +111,7 @@ size_t sbp_msg_linux_process_fd_summary_most_opened_encoded_len( * @param msg sbp_msg_linux_process_fd_summary_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_process_fd_summary_most_opened_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_process_fd_summary_most_opened_space_remaining( const sbp_msg_linux_process_fd_summary_t *msg); /** * Return the number of sections in @@ -120,7 +120,7 @@ size_t sbp_msg_linux_process_fd_summary_most_opened_space_remaining( * @param msg sbp_msg_linux_process_fd_summary_t instance * @return Number of sections in string */ -size_t sbp_msg_linux_process_fd_summary_most_opened_count_sections( +SBP_EXPORT size_t sbp_msg_linux_process_fd_summary_most_opened_count_sections( const sbp_msg_linux_process_fd_summary_t *msg); /** @@ -134,7 +134,7 @@ size_t sbp_msg_linux_process_fd_summary_most_opened_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_add_section( +SBP_EXPORT bool sbp_msg_linux_process_fd_summary_most_opened_add_section( sbp_msg_linux_process_fd_summary_t *msg, const char *new_str); /** @@ -150,7 +150,7 @@ bool sbp_msg_linux_process_fd_summary_most_opened_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_add_section_printf( +SBP_EXPORT bool sbp_msg_linux_process_fd_summary_most_opened_add_section_printf( sbp_msg_linux_process_fd_summary_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -166,7 +166,8 @@ bool sbp_msg_linux_process_fd_summary_most_opened_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_add_section_vprintf( +SBP_EXPORT bool +sbp_msg_linux_process_fd_summary_most_opened_add_section_vprintf( sbp_msg_linux_process_fd_summary_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -188,7 +189,7 @@ bool sbp_msg_linux_process_fd_summary_most_opened_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_append( +SBP_EXPORT bool sbp_msg_linux_process_fd_summary_most_opened_append( sbp_msg_linux_process_fd_summary_t *msg, const char *str); /** @@ -209,7 +210,7 @@ bool sbp_msg_linux_process_fd_summary_most_opened_append( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_append_printf( +SBP_EXPORT bool sbp_msg_linux_process_fd_summary_most_opened_append_printf( sbp_msg_linux_process_fd_summary_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -232,7 +233,7 @@ bool sbp_msg_linux_process_fd_summary_most_opened_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_fd_summary_most_opened_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_fd_summary_most_opened_append_vprintf( sbp_msg_linux_process_fd_summary_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -247,7 +248,7 @@ bool sbp_msg_linux_process_fd_summary_most_opened_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_linux_process_fd_summary_most_opened_get_section( +SBP_EXPORT const char *sbp_msg_linux_process_fd_summary_most_opened_get_section( const sbp_msg_linux_process_fd_summary_t *msg, size_t section); /** @@ -262,7 +263,7 @@ const char *sbp_msg_linux_process_fd_summary_most_opened_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_linux_process_fd_summary_most_opened_section_strlen( +SBP_EXPORT size_t sbp_msg_linux_process_fd_summary_most_opened_section_strlen( const sbp_msg_linux_process_fd_summary_t *msg, size_t section); /** @@ -297,7 +298,7 @@ static inline size_t sbp_msg_linux_process_fd_summary_encoded_len( * @param msg Instance of sbp_msg_linux_process_fd_summary_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_fd_summary_encode( +SBP_EXPORT s8 sbp_msg_linux_process_fd_summary_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_process_fd_summary_t *msg); @@ -318,7 +319,7 @@ s8 sbp_msg_linux_process_fd_summary_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_fd_summary_decode( +SBP_EXPORT s8 sbp_msg_linux_process_fd_summary_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_linux_process_fd_summary_t *msg); /** @@ -338,7 +339,7 @@ s8 sbp_msg_linux_process_fd_summary_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_fd_summary_send( +SBP_EXPORT s8 sbp_msg_linux_process_fd_summary_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_process_fd_summary_t *msg, sbp_write_fn_t write); @@ -357,7 +358,7 @@ s8 sbp_msg_linux_process_fd_summary_send( * @param b sbp_msg_linux_process_fd_summary_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_process_fd_summary_cmp( +SBP_EXPORT int sbp_msg_linux_process_fd_summary_cmp( const sbp_msg_linux_process_fd_summary_t *a, const sbp_msg_linux_process_fd_summary_t *b); diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_COUNTS.h b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_COUNTS.h index 815812fabd..63443628f2 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_COUNTS.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_COUNTS.h @@ -83,7 +83,7 @@ typedef struct { * * @param msg sbp_msg_linux_process_socket_counts_t instance */ -void sbp_msg_linux_process_socket_counts_cmdline_init( +SBP_EXPORT void sbp_msg_linux_process_socket_counts_cmdline_init( sbp_msg_linux_process_socket_counts_t *msg); /** @@ -93,7 +93,7 @@ void sbp_msg_linux_process_socket_counts_cmdline_init( * @return true is sbp_msg_linux_process_socket_counts_t::cmdline is valid for * encoding purposes, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_valid( const sbp_msg_linux_process_socket_counts_t *msg); /** @@ -107,7 +107,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_valid( * @param b sbp_msg_linux_process_socket_counts_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_process_socket_counts_cmdline_strcmp( +SBP_EXPORT int sbp_msg_linux_process_socket_counts_cmdline_strcmp( const sbp_msg_linux_process_socket_counts_t *a, const sbp_msg_linux_process_socket_counts_t *b); @@ -118,7 +118,7 @@ int sbp_msg_linux_process_socket_counts_cmdline_strcmp( * @return Size of sbp_msg_linux_process_socket_counts_t::cmdline in wire * representation */ -size_t sbp_msg_linux_process_socket_counts_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_process_socket_counts_cmdline_encoded_len( const sbp_msg_linux_process_socket_counts_t *msg); /** @@ -131,7 +131,7 @@ size_t sbp_msg_linux_process_socket_counts_cmdline_encoded_len( * @param msg sbp_msg_linux_process_socket_counts_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_process_socket_counts_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_process_socket_counts_cmdline_space_remaining( const sbp_msg_linux_process_socket_counts_t *msg); /** * Set sbp_msg_linux_process_socket_counts_t::cmdline @@ -150,7 +150,7 @@ size_t sbp_msg_linux_process_socket_counts_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_set( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_set( sbp_msg_linux_process_socket_counts_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -172,7 +172,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_set_raw( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_set_raw( sbp_msg_linux_process_socket_counts_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -195,7 +195,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_printf( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_printf( sbp_msg_linux_process_socket_counts_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -214,7 +214,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_vprintf( sbp_msg_linux_process_socket_counts_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -235,7 +235,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_append_printf( sbp_msg_linux_process_socket_counts_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -254,7 +254,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_counts_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_socket_counts_cmdline_append_vprintf( sbp_msg_linux_process_socket_counts_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -264,7 +264,7 @@ bool sbp_msg_linux_process_socket_counts_cmdline_append_vprintf( * @param msg sbp_msg_linux_process_socket_counts_t instance * @return String contents */ -const char *sbp_msg_linux_process_socket_counts_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_process_socket_counts_cmdline_get( const sbp_msg_linux_process_socket_counts_t *msg); /** @@ -275,7 +275,7 @@ const char *sbp_msg_linux_process_socket_counts_cmdline_get( * @param msg sbp_msg_linux_process_socket_counts_t instance * @return Length of string */ -size_t sbp_msg_linux_process_socket_counts_cmdline_strlen( +SBP_EXPORT size_t sbp_msg_linux_process_socket_counts_cmdline_strlen( const sbp_msg_linux_process_socket_counts_t *msg); /** @@ -310,7 +310,7 @@ static inline size_t sbp_msg_linux_process_socket_counts_encoded_len( * @param msg Instance of sbp_msg_linux_process_socket_counts_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_socket_counts_encode( +SBP_EXPORT s8 sbp_msg_linux_process_socket_counts_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_process_socket_counts_t *msg); @@ -332,7 +332,7 @@ s8 sbp_msg_linux_process_socket_counts_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_socket_counts_decode( +SBP_EXPORT s8 sbp_msg_linux_process_socket_counts_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_linux_process_socket_counts_t *msg); /** @@ -352,7 +352,7 @@ s8 sbp_msg_linux_process_socket_counts_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_socket_counts_send( +SBP_EXPORT s8 sbp_msg_linux_process_socket_counts_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_process_socket_counts_t *msg, sbp_write_fn_t write); @@ -371,7 +371,7 @@ s8 sbp_msg_linux_process_socket_counts_send( * @param b sbp_msg_linux_process_socket_counts_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_process_socket_counts_cmp( +SBP_EXPORT int sbp_msg_linux_process_socket_counts_cmp( const sbp_msg_linux_process_socket_counts_t *a, const sbp_msg_linux_process_socket_counts_t *b); diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_QUEUES.h b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_QUEUES.h index 55082e7642..395b24fd78 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_QUEUES.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_QUEUES.h @@ -95,7 +95,7 @@ typedef struct { * * @param msg sbp_msg_linux_process_socket_queues_t instance */ -void sbp_msg_linux_process_socket_queues_cmdline_init( +SBP_EXPORT void sbp_msg_linux_process_socket_queues_cmdline_init( sbp_msg_linux_process_socket_queues_t *msg); /** @@ -105,7 +105,7 @@ void sbp_msg_linux_process_socket_queues_cmdline_init( * @return true is sbp_msg_linux_process_socket_queues_t::cmdline is valid for * encoding purposes, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_valid( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_valid( const sbp_msg_linux_process_socket_queues_t *msg); /** @@ -119,7 +119,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_valid( * @param b sbp_msg_linux_process_socket_queues_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_linux_process_socket_queues_cmdline_strcmp( +SBP_EXPORT int sbp_msg_linux_process_socket_queues_cmdline_strcmp( const sbp_msg_linux_process_socket_queues_t *a, const sbp_msg_linux_process_socket_queues_t *b); @@ -130,7 +130,7 @@ int sbp_msg_linux_process_socket_queues_cmdline_strcmp( * @return Size of sbp_msg_linux_process_socket_queues_t::cmdline in wire * representation */ -size_t sbp_msg_linux_process_socket_queues_cmdline_encoded_len( +SBP_EXPORT size_t sbp_msg_linux_process_socket_queues_cmdline_encoded_len( const sbp_msg_linux_process_socket_queues_t *msg); /** @@ -143,7 +143,7 @@ size_t sbp_msg_linux_process_socket_queues_cmdline_encoded_len( * @param msg sbp_msg_linux_process_socket_queues_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_linux_process_socket_queues_cmdline_space_remaining( +SBP_EXPORT size_t sbp_msg_linux_process_socket_queues_cmdline_space_remaining( const sbp_msg_linux_process_socket_queues_t *msg); /** * Set sbp_msg_linux_process_socket_queues_t::cmdline @@ -162,7 +162,7 @@ size_t sbp_msg_linux_process_socket_queues_cmdline_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_set( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_set( sbp_msg_linux_process_socket_queues_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -184,7 +184,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_set_raw( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_set_raw( sbp_msg_linux_process_socket_queues_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -207,7 +207,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_printf( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_printf( sbp_msg_linux_process_socket_queues_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -226,7 +226,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_vprintf( sbp_msg_linux_process_socket_queues_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -247,7 +247,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_append_printf( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_append_printf( sbp_msg_linux_process_socket_queues_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -266,7 +266,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_linux_process_socket_queues_cmdline_append_vprintf( +SBP_EXPORT bool sbp_msg_linux_process_socket_queues_cmdline_append_vprintf( sbp_msg_linux_process_socket_queues_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -276,7 +276,7 @@ bool sbp_msg_linux_process_socket_queues_cmdline_append_vprintf( * @param msg sbp_msg_linux_process_socket_queues_t instance * @return String contents */ -const char *sbp_msg_linux_process_socket_queues_cmdline_get( +SBP_EXPORT const char *sbp_msg_linux_process_socket_queues_cmdline_get( const sbp_msg_linux_process_socket_queues_t *msg); /** @@ -287,7 +287,7 @@ const char *sbp_msg_linux_process_socket_queues_cmdline_get( * @param msg sbp_msg_linux_process_socket_queues_t instance * @return Length of string */ -size_t sbp_msg_linux_process_socket_queues_cmdline_strlen( +SBP_EXPORT size_t sbp_msg_linux_process_socket_queues_cmdline_strlen( const sbp_msg_linux_process_socket_queues_t *msg); /** @@ -322,7 +322,7 @@ static inline size_t sbp_msg_linux_process_socket_queues_encoded_len( * @param msg Instance of sbp_msg_linux_process_socket_queues_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_socket_queues_encode( +SBP_EXPORT s8 sbp_msg_linux_process_socket_queues_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_process_socket_queues_t *msg); @@ -344,7 +344,7 @@ s8 sbp_msg_linux_process_socket_queues_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_socket_queues_decode( +SBP_EXPORT s8 sbp_msg_linux_process_socket_queues_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_linux_process_socket_queues_t *msg); /** @@ -364,7 +364,7 @@ s8 sbp_msg_linux_process_socket_queues_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_process_socket_queues_send( +SBP_EXPORT s8 sbp_msg_linux_process_socket_queues_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_process_socket_queues_t *msg, sbp_write_fn_t write); @@ -383,7 +383,7 @@ s8 sbp_msg_linux_process_socket_queues_send( * @param b sbp_msg_linux_process_socket_queues_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_process_socket_queues_cmp( +SBP_EXPORT int sbp_msg_linux_process_socket_queues_cmp( const sbp_msg_linux_process_socket_queues_t *a, const sbp_msg_linux_process_socket_queues_t *b); diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h b/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h index 1b76e7de6b..60a537e4d5 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h @@ -97,9 +97,9 @@ static inline size_t sbp_msg_linux_socket_usage_encoded_len( * @param msg Instance of sbp_msg_linux_socket_usage_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_socket_usage_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_linux_socket_usage_t *msg); +SBP_EXPORT s8 +sbp_msg_linux_socket_usage_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_linux_socket_usage_t *msg); /** * Decode an instance of sbp_msg_linux_socket_usage_t from wire representation @@ -116,9 +116,9 @@ s8 sbp_msg_linux_socket_usage_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_socket_usage_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_socket_usage_t *msg); +SBP_EXPORT s8 sbp_msg_linux_socket_usage_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_linux_socket_usage_t *msg); /** * Send an instance of sbp_msg_linux_socket_usage_t with the given write * function @@ -136,9 +136,9 @@ s8 sbp_msg_linux_socket_usage_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_socket_usage_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_linux_socket_usage_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_linux_socket_usage_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_linux_socket_usage_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_linux_socket_usage_t @@ -155,8 +155,9 @@ s8 sbp_msg_linux_socket_usage_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_linux_socket_usage_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_socket_usage_cmp(const sbp_msg_linux_socket_usage_t *a, - const sbp_msg_linux_socket_usage_t *b); +SBP_EXPORT int sbp_msg_linux_socket_usage_cmp( + const sbp_msg_linux_socket_usage_t *a, + const sbp_msg_linux_socket_usage_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h b/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h index 9e596e1c9d..a9bc5415ae 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h @@ -115,8 +115,9 @@ static inline size_t sbp_msg_linux_sys_state_encoded_len( * @param msg Instance of sbp_msg_linux_sys_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_sys_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_linux_sys_state_t *msg); +SBP_EXPORT s8 +sbp_msg_linux_sys_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_linux_sys_state_t *msg); /** * Decode an instance of sbp_msg_linux_sys_state_t from wire representation @@ -133,9 +134,9 @@ s8 sbp_msg_linux_sys_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_sys_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_sys_state_t *msg); +SBP_EXPORT s8 sbp_msg_linux_sys_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_linux_sys_state_t *msg); /** * Send an instance of sbp_msg_linux_sys_state_t with the given write function * @@ -152,9 +153,9 @@ s8 sbp_msg_linux_sys_state_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_sys_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_linux_sys_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_linux_sys_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_linux_sys_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_linux_sys_state_t @@ -171,8 +172,8 @@ s8 sbp_msg_linux_sys_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_linux_sys_state_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_sys_state_cmp(const sbp_msg_linux_sys_state_t *a, - const sbp_msg_linux_sys_state_t *b); +SBP_EXPORT int sbp_msg_linux_sys_state_cmp(const sbp_msg_linux_sys_state_t *a, + const sbp_msg_linux_sys_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE_DEP_A.h b/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE_DEP_A.h index 496959087b..0aceda8331 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE_DEP_A.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE_DEP_A.h @@ -105,7 +105,7 @@ static inline size_t sbp_msg_linux_sys_state_dep_a_encoded_len( * @param msg Instance of sbp_msg_linux_sys_state_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_sys_state_dep_a_encode( +SBP_EXPORT s8 sbp_msg_linux_sys_state_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_linux_sys_state_dep_a_t *msg); @@ -126,9 +126,9 @@ s8 sbp_msg_linux_sys_state_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_sys_state_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_linux_sys_state_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_linux_sys_state_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_linux_sys_state_dep_a_t *msg); /** * Send an instance of sbp_msg_linux_sys_state_dep_a_t with the given write * function @@ -146,7 +146,7 @@ s8 sbp_msg_linux_sys_state_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_linux_sys_state_dep_a_send( +SBP_EXPORT s8 sbp_msg_linux_sys_state_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_linux_sys_state_dep_a_t *msg, sbp_write_fn_t write); @@ -165,8 +165,9 @@ s8 sbp_msg_linux_sys_state_dep_a_send( * @param b sbp_msg_linux_sys_state_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_linux_sys_state_dep_a_cmp(const sbp_msg_linux_sys_state_dep_a_t *a, - const sbp_msg_linux_sys_state_dep_a_t *b); +SBP_EXPORT int sbp_msg_linux_sys_state_dep_a_cmp( + const sbp_msg_linux_sys_state_dep_a_t *a, + const sbp_msg_linux_sys_state_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/logging/MSG_FWD.h b/c/include/libsbp/v4/logging/MSG_FWD.h index 43c366cc18..00c9560aa5 100644 --- a/c/include/libsbp/v4/logging/MSG_FWD.h +++ b/c/include/libsbp/v4/logging/MSG_FWD.h @@ -103,8 +103,8 @@ static inline size_t sbp_msg_fwd_encoded_len(const sbp_msg_fwd_t *msg) { * @param msg Instance of sbp_msg_fwd_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fwd_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_fwd_t *msg); +SBP_EXPORT s8 sbp_msg_fwd_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_fwd_t *msg); /** * Decode an instance of sbp_msg_fwd_t from wire representation @@ -121,8 +121,8 @@ s8 sbp_msg_fwd_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fwd_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_fwd_t *msg); +SBP_EXPORT s8 sbp_msg_fwd_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_fwd_t *msg); /** * Send an instance of sbp_msg_fwd_t with the given write function * @@ -139,8 +139,8 @@ s8 sbp_msg_fwd_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_fwd_send(sbp_state_t *s, u16 sender_id, const sbp_msg_fwd_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_fwd_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_fwd_t *msg, sbp_write_fn_t write); /** * Compare two instances of sbp_msg_fwd_t @@ -157,7 +157,7 @@ s8 sbp_msg_fwd_send(sbp_state_t *s, u16 sender_id, const sbp_msg_fwd_t *msg, * @param b sbp_msg_fwd_t instance * @return 0, <0, >0 */ -int sbp_msg_fwd_cmp(const sbp_msg_fwd_t *a, const sbp_msg_fwd_t *b); +SBP_EXPORT int sbp_msg_fwd_cmp(const sbp_msg_fwd_t *a, const sbp_msg_fwd_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/logging/MSG_LOG.h b/c/include/libsbp/v4/logging/MSG_LOG.h index 92aeb960f8..3d406f2cf8 100644 --- a/c/include/libsbp/v4/logging/MSG_LOG.h +++ b/c/include/libsbp/v4/logging/MSG_LOG.h @@ -61,7 +61,7 @@ typedef struct { * * @param msg sbp_msg_log_t instance */ -void sbp_msg_log_text_init(sbp_msg_log_t *msg); +SBP_EXPORT void sbp_msg_log_text_init(sbp_msg_log_t *msg); /** * Test sbp_msg_log_t::text for validity @@ -70,7 +70,7 @@ void sbp_msg_log_text_init(sbp_msg_log_t *msg); * @return true is sbp_msg_log_t::text is valid for encoding purposes, false * otherwise */ -bool sbp_msg_log_text_valid(const sbp_msg_log_t *msg); +SBP_EXPORT bool sbp_msg_log_text_valid(const sbp_msg_log_t *msg); /** * Tests 2 instances of sbp_msg_log_t::text for equality @@ -82,7 +82,8 @@ bool sbp_msg_log_text_valid(const sbp_msg_log_t *msg); * @param b sbp_msg_log_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_log_text_strcmp(const sbp_msg_log_t *a, const sbp_msg_log_t *b); +SBP_EXPORT int sbp_msg_log_text_strcmp(const sbp_msg_log_t *a, + const sbp_msg_log_t *b); /** * Get the encoded size of sbp_msg_log_t::text @@ -90,7 +91,7 @@ int sbp_msg_log_text_strcmp(const sbp_msg_log_t *a, const sbp_msg_log_t *b); * @param msg sbp_msg_log_t instance * @return Size of sbp_msg_log_t::text in wire representation */ -size_t sbp_msg_log_text_encoded_len(const sbp_msg_log_t *msg); +SBP_EXPORT size_t sbp_msg_log_text_encoded_len(const sbp_msg_log_t *msg); /** * Query sbp_msg_log_t::text for remaining space @@ -102,7 +103,7 @@ size_t sbp_msg_log_text_encoded_len(const sbp_msg_log_t *msg); * @param msg sbp_msg_log_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_log_text_space_remaining(const sbp_msg_log_t *msg); +SBP_EXPORT size_t sbp_msg_log_text_space_remaining(const sbp_msg_log_t *msg); /** * Set sbp_msg_log_t::text * @@ -120,8 +121,8 @@ size_t sbp_msg_log_text_space_remaining(const sbp_msg_log_t *msg); * written to msg * @return true on success, false otherwise */ -bool sbp_msg_log_text_set(sbp_msg_log_t *msg, const char *new_str, - bool should_trunc, size_t *n_written); +SBP_EXPORT bool sbp_msg_log_text_set(sbp_msg_log_t *msg, const char *new_str, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_log_t::text from a raw buffer @@ -141,9 +142,10 @@ bool sbp_msg_log_text_set(sbp_msg_log_t *msg, const char *new_str, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_log_text_set_raw(sbp_msg_log_t *msg, const char *new_buf, - size_t new_buf_len, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_log_text_set_raw(sbp_msg_log_t *msg, + const char *new_buf, + size_t new_buf_len, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_log_t::text with printf style formatting @@ -163,8 +165,8 @@ bool sbp_msg_log_text_set_raw(sbp_msg_log_t *msg, const char *new_buf, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_log_text_printf(sbp_msg_log_t *msg, bool should_trunc, - size_t *n_written, const char *fmt, ...) +SBP_EXPORT bool sbp_msg_log_text_printf(sbp_msg_log_t *msg, bool should_trunc, + size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** @@ -180,9 +182,9 @@ bool sbp_msg_log_text_printf(sbp_msg_log_t *msg, bool should_trunc, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_log_text_vprintf(sbp_msg_log_t *msg, bool should_trunc, - size_t *n_written, const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_log_text_vprintf(sbp_msg_log_t *msg, bool should_trunc, + size_t *n_written, const char *fmt, + va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_log_t::text with printf style formatting @@ -200,8 +202,10 @@ bool sbp_msg_log_text_vprintf(sbp_msg_log_t *msg, bool should_trunc, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_log_text_append_printf(sbp_msg_log_t *msg, bool should_trunc, - size_t *n_written, const char *fmt, ...) +SBP_EXPORT bool sbp_msg_log_text_append_printf(sbp_msg_log_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** @@ -218,9 +222,11 @@ bool sbp_msg_log_text_append_printf(sbp_msg_log_t *msg, bool should_trunc, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_log_text_append_vprintf(sbp_msg_log_t *msg, bool should_trunc, - size_t *n_written, const char *fmt, - va_list ap) SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_log_text_append_vprintf(sbp_msg_log_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, va_list ap) + SBP_ATTR_VFORMAT(4); /** * Obtain the string value from sbp_msg_log_t::text @@ -228,7 +234,7 @@ bool sbp_msg_log_text_append_vprintf(sbp_msg_log_t *msg, bool should_trunc, * @param msg sbp_msg_log_t instance * @return String contents */ -const char *sbp_msg_log_text_get(const sbp_msg_log_t *msg); +SBP_EXPORT const char *sbp_msg_log_text_get(const sbp_msg_log_t *msg); /** * Obtain the length of sbp_msg_log_t::text @@ -238,7 +244,7 @@ const char *sbp_msg_log_text_get(const sbp_msg_log_t *msg); * @param msg sbp_msg_log_t instance * @return Length of string */ -size_t sbp_msg_log_text_strlen(const sbp_msg_log_t *msg); +SBP_EXPORT size_t sbp_msg_log_text_strlen(const sbp_msg_log_t *msg); /** * Get encoded size of an instance of sbp_msg_log_t @@ -269,8 +275,8 @@ static inline size_t sbp_msg_log_encoded_len(const sbp_msg_log_t *msg) { * @param msg Instance of sbp_msg_log_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_log_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_log_t *msg); +SBP_EXPORT s8 sbp_msg_log_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_log_t *msg); /** * Decode an instance of sbp_msg_log_t from wire representation @@ -287,8 +293,8 @@ s8 sbp_msg_log_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_log_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_log_t *msg); +SBP_EXPORT s8 sbp_msg_log_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_log_t *msg); /** * Send an instance of sbp_msg_log_t with the given write function * @@ -305,8 +311,8 @@ s8 sbp_msg_log_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_log_send(sbp_state_t *s, u16 sender_id, const sbp_msg_log_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_log_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_log_t *msg, sbp_write_fn_t write); /** * Compare two instances of sbp_msg_log_t @@ -323,7 +329,7 @@ s8 sbp_msg_log_send(sbp_state_t *s, u16 sender_id, const sbp_msg_log_t *msg, * @param b sbp_msg_log_t instance * @return 0, <0, >0 */ -int sbp_msg_log_cmp(const sbp_msg_log_t *a, const sbp_msg_log_t *b); +SBP_EXPORT int sbp_msg_log_cmp(const sbp_msg_log_t *a, const sbp_msg_log_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h b/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h index ad73610be1..f2538eef0c 100644 --- a/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h +++ b/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h @@ -54,7 +54,7 @@ typedef struct { * * @param msg sbp_msg_print_dep_t instance */ -void sbp_msg_print_dep_text_init(sbp_msg_print_dep_t *msg); +SBP_EXPORT void sbp_msg_print_dep_text_init(sbp_msg_print_dep_t *msg); /** * Test sbp_msg_print_dep_t::text for validity @@ -63,7 +63,7 @@ void sbp_msg_print_dep_text_init(sbp_msg_print_dep_t *msg); * @return true is sbp_msg_print_dep_t::text is valid for encoding purposes, * false otherwise */ -bool sbp_msg_print_dep_text_valid(const sbp_msg_print_dep_t *msg); +SBP_EXPORT bool sbp_msg_print_dep_text_valid(const sbp_msg_print_dep_t *msg); /** * Tests 2 instances of sbp_msg_print_dep_t::text for equality @@ -75,8 +75,8 @@ bool sbp_msg_print_dep_text_valid(const sbp_msg_print_dep_t *msg); * @param b sbp_msg_print_dep_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_print_dep_text_strcmp(const sbp_msg_print_dep_t *a, - const sbp_msg_print_dep_t *b); +SBP_EXPORT int sbp_msg_print_dep_text_strcmp(const sbp_msg_print_dep_t *a, + const sbp_msg_print_dep_t *b); /** * Get the encoded size of sbp_msg_print_dep_t::text @@ -84,7 +84,8 @@ int sbp_msg_print_dep_text_strcmp(const sbp_msg_print_dep_t *a, * @param msg sbp_msg_print_dep_t instance * @return Size of sbp_msg_print_dep_t::text in wire representation */ -size_t sbp_msg_print_dep_text_encoded_len(const sbp_msg_print_dep_t *msg); +SBP_EXPORT size_t +sbp_msg_print_dep_text_encoded_len(const sbp_msg_print_dep_t *msg); /** * Query sbp_msg_print_dep_t::text for remaining space @@ -96,7 +97,8 @@ size_t sbp_msg_print_dep_text_encoded_len(const sbp_msg_print_dep_t *msg); * @param msg sbp_msg_print_dep_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_print_dep_text_space_remaining(const sbp_msg_print_dep_t *msg); +SBP_EXPORT size_t +sbp_msg_print_dep_text_space_remaining(const sbp_msg_print_dep_t *msg); /** * Set sbp_msg_print_dep_t::text * @@ -114,8 +116,10 @@ size_t sbp_msg_print_dep_text_space_remaining(const sbp_msg_print_dep_t *msg); * written to msg * @return true on success, false otherwise */ -bool sbp_msg_print_dep_text_set(sbp_msg_print_dep_t *msg, const char *new_str, - bool should_trunc, size_t *n_written); +SBP_EXPORT bool sbp_msg_print_dep_text_set(sbp_msg_print_dep_t *msg, + const char *new_str, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_print_dep_t::text from a raw buffer @@ -135,9 +139,11 @@ bool sbp_msg_print_dep_text_set(sbp_msg_print_dep_t *msg, const char *new_str, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_print_dep_text_set_raw(sbp_msg_print_dep_t *msg, - const char *new_buf, size_t new_buf_len, - bool should_trunc, size_t *n_written); +SBP_EXPORT bool sbp_msg_print_dep_text_set_raw(sbp_msg_print_dep_t *msg, + const char *new_buf, + size_t new_buf_len, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_print_dep_t::text with printf style formatting @@ -157,8 +163,10 @@ bool sbp_msg_print_dep_text_set_raw(sbp_msg_print_dep_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_print_dep_text_printf(sbp_msg_print_dep_t *msg, bool should_trunc, - size_t *n_written, const char *fmt, ...) +SBP_EXPORT bool sbp_msg_print_dep_text_printf(sbp_msg_print_dep_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** @@ -175,9 +183,11 @@ bool sbp_msg_print_dep_text_printf(sbp_msg_print_dep_t *msg, bool should_trunc, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_print_dep_text_vprintf(sbp_msg_print_dep_t *msg, bool should_trunc, - size_t *n_written, const char *fmt, - va_list ap) SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_print_dep_text_vprintf(sbp_msg_print_dep_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, va_list ap) + SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_print_dep_t::text with printf style formatting @@ -195,9 +205,10 @@ bool sbp_msg_print_dep_text_vprintf(sbp_msg_print_dep_t *msg, bool should_trunc, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_print_dep_text_append_printf(sbp_msg_print_dep_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, ...) +SBP_EXPORT bool sbp_msg_print_dep_text_append_printf(sbp_msg_print_dep_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** @@ -214,10 +225,9 @@ bool sbp_msg_print_dep_text_append_printf(sbp_msg_print_dep_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_print_dep_text_append_vprintf(sbp_msg_print_dep_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_print_dep_text_append_vprintf( + sbp_msg_print_dep_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Obtain the string value from sbp_msg_print_dep_t::text @@ -225,7 +235,8 @@ bool sbp_msg_print_dep_text_append_vprintf(sbp_msg_print_dep_t *msg, * @param msg sbp_msg_print_dep_t instance * @return String contents */ -const char *sbp_msg_print_dep_text_get(const sbp_msg_print_dep_t *msg); +SBP_EXPORT const char *sbp_msg_print_dep_text_get( + const sbp_msg_print_dep_t *msg); /** * Obtain the length of sbp_msg_print_dep_t::text @@ -235,7 +246,7 @@ const char *sbp_msg_print_dep_text_get(const sbp_msg_print_dep_t *msg); * @param msg sbp_msg_print_dep_t instance * @return Length of string */ -size_t sbp_msg_print_dep_text_strlen(const sbp_msg_print_dep_t *msg); +SBP_EXPORT size_t sbp_msg_print_dep_text_strlen(const sbp_msg_print_dep_t *msg); /** * Get encoded size of an instance of sbp_msg_print_dep_t @@ -268,8 +279,9 @@ static inline size_t sbp_msg_print_dep_encoded_len( * @param msg Instance of sbp_msg_print_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_print_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_print_dep_t *msg); +SBP_EXPORT s8 sbp_msg_print_dep_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_print_dep_t *msg); /** * Decode an instance of sbp_msg_print_dep_t from wire representation @@ -286,8 +298,9 @@ s8 sbp_msg_print_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_print_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_print_dep_t *msg); +SBP_EXPORT s8 sbp_msg_print_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_print_dep_t *msg); /** * Send an instance of sbp_msg_print_dep_t with the given write function * @@ -304,8 +317,9 @@ s8 sbp_msg_print_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_print_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_print_dep_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_print_dep_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_print_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_print_dep_t @@ -322,8 +336,8 @@ s8 sbp_msg_print_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_print_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_print_dep_cmp(const sbp_msg_print_dep_t *a, - const sbp_msg_print_dep_t *b); +SBP_EXPORT int sbp_msg_print_dep_cmp(const sbp_msg_print_dep_t *a, + const sbp_msg_print_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/mag/MSG_MAG_RAW.h b/c/include/libsbp/v4/mag/MSG_MAG_RAW.h index 9b7b8a4962..f25dd9ff42 100644 --- a/c/include/libsbp/v4/mag/MSG_MAG_RAW.h +++ b/c/include/libsbp/v4/mag/MSG_MAG_RAW.h @@ -100,8 +100,9 @@ static inline size_t sbp_msg_mag_raw_encoded_len(const sbp_msg_mag_raw_t *msg) { * @param msg Instance of sbp_msg_mag_raw_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mag_raw_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_mag_raw_t *msg); +SBP_EXPORT s8 sbp_msg_mag_raw_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_mag_raw_t *msg); /** * Decode an instance of sbp_msg_mag_raw_t from wire representation @@ -118,8 +119,8 @@ s8 sbp_msg_mag_raw_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mag_raw_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_mag_raw_t *msg); +SBP_EXPORT s8 sbp_msg_mag_raw_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_mag_raw_t *msg); /** * Send an instance of sbp_msg_mag_raw_t with the given write function * @@ -136,8 +137,9 @@ s8 sbp_msg_mag_raw_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mag_raw_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_mag_raw_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_mag_raw_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_mag_raw_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_mag_raw_t @@ -154,7 +156,8 @@ s8 sbp_msg_mag_raw_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_mag_raw_t instance * @return 0, <0, >0 */ -int sbp_msg_mag_raw_cmp(const sbp_msg_mag_raw_t *a, const sbp_msg_mag_raw_t *b); +SBP_EXPORT int sbp_msg_mag_raw_cmp(const sbp_msg_mag_raw_t *a, + const sbp_msg_mag_raw_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h b/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h index 33ffa3c504..de6ba093f6 100644 --- a/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h +++ b/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h @@ -90,7 +90,7 @@ static inline size_t sbp_estimated_horizontal_error_ellipse_encoded_len( * @param msg Instance of sbp_estimated_horizontal_error_ellipse_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_estimated_horizontal_error_ellipse_encode( +SBP_EXPORT s8 sbp_estimated_horizontal_error_ellipse_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_estimated_horizontal_error_ellipse_t *msg); @@ -112,7 +112,7 @@ s8 sbp_estimated_horizontal_error_ellipse_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_estimated_horizontal_error_ellipse_decode( +SBP_EXPORT s8 sbp_estimated_horizontal_error_ellipse_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_estimated_horizontal_error_ellipse_t *msg); @@ -131,7 +131,7 @@ s8 sbp_estimated_horizontal_error_ellipse_decode( * @param b sbp_estimated_horizontal_error_ellipse_t instance * @return 0, <0, >0 */ -int sbp_estimated_horizontal_error_ellipse_cmp( +SBP_EXPORT int sbp_estimated_horizontal_error_ellipse_cmp( const sbp_estimated_horizontal_error_ellipse_t *a, const sbp_estimated_horizontal_error_ellipse_t *b); diff --git a/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h b/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h index 7d6b46658b..d27e0db14a 100644 --- a/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h +++ b/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h @@ -86,8 +86,9 @@ static inline size_t sbp_msg_age_corrections_encoded_len( * @param msg Instance of sbp_msg_age_corrections_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_age_corrections_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_age_corrections_t *msg); +SBP_EXPORT s8 +sbp_msg_age_corrections_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_age_corrections_t *msg); /** * Decode an instance of sbp_msg_age_corrections_t from wire representation @@ -104,9 +105,9 @@ s8 sbp_msg_age_corrections_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_age_corrections_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_age_corrections_t *msg); +SBP_EXPORT s8 sbp_msg_age_corrections_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_age_corrections_t *msg); /** * Send an instance of sbp_msg_age_corrections_t with the given write function * @@ -123,9 +124,9 @@ s8 sbp_msg_age_corrections_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_age_corrections_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_age_corrections_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_age_corrections_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_age_corrections_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_age_corrections_t @@ -142,8 +143,8 @@ s8 sbp_msg_age_corrections_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_age_corrections_t instance * @return 0, <0, >0 */ -int sbp_msg_age_corrections_cmp(const sbp_msg_age_corrections_t *a, - const sbp_msg_age_corrections_t *b); +SBP_EXPORT int sbp_msg_age_corrections_cmp(const sbp_msg_age_corrections_t *a, + const sbp_msg_age_corrections_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h index 588ca381c5..3a6bc487b8 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h @@ -113,8 +113,9 @@ static inline size_t sbp_msg_baseline_ecef_encoded_len( * @param msg Instance of sbp_msg_baseline_ecef_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_baseline_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ecef_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_baseline_ecef_t *msg); /** * Decode an instance of sbp_msg_baseline_ecef_t from wire representation @@ -131,8 +132,9 @@ s8 sbp_msg_baseline_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ecef_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_baseline_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ecef_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_baseline_ecef_t *msg); /** * Send an instance of sbp_msg_baseline_ecef_t with the given write function * @@ -149,9 +151,9 @@ s8 sbp_msg_baseline_ecef_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ecef_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_baseline_ecef_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_baseline_ecef_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_baseline_ecef_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_baseline_ecef_t @@ -168,8 +170,8 @@ s8 sbp_msg_baseline_ecef_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_baseline_ecef_t instance * @return 0, <0, >0 */ -int sbp_msg_baseline_ecef_cmp(const sbp_msg_baseline_ecef_t *a, - const sbp_msg_baseline_ecef_t *b); +SBP_EXPORT int sbp_msg_baseline_ecef_cmp(const sbp_msg_baseline_ecef_t *a, + const sbp_msg_baseline_ecef_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF_DEP_A.h index 049969d87d..0f100b02cc 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF_DEP_A.h @@ -113,9 +113,9 @@ static inline size_t sbp_msg_baseline_ecef_dep_a_encoded_len( * @param msg Instance of sbp_msg_baseline_ecef_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ecef_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_baseline_ecef_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ecef_dep_a_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_baseline_ecef_dep_a_t *msg); /** * Decode an instance of sbp_msg_baseline_ecef_dep_a_t from wire representation @@ -132,9 +132,9 @@ s8 sbp_msg_baseline_ecef_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_baseline_ecef_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ecef_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_baseline_ecef_dep_a_t *msg); /** * Send an instance of sbp_msg_baseline_ecef_dep_a_t with the given write * function @@ -152,9 +152,9 @@ s8 sbp_msg_baseline_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_baseline_ecef_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_baseline_ecef_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_baseline_ecef_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_baseline_ecef_dep_a_t @@ -171,8 +171,9 @@ s8 sbp_msg_baseline_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_baseline_ecef_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_baseline_ecef_dep_a_cmp(const sbp_msg_baseline_ecef_dep_a_t *a, - const sbp_msg_baseline_ecef_dep_a_t *b); +SBP_EXPORT int sbp_msg_baseline_ecef_dep_a_cmp( + const sbp_msg_baseline_ecef_dep_a_t *a, + const sbp_msg_baseline_ecef_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_HEADING_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_HEADING_DEP_A.h index 20b4fd7e10..70e0156067 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_HEADING_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_HEADING_DEP_A.h @@ -97,7 +97,7 @@ static inline size_t sbp_msg_baseline_heading_dep_a_encoded_len( * @param msg Instance of sbp_msg_baseline_heading_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_heading_dep_a_encode( +SBP_EXPORT s8 sbp_msg_baseline_heading_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_baseline_heading_dep_a_t *msg); @@ -118,9 +118,9 @@ s8 sbp_msg_baseline_heading_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_heading_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_baseline_heading_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_heading_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_baseline_heading_dep_a_t *msg); /** * Send an instance of sbp_msg_baseline_heading_dep_a_t with the given write * function @@ -138,7 +138,7 @@ s8 sbp_msg_baseline_heading_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_heading_dep_a_send( +SBP_EXPORT s8 sbp_msg_baseline_heading_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_baseline_heading_dep_a_t *msg, sbp_write_fn_t write); @@ -157,7 +157,7 @@ s8 sbp_msg_baseline_heading_dep_a_send( * @param b sbp_msg_baseline_heading_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_baseline_heading_dep_a_cmp( +SBP_EXPORT int sbp_msg_baseline_heading_dep_a_cmp( const sbp_msg_baseline_heading_dep_a_t *a, const sbp_msg_baseline_heading_dep_a_t *b); diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h index cb7fd9aa02..e795e3df00 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h @@ -120,8 +120,9 @@ static inline size_t sbp_msg_baseline_ned_encoded_len( * @param msg Instance of sbp_msg_baseline_ned_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ned_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_baseline_ned_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ned_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_baseline_ned_t *msg); /** * Decode an instance of sbp_msg_baseline_ned_t from wire representation @@ -138,8 +139,9 @@ s8 sbp_msg_baseline_ned_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ned_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_baseline_ned_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ned_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_baseline_ned_t *msg); /** * Send an instance of sbp_msg_baseline_ned_t with the given write function * @@ -156,9 +158,9 @@ s8 sbp_msg_baseline_ned_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ned_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_baseline_ned_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_baseline_ned_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_baseline_ned_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_baseline_ned_t @@ -175,8 +177,8 @@ s8 sbp_msg_baseline_ned_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_baseline_ned_t instance * @return 0, <0, >0 */ -int sbp_msg_baseline_ned_cmp(const sbp_msg_baseline_ned_t *a, - const sbp_msg_baseline_ned_t *b); +SBP_EXPORT int sbp_msg_baseline_ned_cmp(const sbp_msg_baseline_ned_t *a, + const sbp_msg_baseline_ned_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED_DEP_A.h index 7e62b1443a..7efb4c2ea4 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED_DEP_A.h @@ -121,9 +121,9 @@ static inline size_t sbp_msg_baseline_ned_dep_a_encoded_len( * @param msg Instance of sbp_msg_baseline_ned_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ned_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_baseline_ned_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_baseline_ned_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_baseline_ned_dep_a_t *msg); /** * Decode an instance of sbp_msg_baseline_ned_dep_a_t from wire representation @@ -140,9 +140,9 @@ s8 sbp_msg_baseline_ned_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ned_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_baseline_ned_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_ned_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_baseline_ned_dep_a_t *msg); /** * Send an instance of sbp_msg_baseline_ned_dep_a_t with the given write * function @@ -160,9 +160,9 @@ s8 sbp_msg_baseline_ned_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_ned_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_baseline_ned_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_baseline_ned_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_baseline_ned_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_baseline_ned_dep_a_t @@ -179,8 +179,9 @@ s8 sbp_msg_baseline_ned_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_baseline_ned_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_baseline_ned_dep_a_cmp(const sbp_msg_baseline_ned_dep_a_t *a, - const sbp_msg_baseline_ned_dep_a_t *b); +SBP_EXPORT int sbp_msg_baseline_ned_dep_a_cmp( + const sbp_msg_baseline_ned_dep_a_t *a, + const sbp_msg_baseline_ned_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_DOPS.h b/c/include/libsbp/v4/navigation/MSG_DOPS.h index 6a9194d92f..1c46764be7 100644 --- a/c/include/libsbp/v4/navigation/MSG_DOPS.h +++ b/c/include/libsbp/v4/navigation/MSG_DOPS.h @@ -112,8 +112,8 @@ static inline size_t sbp_msg_dops_encoded_len(const sbp_msg_dops_t *msg) { * @param msg Instance of sbp_msg_dops_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dops_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_dops_t *msg); +SBP_EXPORT s8 sbp_msg_dops_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_dops_t *msg); /** * Decode an instance of sbp_msg_dops_t from wire representation @@ -130,8 +130,8 @@ s8 sbp_msg_dops_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dops_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_dops_t *msg); +SBP_EXPORT s8 sbp_msg_dops_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_dops_t *msg); /** * Send an instance of sbp_msg_dops_t with the given write function * @@ -148,8 +148,9 @@ s8 sbp_msg_dops_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dops_send(sbp_state_t *s, u16 sender_id, const sbp_msg_dops_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_dops_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_dops_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_dops_t @@ -166,7 +167,8 @@ s8 sbp_msg_dops_send(sbp_state_t *s, u16 sender_id, const sbp_msg_dops_t *msg, * @param b sbp_msg_dops_t instance * @return 0, <0, >0 */ -int sbp_msg_dops_cmp(const sbp_msg_dops_t *a, const sbp_msg_dops_t *b); +SBP_EXPORT int sbp_msg_dops_cmp(const sbp_msg_dops_t *a, + const sbp_msg_dops_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h index c94079dd10..7f3a548b52 100644 --- a/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h @@ -106,8 +106,9 @@ static inline size_t sbp_msg_dops_dep_a_encoded_len( * @param msg Instance of sbp_msg_dops_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dops_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_dops_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_dops_dep_a_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_dops_dep_a_t *msg); /** * Decode an instance of sbp_msg_dops_dep_a_t from wire representation @@ -124,8 +125,9 @@ s8 sbp_msg_dops_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dops_dep_a_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_dops_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_dops_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_dops_dep_a_t *msg); /** * Send an instance of sbp_msg_dops_dep_a_t with the given write function * @@ -142,9 +144,9 @@ s8 sbp_msg_dops_dep_a_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dops_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_dops_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_dops_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_dops_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_dops_dep_a_t @@ -161,8 +163,8 @@ s8 sbp_msg_dops_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_dops_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_dops_dep_a_cmp(const sbp_msg_dops_dep_a_t *a, - const sbp_msg_dops_dep_a_t *b); +SBP_EXPORT int sbp_msg_dops_dep_a_cmp(const sbp_msg_dops_dep_a_t *a, + const sbp_msg_dops_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h b/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h index 4c6dedadaf..139545c521 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h @@ -100,8 +100,9 @@ static inline size_t sbp_msg_gps_time_encoded_len( * @param msg Instance of sbp_msg_gps_time_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_gps_time_t *msg); +SBP_EXPORT s8 sbp_msg_gps_time_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_gps_time_t *msg); /** * Decode an instance of sbp_msg_gps_time_t from wire representation @@ -118,8 +119,8 @@ s8 sbp_msg_gps_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_gps_time_t *msg); +SBP_EXPORT s8 sbp_msg_gps_time_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_gps_time_t *msg); /** * Send an instance of sbp_msg_gps_time_t with the given write function * @@ -136,8 +137,9 @@ s8 sbp_msg_gps_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_gps_time_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_gps_time_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_gps_time_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_gps_time_t @@ -154,8 +156,8 @@ s8 sbp_msg_gps_time_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_gps_time_t instance * @return 0, <0, >0 */ -int sbp_msg_gps_time_cmp(const sbp_msg_gps_time_t *a, - const sbp_msg_gps_time_t *b); +SBP_EXPORT int sbp_msg_gps_time_cmp(const sbp_msg_gps_time_t *a, + const sbp_msg_gps_time_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_GPS_TIME_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_GPS_TIME_DEP_A.h index 9089a31917..83554c532f 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME_DEP_A.h @@ -100,8 +100,9 @@ static inline size_t sbp_msg_gps_time_dep_a_encoded_len( * @param msg Instance of sbp_msg_gps_time_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_gps_time_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_gps_time_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_gps_time_dep_a_t *msg); /** * Decode an instance of sbp_msg_gps_time_dep_a_t from wire representation @@ -118,9 +119,9 @@ s8 sbp_msg_gps_time_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_gps_time_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_gps_time_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_gps_time_dep_a_t *msg); /** * Send an instance of sbp_msg_gps_time_dep_a_t with the given write function * @@ -137,9 +138,9 @@ s8 sbp_msg_gps_time_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_gps_time_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_gps_time_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_gps_time_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_gps_time_dep_a_t @@ -156,8 +157,8 @@ s8 sbp_msg_gps_time_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_gps_time_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_gps_time_dep_a_cmp(const sbp_msg_gps_time_dep_a_t *a, - const sbp_msg_gps_time_dep_a_t *b); +SBP_EXPORT int sbp_msg_gps_time_dep_a_cmp(const sbp_msg_gps_time_dep_a_t *a, + const sbp_msg_gps_time_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h b/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h index e2220e92d0..c20361dd70 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h @@ -100,8 +100,9 @@ static inline size_t sbp_msg_gps_time_gnss_encoded_len( * @param msg Instance of sbp_msg_gps_time_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_gps_time_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_gps_time_gnss_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_gps_time_gnss_t *msg); /** * Decode an instance of sbp_msg_gps_time_gnss_t from wire representation @@ -118,8 +119,9 @@ s8 sbp_msg_gps_time_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_gps_time_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_gps_time_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_gps_time_gnss_t *msg); /** * Send an instance of sbp_msg_gps_time_gnss_t with the given write function * @@ -136,9 +138,9 @@ s8 sbp_msg_gps_time_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gps_time_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_gps_time_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_gps_time_gnss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_gps_time_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_gps_time_gnss_t @@ -155,8 +157,8 @@ s8 sbp_msg_gps_time_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_gps_time_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_gps_time_gnss_cmp(const sbp_msg_gps_time_gnss_t *a, - const sbp_msg_gps_time_gnss_t *b); +SBP_EXPORT int sbp_msg_gps_time_gnss_cmp(const sbp_msg_gps_time_gnss_t *a, + const sbp_msg_gps_time_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h b/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h index 0a62411491..b6bd565f35 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h @@ -116,8 +116,9 @@ static inline size_t sbp_msg_pos_ecef_encoded_len( * @param msg Instance of sbp_msg_pos_ecef_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_ecef_t *msg); /** * Decode an instance of sbp_msg_pos_ecef_t from wire representation @@ -134,8 +135,8 @@ s8 sbp_msg_pos_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pos_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_pos_ecef_t *msg); /** * Send an instance of sbp_msg_pos_ecef_t with the given write function * @@ -152,8 +153,9 @@ s8 sbp_msg_pos_ecef_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_ecef_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_ecef_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_ecef_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_ecef_t @@ -170,8 +172,8 @@ s8 sbp_msg_pos_ecef_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_ecef_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_ecef_cmp(const sbp_msg_pos_ecef_t *a, - const sbp_msg_pos_ecef_t *b); +SBP_EXPORT int sbp_msg_pos_ecef_cmp(const sbp_msg_pos_ecef_t *a, + const sbp_msg_pos_ecef_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h index 9a907ef47f..542e6c3149 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h @@ -142,8 +142,9 @@ static inline size_t sbp_msg_pos_ecef_cov_encoded_len( * @param msg Instance of sbp_msg_pos_ecef_cov_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_ecef_cov_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_cov_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_ecef_cov_t *msg); /** * Decode an instance of sbp_msg_pos_ecef_cov_t from wire representation @@ -160,8 +161,9 @@ s8 sbp_msg_pos_ecef_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pos_ecef_cov_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_cov_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_ecef_cov_t *msg); /** * Send an instance of sbp_msg_pos_ecef_cov_t with the given write function * @@ -178,9 +180,9 @@ s8 sbp_msg_pos_ecef_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_cov_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_ecef_cov_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_ecef_cov_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_ecef_cov_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_ecef_cov_t @@ -197,8 +199,8 @@ s8 sbp_msg_pos_ecef_cov_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_ecef_cov_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_ecef_cov_cmp(const sbp_msg_pos_ecef_cov_t *a, - const sbp_msg_pos_ecef_cov_t *b); +SBP_EXPORT int sbp_msg_pos_ecef_cov_cmp(const sbp_msg_pos_ecef_cov_t *a, + const sbp_msg_pos_ecef_cov_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV_GNSS.h b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV_GNSS.h index 33d2cf62e4..8ead7f6ff0 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV_GNSS.h @@ -142,9 +142,9 @@ static inline size_t sbp_msg_pos_ecef_cov_gnss_encoded_len( * @param msg Instance of sbp_msg_pos_ecef_cov_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_cov_gnss_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_pos_ecef_cov_gnss_t *msg); +SBP_EXPORT s8 +sbp_msg_pos_ecef_cov_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_pos_ecef_cov_gnss_t *msg); /** * Decode an instance of sbp_msg_pos_ecef_cov_gnss_t from wire representation @@ -161,9 +161,9 @@ s8 sbp_msg_pos_ecef_cov_gnss_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_cov_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_pos_ecef_cov_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_cov_gnss_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_pos_ecef_cov_gnss_t *msg); /** * Send an instance of sbp_msg_pos_ecef_cov_gnss_t with the given write function * @@ -180,9 +180,9 @@ s8 sbp_msg_pos_ecef_cov_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_cov_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_ecef_cov_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_ecef_cov_gnss_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_pos_ecef_cov_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_ecef_cov_gnss_t @@ -199,8 +199,8 @@ s8 sbp_msg_pos_ecef_cov_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_ecef_cov_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_ecef_cov_gnss_cmp(const sbp_msg_pos_ecef_cov_gnss_t *a, - const sbp_msg_pos_ecef_cov_gnss_t *b); +SBP_EXPORT int sbp_msg_pos_ecef_cov_gnss_cmp( + const sbp_msg_pos_ecef_cov_gnss_t *a, const sbp_msg_pos_ecef_cov_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_DEP_A.h index 45cc285d89..40c753ae4c 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_DEP_A.h @@ -116,8 +116,9 @@ static inline size_t sbp_msg_pos_ecef_dep_a_encoded_len( * @param msg Instance of sbp_msg_pos_ecef_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_ecef_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_pos_ecef_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_pos_ecef_dep_a_t *msg); /** * Decode an instance of sbp_msg_pos_ecef_dep_a_t from wire representation @@ -134,9 +135,9 @@ s8 sbp_msg_pos_ecef_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_pos_ecef_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_ecef_dep_a_t *msg); /** * Send an instance of sbp_msg_pos_ecef_dep_a_t with the given write function * @@ -153,9 +154,9 @@ s8 sbp_msg_pos_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_ecef_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_ecef_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_ecef_dep_a_t @@ -172,8 +173,8 @@ s8 sbp_msg_pos_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_ecef_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_ecef_dep_a_cmp(const sbp_msg_pos_ecef_dep_a_t *a, - const sbp_msg_pos_ecef_dep_a_t *b); +SBP_EXPORT int sbp_msg_pos_ecef_dep_a_cmp(const sbp_msg_pos_ecef_dep_a_t *a, + const sbp_msg_pos_ecef_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h index 7be9d17dbe..07383a348e 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h @@ -116,8 +116,9 @@ static inline size_t sbp_msg_pos_ecef_gnss_encoded_len( * @param msg Instance of sbp_msg_pos_ecef_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_ecef_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_gnss_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_ecef_gnss_t *msg); /** * Decode an instance of sbp_msg_pos_ecef_gnss_t from wire representation @@ -134,8 +135,9 @@ s8 sbp_msg_pos_ecef_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_pos_ecef_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_pos_ecef_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_ecef_gnss_t *msg); /** * Send an instance of sbp_msg_pos_ecef_gnss_t with the given write function * @@ -152,9 +154,9 @@ s8 sbp_msg_pos_ecef_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_ecef_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_ecef_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_ecef_gnss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_ecef_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_ecef_gnss_t @@ -171,8 +173,8 @@ s8 sbp_msg_pos_ecef_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_ecef_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_ecef_gnss_cmp(const sbp_msg_pos_ecef_gnss_t *a, - const sbp_msg_pos_ecef_gnss_t *b); +SBP_EXPORT int sbp_msg_pos_ecef_gnss_cmp(const sbp_msg_pos_ecef_gnss_t *a, + const sbp_msg_pos_ecef_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH.h index 23ee1dd23a..8e57125fcd 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH.h @@ -119,8 +119,9 @@ static inline size_t sbp_msg_pos_llh_encoded_len(const sbp_msg_pos_llh_t *msg) { * @param msg Instance of sbp_msg_pos_llh_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_llh_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_llh_t *msg); /** * Decode an instance of sbp_msg_pos_llh_t from wire representation @@ -137,8 +138,8 @@ s8 sbp_msg_pos_llh_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pos_llh_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_pos_llh_t *msg); /** * Send an instance of sbp_msg_pos_llh_t with the given write function * @@ -155,8 +156,9 @@ s8 sbp_msg_pos_llh_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_llh_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_llh_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_llh_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_llh_t @@ -173,7 +175,8 @@ s8 sbp_msg_pos_llh_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_llh_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_llh_cmp(const sbp_msg_pos_llh_t *a, const sbp_msg_pos_llh_t *b); +SBP_EXPORT int sbp_msg_pos_llh_cmp(const sbp_msg_pos_llh_t *a, + const sbp_msg_pos_llh_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h index 2e4e35d7dc..07ca8fc682 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h @@ -155,8 +155,9 @@ static inline size_t sbp_msg_pos_llh_acc_encoded_len( * @param msg Instance of sbp_msg_pos_llh_acc_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_acc_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_llh_acc_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_acc_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_llh_acc_t *msg); /** * Decode an instance of sbp_msg_pos_llh_acc_t from wire representation @@ -173,8 +174,9 @@ s8 sbp_msg_pos_llh_acc_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_acc_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pos_llh_acc_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_acc_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_llh_acc_t *msg); /** * Send an instance of sbp_msg_pos_llh_acc_t with the given write function * @@ -191,9 +193,9 @@ s8 sbp_msg_pos_llh_acc_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_acc_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_llh_acc_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_llh_acc_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_llh_acc_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_llh_acc_t @@ -210,8 +212,8 @@ s8 sbp_msg_pos_llh_acc_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_llh_acc_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_llh_acc_cmp(const sbp_msg_pos_llh_acc_t *a, - const sbp_msg_pos_llh_acc_t *b); +SBP_EXPORT int sbp_msg_pos_llh_acc_cmp(const sbp_msg_pos_llh_acc_t *a, + const sbp_msg_pos_llh_acc_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h index d4d8d06c99..13a409f6f7 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h @@ -142,8 +142,9 @@ static inline size_t sbp_msg_pos_llh_cov_encoded_len( * @param msg Instance of sbp_msg_pos_llh_cov_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_llh_cov_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_cov_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_llh_cov_t *msg); /** * Decode an instance of sbp_msg_pos_llh_cov_t from wire representation @@ -160,8 +161,9 @@ s8 sbp_msg_pos_llh_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pos_llh_cov_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_cov_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_llh_cov_t *msg); /** * Send an instance of sbp_msg_pos_llh_cov_t with the given write function * @@ -178,9 +180,9 @@ s8 sbp_msg_pos_llh_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_cov_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_llh_cov_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_llh_cov_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_llh_cov_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_llh_cov_t @@ -197,8 +199,8 @@ s8 sbp_msg_pos_llh_cov_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_llh_cov_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_llh_cov_cmp(const sbp_msg_pos_llh_cov_t *a, - const sbp_msg_pos_llh_cov_t *b); +SBP_EXPORT int sbp_msg_pos_llh_cov_cmp(const sbp_msg_pos_llh_cov_t *a, + const sbp_msg_pos_llh_cov_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV_GNSS.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV_GNSS.h index f126b15614..9267c274a9 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV_GNSS.h @@ -142,9 +142,9 @@ static inline size_t sbp_msg_pos_llh_cov_gnss_encoded_len( * @param msg Instance of sbp_msg_pos_llh_cov_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_cov_gnss_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_pos_llh_cov_gnss_t *msg); +SBP_EXPORT s8 +sbp_msg_pos_llh_cov_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_pos_llh_cov_gnss_t *msg); /** * Decode an instance of sbp_msg_pos_llh_cov_gnss_t from wire representation @@ -161,9 +161,9 @@ s8 sbp_msg_pos_llh_cov_gnss_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_cov_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_pos_llh_cov_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_cov_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_llh_cov_gnss_t *msg); /** * Send an instance of sbp_msg_pos_llh_cov_gnss_t with the given write function * @@ -180,9 +180,9 @@ s8 sbp_msg_pos_llh_cov_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_cov_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_llh_cov_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_llh_cov_gnss_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_pos_llh_cov_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_llh_cov_gnss_t @@ -199,8 +199,8 @@ s8 sbp_msg_pos_llh_cov_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_llh_cov_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_llh_cov_gnss_cmp(const sbp_msg_pos_llh_cov_gnss_t *a, - const sbp_msg_pos_llh_cov_gnss_t *b); +SBP_EXPORT int sbp_msg_pos_llh_cov_gnss_cmp( + const sbp_msg_pos_llh_cov_gnss_t *a, const sbp_msg_pos_llh_cov_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH_DEP_A.h index 524d8869a0..65e8e33593 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_DEP_A.h @@ -121,8 +121,9 @@ static inline size_t sbp_msg_pos_llh_dep_a_encoded_len( * @param msg Instance of sbp_msg_pos_llh_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_llh_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_dep_a_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_llh_dep_a_t *msg); /** * Decode an instance of sbp_msg_pos_llh_dep_a_t from wire representation @@ -139,8 +140,9 @@ s8 sbp_msg_pos_llh_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_pos_llh_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_llh_dep_a_t *msg); /** * Send an instance of sbp_msg_pos_llh_dep_a_t with the given write function * @@ -157,9 +159,9 @@ s8 sbp_msg_pos_llh_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_llh_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_llh_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_llh_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_llh_dep_a_t @@ -176,8 +178,8 @@ s8 sbp_msg_pos_llh_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_llh_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_llh_dep_a_cmp(const sbp_msg_pos_llh_dep_a_t *a, - const sbp_msg_pos_llh_dep_a_t *b); +SBP_EXPORT int sbp_msg_pos_llh_dep_a_cmp(const sbp_msg_pos_llh_dep_a_t *a, + const sbp_msg_pos_llh_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h index a7514c06ea..9ced72740f 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h @@ -120,8 +120,9 @@ static inline size_t sbp_msg_pos_llh_gnss_encoded_len( * @param msg Instance of sbp_msg_pos_llh_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pos_llh_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_gnss_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pos_llh_gnss_t *msg); /** * Decode an instance of sbp_msg_pos_llh_gnss_t from wire representation @@ -138,8 +139,9 @@ s8 sbp_msg_pos_llh_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_gnss_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pos_llh_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_pos_llh_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_pos_llh_gnss_t *msg); /** * Send an instance of sbp_msg_pos_llh_gnss_t with the given write function * @@ -156,9 +158,9 @@ s8 sbp_msg_pos_llh_gnss_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pos_llh_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pos_llh_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pos_llh_gnss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pos_llh_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pos_llh_gnss_t @@ -175,8 +177,8 @@ s8 sbp_msg_pos_llh_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pos_llh_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_pos_llh_gnss_cmp(const sbp_msg_pos_llh_gnss_t *a, - const sbp_msg_pos_llh_gnss_t *b); +SBP_EXPORT int sbp_msg_pos_llh_gnss_cmp(const sbp_msg_pos_llh_gnss_t *a, + const sbp_msg_pos_llh_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h index d43386ae61..6e0c6581a5 100644 --- a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h +++ b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h @@ -184,9 +184,9 @@ static inline size_t sbp_msg_protection_level_encoded_len( * @param msg Instance of sbp_msg_protection_level_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_protection_level_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_protection_level_t *msg); +SBP_EXPORT s8 +sbp_msg_protection_level_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_protection_level_t *msg); /** * Decode an instance of sbp_msg_protection_level_t from wire representation @@ -203,9 +203,9 @@ s8 sbp_msg_protection_level_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_protection_level_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_protection_level_t *msg); +SBP_EXPORT s8 sbp_msg_protection_level_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_protection_level_t *msg); /** * Send an instance of sbp_msg_protection_level_t with the given write function * @@ -222,9 +222,9 @@ s8 sbp_msg_protection_level_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_protection_level_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_protection_level_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_protection_level_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_protection_level_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_protection_level_t @@ -241,8 +241,8 @@ s8 sbp_msg_protection_level_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_protection_level_t instance * @return 0, <0, >0 */ -int sbp_msg_protection_level_cmp(const sbp_msg_protection_level_t *a, - const sbp_msg_protection_level_t *b); +SBP_EXPORT int sbp_msg_protection_level_cmp( + const sbp_msg_protection_level_t *a, const sbp_msg_protection_level_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL_DEP_A.h index a3a8642873..f57f5b23cb 100644 --- a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL_DEP_A.h @@ -112,7 +112,7 @@ static inline size_t sbp_msg_protection_level_dep_a_encoded_len( * @param msg Instance of sbp_msg_protection_level_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_protection_level_dep_a_encode( +SBP_EXPORT s8 sbp_msg_protection_level_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_protection_level_dep_a_t *msg); @@ -133,9 +133,9 @@ s8 sbp_msg_protection_level_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_protection_level_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_protection_level_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_protection_level_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_protection_level_dep_a_t *msg); /** * Send an instance of sbp_msg_protection_level_dep_a_t with the given write * function @@ -153,7 +153,7 @@ s8 sbp_msg_protection_level_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_protection_level_dep_a_send( +SBP_EXPORT s8 sbp_msg_protection_level_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_protection_level_dep_a_t *msg, sbp_write_fn_t write); @@ -172,7 +172,7 @@ s8 sbp_msg_protection_level_dep_a_send( * @param b sbp_msg_protection_level_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_protection_level_dep_a_cmp( +SBP_EXPORT int sbp_msg_protection_level_dep_a_cmp( const sbp_msg_protection_level_dep_a_t *a, const sbp_msg_protection_level_dep_a_t *b); diff --git a/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h b/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h index b872bb7d33..6ffe1b281a 100644 --- a/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h +++ b/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h @@ -121,8 +121,9 @@ static inline size_t sbp_msg_utc_time_encoded_len( * @param msg Instance of sbp_msg_utc_time_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_utc_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_utc_time_t *msg); +SBP_EXPORT s8 sbp_msg_utc_time_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_utc_time_t *msg); /** * Decode an instance of sbp_msg_utc_time_t from wire representation @@ -139,8 +140,8 @@ s8 sbp_msg_utc_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_utc_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_utc_time_t *msg); +SBP_EXPORT s8 sbp_msg_utc_time_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_utc_time_t *msg); /** * Send an instance of sbp_msg_utc_time_t with the given write function * @@ -157,8 +158,9 @@ s8 sbp_msg_utc_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_utc_time_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_utc_time_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_utc_time_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_utc_time_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_utc_time_t @@ -175,8 +177,8 @@ s8 sbp_msg_utc_time_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_utc_time_t instance * @return 0, <0, >0 */ -int sbp_msg_utc_time_cmp(const sbp_msg_utc_time_t *a, - const sbp_msg_utc_time_t *b); +SBP_EXPORT int sbp_msg_utc_time_cmp(const sbp_msg_utc_time_t *a, + const sbp_msg_utc_time_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h b/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h index 439e1c83ac..d5538e5720 100644 --- a/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h @@ -121,8 +121,9 @@ static inline size_t sbp_msg_utc_time_gnss_encoded_len( * @param msg Instance of sbp_msg_utc_time_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_utc_time_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_utc_time_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_utc_time_gnss_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_utc_time_gnss_t *msg); /** * Decode an instance of sbp_msg_utc_time_gnss_t from wire representation @@ -139,8 +140,9 @@ s8 sbp_msg_utc_time_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_utc_time_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_utc_time_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_utc_time_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_utc_time_gnss_t *msg); /** * Send an instance of sbp_msg_utc_time_gnss_t with the given write function * @@ -157,9 +159,9 @@ s8 sbp_msg_utc_time_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_utc_time_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_utc_time_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_utc_time_gnss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_utc_time_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_utc_time_gnss_t @@ -176,8 +178,8 @@ s8 sbp_msg_utc_time_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_utc_time_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_utc_time_gnss_cmp(const sbp_msg_utc_time_gnss_t *a, - const sbp_msg_utc_time_gnss_t *b); +SBP_EXPORT int sbp_msg_utc_time_gnss_cmp(const sbp_msg_utc_time_gnss_t *a, + const sbp_msg_utc_time_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h b/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h index c83ef6cbe3..0e7ce23ce8 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h @@ -143,8 +143,9 @@ static inline size_t sbp_msg_vel_body_encoded_len( * @param msg Instance of sbp_msg_vel_body_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_body_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_body_t *msg); +SBP_EXPORT s8 sbp_msg_vel_body_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_body_t *msg); /** * Decode an instance of sbp_msg_vel_body_t from wire representation @@ -161,8 +162,8 @@ s8 sbp_msg_vel_body_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_body_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_vel_body_t *msg); +SBP_EXPORT s8 sbp_msg_vel_body_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_vel_body_t *msg); /** * Send an instance of sbp_msg_vel_body_t with the given write function * @@ -179,8 +180,9 @@ s8 sbp_msg_vel_body_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_body_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_body_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_body_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_body_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_body_t @@ -197,8 +199,8 @@ s8 sbp_msg_vel_body_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_body_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_body_cmp(const sbp_msg_vel_body_t *a, - const sbp_msg_vel_body_t *b); +SBP_EXPORT int sbp_msg_vel_body_cmp(const sbp_msg_vel_body_t *a, + const sbp_msg_vel_body_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h index 507d0f212b..04e99f2ff2 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h @@ -112,8 +112,9 @@ static inline size_t sbp_msg_vel_ecef_encoded_len( * @param msg Instance of sbp_msg_vel_ecef_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ecef_t *msg); /** * Decode an instance of sbp_msg_vel_ecef_t from wire representation @@ -130,8 +131,8 @@ s8 sbp_msg_vel_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_vel_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_vel_ecef_t *msg); /** * Send an instance of sbp_msg_vel_ecef_t with the given write function * @@ -148,8 +149,9 @@ s8 sbp_msg_vel_ecef_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ecef_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ecef_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ecef_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ecef_t @@ -166,8 +168,8 @@ s8 sbp_msg_vel_ecef_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ecef_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ecef_cmp(const sbp_msg_vel_ecef_t *a, - const sbp_msg_vel_ecef_t *b); +SBP_EXPORT int sbp_msg_vel_ecef_cmp(const sbp_msg_vel_ecef_t *a, + const sbp_msg_vel_ecef_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h index 33d71bfd7e..406bb6c5fa 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h @@ -137,8 +137,9 @@ static inline size_t sbp_msg_vel_ecef_cov_encoded_len( * @param msg Instance of sbp_msg_vel_ecef_cov_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ecef_cov_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_cov_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ecef_cov_t *msg); /** * Decode an instance of sbp_msg_vel_ecef_cov_t from wire representation @@ -155,8 +156,9 @@ s8 sbp_msg_vel_ecef_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_vel_ecef_cov_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_cov_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ecef_cov_t *msg); /** * Send an instance of sbp_msg_vel_ecef_cov_t with the given write function * @@ -173,9 +175,9 @@ s8 sbp_msg_vel_ecef_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_cov_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ecef_cov_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ecef_cov_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ecef_cov_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ecef_cov_t @@ -192,8 +194,8 @@ s8 sbp_msg_vel_ecef_cov_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ecef_cov_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ecef_cov_cmp(const sbp_msg_vel_ecef_cov_t *a, - const sbp_msg_vel_ecef_cov_t *b); +SBP_EXPORT int sbp_msg_vel_ecef_cov_cmp(const sbp_msg_vel_ecef_cov_t *a, + const sbp_msg_vel_ecef_cov_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV_GNSS.h b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV_GNSS.h index ebe51a9961..fad49c79e3 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV_GNSS.h @@ -137,9 +137,9 @@ static inline size_t sbp_msg_vel_ecef_cov_gnss_encoded_len( * @param msg Instance of sbp_msg_vel_ecef_cov_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_cov_gnss_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_vel_ecef_cov_gnss_t *msg); +SBP_EXPORT s8 +sbp_msg_vel_ecef_cov_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_vel_ecef_cov_gnss_t *msg); /** * Decode an instance of sbp_msg_vel_ecef_cov_gnss_t from wire representation @@ -156,9 +156,9 @@ s8 sbp_msg_vel_ecef_cov_gnss_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_cov_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_vel_ecef_cov_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_cov_gnss_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_vel_ecef_cov_gnss_t *msg); /** * Send an instance of sbp_msg_vel_ecef_cov_gnss_t with the given write function * @@ -175,9 +175,9 @@ s8 sbp_msg_vel_ecef_cov_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_cov_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ecef_cov_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ecef_cov_gnss_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_vel_ecef_cov_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ecef_cov_gnss_t @@ -194,8 +194,8 @@ s8 sbp_msg_vel_ecef_cov_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ecef_cov_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ecef_cov_gnss_cmp(const sbp_msg_vel_ecef_cov_gnss_t *a, - const sbp_msg_vel_ecef_cov_gnss_t *b); +SBP_EXPORT int sbp_msg_vel_ecef_cov_gnss_cmp( + const sbp_msg_vel_ecef_cov_gnss_t *a, const sbp_msg_vel_ecef_cov_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_DEP_A.h index 2aa1bd3872..50033c08f3 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_DEP_A.h @@ -112,8 +112,9 @@ static inline size_t sbp_msg_vel_ecef_dep_a_encoded_len( * @param msg Instance of sbp_msg_vel_ecef_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ecef_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_vel_ecef_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_vel_ecef_dep_a_t *msg); /** * Decode an instance of sbp_msg_vel_ecef_dep_a_t from wire representation @@ -130,9 +131,9 @@ s8 sbp_msg_vel_ecef_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_vel_ecef_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ecef_dep_a_t *msg); /** * Send an instance of sbp_msg_vel_ecef_dep_a_t with the given write function * @@ -149,9 +150,9 @@ s8 sbp_msg_vel_ecef_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ecef_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ecef_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ecef_dep_a_t @@ -168,8 +169,8 @@ s8 sbp_msg_vel_ecef_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ecef_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ecef_dep_a_cmp(const sbp_msg_vel_ecef_dep_a_t *a, - const sbp_msg_vel_ecef_dep_a_t *b); +SBP_EXPORT int sbp_msg_vel_ecef_dep_a_cmp(const sbp_msg_vel_ecef_dep_a_t *a, + const sbp_msg_vel_ecef_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h index 7b460a1519..d9c36a6b65 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h @@ -112,8 +112,9 @@ static inline size_t sbp_msg_vel_ecef_gnss_encoded_len( * @param msg Instance of sbp_msg_vel_ecef_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ecef_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_gnss_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ecef_gnss_t *msg); /** * Decode an instance of sbp_msg_vel_ecef_gnss_t from wire representation @@ -130,8 +131,9 @@ s8 sbp_msg_vel_ecef_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_vel_ecef_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ecef_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ecef_gnss_t *msg); /** * Send an instance of sbp_msg_vel_ecef_gnss_t with the given write function * @@ -148,9 +150,9 @@ s8 sbp_msg_vel_ecef_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ecef_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ecef_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ecef_gnss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ecef_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ecef_gnss_t @@ -167,8 +169,8 @@ s8 sbp_msg_vel_ecef_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ecef_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ecef_gnss_cmp(const sbp_msg_vel_ecef_gnss_t *a, - const sbp_msg_vel_ecef_gnss_t *b); +SBP_EXPORT int sbp_msg_vel_ecef_gnss_cmp(const sbp_msg_vel_ecef_gnss_t *a, + const sbp_msg_vel_ecef_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_NED.h b/c/include/libsbp/v4/navigation/MSG_VEL_NED.h index 1a55e8e48d..e371994c1b 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED.h @@ -117,8 +117,9 @@ static inline size_t sbp_msg_vel_ned_encoded_len(const sbp_msg_vel_ned_t *msg) { * @param msg Instance of sbp_msg_vel_ned_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ned_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ned_t *msg); /** * Decode an instance of sbp_msg_vel_ned_t from wire representation @@ -135,8 +136,8 @@ s8 sbp_msg_vel_ned_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_vel_ned_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_vel_ned_t *msg); /** * Send an instance of sbp_msg_vel_ned_t with the given write function * @@ -153,8 +154,9 @@ s8 sbp_msg_vel_ned_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ned_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ned_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ned_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ned_t @@ -171,7 +173,8 @@ s8 sbp_msg_vel_ned_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ned_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ned_cmp(const sbp_msg_vel_ned_t *a, const sbp_msg_vel_ned_t *b); +SBP_EXPORT int sbp_msg_vel_ned_cmp(const sbp_msg_vel_ned_t *a, + const sbp_msg_vel_ned_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h b/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h index 3901c2f9ca..d6e670de8a 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h @@ -140,8 +140,9 @@ static inline size_t sbp_msg_vel_ned_cov_encoded_len( * @param msg Instance of sbp_msg_vel_ned_cov_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ned_cov_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_cov_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ned_cov_t *msg); /** * Decode an instance of sbp_msg_vel_ned_cov_t from wire representation @@ -158,8 +159,9 @@ s8 sbp_msg_vel_ned_cov_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_vel_ned_cov_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_cov_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ned_cov_t *msg); /** * Send an instance of sbp_msg_vel_ned_cov_t with the given write function * @@ -176,9 +178,9 @@ s8 sbp_msg_vel_ned_cov_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_cov_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ned_cov_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ned_cov_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ned_cov_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ned_cov_t @@ -195,8 +197,8 @@ s8 sbp_msg_vel_ned_cov_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ned_cov_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ned_cov_cmp(const sbp_msg_vel_ned_cov_t *a, - const sbp_msg_vel_ned_cov_t *b); +SBP_EXPORT int sbp_msg_vel_ned_cov_cmp(const sbp_msg_vel_ned_cov_t *a, + const sbp_msg_vel_ned_cov_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV_GNSS.h b/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV_GNSS.h index 68090409a3..3a6d66bc50 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV_GNSS.h @@ -140,9 +140,9 @@ static inline size_t sbp_msg_vel_ned_cov_gnss_encoded_len( * @param msg Instance of sbp_msg_vel_ned_cov_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_cov_gnss_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_vel_ned_cov_gnss_t *msg); +SBP_EXPORT s8 +sbp_msg_vel_ned_cov_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_vel_ned_cov_gnss_t *msg); /** * Decode an instance of sbp_msg_vel_ned_cov_gnss_t from wire representation @@ -159,9 +159,9 @@ s8 sbp_msg_vel_ned_cov_gnss_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_cov_gnss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_vel_ned_cov_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_cov_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ned_cov_gnss_t *msg); /** * Send an instance of sbp_msg_vel_ned_cov_gnss_t with the given write function * @@ -178,9 +178,9 @@ s8 sbp_msg_vel_ned_cov_gnss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_cov_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ned_cov_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ned_cov_gnss_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_vel_ned_cov_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ned_cov_gnss_t @@ -197,8 +197,8 @@ s8 sbp_msg_vel_ned_cov_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ned_cov_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ned_cov_gnss_cmp(const sbp_msg_vel_ned_cov_gnss_t *a, - const sbp_msg_vel_ned_cov_gnss_t *b); +SBP_EXPORT int sbp_msg_vel_ned_cov_gnss_cmp( + const sbp_msg_vel_ned_cov_gnss_t *a, const sbp_msg_vel_ned_cov_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_NED_DEP_A.h b/c/include/libsbp/v4/navigation/MSG_VEL_NED_DEP_A.h index bafd45009b..2c761b6be4 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_DEP_A.h @@ -120,8 +120,9 @@ static inline size_t sbp_msg_vel_ned_dep_a_encoded_len( * @param msg Instance of sbp_msg_vel_ned_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ned_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_dep_a_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ned_dep_a_t *msg); /** * Decode an instance of sbp_msg_vel_ned_dep_a_t from wire representation @@ -138,8 +139,9 @@ s8 sbp_msg_vel_ned_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_vel_ned_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ned_dep_a_t *msg); /** * Send an instance of sbp_msg_vel_ned_dep_a_t with the given write function * @@ -156,9 +158,9 @@ s8 sbp_msg_vel_ned_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ned_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ned_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ned_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ned_dep_a_t @@ -175,8 +177,8 @@ s8 sbp_msg_vel_ned_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ned_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ned_dep_a_cmp(const sbp_msg_vel_ned_dep_a_t *a, - const sbp_msg_vel_ned_dep_a_t *b); +SBP_EXPORT int sbp_msg_vel_ned_dep_a_cmp(const sbp_msg_vel_ned_dep_a_t *a, + const sbp_msg_vel_ned_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h b/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h index a0fe5d3f7c..8520f3121d 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h @@ -118,8 +118,9 @@ static inline size_t sbp_msg_vel_ned_gnss_encoded_len( * @param msg Instance of sbp_msg_vel_ned_gnss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_vel_ned_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_gnss_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_vel_ned_gnss_t *msg); /** * Decode an instance of sbp_msg_vel_ned_gnss_t from wire representation @@ -136,8 +137,9 @@ s8 sbp_msg_vel_ned_gnss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_gnss_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_vel_ned_gnss_t *msg); +SBP_EXPORT s8 sbp_msg_vel_ned_gnss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_vel_ned_gnss_t *msg); /** * Send an instance of sbp_msg_vel_ned_gnss_t with the given write function * @@ -154,9 +156,9 @@ s8 sbp_msg_vel_ned_gnss_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_vel_ned_gnss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_vel_ned_gnss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_vel_ned_gnss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_vel_ned_gnss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_vel_ned_gnss_t @@ -173,8 +175,8 @@ s8 sbp_msg_vel_ned_gnss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_vel_ned_gnss_t instance * @return 0, <0, >0 */ -int sbp_msg_vel_ned_gnss_cmp(const sbp_msg_vel_ned_gnss_t *a, - const sbp_msg_vel_ned_gnss_t *b); +SBP_EXPORT int sbp_msg_vel_ned_gnss_cmp(const sbp_msg_vel_ned_gnss_t *a, + const sbp_msg_vel_ned_gnss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h b/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h index c0c53683e0..3c806697a2 100644 --- a/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h +++ b/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h @@ -122,8 +122,9 @@ static inline size_t sbp_msg_ndb_event_encoded_len( * @param msg Instance of sbp_msg_ndb_event_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ndb_event_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ndb_event_t *msg); +SBP_EXPORT s8 sbp_msg_ndb_event_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ndb_event_t *msg); /** * Decode an instance of sbp_msg_ndb_event_t from wire representation @@ -140,8 +141,9 @@ s8 sbp_msg_ndb_event_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ndb_event_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_ndb_event_t *msg); +SBP_EXPORT s8 sbp_msg_ndb_event_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ndb_event_t *msg); /** * Send an instance of sbp_msg_ndb_event_t with the given write function * @@ -158,8 +160,9 @@ s8 sbp_msg_ndb_event_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ndb_event_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ndb_event_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ndb_event_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ndb_event_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ndb_event_t @@ -176,8 +179,8 @@ s8 sbp_msg_ndb_event_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ndb_event_t instance * @return 0, <0, >0 */ -int sbp_msg_ndb_event_cmp(const sbp_msg_ndb_event_t *a, - const sbp_msg_ndb_event_t *b); +SBP_EXPORT int sbp_msg_ndb_event_cmp(const sbp_msg_ndb_event_t *a, + const sbp_msg_ndb_event_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/AlmanacCommonContent.h b/c/include/libsbp/v4/observation/AlmanacCommonContent.h index aba5ef319f..5290bb57c3 100644 --- a/c/include/libsbp/v4/observation/AlmanacCommonContent.h +++ b/c/include/libsbp/v4/observation/AlmanacCommonContent.h @@ -116,9 +116,9 @@ static inline size_t sbp_almanac_common_content_encoded_len( * @param msg Instance of sbp_almanac_common_content_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_almanac_common_content_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_almanac_common_content_t *msg); +SBP_EXPORT s8 +sbp_almanac_common_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_almanac_common_content_t *msg); /** * Decode an instance of sbp_almanac_common_content_t from wire representation @@ -135,9 +135,9 @@ s8 sbp_almanac_common_content_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_almanac_common_content_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_almanac_common_content_t *msg); +SBP_EXPORT s8 sbp_almanac_common_content_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_almanac_common_content_t *msg); /** * Compare two instances of sbp_almanac_common_content_t @@ -154,8 +154,9 @@ s8 sbp_almanac_common_content_decode(const uint8_t *buf, uint8_t len, * @param b sbp_almanac_common_content_t instance * @return 0, <0, >0 */ -int sbp_almanac_common_content_cmp(const sbp_almanac_common_content_t *a, - const sbp_almanac_common_content_t *b); +SBP_EXPORT int sbp_almanac_common_content_cmp( + const sbp_almanac_common_content_t *a, + const sbp_almanac_common_content_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h b/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h index c3984489ba..9b8f203202 100644 --- a/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h +++ b/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h @@ -116,7 +116,7 @@ static inline size_t sbp_almanac_common_content_dep_encoded_len( * @param msg Instance of sbp_almanac_common_content_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_almanac_common_content_dep_encode( +SBP_EXPORT s8 sbp_almanac_common_content_dep_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_almanac_common_content_dep_t *msg); @@ -137,9 +137,9 @@ s8 sbp_almanac_common_content_dep_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_almanac_common_content_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_almanac_common_content_dep_t *msg); +SBP_EXPORT s8 sbp_almanac_common_content_dep_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_almanac_common_content_dep_t *msg); /** * Compare two instances of sbp_almanac_common_content_dep_t @@ -156,7 +156,7 @@ s8 sbp_almanac_common_content_dep_decode(const uint8_t *buf, uint8_t len, * @param b sbp_almanac_common_content_dep_t instance * @return 0, <0, >0 */ -int sbp_almanac_common_content_dep_cmp( +SBP_EXPORT int sbp_almanac_common_content_dep_cmp( const sbp_almanac_common_content_dep_t *a, const sbp_almanac_common_content_dep_t *b); diff --git a/c/include/libsbp/v4/observation/CarrierPhaseDepA.h b/c/include/libsbp/v4/observation/CarrierPhaseDepA.h index ccfc473719..9db2e4c1ff 100644 --- a/c/include/libsbp/v4/observation/CarrierPhaseDepA.h +++ b/c/include/libsbp/v4/observation/CarrierPhaseDepA.h @@ -88,8 +88,9 @@ static inline size_t sbp_carrier_phase_dep_a_encoded_len( * @param msg Instance of sbp_carrier_phase_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_carrier_phase_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_carrier_phase_dep_a_t *msg); +SBP_EXPORT s8 +sbp_carrier_phase_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_carrier_phase_dep_a_t *msg); /** * Decode an instance of sbp_carrier_phase_dep_a_t from wire representation @@ -106,9 +107,9 @@ s8 sbp_carrier_phase_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_carrier_phase_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_carrier_phase_dep_a_t *msg); +SBP_EXPORT s8 sbp_carrier_phase_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_carrier_phase_dep_a_t *msg); /** * Compare two instances of sbp_carrier_phase_dep_a_t @@ -125,8 +126,8 @@ s8 sbp_carrier_phase_dep_a_decode(const uint8_t *buf, uint8_t len, * @param b sbp_carrier_phase_dep_a_t instance * @return 0, <0, >0 */ -int sbp_carrier_phase_dep_a_cmp(const sbp_carrier_phase_dep_a_t *a, - const sbp_carrier_phase_dep_a_t *b); +SBP_EXPORT int sbp_carrier_phase_dep_a_cmp(const sbp_carrier_phase_dep_a_t *a, + const sbp_carrier_phase_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/Doppler.h b/c/include/libsbp/v4/observation/Doppler.h index d6f81358d8..8fdab80fe9 100644 --- a/c/include/libsbp/v4/observation/Doppler.h +++ b/c/include/libsbp/v4/observation/Doppler.h @@ -86,8 +86,8 @@ static inline size_t sbp_doppler_encoded_len(const sbp_doppler_t *msg) { * @param msg Instance of sbp_doppler_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_doppler_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_doppler_t *msg); +SBP_EXPORT s8 sbp_doppler_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_doppler_t *msg); /** * Decode an instance of sbp_doppler_t from wire representation @@ -104,8 +104,8 @@ s8 sbp_doppler_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_doppler_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_doppler_t *msg); +SBP_EXPORT s8 sbp_doppler_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_doppler_t *msg); /** * Compare two instances of sbp_doppler_t @@ -122,7 +122,7 @@ s8 sbp_doppler_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_doppler_t instance * @return 0, <0, >0 */ -int sbp_doppler_cmp(const sbp_doppler_t *a, const sbp_doppler_t *b); +SBP_EXPORT int sbp_doppler_cmp(const sbp_doppler_t *a, const sbp_doppler_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/EphemerisCommonContent.h b/c/include/libsbp/v4/observation/EphemerisCommonContent.h index a3918dbd6b..7d15879632 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContent.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContent.h @@ -106,7 +106,7 @@ static inline size_t sbp_ephemeris_common_content_encoded_len( * @param msg Instance of sbp_ephemeris_common_content_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_ephemeris_common_content_encode( +SBP_EXPORT s8 sbp_ephemeris_common_content_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_ephemeris_common_content_t *msg); @@ -125,9 +125,9 @@ s8 sbp_ephemeris_common_content_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_ephemeris_common_content_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_ephemeris_common_content_t *msg); +SBP_EXPORT s8 sbp_ephemeris_common_content_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_ephemeris_common_content_t *msg); /** * Compare two instances of sbp_ephemeris_common_content_t @@ -144,8 +144,9 @@ s8 sbp_ephemeris_common_content_decode(const uint8_t *buf, uint8_t len, * @param b sbp_ephemeris_common_content_t instance * @return 0, <0, >0 */ -int sbp_ephemeris_common_content_cmp(const sbp_ephemeris_common_content_t *a, - const sbp_ephemeris_common_content_t *b); +SBP_EXPORT int sbp_ephemeris_common_content_cmp( + const sbp_ephemeris_common_content_t *a, + const sbp_ephemeris_common_content_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h b/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h index 3cc752c066..51745dc55b 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h @@ -107,7 +107,7 @@ static inline size_t sbp_ephemeris_common_content_dep_a_encoded_len( * @param msg Instance of sbp_ephemeris_common_content_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_ephemeris_common_content_dep_a_encode( +SBP_EXPORT s8 sbp_ephemeris_common_content_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_ephemeris_common_content_dep_a_t *msg); @@ -129,7 +129,7 @@ s8 sbp_ephemeris_common_content_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_ephemeris_common_content_dep_a_decode( +SBP_EXPORT s8 sbp_ephemeris_common_content_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_ephemeris_common_content_dep_a_t *msg); @@ -148,7 +148,7 @@ s8 sbp_ephemeris_common_content_dep_a_decode( * @param b sbp_ephemeris_common_content_dep_a_t instance * @return 0, <0, >0 */ -int sbp_ephemeris_common_content_dep_a_cmp( +SBP_EXPORT int sbp_ephemeris_common_content_dep_a_cmp( const sbp_ephemeris_common_content_dep_a_t *a, const sbp_ephemeris_common_content_dep_a_t *b); diff --git a/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h b/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h index 89bfbc0d73..8be93362c0 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h @@ -106,7 +106,7 @@ static inline size_t sbp_ephemeris_common_content_dep_b_encoded_len( * @param msg Instance of sbp_ephemeris_common_content_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_ephemeris_common_content_dep_b_encode( +SBP_EXPORT s8 sbp_ephemeris_common_content_dep_b_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_ephemeris_common_content_dep_b_t *msg); @@ -128,7 +128,7 @@ s8 sbp_ephemeris_common_content_dep_b_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_ephemeris_common_content_dep_b_decode( +SBP_EXPORT s8 sbp_ephemeris_common_content_dep_b_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_ephemeris_common_content_dep_b_t *msg); @@ -147,7 +147,7 @@ s8 sbp_ephemeris_common_content_dep_b_decode( * @param b sbp_ephemeris_common_content_dep_b_t instance * @return 0, <0, >0 */ -int sbp_ephemeris_common_content_dep_b_cmp( +SBP_EXPORT int sbp_ephemeris_common_content_dep_b_cmp( const sbp_ephemeris_common_content_dep_b_t *a, const sbp_ephemeris_common_content_dep_b_t *b); diff --git a/c/include/libsbp/v4/observation/GnssCapb.h b/c/include/libsbp/v4/observation/GnssCapb.h index acd1531445..1ff0e77896 100644 --- a/c/include/libsbp/v4/observation/GnssCapb.h +++ b/c/include/libsbp/v4/observation/GnssCapb.h @@ -147,8 +147,9 @@ static inline size_t sbp_gnss_capb_encoded_len(const sbp_gnss_capb_t *msg) { * @param msg Instance of sbp_gnss_capb_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gnss_capb_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_gnss_capb_t *msg); +SBP_EXPORT s8 sbp_gnss_capb_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_gnss_capb_t *msg); /** * Decode an instance of sbp_gnss_capb_t from wire representation @@ -165,8 +166,8 @@ s8 sbp_gnss_capb_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gnss_capb_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_gnss_capb_t *msg); +SBP_EXPORT s8 sbp_gnss_capb_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_gnss_capb_t *msg); /** * Compare two instances of sbp_gnss_capb_t @@ -183,7 +184,8 @@ s8 sbp_gnss_capb_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_gnss_capb_t instance * @return 0, <0, >0 */ -int sbp_gnss_capb_cmp(const sbp_gnss_capb_t *a, const sbp_gnss_capb_t *b); +SBP_EXPORT int sbp_gnss_capb_cmp(const sbp_gnss_capb_t *a, + const sbp_gnss_capb_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h index 22a3fb55e1..40ef9a61b3 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h @@ -120,8 +120,9 @@ static inline size_t sbp_msg_almanac_glo_encoded_len( * @param msg Instance of sbp_msg_almanac_glo_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_glo_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_almanac_glo_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_glo_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_almanac_glo_t *msg); /** * Decode an instance of sbp_msg_almanac_glo_t from wire representation @@ -138,8 +139,9 @@ s8 sbp_msg_almanac_glo_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_glo_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_almanac_glo_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_glo_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_almanac_glo_t *msg); /** * Send an instance of sbp_msg_almanac_glo_t with the given write function * @@ -156,9 +158,9 @@ s8 sbp_msg_almanac_glo_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_glo_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_almanac_glo_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_almanac_glo_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_almanac_glo_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_almanac_glo_t @@ -175,8 +177,8 @@ s8 sbp_msg_almanac_glo_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_almanac_glo_t instance * @return 0, <0, >0 */ -int sbp_msg_almanac_glo_cmp(const sbp_msg_almanac_glo_t *a, - const sbp_msg_almanac_glo_t *b); +SBP_EXPORT int sbp_msg_almanac_glo_cmp(const sbp_msg_almanac_glo_t *a, + const sbp_msg_almanac_glo_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h index c801d3fa5a..ac2857cadc 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h @@ -120,8 +120,9 @@ static inline size_t sbp_msg_almanac_glo_dep_encoded_len( * @param msg Instance of sbp_msg_almanac_glo_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_glo_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_almanac_glo_dep_t *msg); +SBP_EXPORT s8 +sbp_msg_almanac_glo_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_almanac_glo_dep_t *msg); /** * Decode an instance of sbp_msg_almanac_glo_dep_t from wire representation @@ -138,9 +139,9 @@ s8 sbp_msg_almanac_glo_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_glo_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_almanac_glo_dep_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_glo_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_almanac_glo_dep_t *msg); /** * Send an instance of sbp_msg_almanac_glo_dep_t with the given write function * @@ -157,9 +158,9 @@ s8 sbp_msg_almanac_glo_dep_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_glo_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_almanac_glo_dep_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_almanac_glo_dep_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_almanac_glo_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_almanac_glo_dep_t @@ -176,8 +177,8 @@ s8 sbp_msg_almanac_glo_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_almanac_glo_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_almanac_glo_dep_cmp(const sbp_msg_almanac_glo_dep_t *a, - const sbp_msg_almanac_glo_dep_t *b); +SBP_EXPORT int sbp_msg_almanac_glo_dep_cmp(const sbp_msg_almanac_glo_dep_t *a, + const sbp_msg_almanac_glo_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h index d048790872..dd534afa09 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h @@ -129,8 +129,9 @@ static inline size_t sbp_msg_almanac_gps_encoded_len( * @param msg Instance of sbp_msg_almanac_gps_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_gps_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_almanac_gps_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_gps_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_almanac_gps_t *msg); /** * Decode an instance of sbp_msg_almanac_gps_t from wire representation @@ -147,8 +148,9 @@ s8 sbp_msg_almanac_gps_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_gps_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_almanac_gps_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_gps_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_almanac_gps_t *msg); /** * Send an instance of sbp_msg_almanac_gps_t with the given write function * @@ -165,9 +167,9 @@ s8 sbp_msg_almanac_gps_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_gps_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_almanac_gps_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_almanac_gps_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_almanac_gps_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_almanac_gps_t @@ -184,8 +186,8 @@ s8 sbp_msg_almanac_gps_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_almanac_gps_t instance * @return 0, <0, >0 */ -int sbp_msg_almanac_gps_cmp(const sbp_msg_almanac_gps_t *a, - const sbp_msg_almanac_gps_t *b); +SBP_EXPORT int sbp_msg_almanac_gps_cmp(const sbp_msg_almanac_gps_t *a, + const sbp_msg_almanac_gps_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h index 75f4d6e207..9b0d098d2c 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h @@ -129,8 +129,9 @@ static inline size_t sbp_msg_almanac_gps_dep_encoded_len( * @param msg Instance of sbp_msg_almanac_gps_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_gps_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_almanac_gps_dep_t *msg); +SBP_EXPORT s8 +sbp_msg_almanac_gps_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_almanac_gps_dep_t *msg); /** * Decode an instance of sbp_msg_almanac_gps_dep_t from wire representation @@ -147,9 +148,9 @@ s8 sbp_msg_almanac_gps_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_gps_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_almanac_gps_dep_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_gps_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_almanac_gps_dep_t *msg); /** * Send an instance of sbp_msg_almanac_gps_dep_t with the given write function * @@ -166,9 +167,9 @@ s8 sbp_msg_almanac_gps_dep_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_gps_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_almanac_gps_dep_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_almanac_gps_dep_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_almanac_gps_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_almanac_gps_dep_t @@ -185,8 +186,8 @@ s8 sbp_msg_almanac_gps_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_almanac_gps_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_almanac_gps_dep_cmp(const sbp_msg_almanac_gps_dep_t *a, - const sbp_msg_almanac_gps_dep_t *b); +SBP_EXPORT int sbp_msg_almanac_gps_dep_cmp(const sbp_msg_almanac_gps_dep_t *a, + const sbp_msg_almanac_gps_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h b/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h index 73d70f8276..9d77524ba7 100644 --- a/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h +++ b/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h @@ -94,8 +94,9 @@ static inline size_t sbp_msg_base_pos_ecef_encoded_len( * @param msg Instance of sbp_msg_base_pos_ecef_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_base_pos_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_base_pos_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_base_pos_ecef_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_base_pos_ecef_t *msg); /** * Decode an instance of sbp_msg_base_pos_ecef_t from wire representation @@ -112,8 +113,9 @@ s8 sbp_msg_base_pos_ecef_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_base_pos_ecef_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_base_pos_ecef_t *msg); +SBP_EXPORT s8 sbp_msg_base_pos_ecef_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_base_pos_ecef_t *msg); /** * Send an instance of sbp_msg_base_pos_ecef_t with the given write function * @@ -130,9 +132,9 @@ s8 sbp_msg_base_pos_ecef_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_base_pos_ecef_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_base_pos_ecef_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_base_pos_ecef_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_base_pos_ecef_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_base_pos_ecef_t @@ -149,8 +151,8 @@ s8 sbp_msg_base_pos_ecef_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_base_pos_ecef_t instance * @return 0, <0, >0 */ -int sbp_msg_base_pos_ecef_cmp(const sbp_msg_base_pos_ecef_t *a, - const sbp_msg_base_pos_ecef_t *b); +SBP_EXPORT int sbp_msg_base_pos_ecef_cmp(const sbp_msg_base_pos_ecef_t *a, + const sbp_msg_base_pos_ecef_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h b/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h index fb4e420e06..9a074a72e1 100644 --- a/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h +++ b/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h @@ -93,8 +93,9 @@ static inline size_t sbp_msg_base_pos_llh_encoded_len( * @param msg Instance of sbp_msg_base_pos_llh_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_base_pos_llh_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_base_pos_llh_t *msg); +SBP_EXPORT s8 sbp_msg_base_pos_llh_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_base_pos_llh_t *msg); /** * Decode an instance of sbp_msg_base_pos_llh_t from wire representation @@ -111,8 +112,9 @@ s8 sbp_msg_base_pos_llh_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_base_pos_llh_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_base_pos_llh_t *msg); +SBP_EXPORT s8 sbp_msg_base_pos_llh_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_base_pos_llh_t *msg); /** * Send an instance of sbp_msg_base_pos_llh_t with the given write function * @@ -129,9 +131,9 @@ s8 sbp_msg_base_pos_llh_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_base_pos_llh_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_base_pos_llh_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_base_pos_llh_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_base_pos_llh_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_base_pos_llh_t @@ -148,8 +150,8 @@ s8 sbp_msg_base_pos_llh_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_base_pos_llh_t instance * @return 0, <0, >0 */ -int sbp_msg_base_pos_llh_cmp(const sbp_msg_base_pos_llh_t *a, - const sbp_msg_base_pos_llh_t *b); +SBP_EXPORT int sbp_msg_base_pos_llh_cmp(const sbp_msg_base_pos_llh_t *a, + const sbp_msg_base_pos_llh_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h index 59fccd2fbf..6a46ae7b6e 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h @@ -208,8 +208,9 @@ static inline size_t sbp_msg_ephemeris_bds_encoded_len( * @param msg Instance of sbp_msg_ephemeris_bds_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_bds_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_bds_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_bds_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ephemeris_bds_t *msg); /** * Decode an instance of sbp_msg_ephemeris_bds_t from wire representation @@ -226,8 +227,9 @@ s8 sbp_msg_ephemeris_bds_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_bds_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_ephemeris_bds_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_bds_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_bds_t *msg); /** * Send an instance of sbp_msg_ephemeris_bds_t with the given write function * @@ -244,9 +246,9 @@ s8 sbp_msg_ephemeris_bds_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_bds_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_bds_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_bds_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_bds_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_bds_t @@ -263,8 +265,8 @@ s8 sbp_msg_ephemeris_bds_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_bds_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_bds_cmp(const sbp_msg_ephemeris_bds_t *a, - const sbp_msg_ephemeris_bds_t *b); +SBP_EXPORT int sbp_msg_ephemeris_bds_cmp(const sbp_msg_ephemeris_bds_t *a, + const sbp_msg_ephemeris_bds_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h index 7d481fdffc..6cfaee2450 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h @@ -209,8 +209,9 @@ static inline size_t sbp_msg_ephemeris_dep_a_encoded_len( * @param msg Instance of sbp_msg_ephemeris_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_ephemeris_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_dep_a_t *msg); /** * Decode an instance of sbp_msg_ephemeris_dep_a_t from wire representation @@ -227,9 +228,9 @@ s8 sbp_msg_ephemeris_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_dep_a_t *msg); /** * Send an instance of sbp_msg_ephemeris_dep_a_t with the given write function * @@ -246,9 +247,9 @@ s8 sbp_msg_ephemeris_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_dep_a_t @@ -265,8 +266,8 @@ s8 sbp_msg_ephemeris_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_dep_a_cmp(const sbp_msg_ephemeris_dep_a_t *a, - const sbp_msg_ephemeris_dep_a_t *b); +SBP_EXPORT int sbp_msg_ephemeris_dep_a_cmp(const sbp_msg_ephemeris_dep_a_t *a, + const sbp_msg_ephemeris_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h index 43ada4dc82..d41c171fde 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h @@ -214,8 +214,9 @@ static inline size_t sbp_msg_ephemeris_dep_b_encoded_len( * @param msg Instance of sbp_msg_ephemeris_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_dep_b_t *msg); +SBP_EXPORT s8 +sbp_msg_ephemeris_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_dep_b_t *msg); /** * Decode an instance of sbp_msg_ephemeris_dep_b_t from wire representation @@ -232,9 +233,9 @@ s8 sbp_msg_ephemeris_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_b_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_dep_b_t *msg); /** * Send an instance of sbp_msg_ephemeris_dep_b_t with the given write function * @@ -251,9 +252,9 @@ s8 sbp_msg_ephemeris_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_b_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_dep_b_t @@ -270,8 +271,8 @@ s8 sbp_msg_ephemeris_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_dep_b_cmp(const sbp_msg_ephemeris_dep_b_t *a, - const sbp_msg_ephemeris_dep_b_t *b); +SBP_EXPORT int sbp_msg_ephemeris_dep_b_cmp(const sbp_msg_ephemeris_dep_b_t *a, + const sbp_msg_ephemeris_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h index 6819860715..611dbfff39 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h @@ -228,8 +228,9 @@ static inline size_t sbp_msg_ephemeris_dep_c_encoded_len( * @param msg Instance of sbp_msg_ephemeris_dep_c_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_c_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_dep_c_t *msg); +SBP_EXPORT s8 +sbp_msg_ephemeris_dep_c_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_dep_c_t *msg); /** * Decode an instance of sbp_msg_ephemeris_dep_c_t from wire representation @@ -246,9 +247,9 @@ s8 sbp_msg_ephemeris_dep_c_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_c_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_dep_c_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_c_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_dep_c_t *msg); /** * Send an instance of sbp_msg_ephemeris_dep_c_t with the given write function * @@ -265,9 +266,9 @@ s8 sbp_msg_ephemeris_dep_c_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_c_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_dep_c_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_c_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_dep_c_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_dep_c_t @@ -284,8 +285,8 @@ s8 sbp_msg_ephemeris_dep_c_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_dep_c_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_dep_c_cmp(const sbp_msg_ephemeris_dep_c_t *a, - const sbp_msg_ephemeris_dep_c_t *b); +SBP_EXPORT int sbp_msg_ephemeris_dep_c_cmp(const sbp_msg_ephemeris_dep_c_t *a, + const sbp_msg_ephemeris_dep_c_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h index 0d197aaf5e..c044ad603b 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h @@ -228,8 +228,9 @@ static inline size_t sbp_msg_ephemeris_dep_d_encoded_len( * @param msg Instance of sbp_msg_ephemeris_dep_d_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_d_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_dep_d_t *msg); +SBP_EXPORT s8 +sbp_msg_ephemeris_dep_d_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_dep_d_t *msg); /** * Decode an instance of sbp_msg_ephemeris_dep_d_t from wire representation @@ -246,9 +247,9 @@ s8 sbp_msg_ephemeris_dep_d_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_d_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_dep_d_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_d_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_dep_d_t *msg); /** * Send an instance of sbp_msg_ephemeris_dep_d_t with the given write function * @@ -265,9 +266,9 @@ s8 sbp_msg_ephemeris_dep_d_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_dep_d_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_dep_d_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_dep_d_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_dep_d_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_dep_d_t @@ -284,8 +285,8 @@ s8 sbp_msg_ephemeris_dep_d_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_dep_d_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_dep_d_cmp(const sbp_msg_ephemeris_dep_d_t *a, - const sbp_msg_ephemeris_dep_d_t *b); +SBP_EXPORT int sbp_msg_ephemeris_dep_d_cmp(const sbp_msg_ephemeris_dep_d_t *a, + const sbp_msg_ephemeris_dep_d_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h index 4f5b07b384..94b62fa190 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h @@ -209,8 +209,9 @@ static inline size_t sbp_msg_ephemeris_gal_encoded_len( * @param msg Instance of sbp_msg_ephemeris_gal_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gal_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_gal_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gal_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ephemeris_gal_t *msg); /** * Decode an instance of sbp_msg_ephemeris_gal_t from wire representation @@ -227,8 +228,9 @@ s8 sbp_msg_ephemeris_gal_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gal_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_ephemeris_gal_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gal_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_gal_t *msg); /** * Send an instance of sbp_msg_ephemeris_gal_t with the given write function * @@ -245,9 +247,9 @@ s8 sbp_msg_ephemeris_gal_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gal_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_gal_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_gal_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_gal_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_gal_t @@ -264,8 +266,8 @@ s8 sbp_msg_ephemeris_gal_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_gal_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_gal_cmp(const sbp_msg_ephemeris_gal_t *a, - const sbp_msg_ephemeris_gal_t *b); +SBP_EXPORT int sbp_msg_ephemeris_gal_cmp(const sbp_msg_ephemeris_gal_t *a, + const sbp_msg_ephemeris_gal_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL_DEP_A.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL_DEP_A.h index 65e0328460..d3ad4cc1ce 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL_DEP_A.h @@ -202,9 +202,9 @@ static inline size_t sbp_msg_ephemeris_gal_dep_a_encoded_len( * @param msg Instance of sbp_msg_ephemeris_gal_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gal_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_gal_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gal_dep_a_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_gal_dep_a_t *msg); /** * Decode an instance of sbp_msg_ephemeris_gal_dep_a_t from wire representation @@ -221,9 +221,9 @@ s8 sbp_msg_ephemeris_gal_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gal_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_gal_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gal_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_gal_dep_a_t *msg); /** * Send an instance of sbp_msg_ephemeris_gal_dep_a_t with the given write * function @@ -241,9 +241,9 @@ s8 sbp_msg_ephemeris_gal_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gal_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_gal_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_gal_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_gal_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_gal_dep_a_t @@ -260,8 +260,9 @@ s8 sbp_msg_ephemeris_gal_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_gal_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_gal_dep_a_cmp(const sbp_msg_ephemeris_gal_dep_a_t *a, - const sbp_msg_ephemeris_gal_dep_a_t *b); +SBP_EXPORT int sbp_msg_ephemeris_gal_dep_a_cmp( + const sbp_msg_ephemeris_gal_dep_a_t *a, + const sbp_msg_ephemeris_gal_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h index 52c79be727..b607d9f58c 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h @@ -124,8 +124,9 @@ static inline size_t sbp_msg_ephemeris_glo_encoded_len( * @param msg Instance of sbp_msg_ephemeris_glo_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_glo_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ephemeris_glo_t *msg); /** * Decode an instance of sbp_msg_ephemeris_glo_t from wire representation @@ -142,8 +143,9 @@ s8 sbp_msg_ephemeris_glo_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_ephemeris_glo_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_glo_t *msg); /** * Send an instance of sbp_msg_ephemeris_glo_t with the given write function * @@ -160,9 +162,9 @@ s8 sbp_msg_ephemeris_glo_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_glo_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_glo_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_glo_t @@ -179,8 +181,8 @@ s8 sbp_msg_ephemeris_glo_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_glo_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_glo_cmp(const sbp_msg_ephemeris_glo_t *a, - const sbp_msg_ephemeris_glo_t *b); +SBP_EXPORT int sbp_msg_ephemeris_glo_cmp(const sbp_msg_ephemeris_glo_t *a, + const sbp_msg_ephemeris_glo_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_A.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_A.h index 52296b6c96..7b157670e4 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_A.h @@ -109,9 +109,9 @@ static inline size_t sbp_msg_ephemeris_glo_dep_a_encoded_len( * @param msg Instance of sbp_msg_ephemeris_glo_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_glo_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_a_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_glo_dep_a_t *msg); /** * Decode an instance of sbp_msg_ephemeris_glo_dep_a_t from wire representation @@ -128,9 +128,9 @@ s8 sbp_msg_ephemeris_glo_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_glo_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_glo_dep_a_t *msg); /** * Send an instance of sbp_msg_ephemeris_glo_dep_a_t with the given write * function @@ -148,9 +148,9 @@ s8 sbp_msg_ephemeris_glo_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_glo_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_glo_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_glo_dep_a_t @@ -167,8 +167,9 @@ s8 sbp_msg_ephemeris_glo_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_glo_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_glo_dep_a_cmp(const sbp_msg_ephemeris_glo_dep_a_t *a, - const sbp_msg_ephemeris_glo_dep_a_t *b); +SBP_EXPORT int sbp_msg_ephemeris_glo_dep_a_cmp( + const sbp_msg_ephemeris_glo_dep_a_t *a, + const sbp_msg_ephemeris_glo_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_B.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_B.h index ecdc4d6fa2..3740edec79 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_B.h @@ -109,9 +109,9 @@ static inline size_t sbp_msg_ephemeris_glo_dep_b_encoded_len( * @param msg Instance of sbp_msg_ephemeris_glo_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_b_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_glo_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_b_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_glo_dep_b_t *msg); /** * Decode an instance of sbp_msg_ephemeris_glo_dep_b_t from wire representation @@ -128,9 +128,9 @@ s8 sbp_msg_ephemeris_glo_dep_b_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_glo_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_b_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_glo_dep_b_t *msg); /** * Send an instance of sbp_msg_ephemeris_glo_dep_b_t with the given write * function @@ -148,9 +148,9 @@ s8 sbp_msg_ephemeris_glo_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_glo_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_b_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_glo_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_glo_dep_b_t @@ -167,8 +167,9 @@ s8 sbp_msg_ephemeris_glo_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_glo_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_glo_dep_b_cmp(const sbp_msg_ephemeris_glo_dep_b_t *a, - const sbp_msg_ephemeris_glo_dep_b_t *b); +SBP_EXPORT int sbp_msg_ephemeris_glo_dep_b_cmp( + const sbp_msg_ephemeris_glo_dep_b_t *a, + const sbp_msg_ephemeris_glo_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_C.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_C.h index ca60d6086e..36022ab0ff 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_C.h @@ -119,9 +119,9 @@ static inline size_t sbp_msg_ephemeris_glo_dep_c_encoded_len( * @param msg Instance of sbp_msg_ephemeris_glo_dep_c_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_c_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_glo_dep_c_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_c_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_glo_dep_c_t *msg); /** * Decode an instance of sbp_msg_ephemeris_glo_dep_c_t from wire representation @@ -138,9 +138,9 @@ s8 sbp_msg_ephemeris_glo_dep_c_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_c_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_glo_dep_c_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_c_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_glo_dep_c_t *msg); /** * Send an instance of sbp_msg_ephemeris_glo_dep_c_t with the given write * function @@ -158,9 +158,9 @@ s8 sbp_msg_ephemeris_glo_dep_c_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_c_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_glo_dep_c_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_c_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_glo_dep_c_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_glo_dep_c_t @@ -177,8 +177,9 @@ s8 sbp_msg_ephemeris_glo_dep_c_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_glo_dep_c_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_glo_dep_c_cmp(const sbp_msg_ephemeris_glo_dep_c_t *a, - const sbp_msg_ephemeris_glo_dep_c_t *b); +SBP_EXPORT int sbp_msg_ephemeris_glo_dep_c_cmp( + const sbp_msg_ephemeris_glo_dep_c_t *a, + const sbp_msg_ephemeris_glo_dep_c_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_D.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_D.h index cab52c5ddb..5559722cd0 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_D.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_D.h @@ -122,9 +122,9 @@ static inline size_t sbp_msg_ephemeris_glo_dep_d_encoded_len( * @param msg Instance of sbp_msg_ephemeris_glo_dep_d_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_d_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_glo_dep_d_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_d_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_glo_dep_d_t *msg); /** * Decode an instance of sbp_msg_ephemeris_glo_dep_d_t from wire representation @@ -141,9 +141,9 @@ s8 sbp_msg_ephemeris_glo_dep_d_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_d_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_glo_dep_d_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_d_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_glo_dep_d_t *msg); /** * Send an instance of sbp_msg_ephemeris_glo_dep_d_t with the given write * function @@ -161,9 +161,9 @@ s8 sbp_msg_ephemeris_glo_dep_d_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_glo_dep_d_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_glo_dep_d_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_glo_dep_d_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_glo_dep_d_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_glo_dep_d_t @@ -180,8 +180,9 @@ s8 sbp_msg_ephemeris_glo_dep_d_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_glo_dep_d_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_glo_dep_d_cmp(const sbp_msg_ephemeris_glo_dep_d_t *a, - const sbp_msg_ephemeris_glo_dep_d_t *b); +SBP_EXPORT int sbp_msg_ephemeris_glo_dep_d_cmp( + const sbp_msg_ephemeris_glo_dep_d_t *a, + const sbp_msg_ephemeris_glo_dep_d_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h index eda7cddcbd..354d3dc83d 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h @@ -199,8 +199,9 @@ static inline size_t sbp_msg_ephemeris_gps_encoded_len( * @param msg Instance of sbp_msg_ephemeris_gps_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_gps_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ephemeris_gps_t *msg); /** * Decode an instance of sbp_msg_ephemeris_gps_t from wire representation @@ -217,8 +218,9 @@ s8 sbp_msg_ephemeris_gps_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_ephemeris_gps_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_gps_t *msg); /** * Send an instance of sbp_msg_ephemeris_gps_t with the given write function * @@ -235,9 +237,9 @@ s8 sbp_msg_ephemeris_gps_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_gps_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_gps_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_gps_t @@ -254,8 +256,8 @@ s8 sbp_msg_ephemeris_gps_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_gps_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_gps_cmp(const sbp_msg_ephemeris_gps_t *a, - const sbp_msg_ephemeris_gps_t *b); +SBP_EXPORT int sbp_msg_ephemeris_gps_cmp(const sbp_msg_ephemeris_gps_t *a, + const sbp_msg_ephemeris_gps_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_E.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_E.h index 019cf86157..ca66c1c533 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_E.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_E.h @@ -199,9 +199,9 @@ static inline size_t sbp_msg_ephemeris_gps_dep_e_encoded_len( * @param msg Instance of sbp_msg_ephemeris_gps_dep_e_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_dep_e_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_gps_dep_e_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_dep_e_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_gps_dep_e_t *msg); /** * Decode an instance of sbp_msg_ephemeris_gps_dep_e_t from wire representation @@ -218,9 +218,9 @@ s8 sbp_msg_ephemeris_gps_dep_e_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_dep_e_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_gps_dep_e_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_dep_e_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_gps_dep_e_t *msg); /** * Send an instance of sbp_msg_ephemeris_gps_dep_e_t with the given write * function @@ -238,9 +238,9 @@ s8 sbp_msg_ephemeris_gps_dep_e_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_dep_e_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_gps_dep_e_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_dep_e_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_gps_dep_e_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_gps_dep_e_t @@ -257,8 +257,9 @@ s8 sbp_msg_ephemeris_gps_dep_e_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_gps_dep_e_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_gps_dep_e_cmp(const sbp_msg_ephemeris_gps_dep_e_t *a, - const sbp_msg_ephemeris_gps_dep_e_t *b); +SBP_EXPORT int sbp_msg_ephemeris_gps_dep_e_cmp( + const sbp_msg_ephemeris_gps_dep_e_t *a, + const sbp_msg_ephemeris_gps_dep_e_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_F.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_F.h index 31e60fce15..5d42d402d0 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_F.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_F.h @@ -197,9 +197,9 @@ static inline size_t sbp_msg_ephemeris_gps_dep_f_encoded_len( * @param msg Instance of sbp_msg_ephemeris_gps_dep_f_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_dep_f_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ephemeris_gps_dep_f_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_dep_f_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_gps_dep_f_t *msg); /** * Decode an instance of sbp_msg_ephemeris_gps_dep_f_t from wire representation @@ -216,9 +216,9 @@ s8 sbp_msg_ephemeris_gps_dep_f_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_dep_f_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_gps_dep_f_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_dep_f_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_gps_dep_f_t *msg); /** * Send an instance of sbp_msg_ephemeris_gps_dep_f_t with the given write * function @@ -236,9 +236,9 @@ s8 sbp_msg_ephemeris_gps_dep_f_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_gps_dep_f_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_gps_dep_f_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_gps_dep_f_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_gps_dep_f_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_gps_dep_f_t @@ -255,8 +255,9 @@ s8 sbp_msg_ephemeris_gps_dep_f_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_gps_dep_f_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_gps_dep_f_cmp(const sbp_msg_ephemeris_gps_dep_f_t *a, - const sbp_msg_ephemeris_gps_dep_f_t *b); +SBP_EXPORT int sbp_msg_ephemeris_gps_dep_f_cmp( + const sbp_msg_ephemeris_gps_dep_f_t *a, + const sbp_msg_ephemeris_gps_dep_f_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h index 10ff89b269..8df824c585 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h @@ -197,8 +197,9 @@ static inline size_t sbp_msg_ephemeris_qzss_encoded_len( * @param msg Instance of sbp_msg_ephemeris_qzss_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_qzss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_qzss_t *msg); +SBP_EXPORT s8 +sbp_msg_ephemeris_qzss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_qzss_t *msg); /** * Decode an instance of sbp_msg_ephemeris_qzss_t from wire representation @@ -215,9 +216,9 @@ s8 sbp_msg_ephemeris_qzss_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_qzss_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_qzss_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_qzss_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_qzss_t *msg); /** * Send an instance of sbp_msg_ephemeris_qzss_t with the given write function * @@ -234,9 +235,9 @@ s8 sbp_msg_ephemeris_qzss_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_qzss_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_qzss_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_qzss_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_qzss_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_qzss_t @@ -253,8 +254,8 @@ s8 sbp_msg_ephemeris_qzss_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_qzss_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_qzss_cmp(const sbp_msg_ephemeris_qzss_t *a, - const sbp_msg_ephemeris_qzss_t *b); +SBP_EXPORT int sbp_msg_ephemeris_qzss_cmp(const sbp_msg_ephemeris_qzss_t *a, + const sbp_msg_ephemeris_qzss_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h index 70bd19e926..e1fe12908e 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h @@ -102,8 +102,9 @@ static inline size_t sbp_msg_ephemeris_sbas_encoded_len( * @param msg Instance of sbp_msg_ephemeris_sbas_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ephemeris_sbas_t *msg); +SBP_EXPORT s8 +sbp_msg_ephemeris_sbas_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ephemeris_sbas_t *msg); /** * Decode an instance of sbp_msg_ephemeris_sbas_t from wire representation @@ -120,9 +121,9 @@ s8 sbp_msg_ephemeris_sbas_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_sbas_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ephemeris_sbas_t *msg); /** * Send an instance of sbp_msg_ephemeris_sbas_t with the given write function * @@ -139,9 +140,9 @@ s8 sbp_msg_ephemeris_sbas_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_sbas_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ephemeris_sbas_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_sbas_t @@ -158,8 +159,8 @@ s8 sbp_msg_ephemeris_sbas_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_sbas_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_sbas_cmp(const sbp_msg_ephemeris_sbas_t *a, - const sbp_msg_ephemeris_sbas_t *b); +SBP_EXPORT int sbp_msg_ephemeris_sbas_cmp(const sbp_msg_ephemeris_sbas_t *a, + const sbp_msg_ephemeris_sbas_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_A.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_A.h index 8a8243adea..7421a75c20 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_A.h @@ -102,7 +102,7 @@ static inline size_t sbp_msg_ephemeris_sbas_dep_a_encoded_len( * @param msg Instance of sbp_msg_ephemeris_sbas_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_dep_a_encode( +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ephemeris_sbas_dep_a_t *msg); @@ -121,9 +121,9 @@ s8 sbp_msg_ephemeris_sbas_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_sbas_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_sbas_dep_a_t *msg); /** * Send an instance of sbp_msg_ephemeris_sbas_dep_a_t with the given write * function @@ -141,9 +141,9 @@ s8 sbp_msg_ephemeris_sbas_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_sbas_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_sbas_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_sbas_dep_a_t @@ -160,8 +160,9 @@ s8 sbp_msg_ephemeris_sbas_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_sbas_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_sbas_dep_a_cmp(const sbp_msg_ephemeris_sbas_dep_a_t *a, - const sbp_msg_ephemeris_sbas_dep_a_t *b); +SBP_EXPORT int sbp_msg_ephemeris_sbas_dep_a_cmp( + const sbp_msg_ephemeris_sbas_dep_a_t *a, + const sbp_msg_ephemeris_sbas_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_B.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_B.h index 9e2e5aa1ff..0f202ab6a1 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_B.h @@ -107,7 +107,7 @@ static inline size_t sbp_msg_ephemeris_sbas_dep_b_encoded_len( * @param msg Instance of sbp_msg_ephemeris_sbas_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_dep_b_encode( +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_dep_b_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ephemeris_sbas_dep_b_t *msg); @@ -126,9 +126,9 @@ s8 sbp_msg_ephemeris_sbas_dep_b_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ephemeris_sbas_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_dep_b_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ephemeris_sbas_dep_b_t *msg); /** * Send an instance of sbp_msg_ephemeris_sbas_dep_b_t with the given write * function @@ -146,9 +146,9 @@ s8 sbp_msg_ephemeris_sbas_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ephemeris_sbas_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ephemeris_sbas_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ephemeris_sbas_dep_b_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ephemeris_sbas_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ephemeris_sbas_dep_b_t @@ -165,8 +165,9 @@ s8 sbp_msg_ephemeris_sbas_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ephemeris_sbas_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_ephemeris_sbas_dep_b_cmp(const sbp_msg_ephemeris_sbas_dep_b_t *a, - const sbp_msg_ephemeris_sbas_dep_b_t *b); +SBP_EXPORT int sbp_msg_ephemeris_sbas_dep_b_cmp( + const sbp_msg_ephemeris_sbas_dep_b_t *a, + const sbp_msg_ephemeris_sbas_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h b/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h index cb4b4d170b..1aba728e90 100644 --- a/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h +++ b/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h @@ -102,8 +102,9 @@ static inline size_t sbp_msg_glo_biases_encoded_len( * @param msg Instance of sbp_msg_glo_biases_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_glo_biases_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_glo_biases_t *msg); +SBP_EXPORT s8 sbp_msg_glo_biases_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_glo_biases_t *msg); /** * Decode an instance of sbp_msg_glo_biases_t from wire representation @@ -120,8 +121,9 @@ s8 sbp_msg_glo_biases_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_glo_biases_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_glo_biases_t *msg); +SBP_EXPORT s8 sbp_msg_glo_biases_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_glo_biases_t *msg); /** * Send an instance of sbp_msg_glo_biases_t with the given write function * @@ -138,9 +140,9 @@ s8 sbp_msg_glo_biases_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_glo_biases_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_glo_biases_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_glo_biases_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_glo_biases_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_glo_biases_t @@ -157,8 +159,8 @@ s8 sbp_msg_glo_biases_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_glo_biases_t instance * @return 0, <0, >0 */ -int sbp_msg_glo_biases_cmp(const sbp_msg_glo_biases_t *a, - const sbp_msg_glo_biases_t *b); +SBP_EXPORT int sbp_msg_glo_biases_cmp(const sbp_msg_glo_biases_t *a, + const sbp_msg_glo_biases_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h b/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h index 796739ae6c..25feb50bb4 100644 --- a/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h +++ b/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h @@ -83,8 +83,9 @@ static inline size_t sbp_msg_gnss_capb_encoded_len( * @param msg Instance of sbp_msg_gnss_capb_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gnss_capb_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_gnss_capb_t *msg); +SBP_EXPORT s8 sbp_msg_gnss_capb_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_gnss_capb_t *msg); /** * Decode an instance of sbp_msg_gnss_capb_t from wire representation @@ -101,8 +102,9 @@ s8 sbp_msg_gnss_capb_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gnss_capb_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_gnss_capb_t *msg); +SBP_EXPORT s8 sbp_msg_gnss_capb_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_gnss_capb_t *msg); /** * Send an instance of sbp_msg_gnss_capb_t with the given write function * @@ -119,8 +121,9 @@ s8 sbp_msg_gnss_capb_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gnss_capb_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_gnss_capb_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_gnss_capb_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_gnss_capb_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_gnss_capb_t @@ -137,8 +140,8 @@ s8 sbp_msg_gnss_capb_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_gnss_capb_t instance * @return 0, <0, >0 */ -int sbp_msg_gnss_capb_cmp(const sbp_msg_gnss_capb_t *a, - const sbp_msg_gnss_capb_t *b); +SBP_EXPORT int sbp_msg_gnss_capb_cmp(const sbp_msg_gnss_capb_t *a, + const sbp_msg_gnss_capb_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h index 968d8b5883..9ede22d3d7 100644 --- a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h +++ b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h @@ -99,8 +99,9 @@ static inline size_t sbp_msg_group_delay_encoded_len( * @param msg Instance of sbp_msg_group_delay_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_group_delay_t *msg); +SBP_EXPORT s8 sbp_msg_group_delay_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_group_delay_t *msg); /** * Decode an instance of sbp_msg_group_delay_t from wire representation @@ -117,8 +118,9 @@ s8 sbp_msg_group_delay_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_group_delay_t *msg); +SBP_EXPORT s8 sbp_msg_group_delay_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_group_delay_t *msg); /** * Send an instance of sbp_msg_group_delay_t with the given write function * @@ -135,9 +137,9 @@ s8 sbp_msg_group_delay_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_group_delay_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_group_delay_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_group_delay_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_group_delay_t @@ -154,8 +156,8 @@ s8 sbp_msg_group_delay_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_group_delay_t instance * @return 0, <0, >0 */ -int sbp_msg_group_delay_cmp(const sbp_msg_group_delay_t *a, - const sbp_msg_group_delay_t *b); +SBP_EXPORT int sbp_msg_group_delay_cmp(const sbp_msg_group_delay_t *a, + const sbp_msg_group_delay_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_A.h b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_A.h index 71fc91ab8b..7d1bb96de3 100644 --- a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_A.h @@ -98,9 +98,9 @@ static inline size_t sbp_msg_group_delay_dep_a_encoded_len( * @param msg Instance of sbp_msg_group_delay_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_group_delay_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_group_delay_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_group_delay_dep_a_t *msg); /** * Decode an instance of sbp_msg_group_delay_dep_a_t from wire representation @@ -117,9 +117,9 @@ s8 sbp_msg_group_delay_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_group_delay_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_group_delay_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_group_delay_dep_a_t *msg); /** * Send an instance of sbp_msg_group_delay_dep_a_t with the given write function * @@ -136,9 +136,9 @@ s8 sbp_msg_group_delay_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_group_delay_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_group_delay_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_group_delay_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_group_delay_dep_a_t @@ -155,8 +155,8 @@ s8 sbp_msg_group_delay_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_group_delay_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_group_delay_dep_a_cmp(const sbp_msg_group_delay_dep_a_t *a, - const sbp_msg_group_delay_dep_a_t *b); +SBP_EXPORT int sbp_msg_group_delay_dep_a_cmp( + const sbp_msg_group_delay_dep_a_t *a, const sbp_msg_group_delay_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_B.h b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_B.h index 0b737d45c0..6c9b532601 100644 --- a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY_DEP_B.h @@ -99,9 +99,9 @@ static inline size_t sbp_msg_group_delay_dep_b_encoded_len( * @param msg Instance of sbp_msg_group_delay_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_dep_b_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_group_delay_dep_b_t *msg); +SBP_EXPORT s8 +sbp_msg_group_delay_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_group_delay_dep_b_t *msg); /** * Decode an instance of sbp_msg_group_delay_dep_b_t from wire representation @@ -118,9 +118,9 @@ s8 sbp_msg_group_delay_dep_b_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_group_delay_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_group_delay_dep_b_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_group_delay_dep_b_t *msg); /** * Send an instance of sbp_msg_group_delay_dep_b_t with the given write function * @@ -137,9 +137,9 @@ s8 sbp_msg_group_delay_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_delay_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_group_delay_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_group_delay_dep_b_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_group_delay_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_group_delay_dep_b_t @@ -156,8 +156,8 @@ s8 sbp_msg_group_delay_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_group_delay_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_group_delay_dep_b_cmp(const sbp_msg_group_delay_dep_b_t *a, - const sbp_msg_group_delay_dep_b_t *b); +SBP_EXPORT int sbp_msg_group_delay_dep_b_cmp( + const sbp_msg_group_delay_dep_b_t *a, const sbp_msg_group_delay_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_IONO.h b/c/include/libsbp/v4/observation/MSG_IONO.h index 924f2f8253..30b781ae2d 100644 --- a/c/include/libsbp/v4/observation/MSG_IONO.h +++ b/c/include/libsbp/v4/observation/MSG_IONO.h @@ -98,8 +98,8 @@ static inline size_t sbp_msg_iono_encoded_len(const sbp_msg_iono_t *msg) { * @param msg Instance of sbp_msg_iono_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_iono_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_iono_t *msg); +SBP_EXPORT s8 sbp_msg_iono_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_iono_t *msg); /** * Decode an instance of sbp_msg_iono_t from wire representation @@ -116,8 +116,8 @@ s8 sbp_msg_iono_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_iono_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_iono_t *msg); +SBP_EXPORT s8 sbp_msg_iono_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_iono_t *msg); /** * Send an instance of sbp_msg_iono_t with the given write function * @@ -134,8 +134,9 @@ s8 sbp_msg_iono_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_iono_send(sbp_state_t *s, u16 sender_id, const sbp_msg_iono_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_iono_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_iono_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_iono_t @@ -152,7 +153,8 @@ s8 sbp_msg_iono_send(sbp_state_t *s, u16 sender_id, const sbp_msg_iono_t *msg, * @param b sbp_msg_iono_t instance * @return 0, <0, >0 */ -int sbp_msg_iono_cmp(const sbp_msg_iono_t *a, const sbp_msg_iono_t *b); +SBP_EXPORT int sbp_msg_iono_cmp(const sbp_msg_iono_t *a, + const sbp_msg_iono_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_OBS.h b/c/include/libsbp/v4/observation/MSG_OBS.h index 4c15dd0b16..63b2733bdc 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS.h +++ b/c/include/libsbp/v4/observation/MSG_OBS.h @@ -102,8 +102,8 @@ static inline size_t sbp_msg_obs_encoded_len(const sbp_msg_obs_t *msg) { * @param msg Instance of sbp_msg_obs_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_obs_t *msg); +SBP_EXPORT s8 sbp_msg_obs_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_obs_t *msg); /** * Decode an instance of sbp_msg_obs_t from wire representation @@ -120,8 +120,8 @@ s8 sbp_msg_obs_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_obs_t *msg); +SBP_EXPORT s8 sbp_msg_obs_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_obs_t *msg); /** * Send an instance of sbp_msg_obs_t with the given write function * @@ -138,8 +138,8 @@ s8 sbp_msg_obs_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_send(sbp_state_t *s, u16 sender_id, const sbp_msg_obs_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_obs_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_obs_t *msg, sbp_write_fn_t write); /** * Compare two instances of sbp_msg_obs_t @@ -156,7 +156,7 @@ s8 sbp_msg_obs_send(sbp_state_t *s, u16 sender_id, const sbp_msg_obs_t *msg, * @param b sbp_msg_obs_t instance * @return 0, <0, >0 */ -int sbp_msg_obs_cmp(const sbp_msg_obs_t *a, const sbp_msg_obs_t *b); +SBP_EXPORT int sbp_msg_obs_cmp(const sbp_msg_obs_t *a, const sbp_msg_obs_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h b/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h index c0d1ec9206..947c6786c1 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h @@ -98,8 +98,9 @@ static inline size_t sbp_msg_obs_dep_a_encoded_len( * @param msg Instance of sbp_msg_obs_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_obs_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_obs_dep_a_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_obs_dep_a_t *msg); /** * Decode an instance of sbp_msg_obs_dep_a_t from wire representation @@ -116,8 +117,9 @@ s8 sbp_msg_obs_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_a_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_obs_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_obs_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_obs_dep_a_t *msg); /** * Send an instance of sbp_msg_obs_dep_a_t with the given write function * @@ -134,8 +136,9 @@ s8 sbp_msg_obs_dep_a_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_obs_dep_a_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_obs_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_obs_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_obs_dep_a_t @@ -152,8 +155,8 @@ s8 sbp_msg_obs_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_obs_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_obs_dep_a_cmp(const sbp_msg_obs_dep_a_t *a, - const sbp_msg_obs_dep_a_t *b); +SBP_EXPORT int sbp_msg_obs_dep_a_cmp(const sbp_msg_obs_dep_a_t *a, + const sbp_msg_obs_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h b/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h index 62816b3774..60c5ec99f4 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h @@ -101,8 +101,9 @@ static inline size_t sbp_msg_obs_dep_b_encoded_len( * @param msg Instance of sbp_msg_obs_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_obs_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_obs_dep_b_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_obs_dep_b_t *msg); /** * Decode an instance of sbp_msg_obs_dep_b_t from wire representation @@ -119,8 +120,9 @@ s8 sbp_msg_obs_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_b_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_obs_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_obs_dep_b_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_obs_dep_b_t *msg); /** * Send an instance of sbp_msg_obs_dep_b_t with the given write function * @@ -137,8 +139,9 @@ s8 sbp_msg_obs_dep_b_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_obs_dep_b_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_obs_dep_b_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_obs_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_obs_dep_b_t @@ -155,8 +158,8 @@ s8 sbp_msg_obs_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_obs_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_obs_dep_b_cmp(const sbp_msg_obs_dep_b_t *a, - const sbp_msg_obs_dep_b_t *b); +SBP_EXPORT int sbp_msg_obs_dep_b_cmp(const sbp_msg_obs_dep_b_t *a, + const sbp_msg_obs_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h b/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h index 2b405d9fdd..84874b259c 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h @@ -103,8 +103,9 @@ static inline size_t sbp_msg_obs_dep_c_encoded_len( * @param msg Instance of sbp_msg_obs_dep_c_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_c_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_obs_dep_c_t *msg); +SBP_EXPORT s8 sbp_msg_obs_dep_c_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_obs_dep_c_t *msg); /** * Decode an instance of sbp_msg_obs_dep_c_t from wire representation @@ -121,8 +122,9 @@ s8 sbp_msg_obs_dep_c_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_c_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_obs_dep_c_t *msg); +SBP_EXPORT s8 sbp_msg_obs_dep_c_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_obs_dep_c_t *msg); /** * Send an instance of sbp_msg_obs_dep_c_t with the given write function * @@ -139,8 +141,9 @@ s8 sbp_msg_obs_dep_c_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_obs_dep_c_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_obs_dep_c_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_obs_dep_c_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_obs_dep_c_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_obs_dep_c_t @@ -157,8 +160,8 @@ s8 sbp_msg_obs_dep_c_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_obs_dep_c_t instance * @return 0, <0, >0 */ -int sbp_msg_obs_dep_c_cmp(const sbp_msg_obs_dep_c_t *a, - const sbp_msg_obs_dep_c_t *b); +SBP_EXPORT int sbp_msg_obs_dep_c_cmp(const sbp_msg_obs_dep_c_t *a, + const sbp_msg_obs_dep_c_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_OSR.h b/c/include/libsbp/v4/observation/MSG_OSR.h index c5f157e6f9..b5c52d4f8c 100644 --- a/c/include/libsbp/v4/observation/MSG_OSR.h +++ b/c/include/libsbp/v4/observation/MSG_OSR.h @@ -97,8 +97,8 @@ static inline size_t sbp_msg_osr_encoded_len(const sbp_msg_osr_t *msg) { * @param msg Instance of sbp_msg_osr_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_osr_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_osr_t *msg); +SBP_EXPORT s8 sbp_msg_osr_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_osr_t *msg); /** * Decode an instance of sbp_msg_osr_t from wire representation @@ -115,8 +115,8 @@ s8 sbp_msg_osr_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_osr_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_osr_t *msg); +SBP_EXPORT s8 sbp_msg_osr_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_osr_t *msg); /** * Send an instance of sbp_msg_osr_t with the given write function * @@ -133,8 +133,8 @@ s8 sbp_msg_osr_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_osr_send(sbp_state_t *s, u16 sender_id, const sbp_msg_osr_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_osr_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_osr_t *msg, sbp_write_fn_t write); /** * Compare two instances of sbp_msg_osr_t @@ -151,7 +151,7 @@ s8 sbp_msg_osr_send(sbp_state_t *s, u16 sender_id, const sbp_msg_osr_t *msg, * @param b sbp_msg_osr_t instance * @return 0, <0, >0 */ -int sbp_msg_osr_cmp(const sbp_msg_osr_t *a, const sbp_msg_osr_t *b); +SBP_EXPORT int sbp_msg_osr_cmp(const sbp_msg_osr_t *a, const sbp_msg_osr_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h b/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h index f09c7c241f..0c36b04eea 100644 --- a/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h +++ b/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h @@ -93,8 +93,9 @@ static inline size_t sbp_msg_sv_az_el_encoded_len( * @param msg Instance of sbp_msg_sv_az_el_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sv_az_el_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_sv_az_el_t *msg); +SBP_EXPORT s8 sbp_msg_sv_az_el_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_sv_az_el_t *msg); /** * Decode an instance of sbp_msg_sv_az_el_t from wire representation @@ -111,8 +112,8 @@ s8 sbp_msg_sv_az_el_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sv_az_el_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_sv_az_el_t *msg); +SBP_EXPORT s8 sbp_msg_sv_az_el_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_sv_az_el_t *msg); /** * Send an instance of sbp_msg_sv_az_el_t with the given write function * @@ -129,8 +130,9 @@ s8 sbp_msg_sv_az_el_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sv_az_el_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_sv_az_el_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_sv_az_el_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_sv_az_el_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_sv_az_el_t @@ -147,8 +149,8 @@ s8 sbp_msg_sv_az_el_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_sv_az_el_t instance * @return 0, <0, >0 */ -int sbp_msg_sv_az_el_cmp(const sbp_msg_sv_az_el_t *a, - const sbp_msg_sv_az_el_t *b); +SBP_EXPORT int sbp_msg_sv_az_el_cmp(const sbp_msg_sv_az_el_t *a, + const sbp_msg_sv_az_el_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/MSG_SV_CONFIGURATION_GPS_DEP.h b/c/include/libsbp/v4/observation/MSG_SV_CONFIGURATION_GPS_DEP.h index 9bd8e8ca2e..d717f448de 100644 --- a/c/include/libsbp/v4/observation/MSG_SV_CONFIGURATION_GPS_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_SV_CONFIGURATION_GPS_DEP.h @@ -87,7 +87,7 @@ static inline size_t sbp_msg_sv_configuration_gps_dep_encoded_len( * @param msg Instance of sbp_msg_sv_configuration_gps_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sv_configuration_gps_dep_encode( +SBP_EXPORT s8 sbp_msg_sv_configuration_gps_dep_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_sv_configuration_gps_dep_t *msg); @@ -108,7 +108,7 @@ s8 sbp_msg_sv_configuration_gps_dep_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sv_configuration_gps_dep_decode( +SBP_EXPORT s8 sbp_msg_sv_configuration_gps_dep_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_sv_configuration_gps_dep_t *msg); /** @@ -128,7 +128,7 @@ s8 sbp_msg_sv_configuration_gps_dep_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sv_configuration_gps_dep_send( +SBP_EXPORT s8 sbp_msg_sv_configuration_gps_dep_send( sbp_state_t *s, u16 sender_id, const sbp_msg_sv_configuration_gps_dep_t *msg, sbp_write_fn_t write); @@ -147,7 +147,7 @@ s8 sbp_msg_sv_configuration_gps_dep_send( * @param b sbp_msg_sv_configuration_gps_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_sv_configuration_gps_dep_cmp( +SBP_EXPORT int sbp_msg_sv_configuration_gps_dep_cmp( const sbp_msg_sv_configuration_gps_dep_t *a, const sbp_msg_sv_configuration_gps_dep_t *b); diff --git a/c/include/libsbp/v4/observation/ObservationHeader.h b/c/include/libsbp/v4/observation/ObservationHeader.h index cc4a9dcb79..19c42e18e5 100644 --- a/c/include/libsbp/v4/observation/ObservationHeader.h +++ b/c/include/libsbp/v4/observation/ObservationHeader.h @@ -87,8 +87,9 @@ static inline size_t sbp_observation_header_encoded_len( * @param msg Instance of sbp_observation_header_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_observation_header_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_observation_header_t *msg); +SBP_EXPORT s8 +sbp_observation_header_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_observation_header_t *msg); /** * Decode an instance of sbp_observation_header_t from wire representation @@ -105,9 +106,9 @@ s8 sbp_observation_header_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_observation_header_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_observation_header_t *msg); +SBP_EXPORT s8 sbp_observation_header_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_observation_header_t *msg); /** * Compare two instances of sbp_observation_header_t @@ -124,8 +125,8 @@ s8 sbp_observation_header_decode(const uint8_t *buf, uint8_t len, * @param b sbp_observation_header_t instance * @return 0, <0, >0 */ -int sbp_observation_header_cmp(const sbp_observation_header_t *a, - const sbp_observation_header_t *b); +SBP_EXPORT int sbp_observation_header_cmp(const sbp_observation_header_t *a, + const sbp_observation_header_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/ObservationHeaderDep.h b/c/include/libsbp/v4/observation/ObservationHeaderDep.h index cb45dd3094..2f71751b15 100644 --- a/c/include/libsbp/v4/observation/ObservationHeaderDep.h +++ b/c/include/libsbp/v4/observation/ObservationHeaderDep.h @@ -87,9 +87,9 @@ static inline size_t sbp_observation_header_dep_encoded_len( * @param msg Instance of sbp_observation_header_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_observation_header_dep_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_observation_header_dep_t *msg); +SBP_EXPORT s8 +sbp_observation_header_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_observation_header_dep_t *msg); /** * Decode an instance of sbp_observation_header_dep_t from wire representation @@ -106,9 +106,9 @@ s8 sbp_observation_header_dep_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_observation_header_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_observation_header_dep_t *msg); +SBP_EXPORT s8 sbp_observation_header_dep_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_observation_header_dep_t *msg); /** * Compare two instances of sbp_observation_header_dep_t @@ -125,8 +125,9 @@ s8 sbp_observation_header_dep_decode(const uint8_t *buf, uint8_t len, * @param b sbp_observation_header_dep_t instance * @return 0, <0, >0 */ -int sbp_observation_header_dep_cmp(const sbp_observation_header_dep_t *a, - const sbp_observation_header_dep_t *b); +SBP_EXPORT int sbp_observation_header_dep_cmp( + const sbp_observation_header_dep_t *a, + const sbp_observation_header_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/PackedObsContent.h b/c/include/libsbp/v4/observation/PackedObsContent.h index 88ee505f20..25822976a2 100644 --- a/c/include/libsbp/v4/observation/PackedObsContent.h +++ b/c/include/libsbp/v4/observation/PackedObsContent.h @@ -122,8 +122,9 @@ static inline size_t sbp_packed_obs_content_encoded_len( * @param msg Instance of sbp_packed_obs_content_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_packed_obs_content_t *msg); +SBP_EXPORT s8 +sbp_packed_obs_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_packed_obs_content_t *msg); /** * Decode an instance of sbp_packed_obs_content_t from wire representation @@ -140,9 +141,9 @@ s8 sbp_packed_obs_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_packed_obs_content_t *msg); +SBP_EXPORT s8 sbp_packed_obs_content_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_packed_obs_content_t *msg); /** * Compare two instances of sbp_packed_obs_content_t @@ -159,8 +160,8 @@ s8 sbp_packed_obs_content_decode(const uint8_t *buf, uint8_t len, * @param b sbp_packed_obs_content_t instance * @return 0, <0, >0 */ -int sbp_packed_obs_content_cmp(const sbp_packed_obs_content_t *a, - const sbp_packed_obs_content_t *b); +SBP_EXPORT int sbp_packed_obs_content_cmp(const sbp_packed_obs_content_t *a, + const sbp_packed_obs_content_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/PackedObsContentDepA.h b/c/include/libsbp/v4/observation/PackedObsContentDepA.h index a2c412cb43..17b66a5365 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepA.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepA.h @@ -103,7 +103,7 @@ static inline size_t sbp_packed_obs_content_dep_a_encoded_len( * @param msg Instance of sbp_packed_obs_content_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_dep_a_encode( +SBP_EXPORT s8 sbp_packed_obs_content_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_packed_obs_content_dep_a_t *msg); @@ -122,9 +122,9 @@ s8 sbp_packed_obs_content_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_packed_obs_content_dep_a_t *msg); +SBP_EXPORT s8 sbp_packed_obs_content_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_packed_obs_content_dep_a_t *msg); /** * Compare two instances of sbp_packed_obs_content_dep_a_t @@ -141,8 +141,9 @@ s8 sbp_packed_obs_content_dep_a_decode(const uint8_t *buf, uint8_t len, * @param b sbp_packed_obs_content_dep_a_t instance * @return 0, <0, >0 */ -int sbp_packed_obs_content_dep_a_cmp(const sbp_packed_obs_content_dep_a_t *a, - const sbp_packed_obs_content_dep_a_t *b); +SBP_EXPORT int sbp_packed_obs_content_dep_a_cmp( + const sbp_packed_obs_content_dep_a_t *a, + const sbp_packed_obs_content_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/PackedObsContentDepB.h b/c/include/libsbp/v4/observation/PackedObsContentDepB.h index 4bb4d910c1..1cebc029a4 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepB.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepB.h @@ -105,7 +105,7 @@ static inline size_t sbp_packed_obs_content_dep_b_encoded_len( * @param msg Instance of sbp_packed_obs_content_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_dep_b_encode( +SBP_EXPORT s8 sbp_packed_obs_content_dep_b_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_packed_obs_content_dep_b_t *msg); @@ -124,9 +124,9 @@ s8 sbp_packed_obs_content_dep_b_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_packed_obs_content_dep_b_t *msg); +SBP_EXPORT s8 sbp_packed_obs_content_dep_b_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_packed_obs_content_dep_b_t *msg); /** * Compare two instances of sbp_packed_obs_content_dep_b_t @@ -143,8 +143,9 @@ s8 sbp_packed_obs_content_dep_b_decode(const uint8_t *buf, uint8_t len, * @param b sbp_packed_obs_content_dep_b_t instance * @return 0, <0, >0 */ -int sbp_packed_obs_content_dep_b_cmp(const sbp_packed_obs_content_dep_b_t *a, - const sbp_packed_obs_content_dep_b_t *b); +SBP_EXPORT int sbp_packed_obs_content_dep_b_cmp( + const sbp_packed_obs_content_dep_b_t *a, + const sbp_packed_obs_content_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/PackedObsContentDepC.h b/c/include/libsbp/v4/observation/PackedObsContentDepC.h index 3c46335f7f..1e731d7d77 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepC.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepC.h @@ -106,7 +106,7 @@ static inline size_t sbp_packed_obs_content_dep_c_encoded_len( * @param msg Instance of sbp_packed_obs_content_dep_c_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_dep_c_encode( +SBP_EXPORT s8 sbp_packed_obs_content_dep_c_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_packed_obs_content_dep_c_t *msg); @@ -125,9 +125,9 @@ s8 sbp_packed_obs_content_dep_c_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_obs_content_dep_c_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_packed_obs_content_dep_c_t *msg); +SBP_EXPORT s8 sbp_packed_obs_content_dep_c_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_packed_obs_content_dep_c_t *msg); /** * Compare two instances of sbp_packed_obs_content_dep_c_t @@ -144,8 +144,9 @@ s8 sbp_packed_obs_content_dep_c_decode(const uint8_t *buf, uint8_t len, * @param b sbp_packed_obs_content_dep_c_t instance * @return 0, <0, >0 */ -int sbp_packed_obs_content_dep_c_cmp(const sbp_packed_obs_content_dep_c_t *a, - const sbp_packed_obs_content_dep_c_t *b); +SBP_EXPORT int sbp_packed_obs_content_dep_c_cmp( + const sbp_packed_obs_content_dep_c_t *a, + const sbp_packed_obs_content_dep_c_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/PackedOsrContent.h b/c/include/libsbp/v4/observation/PackedOsrContent.h index 043cf4517e..071a95692e 100644 --- a/c/include/libsbp/v4/observation/PackedOsrContent.h +++ b/c/include/libsbp/v4/observation/PackedOsrContent.h @@ -121,8 +121,9 @@ static inline size_t sbp_packed_osr_content_encoded_len( * @param msg Instance of sbp_packed_osr_content_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_osr_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_packed_osr_content_t *msg); +SBP_EXPORT s8 +sbp_packed_osr_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_packed_osr_content_t *msg); /** * Decode an instance of sbp_packed_osr_content_t from wire representation @@ -139,9 +140,9 @@ s8 sbp_packed_osr_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_packed_osr_content_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_packed_osr_content_t *msg); +SBP_EXPORT s8 sbp_packed_osr_content_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_packed_osr_content_t *msg); /** * Compare two instances of sbp_packed_osr_content_t @@ -158,8 +159,8 @@ s8 sbp_packed_osr_content_decode(const uint8_t *buf, uint8_t len, * @param b sbp_packed_osr_content_t instance * @return 0, <0, >0 */ -int sbp_packed_osr_content_cmp(const sbp_packed_osr_content_t *a, - const sbp_packed_osr_content_t *b); +SBP_EXPORT int sbp_packed_osr_content_cmp(const sbp_packed_osr_content_t *a, + const sbp_packed_osr_content_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/observation/SvAzEl.h b/c/include/libsbp/v4/observation/SvAzEl.h index e8695c5b6f..c5eb0c9234 100644 --- a/c/include/libsbp/v4/observation/SvAzEl.h +++ b/c/include/libsbp/v4/observation/SvAzEl.h @@ -90,8 +90,8 @@ static inline size_t sbp_sv_az_el_encoded_len(const sbp_sv_az_el_t *msg) { * @param msg Instance of sbp_sv_az_el_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_sv_az_el_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_sv_az_el_t *msg); +SBP_EXPORT s8 sbp_sv_az_el_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_sv_az_el_t *msg); /** * Decode an instance of sbp_sv_az_el_t from wire representation @@ -108,8 +108,8 @@ s8 sbp_sv_az_el_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_sv_az_el_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_sv_az_el_t *msg); +SBP_EXPORT s8 sbp_sv_az_el_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_sv_az_el_t *msg); /** * Compare two instances of sbp_sv_az_el_t @@ -126,7 +126,8 @@ s8 sbp_sv_az_el_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_sv_az_el_t instance * @return 0, <0, >0 */ -int sbp_sv_az_el_cmp(const sbp_sv_az_el_t *a, const sbp_sv_az_el_t *b); +SBP_EXPORT int sbp_sv_az_el_cmp(const sbp_sv_az_el_t *a, + const sbp_sv_az_el_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h b/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h index 39f755fcfb..36be54acdc 100644 --- a/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h +++ b/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h @@ -108,8 +108,9 @@ static inline size_t sbp_msg_angular_rate_encoded_len( * @param msg Instance of sbp_msg_angular_rate_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_angular_rate_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_angular_rate_t *msg); +SBP_EXPORT s8 sbp_msg_angular_rate_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_angular_rate_t *msg); /** * Decode an instance of sbp_msg_angular_rate_t from wire representation @@ -126,8 +127,9 @@ s8 sbp_msg_angular_rate_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_angular_rate_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_angular_rate_t *msg); +SBP_EXPORT s8 sbp_msg_angular_rate_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_angular_rate_t *msg); /** * Send an instance of sbp_msg_angular_rate_t with the given write function * @@ -144,9 +146,9 @@ s8 sbp_msg_angular_rate_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_angular_rate_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_angular_rate_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_angular_rate_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_angular_rate_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_angular_rate_t @@ -163,8 +165,8 @@ s8 sbp_msg_angular_rate_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_angular_rate_t instance * @return 0, <0, >0 */ -int sbp_msg_angular_rate_cmp(const sbp_msg_angular_rate_t *a, - const sbp_msg_angular_rate_t *b); +SBP_EXPORT int sbp_msg_angular_rate_cmp(const sbp_msg_angular_rate_t *a, + const sbp_msg_angular_rate_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h b/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h index 1f1c6fd379..ec60214f44 100644 --- a/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h +++ b/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h @@ -98,9 +98,9 @@ static inline size_t sbp_msg_baseline_heading_encoded_len( * @param msg Instance of sbp_msg_baseline_heading_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_heading_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_baseline_heading_t *msg); +SBP_EXPORT s8 +sbp_msg_baseline_heading_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_baseline_heading_t *msg); /** * Decode an instance of sbp_msg_baseline_heading_t from wire representation @@ -117,9 +117,9 @@ s8 sbp_msg_baseline_heading_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_heading_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_baseline_heading_t *msg); +SBP_EXPORT s8 sbp_msg_baseline_heading_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_baseline_heading_t *msg); /** * Send an instance of sbp_msg_baseline_heading_t with the given write function * @@ -136,9 +136,9 @@ s8 sbp_msg_baseline_heading_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_baseline_heading_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_baseline_heading_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_baseline_heading_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_baseline_heading_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_baseline_heading_t @@ -155,8 +155,8 @@ s8 sbp_msg_baseline_heading_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_baseline_heading_t instance * @return 0, <0, >0 */ -int sbp_msg_baseline_heading_cmp(const sbp_msg_baseline_heading_t *a, - const sbp_msg_baseline_heading_t *b); +SBP_EXPORT int sbp_msg_baseline_heading_cmp( + const sbp_msg_baseline_heading_t *a, const sbp_msg_baseline_heading_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h b/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h index 9c314a2bf7..47a6ea9e6a 100644 --- a/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h +++ b/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h @@ -120,8 +120,9 @@ static inline size_t sbp_msg_orient_euler_encoded_len( * @param msg Instance of sbp_msg_orient_euler_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_orient_euler_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_orient_euler_t *msg); +SBP_EXPORT s8 sbp_msg_orient_euler_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_orient_euler_t *msg); /** * Decode an instance of sbp_msg_orient_euler_t from wire representation @@ -138,8 +139,9 @@ s8 sbp_msg_orient_euler_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_orient_euler_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_orient_euler_t *msg); +SBP_EXPORT s8 sbp_msg_orient_euler_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_orient_euler_t *msg); /** * Send an instance of sbp_msg_orient_euler_t with the given write function * @@ -156,9 +158,9 @@ s8 sbp_msg_orient_euler_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_orient_euler_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_orient_euler_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_orient_euler_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_orient_euler_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_orient_euler_t @@ -175,8 +177,8 @@ s8 sbp_msg_orient_euler_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_orient_euler_t instance * @return 0, <0, >0 */ -int sbp_msg_orient_euler_cmp(const sbp_msg_orient_euler_t *a, - const sbp_msg_orient_euler_t *b); +SBP_EXPORT int sbp_msg_orient_euler_cmp(const sbp_msg_orient_euler_t *a, + const sbp_msg_orient_euler_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h b/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h index 87be21061a..b2340e1168 100644 --- a/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h +++ b/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h @@ -129,8 +129,9 @@ static inline size_t sbp_msg_orient_quat_encoded_len( * @param msg Instance of sbp_msg_orient_quat_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_orient_quat_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_orient_quat_t *msg); +SBP_EXPORT s8 sbp_msg_orient_quat_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_orient_quat_t *msg); /** * Decode an instance of sbp_msg_orient_quat_t from wire representation @@ -147,8 +148,9 @@ s8 sbp_msg_orient_quat_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_orient_quat_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_orient_quat_t *msg); +SBP_EXPORT s8 sbp_msg_orient_quat_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_orient_quat_t *msg); /** * Send an instance of sbp_msg_orient_quat_t with the given write function * @@ -165,9 +167,9 @@ s8 sbp_msg_orient_quat_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_orient_quat_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_orient_quat_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_orient_quat_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_orient_quat_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_orient_quat_t @@ -184,8 +186,8 @@ s8 sbp_msg_orient_quat_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_orient_quat_t instance * @return 0, <0, >0 */ -int sbp_msg_orient_quat_cmp(const sbp_msg_orient_quat_t *a, - const sbp_msg_orient_quat_t *b); +SBP_EXPORT int sbp_msg_orient_quat_cmp(const sbp_msg_orient_quat_t *a, + const sbp_msg_orient_quat_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/Latency.h b/c/include/libsbp/v4/piksi/Latency.h index fa94d643d8..c004e70adf 100644 --- a/c/include/libsbp/v4/piksi/Latency.h +++ b/c/include/libsbp/v4/piksi/Latency.h @@ -97,8 +97,8 @@ static inline size_t sbp_latency_encoded_len(const sbp_latency_t *msg) { * @param msg Instance of sbp_latency_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_latency_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_latency_t *msg); +SBP_EXPORT s8 sbp_latency_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_latency_t *msg); /** * Decode an instance of sbp_latency_t from wire representation @@ -115,8 +115,8 @@ s8 sbp_latency_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_latency_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_latency_t *msg); +SBP_EXPORT s8 sbp_latency_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_latency_t *msg); /** * Compare two instances of sbp_latency_t @@ -133,7 +133,7 @@ s8 sbp_latency_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_latency_t instance * @return 0, <0, >0 */ -int sbp_latency_cmp(const sbp_latency_t *a, const sbp_latency_t *b); +SBP_EXPORT int sbp_latency_cmp(const sbp_latency_t *a, const sbp_latency_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_ALMANAC.h b/c/include/libsbp/v4/piksi/MSG_ALMANAC.h index ed2e7ad368..f3519d75f1 100644 --- a/c/include/libsbp/v4/piksi/MSG_ALMANAC.h +++ b/c/include/libsbp/v4/piksi/MSG_ALMANAC.h @@ -81,8 +81,9 @@ static inline size_t sbp_msg_almanac_encoded_len(const sbp_msg_almanac_t *msg) { * @param msg Instance of sbp_msg_almanac_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_almanac_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_almanac_t *msg); /** * Decode an instance of sbp_msg_almanac_t from wire representation @@ -99,8 +100,8 @@ s8 sbp_msg_almanac_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_almanac_t *msg); +SBP_EXPORT s8 sbp_msg_almanac_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_almanac_t *msg); /** * Send an instance of sbp_msg_almanac_t with the given write function * @@ -117,8 +118,9 @@ s8 sbp_msg_almanac_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_almanac_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_almanac_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_almanac_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_almanac_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_almanac_t @@ -135,7 +137,8 @@ s8 sbp_msg_almanac_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_almanac_t instance * @return 0, <0, >0 */ -int sbp_msg_almanac_cmp(const sbp_msg_almanac_t *a, const sbp_msg_almanac_t *b); +SBP_EXPORT int sbp_msg_almanac_cmp(const sbp_msg_almanac_t *a, + const sbp_msg_almanac_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h b/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h index 360a1981af..d2f1b3cadc 100644 --- a/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h +++ b/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h @@ -103,9 +103,9 @@ static inline size_t sbp_msg_cell_modem_status_encoded_len( * @param msg Instance of sbp_msg_cell_modem_status_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cell_modem_status_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_cell_modem_status_t *msg); +SBP_EXPORT s8 +sbp_msg_cell_modem_status_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_cell_modem_status_t *msg); /** * Decode an instance of sbp_msg_cell_modem_status_t from wire representation @@ -122,9 +122,9 @@ s8 sbp_msg_cell_modem_status_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cell_modem_status_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_cell_modem_status_t *msg); +SBP_EXPORT s8 sbp_msg_cell_modem_status_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_cell_modem_status_t *msg); /** * Send an instance of sbp_msg_cell_modem_status_t with the given write function * @@ -141,9 +141,9 @@ s8 sbp_msg_cell_modem_status_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cell_modem_status_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_cell_modem_status_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_cell_modem_status_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_cell_modem_status_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_cell_modem_status_t @@ -160,8 +160,8 @@ s8 sbp_msg_cell_modem_status_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_cell_modem_status_t instance * @return 0, <0, >0 */ -int sbp_msg_cell_modem_status_cmp(const sbp_msg_cell_modem_status_t *a, - const sbp_msg_cell_modem_status_t *b); +SBP_EXPORT int sbp_msg_cell_modem_status_cmp( + const sbp_msg_cell_modem_status_t *a, const sbp_msg_cell_modem_status_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h b/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h index d4b90cb1ba..842fac0dc9 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h @@ -61,7 +61,7 @@ typedef struct { * * @param msg sbp_msg_command_output_t instance */ -void sbp_msg_command_output_line_init(sbp_msg_command_output_t *msg); +SBP_EXPORT void sbp_msg_command_output_line_init(sbp_msg_command_output_t *msg); /** * Test sbp_msg_command_output_t::line for validity @@ -70,7 +70,8 @@ void sbp_msg_command_output_line_init(sbp_msg_command_output_t *msg); * @return true is sbp_msg_command_output_t::line is valid for encoding * purposes, false otherwise */ -bool sbp_msg_command_output_line_valid(const sbp_msg_command_output_t *msg); +SBP_EXPORT bool sbp_msg_command_output_line_valid( + const sbp_msg_command_output_t *msg); /** * Tests 2 instances of sbp_msg_command_output_t::line for equality @@ -82,8 +83,8 @@ bool sbp_msg_command_output_line_valid(const sbp_msg_command_output_t *msg); * @param b sbp_msg_command_output_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_command_output_line_strcmp(const sbp_msg_command_output_t *a, - const sbp_msg_command_output_t *b); +SBP_EXPORT int sbp_msg_command_output_line_strcmp( + const sbp_msg_command_output_t *a, const sbp_msg_command_output_t *b); /** * Get the encoded size of sbp_msg_command_output_t::line @@ -91,8 +92,8 @@ int sbp_msg_command_output_line_strcmp(const sbp_msg_command_output_t *a, * @param msg sbp_msg_command_output_t instance * @return Size of sbp_msg_command_output_t::line in wire representation */ -size_t sbp_msg_command_output_line_encoded_len( - const sbp_msg_command_output_t *msg); +SBP_EXPORT size_t +sbp_msg_command_output_line_encoded_len(const sbp_msg_command_output_t *msg); /** * Query sbp_msg_command_output_t::line for remaining space @@ -104,7 +105,7 @@ size_t sbp_msg_command_output_line_encoded_len( * @param msg sbp_msg_command_output_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_command_output_line_space_remaining( +SBP_EXPORT size_t sbp_msg_command_output_line_space_remaining( const sbp_msg_command_output_t *msg); /** * Set sbp_msg_command_output_t::line @@ -123,9 +124,10 @@ size_t sbp_msg_command_output_line_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_command_output_line_set(sbp_msg_command_output_t *msg, - const char *new_str, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_command_output_line_set(sbp_msg_command_output_t *msg, + const char *new_str, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_command_output_t::line from a raw buffer @@ -145,10 +147,9 @@ bool sbp_msg_command_output_line_set(sbp_msg_command_output_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_command_output_line_set_raw(sbp_msg_command_output_t *msg, - const char *new_buf, - size_t new_buf_len, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_command_output_line_set_raw( + sbp_msg_command_output_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_command_output_t::line with printf style formatting @@ -168,10 +169,9 @@ bool sbp_msg_command_output_line_set_raw(sbp_msg_command_output_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_command_output_line_printf(sbp_msg_command_output_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_command_output_line_printf( + sbp_msg_command_output_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_command_output_t::line with printf style formatting @@ -187,10 +187,9 @@ bool sbp_msg_command_output_line_printf(sbp_msg_command_output_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_command_output_line_vprintf(sbp_msg_command_output_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_command_output_line_vprintf( + sbp_msg_command_output_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_command_output_t::line with printf style formatting @@ -208,11 +207,9 @@ bool sbp_msg_command_output_line_vprintf(sbp_msg_command_output_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_command_output_line_append_printf(sbp_msg_command_output_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_command_output_line_append_printf( + sbp_msg_command_output_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Append sbp_msg_command_output_t::line with printf style formatting @@ -228,11 +225,9 @@ bool sbp_msg_command_output_line_append_printf(sbp_msg_command_output_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_command_output_line_append_vprintf(sbp_msg_command_output_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_command_output_line_append_vprintf( + sbp_msg_command_output_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Obtain the string value from sbp_msg_command_output_t::line @@ -240,7 +235,7 @@ bool sbp_msg_command_output_line_append_vprintf(sbp_msg_command_output_t *msg, * @param msg sbp_msg_command_output_t instance * @return String contents */ -const char *sbp_msg_command_output_line_get( +SBP_EXPORT const char *sbp_msg_command_output_line_get( const sbp_msg_command_output_t *msg); /** @@ -251,7 +246,8 @@ const char *sbp_msg_command_output_line_get( * @param msg sbp_msg_command_output_t instance * @return Length of string */ -size_t sbp_msg_command_output_line_strlen(const sbp_msg_command_output_t *msg); +SBP_EXPORT size_t +sbp_msg_command_output_line_strlen(const sbp_msg_command_output_t *msg); /** * Get encoded size of an instance of sbp_msg_command_output_t @@ -284,8 +280,9 @@ static inline size_t sbp_msg_command_output_encoded_len( * @param msg Instance of sbp_msg_command_output_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_output_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_command_output_t *msg); +SBP_EXPORT s8 +sbp_msg_command_output_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_command_output_t *msg); /** * Decode an instance of sbp_msg_command_output_t from wire representation @@ -302,9 +299,9 @@ s8 sbp_msg_command_output_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_output_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_command_output_t *msg); +SBP_EXPORT s8 sbp_msg_command_output_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_command_output_t *msg); /** * Send an instance of sbp_msg_command_output_t with the given write function * @@ -321,9 +318,9 @@ s8 sbp_msg_command_output_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_output_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_command_output_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_command_output_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_command_output_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_command_output_t @@ -340,8 +337,8 @@ s8 sbp_msg_command_output_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_command_output_t instance * @return 0, <0, >0 */ -int sbp_msg_command_output_cmp(const sbp_msg_command_output_t *a, - const sbp_msg_command_output_t *b); +SBP_EXPORT int sbp_msg_command_output_cmp(const sbp_msg_command_output_t *a, + const sbp_msg_command_output_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h b/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h index b2574d6827..50f1b71702 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h @@ -60,7 +60,7 @@ typedef struct { * * @param msg sbp_msg_command_req_t instance */ -void sbp_msg_command_req_command_init(sbp_msg_command_req_t *msg); +SBP_EXPORT void sbp_msg_command_req_command_init(sbp_msg_command_req_t *msg); /** * Test sbp_msg_command_req_t::command for validity @@ -69,7 +69,8 @@ void sbp_msg_command_req_command_init(sbp_msg_command_req_t *msg); * @return true is sbp_msg_command_req_t::command is valid for encoding * purposes, false otherwise */ -bool sbp_msg_command_req_command_valid(const sbp_msg_command_req_t *msg); +SBP_EXPORT bool sbp_msg_command_req_command_valid( + const sbp_msg_command_req_t *msg); /** * Tests 2 instances of sbp_msg_command_req_t::command for equality @@ -81,8 +82,8 @@ bool sbp_msg_command_req_command_valid(const sbp_msg_command_req_t *msg); * @param b sbp_msg_command_req_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_command_req_command_strcmp(const sbp_msg_command_req_t *a, - const sbp_msg_command_req_t *b); +SBP_EXPORT int sbp_msg_command_req_command_strcmp( + const sbp_msg_command_req_t *a, const sbp_msg_command_req_t *b); /** * Get the encoded size of sbp_msg_command_req_t::command @@ -90,8 +91,8 @@ int sbp_msg_command_req_command_strcmp(const sbp_msg_command_req_t *a, * @param msg sbp_msg_command_req_t instance * @return Size of sbp_msg_command_req_t::command in wire representation */ -size_t sbp_msg_command_req_command_encoded_len( - const sbp_msg_command_req_t *msg); +SBP_EXPORT size_t +sbp_msg_command_req_command_encoded_len(const sbp_msg_command_req_t *msg); /** * Query sbp_msg_command_req_t::command for remaining space @@ -103,8 +104,8 @@ size_t sbp_msg_command_req_command_encoded_len( * @param msg sbp_msg_command_req_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_command_req_command_space_remaining( - const sbp_msg_command_req_t *msg); +SBP_EXPORT size_t +sbp_msg_command_req_command_space_remaining(const sbp_msg_command_req_t *msg); /** * Set sbp_msg_command_req_t::command * @@ -122,9 +123,10 @@ size_t sbp_msg_command_req_command_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_command_req_command_set(sbp_msg_command_req_t *msg, - const char *new_str, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_command_req_command_set(sbp_msg_command_req_t *msg, + const char *new_str, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_command_req_t::command from a raw buffer @@ -144,10 +146,11 @@ bool sbp_msg_command_req_command_set(sbp_msg_command_req_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_command_req_command_set_raw(sbp_msg_command_req_t *msg, - const char *new_buf, - size_t new_buf_len, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_command_req_command_set_raw(sbp_msg_command_req_t *msg, + const char *new_buf, + size_t new_buf_len, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_command_req_t::command with printf style formatting @@ -167,9 +170,10 @@ bool sbp_msg_command_req_command_set_raw(sbp_msg_command_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_command_req_command_printf(sbp_msg_command_req_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, ...) +SBP_EXPORT bool sbp_msg_command_req_command_printf(sbp_msg_command_req_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** @@ -186,9 +190,10 @@ bool sbp_msg_command_req_command_printf(sbp_msg_command_req_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_command_req_command_vprintf(sbp_msg_command_req_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, va_list ap) +SBP_EXPORT bool sbp_msg_command_req_command_vprintf(sbp_msg_command_req_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** @@ -207,11 +212,9 @@ bool sbp_msg_command_req_command_vprintf(sbp_msg_command_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_command_req_command_append_printf(sbp_msg_command_req_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_command_req_command_append_printf( + sbp_msg_command_req_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Append sbp_msg_command_req_t::command with printf style formatting @@ -227,11 +230,9 @@ bool sbp_msg_command_req_command_append_printf(sbp_msg_command_req_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_command_req_command_append_vprintf(sbp_msg_command_req_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_command_req_command_append_vprintf( + sbp_msg_command_req_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Obtain the string value from sbp_msg_command_req_t::command @@ -239,7 +240,8 @@ bool sbp_msg_command_req_command_append_vprintf(sbp_msg_command_req_t *msg, * @param msg sbp_msg_command_req_t instance * @return String contents */ -const char *sbp_msg_command_req_command_get(const sbp_msg_command_req_t *msg); +SBP_EXPORT const char *sbp_msg_command_req_command_get( + const sbp_msg_command_req_t *msg); /** * Obtain the length of sbp_msg_command_req_t::command @@ -249,7 +251,8 @@ const char *sbp_msg_command_req_command_get(const sbp_msg_command_req_t *msg); * @param msg sbp_msg_command_req_t instance * @return Length of string */ -size_t sbp_msg_command_req_command_strlen(const sbp_msg_command_req_t *msg); +SBP_EXPORT size_t +sbp_msg_command_req_command_strlen(const sbp_msg_command_req_t *msg); /** * Get encoded size of an instance of sbp_msg_command_req_t @@ -282,8 +285,9 @@ static inline size_t sbp_msg_command_req_encoded_len( * @param msg Instance of sbp_msg_command_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_command_req_t *msg); +SBP_EXPORT s8 sbp_msg_command_req_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_command_req_t *msg); /** * Decode an instance of sbp_msg_command_req_t from wire representation @@ -300,8 +304,9 @@ s8 sbp_msg_command_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_req_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_command_req_t *msg); +SBP_EXPORT s8 sbp_msg_command_req_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_command_req_t *msg); /** * Send an instance of sbp_msg_command_req_t with the given write function * @@ -318,9 +323,9 @@ s8 sbp_msg_command_req_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_command_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_command_req_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_command_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_command_req_t @@ -337,8 +342,8 @@ s8 sbp_msg_command_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_command_req_t instance * @return 0, <0, >0 */ -int sbp_msg_command_req_cmp(const sbp_msg_command_req_t *a, - const sbp_msg_command_req_t *b); +SBP_EXPORT int sbp_msg_command_req_cmp(const sbp_msg_command_req_t *a, + const sbp_msg_command_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h b/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h index 7d279790d8..44bc8fdb09 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h @@ -86,8 +86,9 @@ static inline size_t sbp_msg_command_resp_encoded_len( * @param msg Instance of sbp_msg_command_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_command_resp_t *msg); +SBP_EXPORT s8 sbp_msg_command_resp_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_command_resp_t *msg); /** * Decode an instance of sbp_msg_command_resp_t from wire representation @@ -104,8 +105,9 @@ s8 sbp_msg_command_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_resp_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_command_resp_t *msg); +SBP_EXPORT s8 sbp_msg_command_resp_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_command_resp_t *msg); /** * Send an instance of sbp_msg_command_resp_t with the given write function * @@ -122,9 +124,9 @@ s8 sbp_msg_command_resp_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_command_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_command_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_command_resp_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_command_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_command_resp_t @@ -141,8 +143,8 @@ s8 sbp_msg_command_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_command_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_command_resp_cmp(const sbp_msg_command_resp_t *a, - const sbp_msg_command_resp_t *b); +SBP_EXPORT int sbp_msg_command_resp_cmp(const sbp_msg_command_resp_t *a, + const sbp_msg_command_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h b/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h index 7dcdcacdd6..a6a8aba190 100644 --- a/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h +++ b/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h @@ -83,8 +83,9 @@ static inline size_t sbp_msg_cw_results_encoded_len( * @param msg Instance of sbp_msg_cw_results_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cw_results_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_cw_results_t *msg); +SBP_EXPORT s8 sbp_msg_cw_results_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_cw_results_t *msg); /** * Decode an instance of sbp_msg_cw_results_t from wire representation @@ -101,8 +102,9 @@ s8 sbp_msg_cw_results_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cw_results_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_cw_results_t *msg); +SBP_EXPORT s8 sbp_msg_cw_results_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_cw_results_t *msg); /** * Send an instance of sbp_msg_cw_results_t with the given write function * @@ -119,9 +121,9 @@ s8 sbp_msg_cw_results_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cw_results_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_cw_results_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_cw_results_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_cw_results_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_cw_results_t @@ -138,8 +140,8 @@ s8 sbp_msg_cw_results_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_cw_results_t instance * @return 0, <0, >0 */ -int sbp_msg_cw_results_cmp(const sbp_msg_cw_results_t *a, - const sbp_msg_cw_results_t *b); +SBP_EXPORT int sbp_msg_cw_results_cmp(const sbp_msg_cw_results_t *a, + const sbp_msg_cw_results_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_CW_START.h b/c/include/libsbp/v4/piksi/MSG_CW_START.h index e2de6fbe0d..58b62711ad 100644 --- a/c/include/libsbp/v4/piksi/MSG_CW_START.h +++ b/c/include/libsbp/v4/piksi/MSG_CW_START.h @@ -83,8 +83,9 @@ static inline size_t sbp_msg_cw_start_encoded_len( * @param msg Instance of sbp_msg_cw_start_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cw_start_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_cw_start_t *msg); +SBP_EXPORT s8 sbp_msg_cw_start_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_cw_start_t *msg); /** * Decode an instance of sbp_msg_cw_start_t from wire representation @@ -101,8 +102,8 @@ s8 sbp_msg_cw_start_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cw_start_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_cw_start_t *msg); +SBP_EXPORT s8 sbp_msg_cw_start_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_cw_start_t *msg); /** * Send an instance of sbp_msg_cw_start_t with the given write function * @@ -119,8 +120,9 @@ s8 sbp_msg_cw_start_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_cw_start_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_cw_start_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_cw_start_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_cw_start_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_cw_start_t @@ -137,8 +139,8 @@ s8 sbp_msg_cw_start_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_cw_start_t instance * @return 0, <0, >0 */ -int sbp_msg_cw_start_cmp(const sbp_msg_cw_start_t *a, - const sbp_msg_cw_start_t *b); +SBP_EXPORT int sbp_msg_cw_start_cmp(const sbp_msg_cw_start_t *a, + const sbp_msg_cw_start_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h b/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h index b2a81ed65e..5be3c8baf9 100644 --- a/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h +++ b/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h @@ -102,8 +102,9 @@ static inline size_t sbp_msg_device_monitor_encoded_len( * @param msg Instance of sbp_msg_device_monitor_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_device_monitor_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_device_monitor_t *msg); +SBP_EXPORT s8 +sbp_msg_device_monitor_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_device_monitor_t *msg); /** * Decode an instance of sbp_msg_device_monitor_t from wire representation @@ -120,9 +121,9 @@ s8 sbp_msg_device_monitor_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_device_monitor_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_device_monitor_t *msg); +SBP_EXPORT s8 sbp_msg_device_monitor_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_device_monitor_t *msg); /** * Send an instance of sbp_msg_device_monitor_t with the given write function * @@ -139,9 +140,9 @@ s8 sbp_msg_device_monitor_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_device_monitor_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_device_monitor_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_device_monitor_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_device_monitor_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_device_monitor_t @@ -158,8 +159,8 @@ s8 sbp_msg_device_monitor_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_device_monitor_t instance * @return 0, <0, >0 */ -int sbp_msg_device_monitor_cmp(const sbp_msg_device_monitor_t *a, - const sbp_msg_device_monitor_t *b); +SBP_EXPORT int sbp_msg_device_monitor_cmp(const sbp_msg_device_monitor_t *a, + const sbp_msg_device_monitor_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h b/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h index ecd7dbb1ac..efdc38861e 100644 --- a/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h +++ b/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h @@ -91,8 +91,9 @@ static inline size_t sbp_msg_front_end_gain_encoded_len( * @param msg Instance of sbp_msg_front_end_gain_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_front_end_gain_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_front_end_gain_t *msg); +SBP_EXPORT s8 +sbp_msg_front_end_gain_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_front_end_gain_t *msg); /** * Decode an instance of sbp_msg_front_end_gain_t from wire representation @@ -109,9 +110,9 @@ s8 sbp_msg_front_end_gain_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_front_end_gain_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_front_end_gain_t *msg); +SBP_EXPORT s8 sbp_msg_front_end_gain_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_front_end_gain_t *msg); /** * Send an instance of sbp_msg_front_end_gain_t with the given write function * @@ -128,9 +129,9 @@ s8 sbp_msg_front_end_gain_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_front_end_gain_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_front_end_gain_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_front_end_gain_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_front_end_gain_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_front_end_gain_t @@ -147,8 +148,8 @@ s8 sbp_msg_front_end_gain_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_front_end_gain_t instance * @return 0, <0, >0 */ -int sbp_msg_front_end_gain_cmp(const sbp_msg_front_end_gain_t *a, - const sbp_msg_front_end_gain_t *b); +SBP_EXPORT int sbp_msg_front_end_gain_cmp(const sbp_msg_front_end_gain_t *a, + const sbp_msg_front_end_gain_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h b/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h index a928a423ea..53cb3312a5 100644 --- a/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h @@ -82,8 +82,9 @@ static inline size_t sbp_msg_iar_state_encoded_len( * @param msg Instance of sbp_msg_iar_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_iar_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_iar_state_t *msg); +SBP_EXPORT s8 sbp_msg_iar_state_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_iar_state_t *msg); /** * Decode an instance of sbp_msg_iar_state_t from wire representation @@ -100,8 +101,9 @@ s8 sbp_msg_iar_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_iar_state_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_iar_state_t *msg); +SBP_EXPORT s8 sbp_msg_iar_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_iar_state_t *msg); /** * Send an instance of sbp_msg_iar_state_t with the given write function * @@ -118,8 +120,9 @@ s8 sbp_msg_iar_state_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_iar_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_iar_state_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_iar_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_iar_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_iar_state_t @@ -136,8 +139,8 @@ s8 sbp_msg_iar_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_iar_state_t instance * @return 0, <0, >0 */ -int sbp_msg_iar_state_cmp(const sbp_msg_iar_state_t *a, - const sbp_msg_iar_state_t *b); +SBP_EXPORT int sbp_msg_iar_state_cmp(const sbp_msg_iar_state_t *a, + const sbp_msg_iar_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h b/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h index 2a6ca71402..05839be7e6 100644 --- a/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h @@ -81,8 +81,9 @@ static inline size_t sbp_msg_init_base_dep_encoded_len( * @param msg Instance of sbp_msg_init_base_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_init_base_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_init_base_dep_t *msg); +SBP_EXPORT s8 sbp_msg_init_base_dep_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_init_base_dep_t *msg); /** * Decode an instance of sbp_msg_init_base_dep_t from wire representation @@ -99,8 +100,9 @@ s8 sbp_msg_init_base_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_init_base_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_init_base_dep_t *msg); +SBP_EXPORT s8 sbp_msg_init_base_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_init_base_dep_t *msg); /** * Send an instance of sbp_msg_init_base_dep_t with the given write function * @@ -117,9 +119,9 @@ s8 sbp_msg_init_base_dep_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_init_base_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_init_base_dep_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_init_base_dep_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_init_base_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_init_base_dep_t @@ -136,8 +138,8 @@ s8 sbp_msg_init_base_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_init_base_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_init_base_dep_cmp(const sbp_msg_init_base_dep_t *a, - const sbp_msg_init_base_dep_t *b); +SBP_EXPORT int sbp_msg_init_base_dep_cmp(const sbp_msg_init_base_dep_t *a, + const sbp_msg_init_base_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h index 531af331da..fe0634d49d 100644 --- a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h +++ b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h @@ -87,8 +87,9 @@ static inline size_t sbp_msg_mask_satellite_encoded_len( * @param msg Instance of sbp_msg_mask_satellite_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mask_satellite_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_mask_satellite_t *msg); +SBP_EXPORT s8 +sbp_msg_mask_satellite_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_mask_satellite_t *msg); /** * Decode an instance of sbp_msg_mask_satellite_t from wire representation @@ -105,9 +106,9 @@ s8 sbp_msg_mask_satellite_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mask_satellite_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_mask_satellite_t *msg); +SBP_EXPORT s8 sbp_msg_mask_satellite_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_mask_satellite_t *msg); /** * Send an instance of sbp_msg_mask_satellite_t with the given write function * @@ -124,9 +125,9 @@ s8 sbp_msg_mask_satellite_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mask_satellite_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_mask_satellite_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_mask_satellite_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_mask_satellite_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_mask_satellite_t @@ -143,8 +144,8 @@ s8 sbp_msg_mask_satellite_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_mask_satellite_t instance * @return 0, <0, >0 */ -int sbp_msg_mask_satellite_cmp(const sbp_msg_mask_satellite_t *a, - const sbp_msg_mask_satellite_t *b); +SBP_EXPORT int sbp_msg_mask_satellite_cmp(const sbp_msg_mask_satellite_t *a, + const sbp_msg_mask_satellite_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h index b583045fc0..1cec567de0 100644 --- a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h @@ -86,9 +86,9 @@ static inline size_t sbp_msg_mask_satellite_dep_encoded_len( * @param msg Instance of sbp_msg_mask_satellite_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mask_satellite_dep_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_mask_satellite_dep_t *msg); +SBP_EXPORT s8 +sbp_msg_mask_satellite_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_mask_satellite_dep_t *msg); /** * Decode an instance of sbp_msg_mask_satellite_dep_t from wire representation @@ -105,9 +105,9 @@ s8 sbp_msg_mask_satellite_dep_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mask_satellite_dep_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_mask_satellite_dep_t *msg); +SBP_EXPORT s8 sbp_msg_mask_satellite_dep_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_mask_satellite_dep_t *msg); /** * Send an instance of sbp_msg_mask_satellite_dep_t with the given write * function @@ -125,9 +125,9 @@ s8 sbp_msg_mask_satellite_dep_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_mask_satellite_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_mask_satellite_dep_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_mask_satellite_dep_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_mask_satellite_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_mask_satellite_dep_t @@ -144,8 +144,9 @@ s8 sbp_msg_mask_satellite_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_mask_satellite_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_mask_satellite_dep_cmp(const sbp_msg_mask_satellite_dep_t *a, - const sbp_msg_mask_satellite_dep_t *b); +SBP_EXPORT int sbp_msg_mask_satellite_dep_cmp( + const sbp_msg_mask_satellite_dep_t *a, + const sbp_msg_mask_satellite_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h b/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h index c5f0512892..7e849f554b 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h @@ -94,7 +94,7 @@ static inline size_t sbp_msg_network_bandwidth_usage_encoded_len( * @param msg Instance of sbp_msg_network_bandwidth_usage_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_bandwidth_usage_encode( +SBP_EXPORT s8 sbp_msg_network_bandwidth_usage_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_network_bandwidth_usage_t *msg); @@ -115,7 +115,7 @@ s8 sbp_msg_network_bandwidth_usage_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_bandwidth_usage_decode( +SBP_EXPORT s8 sbp_msg_network_bandwidth_usage_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_network_bandwidth_usage_t *msg); /** @@ -135,7 +135,7 @@ s8 sbp_msg_network_bandwidth_usage_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_bandwidth_usage_send( +SBP_EXPORT s8 sbp_msg_network_bandwidth_usage_send( sbp_state_t *s, u16 sender_id, const sbp_msg_network_bandwidth_usage_t *msg, sbp_write_fn_t write); @@ -154,7 +154,7 @@ s8 sbp_msg_network_bandwidth_usage_send( * @param b sbp_msg_network_bandwidth_usage_t instance * @return 0, <0, >0 */ -int sbp_msg_network_bandwidth_usage_cmp( +SBP_EXPORT int sbp_msg_network_bandwidth_usage_cmp( const sbp_msg_network_bandwidth_usage_t *a, const sbp_msg_network_bandwidth_usage_t *b); diff --git a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h index 60b8b8aa8c..fe8ba1abd8 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h @@ -82,9 +82,9 @@ static inline size_t sbp_msg_network_state_req_encoded_len( * @param msg Instance of sbp_msg_network_state_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_state_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_network_state_req_t *msg); +SBP_EXPORT s8 +sbp_msg_network_state_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_network_state_req_t *msg); /** * Decode an instance of sbp_msg_network_state_req_t from wire representation @@ -101,9 +101,9 @@ s8 sbp_msg_network_state_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_state_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_network_state_req_t *msg); +SBP_EXPORT s8 sbp_msg_network_state_req_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_network_state_req_t *msg); /** * Send an instance of sbp_msg_network_state_req_t with the given write function * @@ -120,9 +120,9 @@ s8 sbp_msg_network_state_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_state_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_network_state_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_network_state_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_network_state_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_network_state_req_t @@ -139,8 +139,8 @@ s8 sbp_msg_network_state_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_network_state_req_t instance * @return 0, <0, >0 */ -int sbp_msg_network_state_req_cmp(const sbp_msg_network_state_req_t *a, - const sbp_msg_network_state_req_t *b); +SBP_EXPORT int sbp_msg_network_state_req_cmp( + const sbp_msg_network_state_req_t *a, const sbp_msg_network_state_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h index bcd83eb6e6..3206a04249 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h @@ -116,9 +116,9 @@ static inline size_t sbp_msg_network_state_resp_encoded_len( * @param msg Instance of sbp_msg_network_state_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_state_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_network_state_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_network_state_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_network_state_resp_t *msg); /** * Decode an instance of sbp_msg_network_state_resp_t from wire representation @@ -135,9 +135,9 @@ s8 sbp_msg_network_state_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_state_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_network_state_resp_t *msg); +SBP_EXPORT s8 sbp_msg_network_state_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_network_state_resp_t *msg); /** * Send an instance of sbp_msg_network_state_resp_t with the given write * function @@ -155,9 +155,9 @@ s8 sbp_msg_network_state_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_network_state_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_network_state_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_network_state_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_network_state_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_network_state_resp_t @@ -174,8 +174,9 @@ s8 sbp_msg_network_state_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_network_state_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_network_state_resp_cmp(const sbp_msg_network_state_resp_t *a, - const sbp_msg_network_state_resp_t *b); +SBP_EXPORT int sbp_msg_network_state_resp_cmp( + const sbp_msg_network_state_resp_t *a, + const sbp_msg_network_state_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_RESET.h b/c/include/libsbp/v4/piksi/MSG_RESET.h index bb693c58bd..f2ef9dcf02 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET.h @@ -79,8 +79,9 @@ static inline size_t sbp_msg_reset_encoded_len(const sbp_msg_reset_t *msg) { * @param msg Instance of sbp_msg_reset_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_reset_t *msg); +SBP_EXPORT s8 sbp_msg_reset_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_reset_t *msg); /** * Decode an instance of sbp_msg_reset_t from wire representation @@ -97,8 +98,8 @@ s8 sbp_msg_reset_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_reset_t *msg); +SBP_EXPORT s8 sbp_msg_reset_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_reset_t *msg); /** * Send an instance of sbp_msg_reset_t with the given write function * @@ -115,8 +116,9 @@ s8 sbp_msg_reset_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_send(sbp_state_t *s, u16 sender_id, const sbp_msg_reset_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_reset_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_reset_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_reset_t @@ -133,7 +135,8 @@ s8 sbp_msg_reset_send(sbp_state_t *s, u16 sender_id, const sbp_msg_reset_t *msg, * @param b sbp_msg_reset_t instance * @return 0, <0, >0 */ -int sbp_msg_reset_cmp(const sbp_msg_reset_t *a, const sbp_msg_reset_t *b); +SBP_EXPORT int sbp_msg_reset_cmp(const sbp_msg_reset_t *a, + const sbp_msg_reset_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h b/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h index 592ec4ac03..cf2a9f1acf 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h @@ -81,8 +81,9 @@ static inline size_t sbp_msg_reset_dep_encoded_len( * @param msg Instance of sbp_msg_reset_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_reset_dep_t *msg); +SBP_EXPORT s8 sbp_msg_reset_dep_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_reset_dep_t *msg); /** * Decode an instance of sbp_msg_reset_dep_t from wire representation @@ -99,8 +100,9 @@ s8 sbp_msg_reset_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_reset_dep_t *msg); +SBP_EXPORT s8 sbp_msg_reset_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_reset_dep_t *msg); /** * Send an instance of sbp_msg_reset_dep_t with the given write function * @@ -117,8 +119,9 @@ s8 sbp_msg_reset_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_reset_dep_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_reset_dep_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_reset_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_reset_dep_t @@ -135,8 +138,8 @@ s8 sbp_msg_reset_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_reset_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_reset_dep_cmp(const sbp_msg_reset_dep_t *a, - const sbp_msg_reset_dep_t *b); +SBP_EXPORT int sbp_msg_reset_dep_cmp(const sbp_msg_reset_dep_t *a, + const sbp_msg_reset_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h b/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h index 823cda9e2d..a3bd8ae2df 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h @@ -81,8 +81,9 @@ static inline size_t sbp_msg_reset_filters_encoded_len( * @param msg Instance of sbp_msg_reset_filters_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_filters_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_reset_filters_t *msg); +SBP_EXPORT s8 sbp_msg_reset_filters_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_reset_filters_t *msg); /** * Decode an instance of sbp_msg_reset_filters_t from wire representation @@ -99,8 +100,9 @@ s8 sbp_msg_reset_filters_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_filters_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_reset_filters_t *msg); +SBP_EXPORT s8 sbp_msg_reset_filters_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_reset_filters_t *msg); /** * Send an instance of sbp_msg_reset_filters_t with the given write function * @@ -117,9 +119,9 @@ s8 sbp_msg_reset_filters_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_reset_filters_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_reset_filters_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_reset_filters_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_reset_filters_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_reset_filters_t @@ -136,8 +138,8 @@ s8 sbp_msg_reset_filters_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_reset_filters_t instance * @return 0, <0, >0 */ -int sbp_msg_reset_filters_cmp(const sbp_msg_reset_filters_t *a, - const sbp_msg_reset_filters_t *b); +SBP_EXPORT int sbp_msg_reset_filters_cmp(const sbp_msg_reset_filters_t *a, + const sbp_msg_reset_filters_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_SET_TIME.h b/c/include/libsbp/v4/piksi/MSG_SET_TIME.h index 6e5e89f88f..b554142eb4 100644 --- a/c/include/libsbp/v4/piksi/MSG_SET_TIME.h +++ b/c/include/libsbp/v4/piksi/MSG_SET_TIME.h @@ -82,8 +82,9 @@ static inline size_t sbp_msg_set_time_encoded_len( * @param msg Instance of sbp_msg_set_time_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_set_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_set_time_t *msg); +SBP_EXPORT s8 sbp_msg_set_time_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_set_time_t *msg); /** * Decode an instance of sbp_msg_set_time_t from wire representation @@ -100,8 +101,8 @@ s8 sbp_msg_set_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_set_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_set_time_t *msg); +SBP_EXPORT s8 sbp_msg_set_time_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_set_time_t *msg); /** * Send an instance of sbp_msg_set_time_t with the given write function * @@ -118,8 +119,9 @@ s8 sbp_msg_set_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_set_time_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_set_time_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_set_time_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_set_time_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_set_time_t @@ -136,8 +138,8 @@ s8 sbp_msg_set_time_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_set_time_t instance * @return 0, <0, >0 */ -int sbp_msg_set_time_cmp(const sbp_msg_set_time_t *a, - const sbp_msg_set_time_t *b); +SBP_EXPORT int sbp_msg_set_time_cmp(const sbp_msg_set_time_t *a, + const sbp_msg_set_time_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_SPECAN.h b/c/include/libsbp/v4/piksi/MSG_SPECAN.h index e456e0d883..80f3e9b380 100644 --- a/c/include/libsbp/v4/piksi/MSG_SPECAN.h +++ b/c/include/libsbp/v4/piksi/MSG_SPECAN.h @@ -121,8 +121,9 @@ static inline size_t sbp_msg_specan_encoded_len(const sbp_msg_specan_t *msg) { * @param msg Instance of sbp_msg_specan_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_specan_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_specan_t *msg); +SBP_EXPORT s8 sbp_msg_specan_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_specan_t *msg); /** * Decode an instance of sbp_msg_specan_t from wire representation @@ -139,8 +140,8 @@ s8 sbp_msg_specan_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_specan_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_specan_t *msg); +SBP_EXPORT s8 sbp_msg_specan_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_specan_t *msg); /** * Send an instance of sbp_msg_specan_t with the given write function * @@ -157,8 +158,9 @@ s8 sbp_msg_specan_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_specan_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_specan_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_specan_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_specan_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_specan_t @@ -175,7 +177,8 @@ s8 sbp_msg_specan_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_specan_t instance * @return 0, <0, >0 */ -int sbp_msg_specan_cmp(const sbp_msg_specan_t *a, const sbp_msg_specan_t *b); +SBP_EXPORT int sbp_msg_specan_cmp(const sbp_msg_specan_t *a, + const sbp_msg_specan_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h b/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h index 1848ba033a..3ca9afd8bd 100644 --- a/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h @@ -122,8 +122,9 @@ static inline size_t sbp_msg_specan_dep_encoded_len( * @param msg Instance of sbp_msg_specan_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_specan_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_specan_dep_t *msg); +SBP_EXPORT s8 sbp_msg_specan_dep_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_specan_dep_t *msg); /** * Decode an instance of sbp_msg_specan_dep_t from wire representation @@ -140,8 +141,9 @@ s8 sbp_msg_specan_dep_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_specan_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_specan_dep_t *msg); +SBP_EXPORT s8 sbp_msg_specan_dep_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_specan_dep_t *msg); /** * Send an instance of sbp_msg_specan_dep_t with the given write function * @@ -158,9 +160,9 @@ s8 sbp_msg_specan_dep_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_specan_dep_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_specan_dep_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_specan_dep_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_specan_dep_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_specan_dep_t @@ -177,8 +179,8 @@ s8 sbp_msg_specan_dep_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_specan_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_specan_dep_cmp(const sbp_msg_specan_dep_t *a, - const sbp_msg_specan_dep_t *b); +SBP_EXPORT int sbp_msg_specan_dep_cmp(const sbp_msg_specan_dep_t *a, + const sbp_msg_specan_dep_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h b/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h index 99094174ed..c10a8c9ac0 100644 --- a/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h @@ -93,8 +93,9 @@ static inline size_t sbp_msg_thread_state_encoded_len( * @param msg Instance of sbp_msg_thread_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_thread_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_thread_state_t *msg); +SBP_EXPORT s8 sbp_msg_thread_state_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_thread_state_t *msg); /** * Decode an instance of sbp_msg_thread_state_t from wire representation @@ -111,8 +112,9 @@ s8 sbp_msg_thread_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_thread_state_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_thread_state_t *msg); +SBP_EXPORT s8 sbp_msg_thread_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_thread_state_t *msg); /** * Send an instance of sbp_msg_thread_state_t with the given write function * @@ -129,9 +131,9 @@ s8 sbp_msg_thread_state_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_thread_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_thread_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_thread_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_thread_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_thread_state_t @@ -148,8 +150,8 @@ s8 sbp_msg_thread_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_thread_state_t instance * @return 0, <0, >0 */ -int sbp_msg_thread_state_cmp(const sbp_msg_thread_state_t *a, - const sbp_msg_thread_state_t *b); +SBP_EXPORT int sbp_msg_thread_state_cmp(const sbp_msg_thread_state_t *a, + const sbp_msg_thread_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_UART_STATE.h b/c/include/libsbp/v4/piksi/MSG_UART_STATE.h index b2f0ac39c0..b7de37aca2 100644 --- a/c/include/libsbp/v4/piksi/MSG_UART_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_UART_STATE.h @@ -110,8 +110,9 @@ static inline size_t sbp_msg_uart_state_encoded_len( * @param msg Instance of sbp_msg_uart_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_uart_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_uart_state_t *msg); +SBP_EXPORT s8 sbp_msg_uart_state_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_uart_state_t *msg); /** * Decode an instance of sbp_msg_uart_state_t from wire representation @@ -128,8 +129,9 @@ s8 sbp_msg_uart_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_uart_state_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_uart_state_t *msg); +SBP_EXPORT s8 sbp_msg_uart_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_uart_state_t *msg); /** * Send an instance of sbp_msg_uart_state_t with the given write function * @@ -146,9 +148,9 @@ s8 sbp_msg_uart_state_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_uart_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_uart_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_uart_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_uart_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_uart_state_t @@ -165,8 +167,8 @@ s8 sbp_msg_uart_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_uart_state_t instance * @return 0, <0, >0 */ -int sbp_msg_uart_state_cmp(const sbp_msg_uart_state_t *a, - const sbp_msg_uart_state_t *b); +SBP_EXPORT int sbp_msg_uart_state_cmp(const sbp_msg_uart_state_t *a, + const sbp_msg_uart_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h b/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h index 49616f0693..4c82c4d1a3 100644 --- a/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h +++ b/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h @@ -97,8 +97,9 @@ static inline size_t sbp_msg_uart_state_depa_encoded_len( * @param msg Instance of sbp_msg_uart_state_depa_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_uart_state_depa_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_uart_state_depa_t *msg); +SBP_EXPORT s8 +sbp_msg_uart_state_depa_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_uart_state_depa_t *msg); /** * Decode an instance of sbp_msg_uart_state_depa_t from wire representation @@ -115,9 +116,9 @@ s8 sbp_msg_uart_state_depa_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_uart_state_depa_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_uart_state_depa_t *msg); +SBP_EXPORT s8 sbp_msg_uart_state_depa_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_uart_state_depa_t *msg); /** * Send an instance of sbp_msg_uart_state_depa_t with the given write function * @@ -134,9 +135,9 @@ s8 sbp_msg_uart_state_depa_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_uart_state_depa_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_uart_state_depa_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_uart_state_depa_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_uart_state_depa_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_uart_state_depa_t @@ -153,8 +154,8 @@ s8 sbp_msg_uart_state_depa_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_uart_state_depa_t instance * @return 0, <0, >0 */ -int sbp_msg_uart_state_depa_cmp(const sbp_msg_uart_state_depa_t *a, - const sbp_msg_uart_state_depa_t *b); +SBP_EXPORT int sbp_msg_uart_state_depa_cmp(const sbp_msg_uart_state_depa_t *a, + const sbp_msg_uart_state_depa_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/NetworkUsage.h b/c/include/libsbp/v4/piksi/NetworkUsage.h index 217fc94bc3..c5629ca5ed 100644 --- a/c/include/libsbp/v4/piksi/NetworkUsage.h +++ b/c/include/libsbp/v4/piksi/NetworkUsage.h @@ -104,8 +104,9 @@ static inline size_t sbp_network_usage_encoded_len( * @param msg Instance of sbp_network_usage_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_network_usage_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_network_usage_t *msg); +SBP_EXPORT s8 sbp_network_usage_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_network_usage_t *msg); /** * Decode an instance of sbp_network_usage_t from wire representation @@ -122,8 +123,9 @@ s8 sbp_network_usage_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_network_usage_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_network_usage_t *msg); +SBP_EXPORT s8 sbp_network_usage_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_network_usage_t *msg); /** * Compare two instances of sbp_network_usage_t @@ -140,8 +142,8 @@ s8 sbp_network_usage_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_network_usage_t instance * @return 0, <0, >0 */ -int sbp_network_usage_cmp(const sbp_network_usage_t *a, - const sbp_network_usage_t *b); +SBP_EXPORT int sbp_network_usage_cmp(const sbp_network_usage_t *a, + const sbp_network_usage_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/Period.h b/c/include/libsbp/v4/piksi/Period.h index 88fa1c0d60..ad987fff52 100644 --- a/c/include/libsbp/v4/piksi/Period.h +++ b/c/include/libsbp/v4/piksi/Period.h @@ -98,8 +98,8 @@ static inline size_t sbp_period_encoded_len(const sbp_period_t *msg) { * @param msg Instance of sbp_period_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_period_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_period_t *msg); +SBP_EXPORT s8 sbp_period_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_period_t *msg); /** * Decode an instance of sbp_period_t from wire representation @@ -116,8 +116,8 @@ s8 sbp_period_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_period_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_period_t *msg); +SBP_EXPORT s8 sbp_period_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_period_t *msg); /** * Compare two instances of sbp_period_t @@ -134,7 +134,7 @@ s8 sbp_period_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_period_t instance * @return 0, <0, >0 */ -int sbp_period_cmp(const sbp_period_t *a, const sbp_period_t *b); +SBP_EXPORT int sbp_period_cmp(const sbp_period_t *a, const sbp_period_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/piksi/UARTChannel.h b/c/include/libsbp/v4/piksi/UARTChannel.h index 3fe555635b..e752413867 100644 --- a/c/include/libsbp/v4/piksi/UARTChannel.h +++ b/c/include/libsbp/v4/piksi/UARTChannel.h @@ -106,8 +106,9 @@ static inline size_t sbp_uart_channel_encoded_len( * @param msg Instance of sbp_uart_channel_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_uart_channel_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_uart_channel_t *msg); +SBP_EXPORT s8 sbp_uart_channel_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_uart_channel_t *msg); /** * Decode an instance of sbp_uart_channel_t from wire representation @@ -124,8 +125,8 @@ s8 sbp_uart_channel_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_uart_channel_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_uart_channel_t *msg); +SBP_EXPORT s8 sbp_uart_channel_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_uart_channel_t *msg); /** * Compare two instances of sbp_uart_channel_t @@ -142,8 +143,8 @@ s8 sbp_uart_channel_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_uart_channel_t instance * @return 0, <0, >0 */ -int sbp_uart_channel_cmp(const sbp_uart_channel_t *a, - const sbp_uart_channel_t *b); +SBP_EXPORT int sbp_uart_channel_cmp(const sbp_uart_channel_t *a, + const sbp_uart_channel_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h b/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h index d94a39fc9d..169daceff2 100644 --- a/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h +++ b/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h @@ -97,8 +97,9 @@ static inline size_t sbp_msg_sbas_raw_encoded_len( * @param msg Instance of sbp_msg_sbas_raw_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sbas_raw_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_sbas_raw_t *msg); +SBP_EXPORT s8 sbp_msg_sbas_raw_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_sbas_raw_t *msg); /** * Decode an instance of sbp_msg_sbas_raw_t from wire representation @@ -115,8 +116,8 @@ s8 sbp_msg_sbas_raw_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sbas_raw_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_sbas_raw_t *msg); +SBP_EXPORT s8 sbp_msg_sbas_raw_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_sbas_raw_t *msg); /** * Send an instance of sbp_msg_sbas_raw_t with the given write function * @@ -133,8 +134,9 @@ s8 sbp_msg_sbas_raw_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_sbas_raw_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_sbas_raw_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_sbas_raw_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_sbas_raw_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_sbas_raw_t @@ -151,8 +153,8 @@ s8 sbp_msg_sbas_raw_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_sbas_raw_t instance * @return 0, <0, >0 */ -int sbp_msg_sbas_raw_cmp(const sbp_msg_sbas_raw_t *a, - const sbp_msg_sbas_raw_t *b); +SBP_EXPORT int sbp_msg_sbas_raw_cmp(const sbp_msg_sbas_raw_t *a, + const sbp_msg_sbas_raw_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_DONE.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_DONE.h index 26750a22d8..71ecb53239 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_DONE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_DONE.h @@ -82,7 +82,7 @@ static inline size_t sbp_msg_settings_read_by_index_done_encoded_len( * @param msg Instance of sbp_msg_settings_read_by_index_done_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_done_encode( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_done_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_settings_read_by_index_done_t *msg); @@ -104,7 +104,7 @@ s8 sbp_msg_settings_read_by_index_done_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_done_decode( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_done_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_settings_read_by_index_done_t *msg); /** @@ -124,7 +124,7 @@ s8 sbp_msg_settings_read_by_index_done_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_done_send( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_done_send( sbp_state_t *s, u16 sender_id, const sbp_msg_settings_read_by_index_done_t *msg, sbp_write_fn_t write); @@ -143,7 +143,7 @@ s8 sbp_msg_settings_read_by_index_done_send( * @param b sbp_msg_settings_read_by_index_done_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_read_by_index_done_cmp( +SBP_EXPORT int sbp_msg_settings_read_by_index_done_cmp( const sbp_msg_settings_read_by_index_done_t *a, const sbp_msg_settings_read_by_index_done_t *b); diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_REQ.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_REQ.h index f7c81d74d3..2ccda71872 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_REQ.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_REQ.h @@ -83,7 +83,7 @@ static inline size_t sbp_msg_settings_read_by_index_req_encoded_len( * @param msg Instance of sbp_msg_settings_read_by_index_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_req_encode( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_req_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_settings_read_by_index_req_t *msg); @@ -105,7 +105,7 @@ s8 sbp_msg_settings_read_by_index_req_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_req_decode( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_req_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_settings_read_by_index_req_t *msg); /** @@ -125,7 +125,7 @@ s8 sbp_msg_settings_read_by_index_req_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_req_send( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_req_send( sbp_state_t *s, u16 sender_id, const sbp_msg_settings_read_by_index_req_t *msg, sbp_write_fn_t write); @@ -144,7 +144,7 @@ s8 sbp_msg_settings_read_by_index_req_send( * @param b sbp_msg_settings_read_by_index_req_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_read_by_index_req_cmp( +SBP_EXPORT int sbp_msg_settings_read_by_index_req_cmp( const sbp_msg_settings_read_by_index_req_t *a, const sbp_msg_settings_read_by_index_req_t *b); diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_RESP.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_RESP.h index f54cffd5f6..744a8c38ca 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_BY_INDEX_RESP.h @@ -62,7 +62,7 @@ typedef struct { * * @param msg sbp_msg_settings_read_by_index_resp_t instance */ -void sbp_msg_settings_read_by_index_resp_setting_init( +SBP_EXPORT void sbp_msg_settings_read_by_index_resp_setting_init( sbp_msg_settings_read_by_index_resp_t *msg); /** @@ -72,7 +72,7 @@ void sbp_msg_settings_read_by_index_resp_setting_init( * @return true is sbp_msg_settings_read_by_index_resp_t::setting is valid for * encoding purposes, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_valid( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_valid( const sbp_msg_settings_read_by_index_resp_t *msg); /** @@ -86,7 +86,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_valid( * @param b sbp_msg_settings_read_by_index_resp_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_read_by_index_resp_setting_strcmp( +SBP_EXPORT int sbp_msg_settings_read_by_index_resp_setting_strcmp( const sbp_msg_settings_read_by_index_resp_t *a, const sbp_msg_settings_read_by_index_resp_t *b); @@ -97,7 +97,7 @@ int sbp_msg_settings_read_by_index_resp_setting_strcmp( * @return Size of sbp_msg_settings_read_by_index_resp_t::setting in wire * representation */ -size_t sbp_msg_settings_read_by_index_resp_setting_encoded_len( +SBP_EXPORT size_t sbp_msg_settings_read_by_index_resp_setting_encoded_len( const sbp_msg_settings_read_by_index_resp_t *msg); /** @@ -110,7 +110,7 @@ size_t sbp_msg_settings_read_by_index_resp_setting_encoded_len( * @param msg sbp_msg_settings_read_by_index_resp_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_read_by_index_resp_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_read_by_index_resp_setting_space_remaining( const sbp_msg_settings_read_by_index_resp_t *msg); /** * Return the number of sections in @@ -119,7 +119,7 @@ size_t sbp_msg_settings_read_by_index_resp_setting_space_remaining( * @param msg sbp_msg_settings_read_by_index_resp_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_read_by_index_resp_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_read_by_index_resp_setting_count_sections( const sbp_msg_settings_read_by_index_resp_t *msg); /** @@ -133,7 +133,7 @@ size_t sbp_msg_settings_read_by_index_resp_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_add_section( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_add_section( sbp_msg_settings_read_by_index_resp_t *msg, const char *new_str); /** @@ -149,7 +149,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_add_section_printf( sbp_msg_settings_read_by_index_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -165,7 +165,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_add_section_vprintf( sbp_msg_settings_read_by_index_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -187,7 +187,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_append( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_append( sbp_msg_settings_read_by_index_resp_t *msg, const char *str); /** @@ -208,7 +208,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_append( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_append_printf( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_append_printf( sbp_msg_settings_read_by_index_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -231,7 +231,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_read_by_index_resp_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_read_by_index_resp_setting_append_vprintf( sbp_msg_settings_read_by_index_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -246,7 +246,7 @@ bool sbp_msg_settings_read_by_index_resp_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_read_by_index_resp_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_read_by_index_resp_setting_get_section( const sbp_msg_settings_read_by_index_resp_t *msg, size_t section); /** @@ -261,7 +261,7 @@ const char *sbp_msg_settings_read_by_index_resp_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_read_by_index_resp_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_read_by_index_resp_setting_section_strlen( const sbp_msg_settings_read_by_index_resp_t *msg, size_t section); /** @@ -296,7 +296,7 @@ static inline size_t sbp_msg_settings_read_by_index_resp_encoded_len( * @param msg Instance of sbp_msg_settings_read_by_index_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_resp_encode( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_resp_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_settings_read_by_index_resp_t *msg); @@ -318,7 +318,7 @@ s8 sbp_msg_settings_read_by_index_resp_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_resp_decode( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_resp_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_settings_read_by_index_resp_t *msg); /** @@ -338,7 +338,7 @@ s8 sbp_msg_settings_read_by_index_resp_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_by_index_resp_send( +SBP_EXPORT s8 sbp_msg_settings_read_by_index_resp_send( sbp_state_t *s, u16 sender_id, const sbp_msg_settings_read_by_index_resp_t *msg, sbp_write_fn_t write); @@ -357,7 +357,7 @@ s8 sbp_msg_settings_read_by_index_resp_send( * @param b sbp_msg_settings_read_by_index_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_read_by_index_resp_cmp( +SBP_EXPORT int sbp_msg_settings_read_by_index_resp_cmp( const sbp_msg_settings_read_by_index_resp_t *a, const sbp_msg_settings_read_by_index_resp_t *b); diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h index d2cf37b994..807d890076 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h @@ -61,7 +61,8 @@ typedef struct { * * @param msg sbp_msg_settings_read_req_t instance */ -void sbp_msg_settings_read_req_setting_init(sbp_msg_settings_read_req_t *msg); +SBP_EXPORT void sbp_msg_settings_read_req_setting_init( + sbp_msg_settings_read_req_t *msg); /** * Test sbp_msg_settings_read_req_t::setting for validity @@ -70,7 +71,7 @@ void sbp_msg_settings_read_req_setting_init(sbp_msg_settings_read_req_t *msg); * @return true is sbp_msg_settings_read_req_t::setting is valid for encoding * purposes, false otherwise */ -bool sbp_msg_settings_read_req_setting_valid( +SBP_EXPORT bool sbp_msg_settings_read_req_setting_valid( const sbp_msg_settings_read_req_t *msg); /** @@ -83,7 +84,7 @@ bool sbp_msg_settings_read_req_setting_valid( * @param b sbp_msg_settings_read_req_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_read_req_setting_strcmp( +SBP_EXPORT int sbp_msg_settings_read_req_setting_strcmp( const sbp_msg_settings_read_req_t *a, const sbp_msg_settings_read_req_t *b); /** @@ -92,7 +93,7 @@ int sbp_msg_settings_read_req_setting_strcmp( * @param msg sbp_msg_settings_read_req_t instance * @return Size of sbp_msg_settings_read_req_t::setting in wire representation */ -size_t sbp_msg_settings_read_req_setting_encoded_len( +SBP_EXPORT size_t sbp_msg_settings_read_req_setting_encoded_len( const sbp_msg_settings_read_req_t *msg); /** @@ -105,7 +106,7 @@ size_t sbp_msg_settings_read_req_setting_encoded_len( * @param msg sbp_msg_settings_read_req_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_read_req_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_read_req_setting_space_remaining( const sbp_msg_settings_read_req_t *msg); /** * Return the number of sections in sbp_msg_settings_read_req_t::setting @@ -113,7 +114,7 @@ size_t sbp_msg_settings_read_req_setting_space_remaining( * @param msg sbp_msg_settings_read_req_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_read_req_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_read_req_setting_count_sections( const sbp_msg_settings_read_req_t *msg); /** @@ -127,7 +128,7 @@ size_t sbp_msg_settings_read_req_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_req_setting_add_section( +SBP_EXPORT bool sbp_msg_settings_read_req_setting_add_section( sbp_msg_settings_read_req_t *msg, const char *new_str); /** @@ -143,7 +144,7 @@ bool sbp_msg_settings_read_req_setting_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_req_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_read_req_setting_add_section_printf( sbp_msg_settings_read_req_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -159,7 +160,7 @@ bool sbp_msg_settings_read_req_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_read_req_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_read_req_setting_add_section_vprintf( sbp_msg_settings_read_req_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -180,8 +181,8 @@ bool sbp_msg_settings_read_req_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_req_setting_append(sbp_msg_settings_read_req_t *msg, - const char *str); +SBP_EXPORT bool sbp_msg_settings_read_req_setting_append( + sbp_msg_settings_read_req_t *msg, const char *str); /** * Append a string to the last section in sbp_msg_settings_read_req_t::setting @@ -201,7 +202,7 @@ bool sbp_msg_settings_read_req_setting_append(sbp_msg_settings_read_req_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_req_setting_append_printf( +SBP_EXPORT bool sbp_msg_settings_read_req_setting_append_printf( sbp_msg_settings_read_req_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -224,7 +225,7 @@ bool sbp_msg_settings_read_req_setting_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_read_req_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_read_req_setting_append_vprintf( sbp_msg_settings_read_req_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -239,7 +240,7 @@ bool sbp_msg_settings_read_req_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_read_req_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_read_req_setting_get_section( const sbp_msg_settings_read_req_t *msg, size_t section); /** @@ -253,7 +254,7 @@ const char *sbp_msg_settings_read_req_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_read_req_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_read_req_setting_section_strlen( const sbp_msg_settings_read_req_t *msg, size_t section); /** @@ -287,9 +288,9 @@ static inline size_t sbp_msg_settings_read_req_encoded_len( * @param msg Instance of sbp_msg_settings_read_req_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_req_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_settings_read_req_t *msg); +SBP_EXPORT s8 +sbp_msg_settings_read_req_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_settings_read_req_t *msg); /** * Decode an instance of sbp_msg_settings_read_req_t from wire representation @@ -306,9 +307,9 @@ s8 sbp_msg_settings_read_req_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_req_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_settings_read_req_t *msg); +SBP_EXPORT s8 sbp_msg_settings_read_req_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_settings_read_req_t *msg); /** * Send an instance of sbp_msg_settings_read_req_t with the given write function * @@ -325,9 +326,9 @@ s8 sbp_msg_settings_read_req_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_req_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_settings_read_req_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_settings_read_req_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_settings_read_req_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_settings_read_req_t @@ -344,8 +345,8 @@ s8 sbp_msg_settings_read_req_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_settings_read_req_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_read_req_cmp(const sbp_msg_settings_read_req_t *a, - const sbp_msg_settings_read_req_t *b); +SBP_EXPORT int sbp_msg_settings_read_req_cmp( + const sbp_msg_settings_read_req_t *a, const sbp_msg_settings_read_req_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h index f063a49186..e22be21749 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h @@ -60,7 +60,8 @@ typedef struct { * * @param msg sbp_msg_settings_read_resp_t instance */ -void sbp_msg_settings_read_resp_setting_init(sbp_msg_settings_read_resp_t *msg); +SBP_EXPORT void sbp_msg_settings_read_resp_setting_init( + sbp_msg_settings_read_resp_t *msg); /** * Test sbp_msg_settings_read_resp_t::setting for validity @@ -69,7 +70,7 @@ void sbp_msg_settings_read_resp_setting_init(sbp_msg_settings_read_resp_t *msg); * @return true is sbp_msg_settings_read_resp_t::setting is valid for encoding * purposes, false otherwise */ -bool sbp_msg_settings_read_resp_setting_valid( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_valid( const sbp_msg_settings_read_resp_t *msg); /** @@ -82,7 +83,7 @@ bool sbp_msg_settings_read_resp_setting_valid( * @param b sbp_msg_settings_read_resp_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_read_resp_setting_strcmp( +SBP_EXPORT int sbp_msg_settings_read_resp_setting_strcmp( const sbp_msg_settings_read_resp_t *a, const sbp_msg_settings_read_resp_t *b); @@ -92,7 +93,7 @@ int sbp_msg_settings_read_resp_setting_strcmp( * @param msg sbp_msg_settings_read_resp_t instance * @return Size of sbp_msg_settings_read_resp_t::setting in wire representation */ -size_t sbp_msg_settings_read_resp_setting_encoded_len( +SBP_EXPORT size_t sbp_msg_settings_read_resp_setting_encoded_len( const sbp_msg_settings_read_resp_t *msg); /** @@ -105,7 +106,7 @@ size_t sbp_msg_settings_read_resp_setting_encoded_len( * @param msg sbp_msg_settings_read_resp_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_read_resp_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_read_resp_setting_space_remaining( const sbp_msg_settings_read_resp_t *msg); /** * Return the number of sections in sbp_msg_settings_read_resp_t::setting @@ -113,7 +114,7 @@ size_t sbp_msg_settings_read_resp_setting_space_remaining( * @param msg sbp_msg_settings_read_resp_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_read_resp_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_read_resp_setting_count_sections( const sbp_msg_settings_read_resp_t *msg); /** @@ -127,7 +128,7 @@ size_t sbp_msg_settings_read_resp_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_resp_setting_add_section( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_add_section( sbp_msg_settings_read_resp_t *msg, const char *new_str); /** @@ -143,7 +144,7 @@ bool sbp_msg_settings_read_resp_setting_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_resp_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_add_section_printf( sbp_msg_settings_read_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -159,7 +160,7 @@ bool sbp_msg_settings_read_resp_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_read_resp_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_add_section_vprintf( sbp_msg_settings_read_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -180,7 +181,7 @@ bool sbp_msg_settings_read_resp_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_resp_setting_append( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_append( sbp_msg_settings_read_resp_t *msg, const char *str); /** @@ -201,7 +202,7 @@ bool sbp_msg_settings_read_resp_setting_append( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_read_resp_setting_append_printf( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_append_printf( sbp_msg_settings_read_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -224,7 +225,7 @@ bool sbp_msg_settings_read_resp_setting_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_read_resp_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_read_resp_setting_append_vprintf( sbp_msg_settings_read_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -239,7 +240,7 @@ bool sbp_msg_settings_read_resp_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_read_resp_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_read_resp_setting_get_section( const sbp_msg_settings_read_resp_t *msg, size_t section); /** @@ -253,7 +254,7 @@ const char *sbp_msg_settings_read_resp_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_read_resp_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_read_resp_setting_section_strlen( const sbp_msg_settings_read_resp_t *msg, size_t section); /** @@ -287,9 +288,9 @@ static inline size_t sbp_msg_settings_read_resp_encoded_len( * @param msg Instance of sbp_msg_settings_read_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_settings_read_resp_t *msg); +SBP_EXPORT s8 +sbp_msg_settings_read_resp_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_settings_read_resp_t *msg); /** * Decode an instance of sbp_msg_settings_read_resp_t from wire representation @@ -306,9 +307,9 @@ s8 sbp_msg_settings_read_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_settings_read_resp_t *msg); +SBP_EXPORT s8 sbp_msg_settings_read_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_settings_read_resp_t *msg); /** * Send an instance of sbp_msg_settings_read_resp_t with the given write * function @@ -326,9 +327,9 @@ s8 sbp_msg_settings_read_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_read_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_settings_read_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_settings_read_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_settings_read_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_settings_read_resp_t @@ -345,8 +346,9 @@ s8 sbp_msg_settings_read_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_settings_read_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_read_resp_cmp(const sbp_msg_settings_read_resp_t *a, - const sbp_msg_settings_read_resp_t *b); +SBP_EXPORT int sbp_msg_settings_read_resp_cmp( + const sbp_msg_settings_read_resp_t *a, + const sbp_msg_settings_read_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h index 7e6b38f8cb..4cf6295a92 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h @@ -57,7 +57,8 @@ typedef struct { * * @param msg sbp_msg_settings_register_t instance */ -void sbp_msg_settings_register_setting_init(sbp_msg_settings_register_t *msg); +SBP_EXPORT void sbp_msg_settings_register_setting_init( + sbp_msg_settings_register_t *msg); /** * Test sbp_msg_settings_register_t::setting for validity @@ -66,7 +67,7 @@ void sbp_msg_settings_register_setting_init(sbp_msg_settings_register_t *msg); * @return true is sbp_msg_settings_register_t::setting is valid for encoding * purposes, false otherwise */ -bool sbp_msg_settings_register_setting_valid( +SBP_EXPORT bool sbp_msg_settings_register_setting_valid( const sbp_msg_settings_register_t *msg); /** @@ -79,7 +80,7 @@ bool sbp_msg_settings_register_setting_valid( * @param b sbp_msg_settings_register_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_register_setting_strcmp( +SBP_EXPORT int sbp_msg_settings_register_setting_strcmp( const sbp_msg_settings_register_t *a, const sbp_msg_settings_register_t *b); /** @@ -88,7 +89,7 @@ int sbp_msg_settings_register_setting_strcmp( * @param msg sbp_msg_settings_register_t instance * @return Size of sbp_msg_settings_register_t::setting in wire representation */ -size_t sbp_msg_settings_register_setting_encoded_len( +SBP_EXPORT size_t sbp_msg_settings_register_setting_encoded_len( const sbp_msg_settings_register_t *msg); /** @@ -101,7 +102,7 @@ size_t sbp_msg_settings_register_setting_encoded_len( * @param msg sbp_msg_settings_register_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_register_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_register_setting_space_remaining( const sbp_msg_settings_register_t *msg); /** * Return the number of sections in sbp_msg_settings_register_t::setting @@ -109,7 +110,7 @@ size_t sbp_msg_settings_register_setting_space_remaining( * @param msg sbp_msg_settings_register_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_register_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_register_setting_count_sections( const sbp_msg_settings_register_t *msg); /** @@ -123,7 +124,7 @@ size_t sbp_msg_settings_register_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_setting_add_section( +SBP_EXPORT bool sbp_msg_settings_register_setting_add_section( sbp_msg_settings_register_t *msg, const char *new_str); /** @@ -139,7 +140,7 @@ bool sbp_msg_settings_register_setting_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_register_setting_add_section_printf( sbp_msg_settings_register_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -155,7 +156,7 @@ bool sbp_msg_settings_register_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_register_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_register_setting_add_section_vprintf( sbp_msg_settings_register_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -176,8 +177,8 @@ bool sbp_msg_settings_register_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_setting_append(sbp_msg_settings_register_t *msg, - const char *str); +SBP_EXPORT bool sbp_msg_settings_register_setting_append( + sbp_msg_settings_register_t *msg, const char *str); /** * Append a string to the last section in sbp_msg_settings_register_t::setting @@ -197,7 +198,7 @@ bool sbp_msg_settings_register_setting_append(sbp_msg_settings_register_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_setting_append_printf( +SBP_EXPORT bool sbp_msg_settings_register_setting_append_printf( sbp_msg_settings_register_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -220,7 +221,7 @@ bool sbp_msg_settings_register_setting_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_register_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_register_setting_append_vprintf( sbp_msg_settings_register_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -235,7 +236,7 @@ bool sbp_msg_settings_register_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_register_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_register_setting_get_section( const sbp_msg_settings_register_t *msg, size_t section); /** @@ -249,7 +250,7 @@ const char *sbp_msg_settings_register_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_register_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_register_setting_section_strlen( const sbp_msg_settings_register_t *msg, size_t section); /** @@ -283,9 +284,9 @@ static inline size_t sbp_msg_settings_register_encoded_len( * @param msg Instance of sbp_msg_settings_register_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_register_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_settings_register_t *msg); +SBP_EXPORT s8 +sbp_msg_settings_register_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_settings_register_t *msg); /** * Decode an instance of sbp_msg_settings_register_t from wire representation @@ -302,9 +303,9 @@ s8 sbp_msg_settings_register_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_register_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_settings_register_t *msg); +SBP_EXPORT s8 sbp_msg_settings_register_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_settings_register_t *msg); /** * Send an instance of sbp_msg_settings_register_t with the given write function * @@ -321,9 +322,9 @@ s8 sbp_msg_settings_register_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_register_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_settings_register_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_settings_register_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_settings_register_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_settings_register_t @@ -340,8 +341,8 @@ s8 sbp_msg_settings_register_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_settings_register_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_register_cmp(const sbp_msg_settings_register_t *a, - const sbp_msg_settings_register_t *b); +SBP_EXPORT int sbp_msg_settings_register_cmp( + const sbp_msg_settings_register_t *a, const sbp_msg_settings_register_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h index fb06fdf928..0946620865 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h @@ -64,7 +64,7 @@ typedef struct { * * @param msg sbp_msg_settings_register_resp_t instance */ -void sbp_msg_settings_register_resp_setting_init( +SBP_EXPORT void sbp_msg_settings_register_resp_setting_init( sbp_msg_settings_register_resp_t *msg); /** @@ -74,7 +74,7 @@ void sbp_msg_settings_register_resp_setting_init( * @return true is sbp_msg_settings_register_resp_t::setting is valid for * encoding purposes, false otherwise */ -bool sbp_msg_settings_register_resp_setting_valid( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_valid( const sbp_msg_settings_register_resp_t *msg); /** @@ -87,7 +87,7 @@ bool sbp_msg_settings_register_resp_setting_valid( * @param b sbp_msg_settings_register_resp_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_register_resp_setting_strcmp( +SBP_EXPORT int sbp_msg_settings_register_resp_setting_strcmp( const sbp_msg_settings_register_resp_t *a, const sbp_msg_settings_register_resp_t *b); @@ -98,7 +98,7 @@ int sbp_msg_settings_register_resp_setting_strcmp( * @return Size of sbp_msg_settings_register_resp_t::setting in wire * representation */ -size_t sbp_msg_settings_register_resp_setting_encoded_len( +SBP_EXPORT size_t sbp_msg_settings_register_resp_setting_encoded_len( const sbp_msg_settings_register_resp_t *msg); /** @@ -111,7 +111,7 @@ size_t sbp_msg_settings_register_resp_setting_encoded_len( * @param msg sbp_msg_settings_register_resp_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_register_resp_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_register_resp_setting_space_remaining( const sbp_msg_settings_register_resp_t *msg); /** * Return the number of sections in sbp_msg_settings_register_resp_t::setting @@ -119,7 +119,7 @@ size_t sbp_msg_settings_register_resp_setting_space_remaining( * @param msg sbp_msg_settings_register_resp_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_register_resp_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_register_resp_setting_count_sections( const sbp_msg_settings_register_resp_t *msg); /** @@ -133,7 +133,7 @@ size_t sbp_msg_settings_register_resp_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_resp_setting_add_section( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_add_section( sbp_msg_settings_register_resp_t *msg, const char *new_str); /** @@ -149,7 +149,7 @@ bool sbp_msg_settings_register_resp_setting_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_resp_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_add_section_printf( sbp_msg_settings_register_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -165,7 +165,7 @@ bool sbp_msg_settings_register_resp_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_register_resp_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_add_section_vprintf( sbp_msg_settings_register_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -187,7 +187,7 @@ bool sbp_msg_settings_register_resp_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_resp_setting_append( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_append( sbp_msg_settings_register_resp_t *msg, const char *str); /** @@ -208,7 +208,7 @@ bool sbp_msg_settings_register_resp_setting_append( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_register_resp_setting_append_printf( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_append_printf( sbp_msg_settings_register_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -231,7 +231,7 @@ bool sbp_msg_settings_register_resp_setting_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_register_resp_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_register_resp_setting_append_vprintf( sbp_msg_settings_register_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -246,7 +246,7 @@ bool sbp_msg_settings_register_resp_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_register_resp_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_register_resp_setting_get_section( const sbp_msg_settings_register_resp_t *msg, size_t section); /** @@ -260,7 +260,7 @@ const char *sbp_msg_settings_register_resp_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_register_resp_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_register_resp_setting_section_strlen( const sbp_msg_settings_register_resp_t *msg, size_t section); /** @@ -294,7 +294,7 @@ static inline size_t sbp_msg_settings_register_resp_encoded_len( * @param msg Instance of sbp_msg_settings_register_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_register_resp_encode( +SBP_EXPORT s8 sbp_msg_settings_register_resp_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_settings_register_resp_t *msg); @@ -315,9 +315,9 @@ s8 sbp_msg_settings_register_resp_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_register_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_settings_register_resp_t *msg); +SBP_EXPORT s8 sbp_msg_settings_register_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_settings_register_resp_t *msg); /** * Send an instance of sbp_msg_settings_register_resp_t with the given write * function @@ -335,7 +335,7 @@ s8 sbp_msg_settings_register_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_register_resp_send( +SBP_EXPORT s8 sbp_msg_settings_register_resp_send( sbp_state_t *s, u16 sender_id, const sbp_msg_settings_register_resp_t *msg, sbp_write_fn_t write); @@ -354,7 +354,7 @@ s8 sbp_msg_settings_register_resp_send( * @param b sbp_msg_settings_register_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_register_resp_cmp( +SBP_EXPORT int sbp_msg_settings_register_resp_cmp( const sbp_msg_settings_register_resp_t *a, const sbp_msg_settings_register_resp_t *b); diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h index 55dc099d1a..5ec2e898b4 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h @@ -82,8 +82,9 @@ static inline size_t sbp_msg_settings_save_encoded_len( * @param msg Instance of sbp_msg_settings_save_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_save_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_settings_save_t *msg); +SBP_EXPORT s8 sbp_msg_settings_save_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_settings_save_t *msg); /** * Decode an instance of sbp_msg_settings_save_t from wire representation @@ -100,8 +101,9 @@ s8 sbp_msg_settings_save_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_save_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_settings_save_t *msg); +SBP_EXPORT s8 sbp_msg_settings_save_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_settings_save_t *msg); /** * Send an instance of sbp_msg_settings_save_t with the given write function * @@ -118,9 +120,9 @@ s8 sbp_msg_settings_save_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_save_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_settings_save_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_settings_save_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_settings_save_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_settings_save_t @@ -137,8 +139,8 @@ s8 sbp_msg_settings_save_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_settings_save_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_save_cmp(const sbp_msg_settings_save_t *a, - const sbp_msg_settings_save_t *b); +SBP_EXPORT int sbp_msg_settings_save_cmp(const sbp_msg_settings_save_t *a, + const sbp_msg_settings_save_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h index a65d6d83cf..d59a9340af 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h @@ -60,7 +60,8 @@ typedef struct { * * @param msg sbp_msg_settings_write_t instance */ -void sbp_msg_settings_write_setting_init(sbp_msg_settings_write_t *msg); +SBP_EXPORT void sbp_msg_settings_write_setting_init( + sbp_msg_settings_write_t *msg); /** * Test sbp_msg_settings_write_t::setting for validity @@ -69,7 +70,8 @@ void sbp_msg_settings_write_setting_init(sbp_msg_settings_write_t *msg); * @return true is sbp_msg_settings_write_t::setting is valid for encoding * purposes, false otherwise */ -bool sbp_msg_settings_write_setting_valid(const sbp_msg_settings_write_t *msg); +SBP_EXPORT bool sbp_msg_settings_write_setting_valid( + const sbp_msg_settings_write_t *msg); /** * Tests 2 instances of sbp_msg_settings_write_t::setting for equality @@ -81,8 +83,8 @@ bool sbp_msg_settings_write_setting_valid(const sbp_msg_settings_write_t *msg); * @param b sbp_msg_settings_write_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_write_setting_strcmp(const sbp_msg_settings_write_t *a, - const sbp_msg_settings_write_t *b); +SBP_EXPORT int sbp_msg_settings_write_setting_strcmp( + const sbp_msg_settings_write_t *a, const sbp_msg_settings_write_t *b); /** * Get the encoded size of sbp_msg_settings_write_t::setting @@ -90,8 +92,8 @@ int sbp_msg_settings_write_setting_strcmp(const sbp_msg_settings_write_t *a, * @param msg sbp_msg_settings_write_t instance * @return Size of sbp_msg_settings_write_t::setting in wire representation */ -size_t sbp_msg_settings_write_setting_encoded_len( - const sbp_msg_settings_write_t *msg); +SBP_EXPORT size_t +sbp_msg_settings_write_setting_encoded_len(const sbp_msg_settings_write_t *msg); /** * Query sbp_msg_settings_write_t::setting for remaining space @@ -103,7 +105,7 @@ size_t sbp_msg_settings_write_setting_encoded_len( * @param msg sbp_msg_settings_write_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_write_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_write_setting_space_remaining( const sbp_msg_settings_write_t *msg); /** * Return the number of sections in sbp_msg_settings_write_t::setting @@ -111,7 +113,7 @@ size_t sbp_msg_settings_write_setting_space_remaining( * @param msg sbp_msg_settings_write_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_write_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_write_setting_count_sections( const sbp_msg_settings_write_t *msg); /** @@ -125,8 +127,8 @@ size_t sbp_msg_settings_write_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_setting_add_section(sbp_msg_settings_write_t *msg, - const char *new_str); +SBP_EXPORT bool sbp_msg_settings_write_setting_add_section( + sbp_msg_settings_write_t *msg, const char *new_str); /** * Add a section to sbp_msg_settings_write_t::setting with printf style @@ -141,7 +143,7 @@ bool sbp_msg_settings_write_setting_add_section(sbp_msg_settings_write_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_write_setting_add_section_printf( sbp_msg_settings_write_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); /** @@ -156,7 +158,7 @@ bool sbp_msg_settings_write_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_write_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_write_setting_add_section_vprintf( sbp_msg_settings_write_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -177,8 +179,8 @@ bool sbp_msg_settings_write_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_setting_append(sbp_msg_settings_write_t *msg, - const char *str); +SBP_EXPORT bool sbp_msg_settings_write_setting_append( + sbp_msg_settings_write_t *msg, const char *str); /** * Append a string to the last section in sbp_msg_settings_write_t::setting with @@ -198,9 +200,8 @@ bool sbp_msg_settings_write_setting_append(sbp_msg_settings_write_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_setting_append_printf(sbp_msg_settings_write_t *msg, - const char *fmt, ...) - SBP_ATTR_FORMAT(2, 3); +SBP_EXPORT bool sbp_msg_settings_write_setting_append_printf( + sbp_msg_settings_write_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); /** * Append a string to the last section in sbp_msg_settings_write_t::setting with @@ -221,7 +222,7 @@ bool sbp_msg_settings_write_setting_append_printf(sbp_msg_settings_write_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_write_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_write_setting_append_vprintf( sbp_msg_settings_write_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -236,7 +237,7 @@ bool sbp_msg_settings_write_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_write_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_write_setting_get_section( const sbp_msg_settings_write_t *msg, size_t section); /** @@ -250,7 +251,7 @@ const char *sbp_msg_settings_write_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_write_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_write_setting_section_strlen( const sbp_msg_settings_write_t *msg, size_t section); /** @@ -284,8 +285,9 @@ static inline size_t sbp_msg_settings_write_encoded_len( * @param msg Instance of sbp_msg_settings_write_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_write_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_settings_write_t *msg); +SBP_EXPORT s8 +sbp_msg_settings_write_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_settings_write_t *msg); /** * Decode an instance of sbp_msg_settings_write_t from wire representation @@ -302,9 +304,9 @@ s8 sbp_msg_settings_write_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_write_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_settings_write_t *msg); +SBP_EXPORT s8 sbp_msg_settings_write_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_settings_write_t *msg); /** * Send an instance of sbp_msg_settings_write_t with the given write function * @@ -321,9 +323,9 @@ s8 sbp_msg_settings_write_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_write_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_settings_write_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_settings_write_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_settings_write_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_settings_write_t @@ -340,8 +342,8 @@ s8 sbp_msg_settings_write_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_settings_write_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_write_cmp(const sbp_msg_settings_write_t *a, - const sbp_msg_settings_write_t *b); +SBP_EXPORT int sbp_msg_settings_write_cmp(const sbp_msg_settings_write_t *a, + const sbp_msg_settings_write_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h index 8def6fa5a0..2485f8d100 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h @@ -65,7 +65,7 @@ typedef struct { * * @param msg sbp_msg_settings_write_resp_t instance */ -void sbp_msg_settings_write_resp_setting_init( +SBP_EXPORT void sbp_msg_settings_write_resp_setting_init( sbp_msg_settings_write_resp_t *msg); /** @@ -75,7 +75,7 @@ void sbp_msg_settings_write_resp_setting_init( * @return true is sbp_msg_settings_write_resp_t::setting is valid for encoding * purposes, false otherwise */ -bool sbp_msg_settings_write_resp_setting_valid( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_valid( const sbp_msg_settings_write_resp_t *msg); /** @@ -88,7 +88,7 @@ bool sbp_msg_settings_write_resp_setting_valid( * @param b sbp_msg_settings_write_resp_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_settings_write_resp_setting_strcmp( +SBP_EXPORT int sbp_msg_settings_write_resp_setting_strcmp( const sbp_msg_settings_write_resp_t *a, const sbp_msg_settings_write_resp_t *b); @@ -98,7 +98,7 @@ int sbp_msg_settings_write_resp_setting_strcmp( * @param msg sbp_msg_settings_write_resp_t instance * @return Size of sbp_msg_settings_write_resp_t::setting in wire representation */ -size_t sbp_msg_settings_write_resp_setting_encoded_len( +SBP_EXPORT size_t sbp_msg_settings_write_resp_setting_encoded_len( const sbp_msg_settings_write_resp_t *msg); /** @@ -111,7 +111,7 @@ size_t sbp_msg_settings_write_resp_setting_encoded_len( * @param msg sbp_msg_settings_write_resp_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_settings_write_resp_setting_space_remaining( +SBP_EXPORT size_t sbp_msg_settings_write_resp_setting_space_remaining( const sbp_msg_settings_write_resp_t *msg); /** * Return the number of sections in sbp_msg_settings_write_resp_t::setting @@ -119,7 +119,7 @@ size_t sbp_msg_settings_write_resp_setting_space_remaining( * @param msg sbp_msg_settings_write_resp_t instance * @return Number of sections in string */ -size_t sbp_msg_settings_write_resp_setting_count_sections( +SBP_EXPORT size_t sbp_msg_settings_write_resp_setting_count_sections( const sbp_msg_settings_write_resp_t *msg); /** @@ -133,7 +133,7 @@ size_t sbp_msg_settings_write_resp_setting_count_sections( * @param new_str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_resp_setting_add_section( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_add_section( sbp_msg_settings_write_resp_t *msg, const char *new_str); /** @@ -149,7 +149,7 @@ bool sbp_msg_settings_write_resp_setting_add_section( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_resp_setting_add_section_printf( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_add_section_printf( sbp_msg_settings_write_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -165,7 +165,7 @@ bool sbp_msg_settings_write_resp_setting_add_section_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_write_resp_setting_add_section_vprintf( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_add_section_vprintf( sbp_msg_settings_write_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -186,7 +186,7 @@ bool sbp_msg_settings_write_resp_setting_add_section_vprintf( * @param str New string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_resp_setting_append( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_append( sbp_msg_settings_write_resp_t *msg, const char *str); /** @@ -207,7 +207,7 @@ bool sbp_msg_settings_write_resp_setting_append( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_settings_write_resp_setting_append_printf( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_append_printf( sbp_msg_settings_write_resp_t *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2, 3); @@ -230,7 +230,7 @@ bool sbp_msg_settings_write_resp_setting_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_settings_write_resp_setting_append_vprintf( +SBP_EXPORT bool sbp_msg_settings_write_resp_setting_append_vprintf( sbp_msg_settings_write_resp_t *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); @@ -245,7 +245,7 @@ bool sbp_msg_settings_write_resp_setting_append_vprintf( * @param section Section number * @return Pointer to C string, NULL on error */ -const char *sbp_msg_settings_write_resp_setting_get_section( +SBP_EXPORT const char *sbp_msg_settings_write_resp_setting_get_section( const sbp_msg_settings_write_resp_t *msg, size_t section); /** @@ -259,7 +259,7 @@ const char *sbp_msg_settings_write_resp_setting_get_section( * @param section Section number * @return Length of section */ -size_t sbp_msg_settings_write_resp_setting_section_strlen( +SBP_EXPORT size_t sbp_msg_settings_write_resp_setting_section_strlen( const sbp_msg_settings_write_resp_t *msg, size_t section); /** @@ -293,9 +293,9 @@ static inline size_t sbp_msg_settings_write_resp_encoded_len( * @param msg Instance of sbp_msg_settings_write_resp_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_write_resp_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_settings_write_resp_t *msg); +SBP_EXPORT s8 sbp_msg_settings_write_resp_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_settings_write_resp_t *msg); /** * Decode an instance of sbp_msg_settings_write_resp_t from wire representation @@ -312,9 +312,9 @@ s8 sbp_msg_settings_write_resp_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_write_resp_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_settings_write_resp_t *msg); +SBP_EXPORT s8 sbp_msg_settings_write_resp_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_settings_write_resp_t *msg); /** * Send an instance of sbp_msg_settings_write_resp_t with the given write * function @@ -332,9 +332,9 @@ s8 sbp_msg_settings_write_resp_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_settings_write_resp_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_settings_write_resp_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_settings_write_resp_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_settings_write_resp_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_settings_write_resp_t @@ -351,8 +351,9 @@ s8 sbp_msg_settings_write_resp_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_settings_write_resp_t instance * @return 0, <0, >0 */ -int sbp_msg_settings_write_resp_cmp(const sbp_msg_settings_write_resp_t *a, - const sbp_msg_settings_write_resp_t *b); +SBP_EXPORT int sbp_msg_settings_write_resp_cmp( + const sbp_msg_settings_write_resp_t *a, + const sbp_msg_settings_write_resp_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/solution_meta/GNSSInputType.h b/c/include/libsbp/v4/solution_meta/GNSSInputType.h index dcbf401ed4..8455a7d0c2 100644 --- a/c/include/libsbp/v4/solution_meta/GNSSInputType.h +++ b/c/include/libsbp/v4/solution_meta/GNSSInputType.h @@ -81,8 +81,9 @@ static inline size_t sbp_gnss_input_type_encoded_len( * @param msg Instance of sbp_gnss_input_type_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gnss_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_gnss_input_type_t *msg); +SBP_EXPORT s8 sbp_gnss_input_type_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_gnss_input_type_t *msg); /** * Decode an instance of sbp_gnss_input_type_t from wire representation @@ -99,8 +100,9 @@ s8 sbp_gnss_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gnss_input_type_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_gnss_input_type_t *msg); +SBP_EXPORT s8 sbp_gnss_input_type_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_gnss_input_type_t *msg); /** * Compare two instances of sbp_gnss_input_type_t @@ -117,8 +119,8 @@ s8 sbp_gnss_input_type_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_gnss_input_type_t instance * @return 0, <0, >0 */ -int sbp_gnss_input_type_cmp(const sbp_gnss_input_type_t *a, - const sbp_gnss_input_type_t *b); +SBP_EXPORT int sbp_gnss_input_type_cmp(const sbp_gnss_input_type_t *a, + const sbp_gnss_input_type_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/solution_meta/IMUInputType.h b/c/include/libsbp/v4/solution_meta/IMUInputType.h index f793b36a66..5aa62a5b38 100644 --- a/c/include/libsbp/v4/solution_meta/IMUInputType.h +++ b/c/include/libsbp/v4/solution_meta/IMUInputType.h @@ -83,8 +83,9 @@ static inline size_t sbp_imu_input_type_encoded_len( * @param msg Instance of sbp_imu_input_type_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_imu_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_imu_input_type_t *msg); +SBP_EXPORT s8 sbp_imu_input_type_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_imu_input_type_t *msg); /** * Decode an instance of sbp_imu_input_type_t from wire representation @@ -101,8 +102,9 @@ s8 sbp_imu_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_imu_input_type_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_imu_input_type_t *msg); +SBP_EXPORT s8 sbp_imu_input_type_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_imu_input_type_t *msg); /** * Compare two instances of sbp_imu_input_type_t @@ -119,8 +121,8 @@ s8 sbp_imu_input_type_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_imu_input_type_t instance * @return 0, <0, >0 */ -int sbp_imu_input_type_cmp(const sbp_imu_input_type_t *a, - const sbp_imu_input_type_t *b); +SBP_EXPORT int sbp_imu_input_type_cmp(const sbp_imu_input_type_t *a, + const sbp_imu_input_type_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h b/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h index c9575c33c8..389ebcb5b9 100644 --- a/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h +++ b/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h @@ -137,8 +137,9 @@ static inline size_t sbp_msg_soln_meta_encoded_len( * @param msg Instance of sbp_msg_soln_meta_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_soln_meta_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_soln_meta_t *msg); +SBP_EXPORT s8 sbp_msg_soln_meta_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_soln_meta_t *msg); /** * Decode an instance of sbp_msg_soln_meta_t from wire representation @@ -155,8 +156,9 @@ s8 sbp_msg_soln_meta_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_soln_meta_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_soln_meta_t *msg); +SBP_EXPORT s8 sbp_msg_soln_meta_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_soln_meta_t *msg); /** * Send an instance of sbp_msg_soln_meta_t with the given write function * @@ -173,8 +175,9 @@ s8 sbp_msg_soln_meta_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_soln_meta_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_soln_meta_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_soln_meta_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_soln_meta_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_soln_meta_t @@ -191,8 +194,8 @@ s8 sbp_msg_soln_meta_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_soln_meta_t instance * @return 0, <0, >0 */ -int sbp_msg_soln_meta_cmp(const sbp_msg_soln_meta_t *a, - const sbp_msg_soln_meta_t *b); +SBP_EXPORT int sbp_msg_soln_meta_cmp(const sbp_msg_soln_meta_t *a, + const sbp_msg_soln_meta_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/solution_meta/MSG_SOLN_META_DEP_A.h b/c/include/libsbp/v4/solution_meta/MSG_SOLN_META_DEP_A.h index cf18f7fec4..c3fed13158 100644 --- a/c/include/libsbp/v4/solution_meta/MSG_SOLN_META_DEP_A.h +++ b/c/include/libsbp/v4/solution_meta/MSG_SOLN_META_DEP_A.h @@ -140,8 +140,9 @@ static inline size_t sbp_msg_soln_meta_dep_a_encoded_len( * @param msg Instance of sbp_msg_soln_meta_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_soln_meta_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_soln_meta_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_soln_meta_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_soln_meta_dep_a_t *msg); /** * Decode an instance of sbp_msg_soln_meta_dep_a_t from wire representation @@ -158,9 +159,9 @@ s8 sbp_msg_soln_meta_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_soln_meta_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_soln_meta_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_soln_meta_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_soln_meta_dep_a_t *msg); /** * Send an instance of sbp_msg_soln_meta_dep_a_t with the given write function * @@ -177,9 +178,9 @@ s8 sbp_msg_soln_meta_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_soln_meta_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_soln_meta_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_soln_meta_dep_a_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_soln_meta_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_soln_meta_dep_a_t @@ -196,8 +197,8 @@ s8 sbp_msg_soln_meta_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_soln_meta_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_soln_meta_dep_a_cmp(const sbp_msg_soln_meta_dep_a_t *a, - const sbp_msg_soln_meta_dep_a_t *b); +SBP_EXPORT int sbp_msg_soln_meta_dep_a_cmp(const sbp_msg_soln_meta_dep_a_t *a, + const sbp_msg_soln_meta_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/solution_meta/OdoInputType.h b/c/include/libsbp/v4/solution_meta/OdoInputType.h index 453b8000dc..a3df39a265 100644 --- a/c/include/libsbp/v4/solution_meta/OdoInputType.h +++ b/c/include/libsbp/v4/solution_meta/OdoInputType.h @@ -83,8 +83,9 @@ static inline size_t sbp_odo_input_type_encoded_len( * @param msg Instance of sbp_odo_input_type_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_odo_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_odo_input_type_t *msg); +SBP_EXPORT s8 sbp_odo_input_type_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_odo_input_type_t *msg); /** * Decode an instance of sbp_odo_input_type_t from wire representation @@ -101,8 +102,9 @@ s8 sbp_odo_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_odo_input_type_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_odo_input_type_t *msg); +SBP_EXPORT s8 sbp_odo_input_type_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_odo_input_type_t *msg); /** * Compare two instances of sbp_odo_input_type_t @@ -119,8 +121,8 @@ s8 sbp_odo_input_type_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_odo_input_type_t instance * @return 0, <0, >0 */ -int sbp_odo_input_type_cmp(const sbp_odo_input_type_t *a, - const sbp_odo_input_type_t *b); +SBP_EXPORT int sbp_odo_input_type_cmp(const sbp_odo_input_type_t *a, + const sbp_odo_input_type_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/solution_meta/SolutionInputType.h b/c/include/libsbp/v4/solution_meta/SolutionInputType.h index 5a2f5f3ba5..4599163a29 100644 --- a/c/include/libsbp/v4/solution_meta/SolutionInputType.h +++ b/c/include/libsbp/v4/solution_meta/SolutionInputType.h @@ -90,8 +90,9 @@ static inline size_t sbp_solution_input_type_encoded_len( * @param msg Instance of sbp_solution_input_type_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_solution_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_solution_input_type_t *msg); +SBP_EXPORT s8 +sbp_solution_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_solution_input_type_t *msg); /** * Decode an instance of sbp_solution_input_type_t from wire representation @@ -108,9 +109,9 @@ s8 sbp_solution_input_type_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_solution_input_type_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_solution_input_type_t *msg); +SBP_EXPORT s8 sbp_solution_input_type_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_solution_input_type_t *msg); /** * Compare two instances of sbp_solution_input_type_t @@ -127,8 +128,8 @@ s8 sbp_solution_input_type_decode(const uint8_t *buf, uint8_t len, * @param b sbp_solution_input_type_t instance * @return 0, <0, >0 */ -int sbp_solution_input_type_cmp(const sbp_solution_input_type_t *a, - const sbp_solution_input_type_t *b); +SBP_EXPORT int sbp_solution_input_type_cmp(const sbp_solution_input_type_t *a, + const sbp_solution_input_type_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/CodeBiasesContent.h b/c/include/libsbp/v4/ssr/CodeBiasesContent.h index 29edab709b..a7a9c09288 100644 --- a/c/include/libsbp/v4/ssr/CodeBiasesContent.h +++ b/c/include/libsbp/v4/ssr/CodeBiasesContent.h @@ -87,8 +87,9 @@ static inline size_t sbp_code_biases_content_encoded_len( * @param msg Instance of sbp_code_biases_content_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_code_biases_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_code_biases_content_t *msg); +SBP_EXPORT s8 +sbp_code_biases_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_code_biases_content_t *msg); /** * Decode an instance of sbp_code_biases_content_t from wire representation @@ -105,9 +106,9 @@ s8 sbp_code_biases_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_code_biases_content_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_code_biases_content_t *msg); +SBP_EXPORT s8 sbp_code_biases_content_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_code_biases_content_t *msg); /** * Compare two instances of sbp_code_biases_content_t @@ -124,8 +125,8 @@ s8 sbp_code_biases_content_decode(const uint8_t *buf, uint8_t len, * @param b sbp_code_biases_content_t instance * @return 0, <0, >0 */ -int sbp_code_biases_content_cmp(const sbp_code_biases_content_t *a, - const sbp_code_biases_content_t *b); +SBP_EXPORT int sbp_code_biases_content_cmp(const sbp_code_biases_content_t *a, + const sbp_code_biases_content_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h b/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h index 983a79d222..a679dcba83 100644 --- a/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h @@ -109,7 +109,7 @@ static inline size_t sbp_grid_definition_header_dep_a_encoded_len( * @param msg Instance of sbp_grid_definition_header_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_grid_definition_header_dep_a_encode( +SBP_EXPORT s8 sbp_grid_definition_header_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_grid_definition_header_dep_a_t *msg); @@ -130,7 +130,7 @@ s8 sbp_grid_definition_header_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_grid_definition_header_dep_a_decode( +SBP_EXPORT s8 sbp_grid_definition_header_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_grid_definition_header_dep_a_t *msg); @@ -149,7 +149,7 @@ s8 sbp_grid_definition_header_dep_a_decode( * @param b sbp_grid_definition_header_dep_a_t instance * @return 0, <0, >0 */ -int sbp_grid_definition_header_dep_a_cmp( +SBP_EXPORT int sbp_grid_definition_header_dep_a_cmp( const sbp_grid_definition_header_dep_a_t *a, const sbp_grid_definition_header_dep_a_t *b); diff --git a/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h b/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h index bf19939fac..c1743f9faf 100644 --- a/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h +++ b/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h @@ -119,7 +119,7 @@ static inline size_t sbp_gridded_correction_header_encoded_len( * @param msg Instance of sbp_gridded_correction_header_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gridded_correction_header_encode( +SBP_EXPORT s8 sbp_gridded_correction_header_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_gridded_correction_header_t *msg); @@ -140,9 +140,9 @@ s8 sbp_gridded_correction_header_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gridded_correction_header_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_gridded_correction_header_t *msg); +SBP_EXPORT s8 sbp_gridded_correction_header_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_gridded_correction_header_t *msg); /** * Compare two instances of sbp_gridded_correction_header_t @@ -159,8 +159,9 @@ s8 sbp_gridded_correction_header_decode(const uint8_t *buf, uint8_t len, * @param b sbp_gridded_correction_header_t instance * @return 0, <0, >0 */ -int sbp_gridded_correction_header_cmp(const sbp_gridded_correction_header_t *a, - const sbp_gridded_correction_header_t *b); +SBP_EXPORT int sbp_gridded_correction_header_cmp( + const sbp_gridded_correction_header_t *a, + const sbp_gridded_correction_header_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h b/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h index e441a6f32c..f5649eb66a 100644 --- a/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h @@ -110,7 +110,7 @@ static inline size_t sbp_gridded_correction_header_dep_a_encoded_len( * @param msg Instance of sbp_gridded_correction_header_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gridded_correction_header_dep_a_encode( +SBP_EXPORT s8 sbp_gridded_correction_header_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_gridded_correction_header_dep_a_t *msg); @@ -132,7 +132,7 @@ s8 sbp_gridded_correction_header_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_gridded_correction_header_dep_a_decode( +SBP_EXPORT s8 sbp_gridded_correction_header_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_gridded_correction_header_dep_a_t *msg); @@ -151,7 +151,7 @@ s8 sbp_gridded_correction_header_dep_a_decode( * @param b sbp_gridded_correction_header_dep_a_t instance * @return 0, <0, >0 */ -int sbp_gridded_correction_header_dep_a_cmp( +SBP_EXPORT int sbp_gridded_correction_header_dep_a_cmp( const sbp_gridded_correction_header_dep_a_t *a, const sbp_gridded_correction_header_dep_a_t *b); diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h b/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h index b4c9a29634..d19c5c7a2c 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h @@ -118,8 +118,9 @@ static inline size_t sbp_msg_ssr_code_biases_encoded_len( * @param msg Instance of sbp_msg_ssr_code_biases_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_code_biases_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ssr_code_biases_t *msg); +SBP_EXPORT s8 +sbp_msg_ssr_code_biases_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_code_biases_t *msg); /** * Decode an instance of sbp_msg_ssr_code_biases_t from wire representation @@ -136,9 +137,9 @@ s8 sbp_msg_ssr_code_biases_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_code_biases_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_code_biases_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_code_biases_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ssr_code_biases_t *msg); /** * Send an instance of sbp_msg_ssr_code_biases_t with the given write function * @@ -155,9 +156,9 @@ s8 sbp_msg_ssr_code_biases_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_code_biases_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ssr_code_biases_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ssr_code_biases_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ssr_code_biases_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ssr_code_biases_t @@ -174,8 +175,8 @@ s8 sbp_msg_ssr_code_biases_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ssr_code_biases_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_code_biases_cmp(const sbp_msg_ssr_code_biases_t *a, - const sbp_msg_ssr_code_biases_t *b); +SBP_EXPORT int sbp_msg_ssr_code_biases_cmp(const sbp_msg_ssr_code_biases_t *a, + const sbp_msg_ssr_code_biases_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h index 3d3d805ec3..87d0cf09fd 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h @@ -111,7 +111,7 @@ static inline size_t sbp_msg_ssr_gridded_correction_encoded_len( * @param msg Instance of sbp_msg_ssr_gridded_correction_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_encode( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ssr_gridded_correction_t *msg); @@ -132,9 +132,9 @@ s8 sbp_msg_ssr_gridded_correction_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_gridded_correction_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_gridded_correction_t *msg); /** * Send an instance of sbp_msg_ssr_gridded_correction_t with the given write * function @@ -152,7 +152,7 @@ s8 sbp_msg_ssr_gridded_correction_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_send( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_send( sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_gridded_correction_t *msg, sbp_write_fn_t write); @@ -171,7 +171,7 @@ s8 sbp_msg_ssr_gridded_correction_send( * @param b sbp_msg_ssr_gridded_correction_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_gridded_correction_cmp( +SBP_EXPORT int sbp_msg_ssr_gridded_correction_cmp( const sbp_msg_ssr_gridded_correction_t *a, const sbp_msg_ssr_gridded_correction_t *b); diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_DEP_A.h b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_DEP_A.h index c30991a07a..5db230d226 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_DEP_A.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_DEP_A.h @@ -107,7 +107,7 @@ static inline size_t sbp_msg_ssr_gridded_correction_dep_a_encoded_len( * @param msg Instance of sbp_msg_ssr_gridded_correction_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_dep_a_encode( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ssr_gridded_correction_dep_a_t *msg); @@ -129,7 +129,7 @@ s8 sbp_msg_ssr_gridded_correction_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_dep_a_decode( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_ssr_gridded_correction_dep_a_t *msg); /** @@ -149,7 +149,7 @@ s8 sbp_msg_ssr_gridded_correction_dep_a_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_dep_a_send( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_gridded_correction_dep_a_t *msg, sbp_write_fn_t write); @@ -168,7 +168,7 @@ s8 sbp_msg_ssr_gridded_correction_dep_a_send( * @param b sbp_msg_ssr_gridded_correction_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_gridded_correction_dep_a_cmp( +SBP_EXPORT int sbp_msg_ssr_gridded_correction_dep_a_cmp( const sbp_msg_ssr_gridded_correction_dep_a_t *a, const sbp_msg_ssr_gridded_correction_dep_a_t *b); diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A.h b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A.h index 97eac97822..32bc29d59a 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A.h @@ -109,7 +109,7 @@ static inline size_t sbp_msg_ssr_gridded_correction_no_std_dep_a_encoded_len( * encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_encode( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ssr_gridded_correction_no_std_dep_a_t *msg); @@ -131,7 +131,7 @@ s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_decode( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_ssr_gridded_correction_no_std_dep_a_t *msg); /** @@ -151,7 +151,7 @@ s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_send( +SBP_EXPORT s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_gridded_correction_no_std_dep_a_t *msg, sbp_write_fn_t write); @@ -171,7 +171,7 @@ s8 sbp_msg_ssr_gridded_correction_no_std_dep_a_send( * @param b sbp_msg_ssr_gridded_correction_no_std_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_gridded_correction_no_std_dep_a_cmp( +SBP_EXPORT int sbp_msg_ssr_gridded_correction_no_std_dep_a_cmp( const sbp_msg_ssr_gridded_correction_no_std_dep_a_t *a, const sbp_msg_ssr_gridded_correction_no_std_dep_a_t *b); diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_GRID_DEFINITION_DEP_A.h b/c/include/libsbp/v4/ssr/MSG_SSR_GRID_DEFINITION_DEP_A.h index 539538e78d..645e947e5c 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_GRID_DEFINITION_DEP_A.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_GRID_DEFINITION_DEP_A.h @@ -97,7 +97,7 @@ static inline size_t sbp_msg_ssr_grid_definition_dep_a_encoded_len( * @param msg Instance of sbp_msg_ssr_grid_definition_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_grid_definition_dep_a_encode( +SBP_EXPORT s8 sbp_msg_ssr_grid_definition_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ssr_grid_definition_dep_a_t *msg); @@ -118,7 +118,7 @@ s8 sbp_msg_ssr_grid_definition_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_grid_definition_dep_a_decode( +SBP_EXPORT s8 sbp_msg_ssr_grid_definition_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_ssr_grid_definition_dep_a_t *msg); /** @@ -138,7 +138,7 @@ s8 sbp_msg_ssr_grid_definition_dep_a_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_grid_definition_dep_a_send( +SBP_EXPORT s8 sbp_msg_ssr_grid_definition_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_grid_definition_dep_a_t *msg, sbp_write_fn_t write); @@ -157,7 +157,7 @@ s8 sbp_msg_ssr_grid_definition_dep_a_send( * @param b sbp_msg_ssr_grid_definition_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_grid_definition_dep_a_cmp( +SBP_EXPORT int sbp_msg_ssr_grid_definition_dep_a_cmp( const sbp_msg_ssr_grid_definition_dep_a_t *a, const sbp_msg_ssr_grid_definition_dep_a_t *b); diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h b/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h index ffbe17b154..b883c96e63 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h @@ -154,8 +154,9 @@ static inline size_t sbp_msg_ssr_orbit_clock_encoded_len( * @param msg Instance of sbp_msg_ssr_orbit_clock_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_orbit_clock_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ssr_orbit_clock_t *msg); +SBP_EXPORT s8 +sbp_msg_ssr_orbit_clock_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_orbit_clock_t *msg); /** * Decode an instance of sbp_msg_ssr_orbit_clock_t from wire representation @@ -172,9 +173,9 @@ s8 sbp_msg_ssr_orbit_clock_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_orbit_clock_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_orbit_clock_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_orbit_clock_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ssr_orbit_clock_t *msg); /** * Send an instance of sbp_msg_ssr_orbit_clock_t with the given write function * @@ -191,9 +192,9 @@ s8 sbp_msg_ssr_orbit_clock_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_orbit_clock_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ssr_orbit_clock_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ssr_orbit_clock_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ssr_orbit_clock_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ssr_orbit_clock_t @@ -210,8 +211,8 @@ s8 sbp_msg_ssr_orbit_clock_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ssr_orbit_clock_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_orbit_clock_cmp(const sbp_msg_ssr_orbit_clock_t *a, - const sbp_msg_ssr_orbit_clock_t *b); +SBP_EXPORT int sbp_msg_ssr_orbit_clock_cmp(const sbp_msg_ssr_orbit_clock_t *a, + const sbp_msg_ssr_orbit_clock_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK_DEP_A.h b/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK_DEP_A.h index 3fc05f9ff5..7427a5cd8a 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK_DEP_A.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK_DEP_A.h @@ -148,7 +148,7 @@ static inline size_t sbp_msg_ssr_orbit_clock_dep_a_encoded_len( * @param msg Instance of sbp_msg_ssr_orbit_clock_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_orbit_clock_dep_a_encode( +SBP_EXPORT s8 sbp_msg_ssr_orbit_clock_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ssr_orbit_clock_dep_a_t *msg); @@ -169,9 +169,9 @@ s8 sbp_msg_ssr_orbit_clock_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_orbit_clock_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_orbit_clock_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_orbit_clock_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_orbit_clock_dep_a_t *msg); /** * Send an instance of sbp_msg_ssr_orbit_clock_dep_a_t with the given write * function @@ -189,7 +189,7 @@ s8 sbp_msg_ssr_orbit_clock_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_orbit_clock_dep_a_send( +SBP_EXPORT s8 sbp_msg_ssr_orbit_clock_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_orbit_clock_dep_a_t *msg, sbp_write_fn_t write); @@ -208,8 +208,9 @@ s8 sbp_msg_ssr_orbit_clock_dep_a_send( * @param b sbp_msg_ssr_orbit_clock_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_orbit_clock_dep_a_cmp(const sbp_msg_ssr_orbit_clock_dep_a_t *a, - const sbp_msg_ssr_orbit_clock_dep_a_t *b); +SBP_EXPORT int sbp_msg_ssr_orbit_clock_dep_a_cmp( + const sbp_msg_ssr_orbit_clock_dep_a_t *a, + const sbp_msg_ssr_orbit_clock_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h b/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h index c507a0f4fd..14a8d38ee9 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h @@ -140,9 +140,9 @@ static inline size_t sbp_msg_ssr_phase_biases_encoded_len( * @param msg Instance of sbp_msg_ssr_phase_biases_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_phase_biases_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ssr_phase_biases_t *msg); +SBP_EXPORT s8 +sbp_msg_ssr_phase_biases_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_phase_biases_t *msg); /** * Decode an instance of sbp_msg_ssr_phase_biases_t from wire representation @@ -159,9 +159,9 @@ s8 sbp_msg_ssr_phase_biases_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_phase_biases_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_phase_biases_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_phase_biases_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ssr_phase_biases_t *msg); /** * Send an instance of sbp_msg_ssr_phase_biases_t with the given write function * @@ -178,9 +178,9 @@ s8 sbp_msg_ssr_phase_biases_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_phase_biases_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ssr_phase_biases_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ssr_phase_biases_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_phase_biases_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ssr_phase_biases_t @@ -197,8 +197,8 @@ s8 sbp_msg_ssr_phase_biases_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ssr_phase_biases_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_phase_biases_cmp(const sbp_msg_ssr_phase_biases_t *a, - const sbp_msg_ssr_phase_biases_t *b); +SBP_EXPORT int sbp_msg_ssr_phase_biases_cmp( + const sbp_msg_ssr_phase_biases_t *a, const sbp_msg_ssr_phase_biases_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h b/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h index 72217d5214..68b0f001ed 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h @@ -88,9 +88,9 @@ static inline size_t sbp_msg_ssr_satellite_apc_encoded_len( * @param msg Instance of sbp_msg_ssr_satellite_apc_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_satellite_apc_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ssr_satellite_apc_t *msg); +SBP_EXPORT s8 +sbp_msg_ssr_satellite_apc_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_satellite_apc_t *msg); /** * Decode an instance of sbp_msg_ssr_satellite_apc_t from wire representation @@ -107,9 +107,9 @@ s8 sbp_msg_ssr_satellite_apc_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_satellite_apc_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_satellite_apc_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_satellite_apc_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_satellite_apc_t *msg); /** * Send an instance of sbp_msg_ssr_satellite_apc_t with the given write function * @@ -126,9 +126,9 @@ s8 sbp_msg_ssr_satellite_apc_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_satellite_apc_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ssr_satellite_apc_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ssr_satellite_apc_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_satellite_apc_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ssr_satellite_apc_t @@ -145,8 +145,8 @@ s8 sbp_msg_ssr_satellite_apc_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ssr_satellite_apc_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_satellite_apc_cmp(const sbp_msg_ssr_satellite_apc_t *a, - const sbp_msg_ssr_satellite_apc_t *b); +SBP_EXPORT int sbp_msg_ssr_satellite_apc_cmp( + const sbp_msg_ssr_satellite_apc_t *a, const sbp_msg_ssr_satellite_apc_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h b/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h index 40c3902f8f..3c884a91cd 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h @@ -103,9 +103,9 @@ static inline size_t sbp_msg_ssr_stec_correction_encoded_len( * @param msg Instance of sbp_msg_ssr_stec_correction_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_stec_correction_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ssr_stec_correction_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_stec_correction_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_stec_correction_t *msg); /** * Decode an instance of sbp_msg_ssr_stec_correction_t from wire representation @@ -122,9 +122,9 @@ s8 sbp_msg_ssr_stec_correction_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_stec_correction_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_stec_correction_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_stec_correction_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_stec_correction_t *msg); /** * Send an instance of sbp_msg_ssr_stec_correction_t with the given write * function @@ -142,9 +142,9 @@ s8 sbp_msg_ssr_stec_correction_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_stec_correction_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ssr_stec_correction_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ssr_stec_correction_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_stec_correction_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ssr_stec_correction_t @@ -161,8 +161,9 @@ s8 sbp_msg_ssr_stec_correction_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ssr_stec_correction_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_stec_correction_cmp(const sbp_msg_ssr_stec_correction_t *a, - const sbp_msg_ssr_stec_correction_t *b); +SBP_EXPORT int sbp_msg_ssr_stec_correction_cmp( + const sbp_msg_ssr_stec_correction_t *a, + const sbp_msg_ssr_stec_correction_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION_DEP_A.h b/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION_DEP_A.h index 7178ddf6fb..a7ff0f3f63 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION_DEP_A.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION_DEP_A.h @@ -96,7 +96,7 @@ static inline size_t sbp_msg_ssr_stec_correction_dep_a_encoded_len( * @param msg Instance of sbp_msg_ssr_stec_correction_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_stec_correction_dep_a_encode( +SBP_EXPORT s8 sbp_msg_ssr_stec_correction_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_ssr_stec_correction_dep_a_t *msg); @@ -117,7 +117,7 @@ s8 sbp_msg_ssr_stec_correction_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_stec_correction_dep_a_decode( +SBP_EXPORT s8 sbp_msg_ssr_stec_correction_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_ssr_stec_correction_dep_a_t *msg); /** @@ -137,7 +137,7 @@ s8 sbp_msg_ssr_stec_correction_dep_a_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_stec_correction_dep_a_send( +SBP_EXPORT s8 sbp_msg_ssr_stec_correction_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_stec_correction_dep_a_t *msg, sbp_write_fn_t write); @@ -156,7 +156,7 @@ s8 sbp_msg_ssr_stec_correction_dep_a_send( * @param b sbp_msg_ssr_stec_correction_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_stec_correction_dep_a_cmp( +SBP_EXPORT int sbp_msg_ssr_stec_correction_dep_a_cmp( const sbp_msg_ssr_stec_correction_dep_a_t *a, const sbp_msg_ssr_stec_correction_dep_a_t *b); diff --git a/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h b/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h index 8e12a15f9e..d7d02b89d2 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h @@ -162,9 +162,9 @@ static inline size_t sbp_msg_ssr_tile_definition_encoded_len( * @param msg Instance of sbp_msg_ssr_tile_definition_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_tile_definition_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_ssr_tile_definition_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_tile_definition_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_tile_definition_t *msg); /** * Decode an instance of sbp_msg_ssr_tile_definition_t from wire representation @@ -181,9 +181,9 @@ s8 sbp_msg_ssr_tile_definition_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_tile_definition_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_ssr_tile_definition_t *msg); +SBP_EXPORT s8 sbp_msg_ssr_tile_definition_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_tile_definition_t *msg); /** * Send an instance of sbp_msg_ssr_tile_definition_t with the given write * function @@ -201,9 +201,9 @@ s8 sbp_msg_ssr_tile_definition_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ssr_tile_definition_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ssr_tile_definition_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ssr_tile_definition_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_ssr_tile_definition_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ssr_tile_definition_t @@ -220,8 +220,9 @@ s8 sbp_msg_ssr_tile_definition_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ssr_tile_definition_t instance * @return 0, <0, >0 */ -int sbp_msg_ssr_tile_definition_cmp(const sbp_msg_ssr_tile_definition_t *a, - const sbp_msg_ssr_tile_definition_t *b); +SBP_EXPORT int sbp_msg_ssr_tile_definition_cmp( + const sbp_msg_ssr_tile_definition_t *a, + const sbp_msg_ssr_tile_definition_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/PhaseBiasesContent.h b/c/include/libsbp/v4/ssr/PhaseBiasesContent.h index 84990ed40a..0e8255e70d 100644 --- a/c/include/libsbp/v4/ssr/PhaseBiasesContent.h +++ b/c/include/libsbp/v4/ssr/PhaseBiasesContent.h @@ -102,9 +102,9 @@ static inline size_t sbp_phase_biases_content_encoded_len( * @param msg Instance of sbp_phase_biases_content_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_phase_biases_content_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_phase_biases_content_t *msg); +SBP_EXPORT s8 +sbp_phase_biases_content_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_phase_biases_content_t *msg); /** * Decode an instance of sbp_phase_biases_content_t from wire representation @@ -121,9 +121,9 @@ s8 sbp_phase_biases_content_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_phase_biases_content_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_phase_biases_content_t *msg); +SBP_EXPORT s8 sbp_phase_biases_content_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_phase_biases_content_t *msg); /** * Compare two instances of sbp_phase_biases_content_t @@ -140,8 +140,8 @@ s8 sbp_phase_biases_content_decode(const uint8_t *buf, uint8_t len, * @param b sbp_phase_biases_content_t instance * @return 0, <0, >0 */ -int sbp_phase_biases_content_cmp(const sbp_phase_biases_content_t *a, - const sbp_phase_biases_content_t *b); +SBP_EXPORT int sbp_phase_biases_content_cmp( + const sbp_phase_biases_content_t *a, const sbp_phase_biases_content_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/STECHeader.h b/c/include/libsbp/v4/ssr/STECHeader.h index 564cef1cfa..464f5be901 100644 --- a/c/include/libsbp/v4/ssr/STECHeader.h +++ b/c/include/libsbp/v4/ssr/STECHeader.h @@ -113,8 +113,9 @@ static inline size_t sbp_stec_header_encoded_len(const sbp_stec_header_t *msg) { * @param msg Instance of sbp_stec_header_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_header_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_stec_header_t *msg); +SBP_EXPORT s8 sbp_stec_header_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_stec_header_t *msg); /** * Decode an instance of sbp_stec_header_t from wire representation @@ -131,8 +132,8 @@ s8 sbp_stec_header_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_header_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_stec_header_t *msg); +SBP_EXPORT s8 sbp_stec_header_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_stec_header_t *msg); /** * Compare two instances of sbp_stec_header_t @@ -149,7 +150,8 @@ s8 sbp_stec_header_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_stec_header_t instance * @return 0, <0, >0 */ -int sbp_stec_header_cmp(const sbp_stec_header_t *a, const sbp_stec_header_t *b); +SBP_EXPORT int sbp_stec_header_cmp(const sbp_stec_header_t *a, + const sbp_stec_header_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/STECHeaderDepA.h b/c/include/libsbp/v4/ssr/STECHeaderDepA.h index fa5df125f5..71a347b3c1 100644 --- a/c/include/libsbp/v4/ssr/STECHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/STECHeaderDepA.h @@ -104,8 +104,9 @@ static inline size_t sbp_stec_header_dep_a_encoded_len( * @param msg Instance of sbp_stec_header_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_header_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_stec_header_dep_a_t *msg); +SBP_EXPORT s8 sbp_stec_header_dep_a_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_stec_header_dep_a_t *msg); /** * Decode an instance of sbp_stec_header_dep_a_t from wire representation @@ -122,8 +123,9 @@ s8 sbp_stec_header_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_header_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_stec_header_dep_a_t *msg); +SBP_EXPORT s8 sbp_stec_header_dep_a_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_stec_header_dep_a_t *msg); /** * Compare two instances of sbp_stec_header_dep_a_t @@ -140,8 +142,8 @@ s8 sbp_stec_header_dep_a_decode(const uint8_t *buf, uint8_t len, * @param b sbp_stec_header_dep_a_t instance * @return 0, <0, >0 */ -int sbp_stec_header_dep_a_cmp(const sbp_stec_header_dep_a_t *a, - const sbp_stec_header_dep_a_t *b); +SBP_EXPORT int sbp_stec_header_dep_a_cmp(const sbp_stec_header_dep_a_t *a, + const sbp_stec_header_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/STECResidual.h b/c/include/libsbp/v4/ssr/STECResidual.h index 93e63f040a..190a1a3bda 100644 --- a/c/include/libsbp/v4/ssr/STECResidual.h +++ b/c/include/libsbp/v4/ssr/STECResidual.h @@ -94,8 +94,9 @@ static inline size_t sbp_stec_residual_encoded_len( * @param msg Instance of sbp_stec_residual_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_residual_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_stec_residual_t *msg); +SBP_EXPORT s8 sbp_stec_residual_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_stec_residual_t *msg); /** * Decode an instance of sbp_stec_residual_t from wire representation @@ -112,8 +113,9 @@ s8 sbp_stec_residual_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_residual_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_stec_residual_t *msg); +SBP_EXPORT s8 sbp_stec_residual_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_stec_residual_t *msg); /** * Compare two instances of sbp_stec_residual_t @@ -130,8 +132,8 @@ s8 sbp_stec_residual_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_stec_residual_t instance * @return 0, <0, >0 */ -int sbp_stec_residual_cmp(const sbp_stec_residual_t *a, - const sbp_stec_residual_t *b); +SBP_EXPORT int sbp_stec_residual_cmp(const sbp_stec_residual_t *a, + const sbp_stec_residual_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/STECResidualNoStd.h b/c/include/libsbp/v4/ssr/STECResidualNoStd.h index f772f45724..661d45a9f5 100644 --- a/c/include/libsbp/v4/ssr/STECResidualNoStd.h +++ b/c/include/libsbp/v4/ssr/STECResidualNoStd.h @@ -86,9 +86,9 @@ static inline size_t sbp_stec_residual_no_std_encoded_len( * @param msg Instance of sbp_stec_residual_no_std_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_residual_no_std_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_stec_residual_no_std_t *msg); +SBP_EXPORT s8 +sbp_stec_residual_no_std_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_stec_residual_no_std_t *msg); /** * Decode an instance of sbp_stec_residual_no_std_t from wire representation @@ -105,9 +105,9 @@ s8 sbp_stec_residual_no_std_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_residual_no_std_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_stec_residual_no_std_t *msg); +SBP_EXPORT s8 sbp_stec_residual_no_std_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_stec_residual_no_std_t *msg); /** * Compare two instances of sbp_stec_residual_no_std_t @@ -124,8 +124,8 @@ s8 sbp_stec_residual_no_std_decode(const uint8_t *buf, uint8_t len, * @param b sbp_stec_residual_no_std_t instance * @return 0, <0, >0 */ -int sbp_stec_residual_no_std_cmp(const sbp_stec_residual_no_std_t *a, - const sbp_stec_residual_no_std_t *b); +SBP_EXPORT int sbp_stec_residual_no_std_cmp( + const sbp_stec_residual_no_std_t *a, const sbp_stec_residual_no_std_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/STECSatElement.h b/c/include/libsbp/v4/ssr/STECSatElement.h index f1e9c81797..63960a8b5a 100644 --- a/c/include/libsbp/v4/ssr/STECSatElement.h +++ b/c/include/libsbp/v4/ssr/STECSatElement.h @@ -93,8 +93,9 @@ static inline size_t sbp_stec_sat_element_encoded_len( * @param msg Instance of sbp_stec_sat_element_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_sat_element_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_stec_sat_element_t *msg); +SBP_EXPORT s8 sbp_stec_sat_element_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_stec_sat_element_t *msg); /** * Decode an instance of sbp_stec_sat_element_t from wire representation @@ -111,8 +112,9 @@ s8 sbp_stec_sat_element_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_stec_sat_element_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_stec_sat_element_t *msg); +SBP_EXPORT s8 sbp_stec_sat_element_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_stec_sat_element_t *msg); /** * Compare two instances of sbp_stec_sat_element_t @@ -129,8 +131,8 @@ s8 sbp_stec_sat_element_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_stec_sat_element_t instance * @return 0, <0, >0 */ -int sbp_stec_sat_element_cmp(const sbp_stec_sat_element_t *a, - const sbp_stec_sat_element_t *b); +SBP_EXPORT int sbp_stec_sat_element_cmp(const sbp_stec_sat_element_t *a, + const sbp_stec_sat_element_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/SatelliteAPC.h b/c/include/libsbp/v4/ssr/SatelliteAPC.h index fef0c8c942..dee1ab2ea0 100644 --- a/c/include/libsbp/v4/ssr/SatelliteAPC.h +++ b/c/include/libsbp/v4/ssr/SatelliteAPC.h @@ -105,8 +105,9 @@ static inline size_t sbp_satellite_apc_encoded_len( * @param msg Instance of sbp_satellite_apc_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_satellite_apc_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_satellite_apc_t *msg); +SBP_EXPORT s8 sbp_satellite_apc_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_satellite_apc_t *msg); /** * Decode an instance of sbp_satellite_apc_t from wire representation @@ -123,8 +124,9 @@ s8 sbp_satellite_apc_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_satellite_apc_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_satellite_apc_t *msg); +SBP_EXPORT s8 sbp_satellite_apc_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_satellite_apc_t *msg); /** * Compare two instances of sbp_satellite_apc_t @@ -141,8 +143,8 @@ s8 sbp_satellite_apc_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param b sbp_satellite_apc_t instance * @return 0, <0, >0 */ -int sbp_satellite_apc_cmp(const sbp_satellite_apc_t *a, - const sbp_satellite_apc_t *b); +SBP_EXPORT int sbp_satellite_apc_cmp(const sbp_satellite_apc_t *a, + const sbp_satellite_apc_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h b/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h index 1b961d6d0a..0ad1655ca0 100644 --- a/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h +++ b/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h @@ -94,7 +94,7 @@ static inline size_t sbp_tropospheric_delay_correction_encoded_len( * @param msg Instance of sbp_tropospheric_delay_correction_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tropospheric_delay_correction_encode( +SBP_EXPORT s8 sbp_tropospheric_delay_correction_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_tropospheric_delay_correction_t *msg); @@ -115,7 +115,7 @@ s8 sbp_tropospheric_delay_correction_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tropospheric_delay_correction_decode( +SBP_EXPORT s8 sbp_tropospheric_delay_correction_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_tropospheric_delay_correction_t *msg); @@ -134,7 +134,7 @@ s8 sbp_tropospheric_delay_correction_decode( * @param b sbp_tropospheric_delay_correction_t instance * @return 0, <0, >0 */ -int sbp_tropospheric_delay_correction_cmp( +SBP_EXPORT int sbp_tropospheric_delay_correction_cmp( const sbp_tropospheric_delay_correction_t *a, const sbp_tropospheric_delay_correction_t *b); diff --git a/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h b/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h index 46775a878f..76591dcb66 100644 --- a/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h +++ b/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h @@ -87,7 +87,7 @@ static inline size_t sbp_tropospheric_delay_correction_no_std_encoded_len( * @param msg Instance of sbp_tropospheric_delay_correction_no_std_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tropospheric_delay_correction_no_std_encode( +SBP_EXPORT s8 sbp_tropospheric_delay_correction_no_std_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_tropospheric_delay_correction_no_std_t *msg); @@ -109,7 +109,7 @@ s8 sbp_tropospheric_delay_correction_no_std_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tropospheric_delay_correction_no_std_decode( +SBP_EXPORT s8 sbp_tropospheric_delay_correction_no_std_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_tropospheric_delay_correction_no_std_t *msg); @@ -128,7 +128,7 @@ s8 sbp_tropospheric_delay_correction_no_std_decode( * @param b sbp_tropospheric_delay_correction_no_std_t instance * @return 0, <0, >0 */ -int sbp_tropospheric_delay_correction_no_std_cmp( +SBP_EXPORT int sbp_tropospheric_delay_correction_no_std_cmp( const sbp_tropospheric_delay_correction_no_std_t *a, const sbp_tropospheric_delay_correction_no_std_t *b); diff --git a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h index cac457add0..8cf7de6859 100644 --- a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h +++ b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h @@ -62,7 +62,8 @@ typedef struct { * * @param msg sbp_msg_csac_telemetry_t instance */ -void sbp_msg_csac_telemetry_telemetry_init(sbp_msg_csac_telemetry_t *msg); +SBP_EXPORT void sbp_msg_csac_telemetry_telemetry_init( + sbp_msg_csac_telemetry_t *msg); /** * Test sbp_msg_csac_telemetry_t::telemetry for validity @@ -71,7 +72,7 @@ void sbp_msg_csac_telemetry_telemetry_init(sbp_msg_csac_telemetry_t *msg); * @return true is sbp_msg_csac_telemetry_t::telemetry is valid for encoding * purposes, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_valid( +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_valid( const sbp_msg_csac_telemetry_t *msg); /** @@ -84,8 +85,8 @@ bool sbp_msg_csac_telemetry_telemetry_valid( * @param b sbp_msg_csac_telemetry_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_csac_telemetry_telemetry_strcmp(const sbp_msg_csac_telemetry_t *a, - const sbp_msg_csac_telemetry_t *b); +SBP_EXPORT int sbp_msg_csac_telemetry_telemetry_strcmp( + const sbp_msg_csac_telemetry_t *a, const sbp_msg_csac_telemetry_t *b); /** * Get the encoded size of sbp_msg_csac_telemetry_t::telemetry @@ -93,7 +94,7 @@ int sbp_msg_csac_telemetry_telemetry_strcmp(const sbp_msg_csac_telemetry_t *a, * @param msg sbp_msg_csac_telemetry_t instance * @return Size of sbp_msg_csac_telemetry_t::telemetry in wire representation */ -size_t sbp_msg_csac_telemetry_telemetry_encoded_len( +SBP_EXPORT size_t sbp_msg_csac_telemetry_telemetry_encoded_len( const sbp_msg_csac_telemetry_t *msg); /** @@ -106,7 +107,7 @@ size_t sbp_msg_csac_telemetry_telemetry_encoded_len( * @param msg sbp_msg_csac_telemetry_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_csac_telemetry_telemetry_space_remaining( +SBP_EXPORT size_t sbp_msg_csac_telemetry_telemetry_space_remaining( const sbp_msg_csac_telemetry_t *msg); /** * Set sbp_msg_csac_telemetry_t::telemetry @@ -125,9 +126,9 @@ size_t sbp_msg_csac_telemetry_telemetry_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_set(sbp_msg_csac_telemetry_t *msg, - const char *new_str, - bool should_trunc, size_t *n_written); +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_set( + sbp_msg_csac_telemetry_t *msg, const char *new_str, bool should_trunc, + size_t *n_written); /** * Set sbp_msg_csac_telemetry_t::telemetry from a raw buffer @@ -147,11 +148,9 @@ bool sbp_msg_csac_telemetry_telemetry_set(sbp_msg_csac_telemetry_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_set_raw(sbp_msg_csac_telemetry_t *msg, - const char *new_buf, - size_t new_buf_len, - bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_set_raw( + sbp_msg_csac_telemetry_t *msg, const char *new_buf, size_t new_buf_len, + bool should_trunc, size_t *n_written); /** * Set sbp_msg_csac_telemetry_t::telemetry with printf style formatting @@ -171,10 +170,9 @@ bool sbp_msg_csac_telemetry_telemetry_set_raw(sbp_msg_csac_telemetry_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_printf(sbp_msg_csac_telemetry_t *msg, - bool should_trunc, - size_t *n_written, const char *fmt, - ...) SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_printf( + sbp_msg_csac_telemetry_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Set sbp_msg_csac_telemetry_t::telemetry with printf style formatting @@ -190,11 +188,9 @@ bool sbp_msg_csac_telemetry_telemetry_printf(sbp_msg_csac_telemetry_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_vprintf(sbp_msg_csac_telemetry_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_vprintf( + sbp_msg_csac_telemetry_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append sbp_msg_csac_telemetry_t::telemetry with printf style formatting @@ -212,7 +208,7 @@ bool sbp_msg_csac_telemetry_telemetry_vprintf(sbp_msg_csac_telemetry_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_append_printf( +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_append_printf( sbp_msg_csac_telemetry_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -230,7 +226,7 @@ bool sbp_msg_csac_telemetry_telemetry_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_telemetry_append_vprintf( +SBP_EXPORT bool sbp_msg_csac_telemetry_telemetry_append_vprintf( sbp_msg_csac_telemetry_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -240,7 +236,7 @@ bool sbp_msg_csac_telemetry_telemetry_append_vprintf( * @param msg sbp_msg_csac_telemetry_t instance * @return String contents */ -const char *sbp_msg_csac_telemetry_telemetry_get( +SBP_EXPORT const char *sbp_msg_csac_telemetry_telemetry_get( const sbp_msg_csac_telemetry_t *msg); /** @@ -251,8 +247,8 @@ const char *sbp_msg_csac_telemetry_telemetry_get( * @param msg sbp_msg_csac_telemetry_t instance * @return Length of string */ -size_t sbp_msg_csac_telemetry_telemetry_strlen( - const sbp_msg_csac_telemetry_t *msg); +SBP_EXPORT size_t +sbp_msg_csac_telemetry_telemetry_strlen(const sbp_msg_csac_telemetry_t *msg); /** * Get encoded size of an instance of sbp_msg_csac_telemetry_t @@ -285,8 +281,9 @@ static inline size_t sbp_msg_csac_telemetry_encoded_len( * @param msg Instance of sbp_msg_csac_telemetry_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_csac_telemetry_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_csac_telemetry_t *msg); +SBP_EXPORT s8 +sbp_msg_csac_telemetry_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_csac_telemetry_t *msg); /** * Decode an instance of sbp_msg_csac_telemetry_t from wire representation @@ -303,9 +300,9 @@ s8 sbp_msg_csac_telemetry_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_csac_telemetry_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_csac_telemetry_t *msg); +SBP_EXPORT s8 sbp_msg_csac_telemetry_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_csac_telemetry_t *msg); /** * Send an instance of sbp_msg_csac_telemetry_t with the given write function * @@ -322,9 +319,9 @@ s8 sbp_msg_csac_telemetry_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_csac_telemetry_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_csac_telemetry_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_csac_telemetry_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_csac_telemetry_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_csac_telemetry_t @@ -341,8 +338,8 @@ s8 sbp_msg_csac_telemetry_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_csac_telemetry_t instance * @return 0, <0, >0 */ -int sbp_msg_csac_telemetry_cmp(const sbp_msg_csac_telemetry_t *a, - const sbp_msg_csac_telemetry_t *b); +SBP_EXPORT int sbp_msg_csac_telemetry_cmp(const sbp_msg_csac_telemetry_t *a, + const sbp_msg_csac_telemetry_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h index 7e60ee5c7c..9b9a083548 100644 --- a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h +++ b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h @@ -62,7 +62,7 @@ typedef struct { * * @param msg sbp_msg_csac_telemetry_labels_t instance */ -void sbp_msg_csac_telemetry_labels_telemetry_labels_init( +SBP_EXPORT void sbp_msg_csac_telemetry_labels_telemetry_labels_init( sbp_msg_csac_telemetry_labels_t *msg); /** @@ -72,7 +72,7 @@ void sbp_msg_csac_telemetry_labels_telemetry_labels_init( * @return true is sbp_msg_csac_telemetry_labels_t::telemetry_labels is valid * for encoding purposes, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_valid( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_valid( const sbp_msg_csac_telemetry_labels_t *msg); /** @@ -86,7 +86,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_valid( * @param b sbp_msg_csac_telemetry_labels_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_csac_telemetry_labels_telemetry_labels_strcmp( +SBP_EXPORT int sbp_msg_csac_telemetry_labels_telemetry_labels_strcmp( const sbp_msg_csac_telemetry_labels_t *a, const sbp_msg_csac_telemetry_labels_t *b); @@ -97,7 +97,7 @@ int sbp_msg_csac_telemetry_labels_telemetry_labels_strcmp( * @return Size of sbp_msg_csac_telemetry_labels_t::telemetry_labels in wire * representation */ -size_t sbp_msg_csac_telemetry_labels_telemetry_labels_encoded_len( +SBP_EXPORT size_t sbp_msg_csac_telemetry_labels_telemetry_labels_encoded_len( const sbp_msg_csac_telemetry_labels_t *msg); /** @@ -110,7 +110,8 @@ size_t sbp_msg_csac_telemetry_labels_telemetry_labels_encoded_len( * @param msg sbp_msg_csac_telemetry_labels_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_csac_telemetry_labels_telemetry_labels_space_remaining( +SBP_EXPORT size_t +sbp_msg_csac_telemetry_labels_telemetry_labels_space_remaining( const sbp_msg_csac_telemetry_labels_t *msg); /** * Set sbp_msg_csac_telemetry_labels_t::telemetry_labels @@ -129,7 +130,7 @@ size_t sbp_msg_csac_telemetry_labels_telemetry_labels_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_set( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_set( sbp_msg_csac_telemetry_labels_t *msg, const char *new_str, bool should_trunc, size_t *n_written); @@ -151,7 +152,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_set( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_set_raw( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_set_raw( sbp_msg_csac_telemetry_labels_t *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); @@ -174,7 +175,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_set_raw( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_printf( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_printf( sbp_msg_csac_telemetry_labels_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -193,7 +194,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_vprintf( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_vprintf( sbp_msg_csac_telemetry_labels_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -214,7 +215,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_vprintf( * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_append_printf( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_append_printf( sbp_msg_csac_telemetry_labels_t *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); @@ -233,7 +234,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_append_printf( * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_csac_telemetry_labels_telemetry_labels_append_vprintf( +SBP_EXPORT bool sbp_msg_csac_telemetry_labels_telemetry_labels_append_vprintf( sbp_msg_csac_telemetry_labels_t *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); @@ -244,7 +245,7 @@ bool sbp_msg_csac_telemetry_labels_telemetry_labels_append_vprintf( * @param msg sbp_msg_csac_telemetry_labels_t instance * @return String contents */ -const char *sbp_msg_csac_telemetry_labels_telemetry_labels_get( +SBP_EXPORT const char *sbp_msg_csac_telemetry_labels_telemetry_labels_get( const sbp_msg_csac_telemetry_labels_t *msg); /** @@ -255,7 +256,7 @@ const char *sbp_msg_csac_telemetry_labels_telemetry_labels_get( * @param msg sbp_msg_csac_telemetry_labels_t instance * @return Length of string */ -size_t sbp_msg_csac_telemetry_labels_telemetry_labels_strlen( +SBP_EXPORT size_t sbp_msg_csac_telemetry_labels_telemetry_labels_strlen( const sbp_msg_csac_telemetry_labels_t *msg); /** @@ -289,7 +290,7 @@ static inline size_t sbp_msg_csac_telemetry_labels_encoded_len( * @param msg Instance of sbp_msg_csac_telemetry_labels_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_csac_telemetry_labels_encode( +SBP_EXPORT s8 sbp_msg_csac_telemetry_labels_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_csac_telemetry_labels_t *msg); @@ -310,9 +311,9 @@ s8 sbp_msg_csac_telemetry_labels_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_csac_telemetry_labels_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_csac_telemetry_labels_t *msg); +SBP_EXPORT s8 sbp_msg_csac_telemetry_labels_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_csac_telemetry_labels_t *msg); /** * Send an instance of sbp_msg_csac_telemetry_labels_t with the given write * function @@ -330,7 +331,7 @@ s8 sbp_msg_csac_telemetry_labels_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_csac_telemetry_labels_send( +SBP_EXPORT s8 sbp_msg_csac_telemetry_labels_send( sbp_state_t *s, u16 sender_id, const sbp_msg_csac_telemetry_labels_t *msg, sbp_write_fn_t write); @@ -349,8 +350,9 @@ s8 sbp_msg_csac_telemetry_labels_send( * @param b sbp_msg_csac_telemetry_labels_t instance * @return 0, <0, >0 */ -int sbp_msg_csac_telemetry_labels_cmp(const sbp_msg_csac_telemetry_labels_t *a, - const sbp_msg_csac_telemetry_labels_t *b); +SBP_EXPORT int sbp_msg_csac_telemetry_labels_cmp( + const sbp_msg_csac_telemetry_labels_t *a, + const sbp_msg_csac_telemetry_labels_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h b/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h index 0639e10e7b..59bd20f787 100644 --- a/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h +++ b/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h @@ -71,7 +71,7 @@ typedef struct { * * @param msg sbp_msg_dgnss_status_t instance */ -void sbp_msg_dgnss_status_source_init(sbp_msg_dgnss_status_t *msg); +SBP_EXPORT void sbp_msg_dgnss_status_source_init(sbp_msg_dgnss_status_t *msg); /** * Test sbp_msg_dgnss_status_t::source for validity @@ -80,7 +80,8 @@ void sbp_msg_dgnss_status_source_init(sbp_msg_dgnss_status_t *msg); * @return true is sbp_msg_dgnss_status_t::source is valid for encoding * purposes, false otherwise */ -bool sbp_msg_dgnss_status_source_valid(const sbp_msg_dgnss_status_t *msg); +SBP_EXPORT bool sbp_msg_dgnss_status_source_valid( + const sbp_msg_dgnss_status_t *msg); /** * Tests 2 instances of sbp_msg_dgnss_status_t::source for equality @@ -92,8 +93,8 @@ bool sbp_msg_dgnss_status_source_valid(const sbp_msg_dgnss_status_t *msg); * @param b sbp_msg_dgnss_status_t instance * @return 0 if equal, <0 if a0 if a>b */ -int sbp_msg_dgnss_status_source_strcmp(const sbp_msg_dgnss_status_t *a, - const sbp_msg_dgnss_status_t *b); +SBP_EXPORT int sbp_msg_dgnss_status_source_strcmp( + const sbp_msg_dgnss_status_t *a, const sbp_msg_dgnss_status_t *b); /** * Get the encoded size of sbp_msg_dgnss_status_t::source @@ -101,8 +102,8 @@ int sbp_msg_dgnss_status_source_strcmp(const sbp_msg_dgnss_status_t *a, * @param msg sbp_msg_dgnss_status_t instance * @return Size of sbp_msg_dgnss_status_t::source in wire representation */ -size_t sbp_msg_dgnss_status_source_encoded_len( - const sbp_msg_dgnss_status_t *msg); +SBP_EXPORT size_t +sbp_msg_dgnss_status_source_encoded_len(const sbp_msg_dgnss_status_t *msg); /** * Query sbp_msg_dgnss_status_t::source for remaining space @@ -114,8 +115,8 @@ size_t sbp_msg_dgnss_status_source_encoded_len( * @param msg sbp_msg_dgnss_status_t instance * @return Maximum number of bytes that can be appended to the existing string */ -size_t sbp_msg_dgnss_status_source_space_remaining( - const sbp_msg_dgnss_status_t *msg); +SBP_EXPORT size_t +sbp_msg_dgnss_status_source_space_remaining(const sbp_msg_dgnss_status_t *msg); /** * Set sbp_msg_dgnss_status_t::source * @@ -133,9 +134,10 @@ size_t sbp_msg_dgnss_status_source_space_remaining( * written to msg * @return true on success, false otherwise */ -bool sbp_msg_dgnss_status_source_set(sbp_msg_dgnss_status_t *msg, - const char *new_str, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_dgnss_status_source_set(sbp_msg_dgnss_status_t *msg, + const char *new_str, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_dgnss_status_t::source from a raw buffer @@ -155,10 +157,11 @@ bool sbp_msg_dgnss_status_source_set(sbp_msg_dgnss_status_t *msg, * written to msg * @return true on success, false otherwise */ -bool sbp_msg_dgnss_status_source_set_raw(sbp_msg_dgnss_status_t *msg, - const char *new_buf, - size_t new_buf_len, bool should_trunc, - size_t *n_written); +SBP_EXPORT bool sbp_msg_dgnss_status_source_set_raw(sbp_msg_dgnss_status_t *msg, + const char *new_buf, + size_t new_buf_len, + bool should_trunc, + size_t *n_written); /** * Set sbp_msg_dgnss_status_t::source with printf style formatting @@ -178,9 +181,10 @@ bool sbp_msg_dgnss_status_source_set_raw(sbp_msg_dgnss_status_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_dgnss_status_source_printf(sbp_msg_dgnss_status_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, ...) +SBP_EXPORT bool sbp_msg_dgnss_status_source_printf(sbp_msg_dgnss_status_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** @@ -197,9 +201,10 @@ bool sbp_msg_dgnss_status_source_printf(sbp_msg_dgnss_status_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_dgnss_status_source_vprintf(sbp_msg_dgnss_status_t *msg, - bool should_trunc, size_t *n_written, - const char *fmt, va_list ap) +SBP_EXPORT bool sbp_msg_dgnss_status_source_vprintf(sbp_msg_dgnss_status_t *msg, + bool should_trunc, + size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** @@ -218,11 +223,9 @@ bool sbp_msg_dgnss_status_source_vprintf(sbp_msg_dgnss_status_t *msg, * @param fmt printf style format string * @return true on success, false otherwise */ -bool sbp_msg_dgnss_status_source_append_printf(sbp_msg_dgnss_status_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, ...) - SBP_ATTR_FORMAT(4, 5); +SBP_EXPORT bool sbp_msg_dgnss_status_source_append_printf( + sbp_msg_dgnss_status_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, ...) SBP_ATTR_FORMAT(4, 5); /** * Append sbp_msg_dgnss_status_t::source with printf style formatting @@ -238,11 +241,9 @@ bool sbp_msg_dgnss_status_source_append_printf(sbp_msg_dgnss_status_t *msg, * @param ap Argument list * @return true on success, false otherwise */ -bool sbp_msg_dgnss_status_source_append_vprintf(sbp_msg_dgnss_status_t *msg, - bool should_trunc, - size_t *n_written, - const char *fmt, va_list ap) - SBP_ATTR_VFORMAT(4); +SBP_EXPORT bool sbp_msg_dgnss_status_source_append_vprintf( + sbp_msg_dgnss_status_t *msg, bool should_trunc, size_t *n_written, + const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Obtain the string value from sbp_msg_dgnss_status_t::source @@ -250,7 +251,8 @@ bool sbp_msg_dgnss_status_source_append_vprintf(sbp_msg_dgnss_status_t *msg, * @param msg sbp_msg_dgnss_status_t instance * @return String contents */ -const char *sbp_msg_dgnss_status_source_get(const sbp_msg_dgnss_status_t *msg); +SBP_EXPORT const char *sbp_msg_dgnss_status_source_get( + const sbp_msg_dgnss_status_t *msg); /** * Obtain the length of sbp_msg_dgnss_status_t::source @@ -260,7 +262,8 @@ const char *sbp_msg_dgnss_status_source_get(const sbp_msg_dgnss_status_t *msg); * @param msg sbp_msg_dgnss_status_t instance * @return Length of string */ -size_t sbp_msg_dgnss_status_source_strlen(const sbp_msg_dgnss_status_t *msg); +SBP_EXPORT size_t +sbp_msg_dgnss_status_source_strlen(const sbp_msg_dgnss_status_t *msg); /** * Get encoded size of an instance of sbp_msg_dgnss_status_t @@ -293,8 +296,9 @@ static inline size_t sbp_msg_dgnss_status_encoded_len( * @param msg Instance of sbp_msg_dgnss_status_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dgnss_status_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_dgnss_status_t *msg); +SBP_EXPORT s8 sbp_msg_dgnss_status_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_dgnss_status_t *msg); /** * Decode an instance of sbp_msg_dgnss_status_t from wire representation @@ -311,8 +315,9 @@ s8 sbp_msg_dgnss_status_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dgnss_status_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_dgnss_status_t *msg); +SBP_EXPORT s8 sbp_msg_dgnss_status_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_dgnss_status_t *msg); /** * Send an instance of sbp_msg_dgnss_status_t with the given write function * @@ -329,9 +334,9 @@ s8 sbp_msg_dgnss_status_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_dgnss_status_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_dgnss_status_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_dgnss_status_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_dgnss_status_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_dgnss_status_t @@ -348,8 +353,8 @@ s8 sbp_msg_dgnss_status_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_dgnss_status_t instance * @return 0, <0, >0 */ -int sbp_msg_dgnss_status_cmp(const sbp_msg_dgnss_status_t *a, - const sbp_msg_dgnss_status_t *b); +SBP_EXPORT int sbp_msg_dgnss_status_cmp(const sbp_msg_dgnss_status_t *a, + const sbp_msg_dgnss_status_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h b/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h index 92572e3d25..0ce2e3fd7d 100644 --- a/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h +++ b/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h @@ -97,9 +97,9 @@ static inline size_t sbp_msg_gnss_time_offset_encoded_len( * @param msg Instance of sbp_msg_gnss_time_offset_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gnss_time_offset_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_gnss_time_offset_t *msg); +SBP_EXPORT s8 +sbp_msg_gnss_time_offset_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_gnss_time_offset_t *msg); /** * Decode an instance of sbp_msg_gnss_time_offset_t from wire representation @@ -116,9 +116,9 @@ s8 sbp_msg_gnss_time_offset_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gnss_time_offset_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_gnss_time_offset_t *msg); +SBP_EXPORT s8 sbp_msg_gnss_time_offset_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_gnss_time_offset_t *msg); /** * Send an instance of sbp_msg_gnss_time_offset_t with the given write function * @@ -135,9 +135,9 @@ s8 sbp_msg_gnss_time_offset_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_gnss_time_offset_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_gnss_time_offset_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_gnss_time_offset_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_gnss_time_offset_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_gnss_time_offset_t @@ -154,8 +154,8 @@ s8 sbp_msg_gnss_time_offset_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_gnss_time_offset_t instance * @return 0, <0, >0 */ -int sbp_msg_gnss_time_offset_cmp(const sbp_msg_gnss_time_offset_t *a, - const sbp_msg_gnss_time_offset_t *b); +SBP_EXPORT int sbp_msg_gnss_time_offset_cmp( + const sbp_msg_gnss_time_offset_t *a, const sbp_msg_gnss_time_offset_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_GROUP_META.h b/c/include/libsbp/v4/system/MSG_GROUP_META.h index 3cebcdf593..7038ca59d8 100644 --- a/c/include/libsbp/v4/system/MSG_GROUP_META.h +++ b/c/include/libsbp/v4/system/MSG_GROUP_META.h @@ -98,8 +98,9 @@ static inline size_t sbp_msg_group_meta_encoded_len( * @param msg Instance of sbp_msg_group_meta_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_meta_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_group_meta_t *msg); +SBP_EXPORT s8 sbp_msg_group_meta_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_group_meta_t *msg); /** * Decode an instance of sbp_msg_group_meta_t from wire representation @@ -116,8 +117,9 @@ s8 sbp_msg_group_meta_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_meta_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_group_meta_t *msg); +SBP_EXPORT s8 sbp_msg_group_meta_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_group_meta_t *msg); /** * Send an instance of sbp_msg_group_meta_t with the given write function * @@ -134,9 +136,9 @@ s8 sbp_msg_group_meta_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_group_meta_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_group_meta_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_group_meta_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_group_meta_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_group_meta_t @@ -153,8 +155,8 @@ s8 sbp_msg_group_meta_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_group_meta_t instance * @return 0, <0, >0 */ -int sbp_msg_group_meta_cmp(const sbp_msg_group_meta_t *a, - const sbp_msg_group_meta_t *b); +SBP_EXPORT int sbp_msg_group_meta_cmp(const sbp_msg_group_meta_t *a, + const sbp_msg_group_meta_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_HEARTBEAT.h b/c/include/libsbp/v4/system/MSG_HEARTBEAT.h index 7b95d43fa2..e8e1e70aa6 100644 --- a/c/include/libsbp/v4/system/MSG_HEARTBEAT.h +++ b/c/include/libsbp/v4/system/MSG_HEARTBEAT.h @@ -85,8 +85,9 @@ static inline size_t sbp_msg_heartbeat_encoded_len( * @param msg Instance of sbp_msg_heartbeat_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_heartbeat_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_heartbeat_t *msg); +SBP_EXPORT s8 sbp_msg_heartbeat_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_heartbeat_t *msg); /** * Decode an instance of sbp_msg_heartbeat_t from wire representation @@ -103,8 +104,9 @@ s8 sbp_msg_heartbeat_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_heartbeat_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_heartbeat_t *msg); +SBP_EXPORT s8 sbp_msg_heartbeat_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_heartbeat_t *msg); /** * Send an instance of sbp_msg_heartbeat_t with the given write function * @@ -121,8 +123,9 @@ s8 sbp_msg_heartbeat_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_heartbeat_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_heartbeat_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_heartbeat_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_heartbeat_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_heartbeat_t @@ -139,8 +142,8 @@ s8 sbp_msg_heartbeat_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_heartbeat_t instance * @return 0, <0, >0 */ -int sbp_msg_heartbeat_cmp(const sbp_msg_heartbeat_t *a, - const sbp_msg_heartbeat_t *b); +SBP_EXPORT int sbp_msg_heartbeat_cmp(const sbp_msg_heartbeat_t *a, + const sbp_msg_heartbeat_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_INS_STATUS.h b/c/include/libsbp/v4/system/MSG_INS_STATUS.h index 69bd161f0d..ca7cce11be 100644 --- a/c/include/libsbp/v4/system/MSG_INS_STATUS.h +++ b/c/include/libsbp/v4/system/MSG_INS_STATUS.h @@ -81,8 +81,9 @@ static inline size_t sbp_msg_ins_status_encoded_len( * @param msg Instance of sbp_msg_ins_status_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ins_status_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ins_status_t *msg); +SBP_EXPORT s8 sbp_msg_ins_status_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ins_status_t *msg); /** * Decode an instance of sbp_msg_ins_status_t from wire representation @@ -99,8 +100,9 @@ s8 sbp_msg_ins_status_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ins_status_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_ins_status_t *msg); +SBP_EXPORT s8 sbp_msg_ins_status_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ins_status_t *msg); /** * Send an instance of sbp_msg_ins_status_t with the given write function * @@ -117,9 +119,9 @@ s8 sbp_msg_ins_status_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ins_status_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ins_status_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ins_status_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ins_status_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ins_status_t @@ -136,8 +138,8 @@ s8 sbp_msg_ins_status_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ins_status_t instance * @return 0, <0, >0 */ -int sbp_msg_ins_status_cmp(const sbp_msg_ins_status_t *a, - const sbp_msg_ins_status_t *b); +SBP_EXPORT int sbp_msg_ins_status_cmp(const sbp_msg_ins_status_t *a, + const sbp_msg_ins_status_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_INS_UPDATES.h b/c/include/libsbp/v4/system/MSG_INS_UPDATES.h index 86d90206b3..e3aa3c87fa 100644 --- a/c/include/libsbp/v4/system/MSG_INS_UPDATES.h +++ b/c/include/libsbp/v4/system/MSG_INS_UPDATES.h @@ -112,8 +112,9 @@ static inline size_t sbp_msg_ins_updates_encoded_len( * @param msg Instance of sbp_msg_ins_updates_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ins_updates_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_ins_updates_t *msg); +SBP_EXPORT s8 sbp_msg_ins_updates_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_ins_updates_t *msg); /** * Decode an instance of sbp_msg_ins_updates_t from wire representation @@ -130,8 +131,9 @@ s8 sbp_msg_ins_updates_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ins_updates_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_ins_updates_t *msg); +SBP_EXPORT s8 sbp_msg_ins_updates_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_ins_updates_t *msg); /** * Send an instance of sbp_msg_ins_updates_t with the given write function * @@ -148,9 +150,9 @@ s8 sbp_msg_ins_updates_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_ins_updates_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_ins_updates_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_ins_updates_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_ins_updates_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_ins_updates_t @@ -167,8 +169,8 @@ s8 sbp_msg_ins_updates_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_ins_updates_t instance * @return 0, <0, >0 */ -int sbp_msg_ins_updates_cmp(const sbp_msg_ins_updates_t *a, - const sbp_msg_ins_updates_t *b); +SBP_EXPORT int sbp_msg_ins_updates_cmp(const sbp_msg_ins_updates_t *a, + const sbp_msg_ins_updates_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_PPS_TIME.h b/c/include/libsbp/v4/system/MSG_PPS_TIME.h index 6d09d56c26..c879439cdd 100644 --- a/c/include/libsbp/v4/system/MSG_PPS_TIME.h +++ b/c/include/libsbp/v4/system/MSG_PPS_TIME.h @@ -89,8 +89,9 @@ static inline size_t sbp_msg_pps_time_encoded_len( * @param msg Instance of sbp_msg_pps_time_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pps_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_pps_time_t *msg); +SBP_EXPORT s8 sbp_msg_pps_time_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_pps_time_t *msg); /** * Decode an instance of sbp_msg_pps_time_t from wire representation @@ -107,8 +108,8 @@ s8 sbp_msg_pps_time_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pps_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_pps_time_t *msg); +SBP_EXPORT s8 sbp_msg_pps_time_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_pps_time_t *msg); /** * Send an instance of sbp_msg_pps_time_t with the given write function * @@ -125,8 +126,9 @@ s8 sbp_msg_pps_time_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_pps_time_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_pps_time_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_pps_time_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_pps_time_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_pps_time_t @@ -143,8 +145,8 @@ s8 sbp_msg_pps_time_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_pps_time_t instance * @return 0, <0, >0 */ -int sbp_msg_pps_time_cmp(const sbp_msg_pps_time_t *a, - const sbp_msg_pps_time_t *b); +SBP_EXPORT int sbp_msg_pps_time_cmp(const sbp_msg_pps_time_t *a, + const sbp_msg_pps_time_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_STARTUP.h b/c/include/libsbp/v4/system/MSG_STARTUP.h index cde784acd2..ba55461c4e 100644 --- a/c/include/libsbp/v4/system/MSG_STARTUP.h +++ b/c/include/libsbp/v4/system/MSG_STARTUP.h @@ -91,8 +91,9 @@ static inline size_t sbp_msg_startup_encoded_len(const sbp_msg_startup_t *msg) { * @param msg Instance of sbp_msg_startup_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_startup_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_startup_t *msg); +SBP_EXPORT s8 sbp_msg_startup_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_startup_t *msg); /** * Decode an instance of sbp_msg_startup_t from wire representation @@ -109,8 +110,8 @@ s8 sbp_msg_startup_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_startup_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_startup_t *msg); +SBP_EXPORT s8 sbp_msg_startup_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_startup_t *msg); /** * Send an instance of sbp_msg_startup_t with the given write function * @@ -127,8 +128,9 @@ s8 sbp_msg_startup_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_startup_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_startup_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_startup_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_startup_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_startup_t @@ -145,7 +147,8 @@ s8 sbp_msg_startup_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_startup_t instance * @return 0, <0, >0 */ -int sbp_msg_startup_cmp(const sbp_msg_startup_t *a, const sbp_msg_startup_t *b); +SBP_EXPORT int sbp_msg_startup_cmp(const sbp_msg_startup_t *a, + const sbp_msg_startup_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h b/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h index 9a477a17c1..82ff625772 100644 --- a/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h +++ b/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h @@ -116,8 +116,9 @@ static inline size_t sbp_msg_status_report_encoded_len( * @param msg Instance of sbp_msg_status_report_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_status_report_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_status_report_t *msg); +SBP_EXPORT s8 sbp_msg_status_report_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_status_report_t *msg); /** * Decode an instance of sbp_msg_status_report_t from wire representation @@ -134,8 +135,9 @@ s8 sbp_msg_status_report_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_status_report_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_msg_status_report_t *msg); +SBP_EXPORT s8 sbp_msg_status_report_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_status_report_t *msg); /** * Send an instance of sbp_msg_status_report_t with the given write function * @@ -152,9 +154,9 @@ s8 sbp_msg_status_report_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_status_report_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_status_report_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_status_report_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_status_report_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_status_report_t @@ -171,8 +173,8 @@ s8 sbp_msg_status_report_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_status_report_t instance * @return 0, <0, >0 */ -int sbp_msg_status_report_cmp(const sbp_msg_status_report_t *a, - const sbp_msg_status_report_t *b); +SBP_EXPORT int sbp_msg_status_report_cmp(const sbp_msg_status_report_t *a, + const sbp_msg_status_report_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/system/SubSystemReport.h b/c/include/libsbp/v4/system/SubSystemReport.h index 6ad43377c8..25ceaf23ee 100644 --- a/c/include/libsbp/v4/system/SubSystemReport.h +++ b/c/include/libsbp/v4/system/SubSystemReport.h @@ -91,8 +91,9 @@ static inline size_t sbp_sub_system_report_encoded_len( * @param msg Instance of sbp_sub_system_report_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_sub_system_report_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_sub_system_report_t *msg); +SBP_EXPORT s8 sbp_sub_system_report_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_sub_system_report_t *msg); /** * Decode an instance of sbp_sub_system_report_t from wire representation @@ -109,8 +110,9 @@ s8 sbp_sub_system_report_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_sub_system_report_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_sub_system_report_t *msg); +SBP_EXPORT s8 sbp_sub_system_report_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_sub_system_report_t *msg); /** * Compare two instances of sbp_sub_system_report_t @@ -127,8 +129,8 @@ s8 sbp_sub_system_report_decode(const uint8_t *buf, uint8_t len, * @param b sbp_sub_system_report_t instance * @return 0, <0, >0 */ -int sbp_sub_system_report_cmp(const sbp_sub_system_report_t *a, - const sbp_sub_system_report_t *b); +SBP_EXPORT int sbp_sub_system_report_cmp(const sbp_sub_system_report_t *a, + const sbp_sub_system_report_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h b/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h index c61b34c0db..2375630f62 100644 --- a/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h +++ b/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h @@ -94,9 +94,9 @@ static inline size_t sbp_msg_measurement_state_encoded_len( * @param msg Instance of sbp_msg_measurement_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_measurement_state_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_measurement_state_t *msg); +SBP_EXPORT s8 +sbp_msg_measurement_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_measurement_state_t *msg); /** * Decode an instance of sbp_msg_measurement_state_t from wire representation @@ -113,9 +113,9 @@ s8 sbp_msg_measurement_state_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_measurement_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_measurement_state_t *msg); +SBP_EXPORT s8 sbp_msg_measurement_state_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_measurement_state_t *msg); /** * Send an instance of sbp_msg_measurement_state_t with the given write function * @@ -132,9 +132,9 @@ s8 sbp_msg_measurement_state_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_measurement_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_measurement_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_measurement_state_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_measurement_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_measurement_state_t @@ -151,8 +151,8 @@ s8 sbp_msg_measurement_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_measurement_state_t instance * @return 0, <0, >0 */ -int sbp_msg_measurement_state_cmp(const sbp_msg_measurement_state_t *a, - const sbp_msg_measurement_state_t *b); +SBP_EXPORT int sbp_msg_measurement_state_cmp( + const sbp_msg_measurement_state_t *a, const sbp_msg_measurement_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h index f661a0f47f..9f4ca58c55 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h @@ -93,8 +93,9 @@ static inline size_t sbp_msg_tracking_iq_encoded_len( * @param msg Instance of sbp_msg_tracking_iq_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_tracking_iq_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_iq_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_tracking_iq_t *msg); /** * Decode an instance of sbp_msg_tracking_iq_t from wire representation @@ -111,8 +112,9 @@ s8 sbp_msg_tracking_iq_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_tracking_iq_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_iq_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_tracking_iq_t *msg); /** * Send an instance of sbp_msg_tracking_iq_t with the given write function * @@ -129,9 +131,9 @@ s8 sbp_msg_tracking_iq_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_tracking_iq_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_tracking_iq_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_tracking_iq_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_tracking_iq_t @@ -148,8 +150,8 @@ s8 sbp_msg_tracking_iq_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_tracking_iq_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_iq_cmp(const sbp_msg_tracking_iq_t *a, - const sbp_msg_tracking_iq_t *b); +SBP_EXPORT int sbp_msg_tracking_iq_cmp(const sbp_msg_tracking_iq_t *a, + const sbp_msg_tracking_iq_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_A.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_A.h index f278b1d42d..b4c4a6e26c 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_A.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_A.h @@ -93,9 +93,9 @@ static inline size_t sbp_msg_tracking_iq_dep_a_encoded_len( * @param msg Instance of sbp_msg_tracking_iq_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_dep_a_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_tracking_iq_dep_a_t *msg); +SBP_EXPORT s8 +sbp_msg_tracking_iq_dep_a_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_tracking_iq_dep_a_t *msg); /** * Decode an instance of sbp_msg_tracking_iq_dep_a_t from wire representation @@ -112,9 +112,9 @@ s8 sbp_msg_tracking_iq_dep_a_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_tracking_iq_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_iq_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_tracking_iq_dep_a_t *msg); /** * Send an instance of sbp_msg_tracking_iq_dep_a_t with the given write function * @@ -131,9 +131,9 @@ s8 sbp_msg_tracking_iq_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_tracking_iq_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_tracking_iq_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_tracking_iq_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_tracking_iq_dep_a_t @@ -150,8 +150,8 @@ s8 sbp_msg_tracking_iq_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_tracking_iq_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_iq_dep_a_cmp(const sbp_msg_tracking_iq_dep_a_t *a, - const sbp_msg_tracking_iq_dep_a_t *b); +SBP_EXPORT int sbp_msg_tracking_iq_dep_a_cmp( + const sbp_msg_tracking_iq_dep_a_t *a, const sbp_msg_tracking_iq_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_B.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_B.h index 27d8d0b192..67052d2e45 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_B.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_B.h @@ -94,9 +94,9 @@ static inline size_t sbp_msg_tracking_iq_dep_b_encoded_len( * @param msg Instance of sbp_msg_tracking_iq_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_dep_b_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_msg_tracking_iq_dep_b_t *msg); +SBP_EXPORT s8 +sbp_msg_tracking_iq_dep_b_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_tracking_iq_dep_b_t *msg); /** * Decode an instance of sbp_msg_tracking_iq_dep_b_t from wire representation @@ -113,9 +113,9 @@ s8 sbp_msg_tracking_iq_dep_b_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_tracking_iq_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_iq_dep_b_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_tracking_iq_dep_b_t *msg); /** * Send an instance of sbp_msg_tracking_iq_dep_b_t with the given write function * @@ -132,9 +132,9 @@ s8 sbp_msg_tracking_iq_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_iq_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_tracking_iq_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_tracking_iq_dep_b_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_tracking_iq_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_tracking_iq_dep_b_t @@ -151,8 +151,8 @@ s8 sbp_msg_tracking_iq_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_tracking_iq_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_iq_dep_b_cmp(const sbp_msg_tracking_iq_dep_b_t *a, - const sbp_msg_tracking_iq_dep_b_t *b); +SBP_EXPORT int sbp_msg_tracking_iq_dep_b_cmp( + const sbp_msg_tracking_iq_dep_b_t *a, const sbp_msg_tracking_iq_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h index 6a81c82eb0..83802cf427 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h @@ -94,8 +94,9 @@ static inline size_t sbp_msg_tracking_state_encoded_len( * @param msg Instance of sbp_msg_tracking_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_tracking_state_t *msg); +SBP_EXPORT s8 +sbp_msg_tracking_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_tracking_state_t *msg); /** * Decode an instance of sbp_msg_tracking_state_t from wire representation @@ -112,9 +113,9 @@ s8 sbp_msg_tracking_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_tracking_state_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_tracking_state_t *msg); /** * Send an instance of sbp_msg_tracking_state_t with the given write function * @@ -131,9 +132,9 @@ s8 sbp_msg_tracking_state_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_tracking_state_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_tracking_state_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_tracking_state_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_tracking_state_t @@ -150,8 +151,8 @@ s8 sbp_msg_tracking_state_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_tracking_state_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_state_cmp(const sbp_msg_tracking_state_t *a, - const sbp_msg_tracking_state_t *b); +SBP_EXPORT int sbp_msg_tracking_state_cmp(const sbp_msg_tracking_state_t *a, + const sbp_msg_tracking_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_A.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_A.h index 19ed9c1b3b..9afa0e3e4b 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_A.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_A.h @@ -93,7 +93,7 @@ static inline size_t sbp_msg_tracking_state_dep_a_encoded_len( * @param msg Instance of sbp_msg_tracking_state_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_dep_a_encode( +SBP_EXPORT s8 sbp_msg_tracking_state_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_tracking_state_dep_a_t *msg); @@ -112,9 +112,9 @@ s8 sbp_msg_tracking_state_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_dep_a_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_tracking_state_dep_a_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_state_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_tracking_state_dep_a_t *msg); /** * Send an instance of sbp_msg_tracking_state_dep_a_t with the given write * function @@ -132,9 +132,9 @@ s8 sbp_msg_tracking_state_dep_a_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_dep_a_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_tracking_state_dep_a_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_tracking_state_dep_a_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_tracking_state_dep_a_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_tracking_state_dep_a_t @@ -151,8 +151,9 @@ s8 sbp_msg_tracking_state_dep_a_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_tracking_state_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_state_dep_a_cmp(const sbp_msg_tracking_state_dep_a_t *a, - const sbp_msg_tracking_state_dep_a_t *b); +SBP_EXPORT int sbp_msg_tracking_state_dep_a_cmp( + const sbp_msg_tracking_state_dep_a_t *a, + const sbp_msg_tracking_state_dep_a_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_B.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_B.h index d2ac6c8bcc..519a6680b1 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_B.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_B.h @@ -93,7 +93,7 @@ static inline size_t sbp_msg_tracking_state_dep_b_encoded_len( * @param msg Instance of sbp_msg_tracking_state_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_dep_b_encode( +SBP_EXPORT s8 sbp_msg_tracking_state_dep_b_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_tracking_state_dep_b_t *msg); @@ -112,9 +112,9 @@ s8 sbp_msg_tracking_state_dep_b_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_dep_b_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_msg_tracking_state_dep_b_t *msg); +SBP_EXPORT s8 sbp_msg_tracking_state_dep_b_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_tracking_state_dep_b_t *msg); /** * Send an instance of sbp_msg_tracking_state_dep_b_t with the given write * function @@ -132,9 +132,9 @@ s8 sbp_msg_tracking_state_dep_b_decode(const uint8_t *buf, uint8_t len, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_dep_b_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_tracking_state_dep_b_t *msg, - sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_tracking_state_dep_b_send( + sbp_state_t *s, u16 sender_id, const sbp_msg_tracking_state_dep_b_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_tracking_state_dep_b_t @@ -151,8 +151,9 @@ s8 sbp_msg_tracking_state_dep_b_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_tracking_state_dep_b_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_state_dep_b_cmp(const sbp_msg_tracking_state_dep_b_t *a, - const sbp_msg_tracking_state_dep_b_t *b); +SBP_EXPORT int sbp_msg_tracking_state_dep_b_cmp( + const sbp_msg_tracking_state_dep_b_t *a, + const sbp_msg_tracking_state_dep_b_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP.h index d1921e6b23..4e1a7e30af 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP.h @@ -193,7 +193,7 @@ static inline size_t sbp_msg_tracking_state_detailed_dep_encoded_len( * @param msg Instance of sbp_msg_tracking_state_detailed_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_detailed_dep_encode( +SBP_EXPORT s8 sbp_msg_tracking_state_detailed_dep_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_tracking_state_detailed_dep_t *msg); @@ -215,7 +215,7 @@ s8 sbp_msg_tracking_state_detailed_dep_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_detailed_dep_decode( +SBP_EXPORT s8 sbp_msg_tracking_state_detailed_dep_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_tracking_state_detailed_dep_t *msg); /** @@ -235,7 +235,7 @@ s8 sbp_msg_tracking_state_detailed_dep_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_detailed_dep_send( +SBP_EXPORT s8 sbp_msg_tracking_state_detailed_dep_send( sbp_state_t *s, u16 sender_id, const sbp_msg_tracking_state_detailed_dep_t *msg, sbp_write_fn_t write); @@ -254,7 +254,7 @@ s8 sbp_msg_tracking_state_detailed_dep_send( * @param b sbp_msg_tracking_state_detailed_dep_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_state_detailed_dep_cmp( +SBP_EXPORT int sbp_msg_tracking_state_detailed_dep_cmp( const sbp_msg_tracking_state_detailed_dep_t *a, const sbp_msg_tracking_state_detailed_dep_t *b); diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP_A.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP_A.h index f8035075d3..15ae573870 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP_A.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP_A.h @@ -194,7 +194,7 @@ static inline size_t sbp_msg_tracking_state_detailed_dep_a_encoded_len( * @param msg Instance of sbp_msg_tracking_state_detailed_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_detailed_dep_a_encode( +SBP_EXPORT s8 sbp_msg_tracking_state_detailed_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_msg_tracking_state_detailed_dep_a_t *msg); @@ -216,7 +216,7 @@ s8 sbp_msg_tracking_state_detailed_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_detailed_dep_a_decode( +SBP_EXPORT s8 sbp_msg_tracking_state_detailed_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_msg_tracking_state_detailed_dep_a_t *msg); /** @@ -236,7 +236,7 @@ s8 sbp_msg_tracking_state_detailed_dep_a_decode( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_tracking_state_detailed_dep_a_send( +SBP_EXPORT s8 sbp_msg_tracking_state_detailed_dep_a_send( sbp_state_t *s, u16 sender_id, const sbp_msg_tracking_state_detailed_dep_a_t *msg, sbp_write_fn_t write); @@ -255,7 +255,7 @@ s8 sbp_msg_tracking_state_detailed_dep_a_send( * @param b sbp_msg_tracking_state_detailed_dep_a_t instance * @return 0, <0, >0 */ -int sbp_msg_tracking_state_detailed_dep_a_cmp( +SBP_EXPORT int sbp_msg_tracking_state_detailed_dep_a_cmp( const sbp_msg_tracking_state_detailed_dep_a_t *a, const sbp_msg_tracking_state_detailed_dep_a_t *b); diff --git a/c/include/libsbp/v4/tracking/MeasurementState.h b/c/include/libsbp/v4/tracking/MeasurementState.h index a3ad771dd4..b8c6c21211 100644 --- a/c/include/libsbp/v4/tracking/MeasurementState.h +++ b/c/include/libsbp/v4/tracking/MeasurementState.h @@ -89,8 +89,9 @@ static inline size_t sbp_measurement_state_encoded_len( * @param msg Instance of sbp_measurement_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_measurement_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_measurement_state_t *msg); +SBP_EXPORT s8 sbp_measurement_state_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_measurement_state_t *msg); /** * Decode an instance of sbp_measurement_state_t from wire representation @@ -107,8 +108,9 @@ s8 sbp_measurement_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_measurement_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, sbp_measurement_state_t *msg); +SBP_EXPORT s8 sbp_measurement_state_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_measurement_state_t *msg); /** * Compare two instances of sbp_measurement_state_t @@ -125,8 +127,8 @@ s8 sbp_measurement_state_decode(const uint8_t *buf, uint8_t len, * @param b sbp_measurement_state_t instance * @return 0, <0, >0 */ -int sbp_measurement_state_cmp(const sbp_measurement_state_t *a, - const sbp_measurement_state_t *b); +SBP_EXPORT int sbp_measurement_state_cmp(const sbp_measurement_state_t *a, + const sbp_measurement_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h b/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h index 345ae7a5b9..ce155470b4 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h @@ -86,7 +86,7 @@ static inline size_t sbp_tracking_channel_correlation_encoded_len( * @param msg Instance of sbp_tracking_channel_correlation_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_correlation_encode( +SBP_EXPORT s8 sbp_tracking_channel_correlation_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_tracking_channel_correlation_t *msg); @@ -107,7 +107,7 @@ s8 sbp_tracking_channel_correlation_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_correlation_decode( +SBP_EXPORT s8 sbp_tracking_channel_correlation_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_tracking_channel_correlation_t *msg); @@ -126,7 +126,7 @@ s8 sbp_tracking_channel_correlation_decode( * @param b sbp_tracking_channel_correlation_t instance * @return 0, <0, >0 */ -int sbp_tracking_channel_correlation_cmp( +SBP_EXPORT int sbp_tracking_channel_correlation_cmp( const sbp_tracking_channel_correlation_t *a, const sbp_tracking_channel_correlation_t *b); diff --git a/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h b/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h index 1d410b2c58..15d895cb5e 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h @@ -86,7 +86,7 @@ static inline size_t sbp_tracking_channel_correlation_dep_encoded_len( * @param msg Instance of sbp_tracking_channel_correlation_dep_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_correlation_dep_encode( +SBP_EXPORT s8 sbp_tracking_channel_correlation_dep_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_tracking_channel_correlation_dep_t *msg); @@ -108,7 +108,7 @@ s8 sbp_tracking_channel_correlation_dep_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_correlation_dep_decode( +SBP_EXPORT s8 sbp_tracking_channel_correlation_dep_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_tracking_channel_correlation_dep_t *msg); @@ -127,7 +127,7 @@ s8 sbp_tracking_channel_correlation_dep_decode( * @param b sbp_tracking_channel_correlation_dep_t instance * @return 0, <0, >0 */ -int sbp_tracking_channel_correlation_dep_cmp( +SBP_EXPORT int sbp_tracking_channel_correlation_dep_cmp( const sbp_tracking_channel_correlation_dep_t *a, const sbp_tracking_channel_correlation_dep_t *b); diff --git a/c/include/libsbp/v4/tracking/TrackingChannelState.h b/c/include/libsbp/v4/tracking/TrackingChannelState.h index 6449d2b4ee..3dda751aac 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelState.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelState.h @@ -92,9 +92,9 @@ static inline size_t sbp_tracking_channel_state_encoded_len( * @param msg Instance of sbp_tracking_channel_state_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_state_encode(uint8_t *buf, uint8_t len, - uint8_t *n_written, - const sbp_tracking_channel_state_t *msg); +SBP_EXPORT s8 +sbp_tracking_channel_state_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_tracking_channel_state_t *msg); /** * Decode an instance of sbp_tracking_channel_state_t from wire representation @@ -111,9 +111,9 @@ s8 sbp_tracking_channel_state_encode(uint8_t *buf, uint8_t len, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_state_decode(const uint8_t *buf, uint8_t len, - uint8_t *n_read, - sbp_tracking_channel_state_t *msg); +SBP_EXPORT s8 sbp_tracking_channel_state_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_tracking_channel_state_t *msg); /** * Compare two instances of sbp_tracking_channel_state_t @@ -130,8 +130,9 @@ s8 sbp_tracking_channel_state_decode(const uint8_t *buf, uint8_t len, * @param b sbp_tracking_channel_state_t instance * @return 0, <0, >0 */ -int sbp_tracking_channel_state_cmp(const sbp_tracking_channel_state_t *a, - const sbp_tracking_channel_state_t *b); +SBP_EXPORT int sbp_tracking_channel_state_cmp( + const sbp_tracking_channel_state_t *a, + const sbp_tracking_channel_state_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h b/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h index db41852135..e04fd90eb3 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h @@ -91,7 +91,7 @@ static inline size_t sbp_tracking_channel_state_dep_a_encoded_len( * @param msg Instance of sbp_tracking_channel_state_dep_a_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_state_dep_a_encode( +SBP_EXPORT s8 sbp_tracking_channel_state_dep_a_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_tracking_channel_state_dep_a_t *msg); @@ -112,7 +112,7 @@ s8 sbp_tracking_channel_state_dep_a_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_state_dep_a_decode( +SBP_EXPORT s8 sbp_tracking_channel_state_dep_a_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_tracking_channel_state_dep_a_t *msg); @@ -131,7 +131,7 @@ s8 sbp_tracking_channel_state_dep_a_decode( * @param b sbp_tracking_channel_state_dep_a_t instance * @return 0, <0, >0 */ -int sbp_tracking_channel_state_dep_a_cmp( +SBP_EXPORT int sbp_tracking_channel_state_dep_a_cmp( const sbp_tracking_channel_state_dep_a_t *a, const sbp_tracking_channel_state_dep_a_t *b); diff --git a/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h b/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h index 221cedc5a9..91cf0babdd 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h @@ -92,7 +92,7 @@ static inline size_t sbp_tracking_channel_state_dep_b_encoded_len( * @param msg Instance of sbp_tracking_channel_state_dep_b_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_state_dep_b_encode( +SBP_EXPORT s8 sbp_tracking_channel_state_dep_b_encode( uint8_t *buf, uint8_t len, uint8_t *n_written, const sbp_tracking_channel_state_dep_b_t *msg); @@ -113,7 +113,7 @@ s8 sbp_tracking_channel_state_dep_b_encode( * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_tracking_channel_state_dep_b_decode( +SBP_EXPORT s8 sbp_tracking_channel_state_dep_b_decode( const uint8_t *buf, uint8_t len, uint8_t *n_read, sbp_tracking_channel_state_dep_b_t *msg); @@ -132,7 +132,7 @@ s8 sbp_tracking_channel_state_dep_b_decode( * @param b sbp_tracking_channel_state_dep_b_t instance * @return 0, <0, >0 */ -int sbp_tracking_channel_state_dep_b_cmp( +SBP_EXPORT int sbp_tracking_channel_state_dep_b_cmp( const sbp_tracking_channel_state_dep_b_t *a, const sbp_tracking_channel_state_dep_b_t *b); diff --git a/c/include/libsbp/v4/user/MSG_USER_DATA.h b/c/include/libsbp/v4/user/MSG_USER_DATA.h index 80899e6d23..50eb513f29 100644 --- a/c/include/libsbp/v4/user/MSG_USER_DATA.h +++ b/c/include/libsbp/v4/user/MSG_USER_DATA.h @@ -92,8 +92,9 @@ static inline size_t sbp_msg_user_data_encoded_len( * @param msg Instance of sbp_msg_user_data_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_user_data_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_user_data_t *msg); +SBP_EXPORT s8 sbp_msg_user_data_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_user_data_t *msg); /** * Decode an instance of sbp_msg_user_data_t from wire representation @@ -110,8 +111,9 @@ s8 sbp_msg_user_data_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_user_data_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_user_data_t *msg); +SBP_EXPORT s8 sbp_msg_user_data_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_user_data_t *msg); /** * Send an instance of sbp_msg_user_data_t with the given write function * @@ -128,8 +130,9 @@ s8 sbp_msg_user_data_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_user_data_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_user_data_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_user_data_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_user_data_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_user_data_t @@ -146,8 +149,8 @@ s8 sbp_msg_user_data_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_user_data_t instance * @return 0, <0, >0 */ -int sbp_msg_user_data_cmp(const sbp_msg_user_data_t *a, - const sbp_msg_user_data_t *b); +SBP_EXPORT int sbp_msg_user_data_cmp(const sbp_msg_user_data_t *a, + const sbp_msg_user_data_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h b/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h index 8fe7f7e14f..d1fa783c30 100644 --- a/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h +++ b/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h @@ -100,8 +100,9 @@ static inline size_t sbp_msg_odometry_encoded_len( * @param msg Instance of sbp_msg_odometry_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_odometry_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_odometry_t *msg); +SBP_EXPORT s8 sbp_msg_odometry_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_odometry_t *msg); /** * Decode an instance of sbp_msg_odometry_t from wire representation @@ -118,8 +119,8 @@ s8 sbp_msg_odometry_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_odometry_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_odometry_t *msg); +SBP_EXPORT s8 sbp_msg_odometry_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, sbp_msg_odometry_t *msg); /** * Send an instance of sbp_msg_odometry_t with the given write function * @@ -136,8 +137,9 @@ s8 sbp_msg_odometry_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_odometry_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_odometry_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_odometry_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_odometry_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_odometry_t @@ -154,8 +156,8 @@ s8 sbp_msg_odometry_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_odometry_t instance * @return 0, <0, >0 */ -int sbp_msg_odometry_cmp(const sbp_msg_odometry_t *a, - const sbp_msg_odometry_t *b); +SBP_EXPORT int sbp_msg_odometry_cmp(const sbp_msg_odometry_t *a, + const sbp_msg_odometry_t *b); #ifdef __cplusplus } diff --git a/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h b/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h index fd2824fd20..69c12a0bc4 100644 --- a/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h +++ b/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h @@ -111,8 +111,9 @@ static inline size_t sbp_msg_wheeltick_encoded_len( * @param msg Instance of sbp_msg_wheeltick_t to encode * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_wheeltick_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, - const sbp_msg_wheeltick_t *msg); +SBP_EXPORT s8 sbp_msg_wheeltick_encode(uint8_t *buf, uint8_t len, + uint8_t *n_written, + const sbp_msg_wheeltick_t *msg); /** * Decode an instance of sbp_msg_wheeltick_t from wire representation @@ -129,8 +130,9 @@ s8 sbp_msg_wheeltick_encode(uint8_t *buf, uint8_t len, uint8_t *n_written, * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_wheeltick_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, - sbp_msg_wheeltick_t *msg); +SBP_EXPORT s8 sbp_msg_wheeltick_decode(const uint8_t *buf, uint8_t len, + uint8_t *n_read, + sbp_msg_wheeltick_t *msg); /** * Send an instance of sbp_msg_wheeltick_t with the given write function * @@ -147,8 +149,9 @@ s8 sbp_msg_wheeltick_decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 sbp_msg_wheeltick_send(sbp_state_t *s, u16 sender_id, - const sbp_msg_wheeltick_t *msg, sbp_write_fn_t write); +SBP_EXPORT s8 sbp_msg_wheeltick_send(sbp_state_t *s, u16 sender_id, + const sbp_msg_wheeltick_t *msg, + sbp_write_fn_t write); /** * Compare two instances of sbp_msg_wheeltick_t @@ -165,8 +168,8 @@ s8 sbp_msg_wheeltick_send(sbp_state_t *s, u16 sender_id, * @param b sbp_msg_wheeltick_t instance * @return 0, <0, >0 */ -int sbp_msg_wheeltick_cmp(const sbp_msg_wheeltick_t *a, - const sbp_msg_wheeltick_t *b); +SBP_EXPORT int sbp_msg_wheeltick_cmp(const sbp_msg_wheeltick_t *a, + const sbp_msg_wheeltick_t *b); #ifdef __cplusplus } diff --git a/c/src/CMakeLists.txt b/c/src/CMakeLists.txt index b8b4825d1b..6913bdacfc 100644 --- a/c/src/CMakeLists.txt +++ b/c/src/CMakeLists.txt @@ -16,9 +16,25 @@ swift_add_library(sbp ) add_library(swiftnav::sbp ALIAS sbp) -target_include_directories(sbp PUBLIC ${PROJECT_SOURCE_DIR}/include PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) -set_target_properties(sbp PROPERTIES - POSITION_INDEPENDENT_CODE ON) +target_compile_definitions(sbp + PRIVATE + $ +) +target_include_directories(sbp + PUBLIC + $ + $ + $ + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/include +) +set_target_properties(sbp + PROPERTIES + VISIBILITY_INLINES_HIDDEN true + C_VISIBILITY_PRESET hidden + CXX_VISIBILITY_PRESET hidden + POSITION_INDEPENDENT_CODE true +) if (MINGW) if (CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.7.0" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "8.0.0") @@ -34,8 +50,8 @@ install( LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) -install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/libsbp/" DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/libsbp") +install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/libsbp/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libsbp) export(EXPORT sbp-export - NAMESPACE LibSbp:: + NAMESPACE swiftnav:: FILE ${PROJECT_BINARY_DIR}/LibSbpImport.cmake) diff --git a/c/test/string/CMakeLists.txt b/c/test/string/CMakeLists.txt index 13ae619532..0f4a810c77 100644 --- a/c/test/string/CMakeLists.txt +++ b/c/test/string/CMakeLists.txt @@ -1,3 +1,10 @@ +# Since test-libsbp-string is testing internal functions that are not publicly +# exposed by the sbp library, we can only build and run this test when ingesting +# it as a static library. +if (BUILD_SHARED_LIBS) + return() +endif() + swift_add_test(test-libsbp-string UNIT_TEST POST_BUILD diff --git a/c/test_package/CMakeLists.txt b/c/test_package/CMakeLists.txt new file mode 100644 index 0000000000..05a4eb7ee4 --- /dev/null +++ b/c/test_package/CMakeLists.txt @@ -0,0 +1,44 @@ +cmake_minimum_required(VERSION 3.12) +project(test_package C CXX) + +set(SBP_FILE ${CMAKE_SOURCE_DIR}/../../test_data/roundtrip.sbp CACHE FILEPATH "Path to a sample SBP file which is used for testing") + +if (NOT EXISTS ${SBP_FILE} OR NOT IS_ABSOLUTE ${SBP_FILE}) + message(FATAL_ERROR "SBP_FILE variable (\"${SBP_FILE}\") needs to point to an absolute valid SBP file") +endif() + +find_library(SBP_LIBRARY sbp) +if (NOT SBP_LIBRARY) + message(FATAL_ERROR "SBP library was not found") +endif() + +find_path(SBP_INCLUDE_DIRS libsbp) +if (NOT SBP_INCLUDE_DIRS) + message(FATAL_ERROR "SBP header folder was not found") +endif() + +if (NOT WIN32) + add_executable(legacy_c legacy.c) + target_compile_features(legacy_c PRIVATE c_std_11) + target_link_libraries(legacy_c PRIVATE ${SBP_LIBRARY}) + target_include_directories(legacy_c PRIVATE ${SBP_INCLUDE_DIRS}) + target_compile_definitions(legacy_c PRIVATE SBP_FILE="${SBP_FILE}") + + add_executable(legacy_cxx legacy.cc) + target_compile_features(legacy_cxx PRIVATE cxx_std_14) + target_link_libraries(legacy_cxx PRIVATE ${SBP_LIBRARY}) + target_include_directories(legacy_cxx PRIVATE ${SBP_INCLUDE_DIRS}) + target_compile_definitions(legacy_cxx PRIVATE SBP_FILE="${SBP_FILE}") +endif() + +add_executable(v4_c v4.c) +target_compile_features(v4_c PRIVATE c_std_11) +target_link_libraries(v4_c PRIVATE ${SBP_LIBRARY}) +target_include_directories(v4_c PRIVATE ${SBP_INCLUDE_DIRS}) +target_compile_definitions(v4_c PRIVATE SBP_FILE="${SBP_FILE}") + +add_executable(v4_cxx v4.cc) +target_compile_features(v4_cxx PRIVATE cxx_std_14) +target_link_libraries(v4_cxx PRIVATE ${SBP_LIBRARY}) +target_include_directories(v4_cxx PRIVATE ${SBP_INCLUDE_DIRS}) +target_compile_definitions(v4_cxx PRIVATE SBP_FILE="${SBP_FILE}") diff --git a/c/test_package/legacy.c b/c/test_package/legacy.c new file mode 100644 index 0000000000..2fd78dbaaf --- /dev/null +++ b/c/test_package/legacy.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +struct Context { + FILE *input_file; + FILE *output_file; + sbp_state_t input_state; + sbp_state_t output_state; + sbp_msg_callbacks_node_t message_callback; +}; + +static s32 input_file_reader(u8 *buffer, u32 buffer_size, void *context) { + struct Context *ctx = (struct Context *) context; + if (feof(ctx->input_file)) { + return -1; + } + size_t count = fread(buffer, 1, buffer_size, ctx->input_file); + return (s32) count; +} + +static s32 output_file_writer(u8 *buffer, u32 buffer_size, void *context) { + struct Context *ctx = (struct Context *) context; + if (feof(ctx->output_file)) { + return -1; + } + size_t count = fwrite(buffer, 1, buffer_size, ctx->output_file); + return (s32) count; +} + +static void +input_file_payload_handler(u16 sender_id, u16 message_type, u8 payload_length, u8 payload[], u16 frame_length, + u8 frame[], void *context) { + (void) frame_length; + (void) frame; + + struct Context *ctx = (struct Context *) context; + sbp_payload_send(&ctx->output_state, message_type, sender_id, payload_length, payload, output_file_writer); +} + +int main() { + int exit_code = EXIT_SUCCESS; + struct Context context = {0}; + + context.input_file = fopen(SBP_FILE, "r"); + if (!context.input_file) { + fprintf(stderr, "Unable to open up input file\n"); + exit_code = EXIT_FAILURE; + goto bail; + } + + context.output_file = tmpfile(); + if (!context.output_file) { + fprintf(stderr, "Unable to open up output file\n"); + exit_code = EXIT_FAILURE; + goto bail; + } + + sbp_state_init(&context.input_state); + sbp_state_set_io_context(&context.input_state, &context); + sbp_all_payload_callback_register(&context.input_state, input_file_payload_handler, &context, + &context.message_callback); + + sbp_state_init(&context.output_state); + sbp_state_set_io_context(&context.output_state, &context); + + s8 ret = 0; + do { + ret = sbp_process(&context.input_state, input_file_reader); + } while (ret >= 0); + + rewind(context.input_file); + rewind(context.output_file); + + int input_char = 0; + int output_char = 0; + + do { + input_char = getc(context.input_file); + output_char = getc(context.output_file); + } while (input_char != EOF && output_char != EOF); + + if (input_char != output_char) { + fprintf(stderr, "File mismatch\n"); + exit_code = EXIT_FAILURE; + goto bail; + } + + bail: + fclose(context.input_file); + fclose(context.output_file); + + return exit_code; +} \ No newline at end of file diff --git a/c/test_package/legacy.cc b/c/test_package/legacy.cc new file mode 100644 index 0000000000..a5c0f3fa3f --- /dev/null +++ b/c/test_package/legacy.cc @@ -0,0 +1,110 @@ +#include +#include + +#include +#include + +struct FileBase { + explicit FileBase(FILE *file) : file_(file) {} + + ~FileBase() { fclose(file_); } + + operator bool() const { + return file_; + } + + void rewind() { + ::rewind(file_); + } + + int getc() { + return ::getc(file_); + } + + FILE *const file_; +}; + +class FileReader : public FileBase, public sbp::IReader { +public: + explicit FileReader(FILE *file) : FileBase(file), sbp::IReader() {} + + s32 read(u8 *buffer, u32 buffer_length) override { + if (feof(file_)) { + return -1; + } + size_t count = fread(buffer, 1, buffer_length, file_); + return (s32) count; + } +}; + +class FileWriter : public FileBase, public sbp::IWriter { +public: + explicit FileWriter(FILE *file) : FileBase(file), sbp::IWriter() {} + + s32 write(const u8 *buffer, u32 buffer_length) override { + if (feof(file_)) { + return -1; + } + size_t count = fwrite(buffer, 1, buffer_length, file_); + return (s32) count; + } +}; + +class MessageHandler : public sbp::AllFrameHandler { +public: + MessageHandler(sbp::State *input_state, sbp::State *output_state) : AllFrameHandler(input_state), + output_state_(output_state) {} + + void handle_sbp_frame(uint16_t sender_id, uint16_t message_type, uint8_t payload_length, uint8_t *payload, + uint16_t frame_length, uint8_t *frame) override { + (void) frame_length; + (void) frame; + + output_state_->send_message(message_type, sender_id, payload_length, payload); + } + +private: + sbp::State *const output_state_; +}; + +int main() { + FileReader input_file(fopen(SBP_FILE, "r")); + FileWriter output_file(tmpfile()); + + if (!input_file) { + std::cerr << "Unable to open up input file\n"; + return EXIT_FAILURE; + } + + if (!output_file) { + std::cerr << "Unable to open up output file\n"; + return EXIT_FAILURE; + } + + sbp::State input_state(&input_file, nullptr); + sbp::State output_state(nullptr, &output_file); + MessageHandler message_handler(&input_state, &output_state); + + s8 ret = 0; + do { + ret = input_state.process(); + } while (ret >= 0); + + input_file.rewind(); + output_file.rewind(); + + int input_char = 0; + int output_char = 0; + + do { + input_char = input_file.getc(); + output_char = output_file.getc(); + } while (input_char != EOF && output_char != EOF); + + if (input_char != output_char) { + std::cerr << "File mismatch\n"; + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/c/test_package/v4.c b/c/test_package/v4.c new file mode 100644 index 0000000000..22a42ce942 --- /dev/null +++ b/c/test_package/v4.c @@ -0,0 +1,91 @@ +#include +#include +#include +#include + +struct Context { + FILE *input_file; + FILE *output_file; + sbp_state_t input_state; + sbp_state_t output_state; + sbp_msg_callbacks_node_t message_callback; +}; + +static s32 input_file_reader(u8 *buffer, u32 buffer_size, void *context) { + struct Context *ctx = (struct Context *) context; + if (feof(ctx->input_file)) { + return -1; + } + size_t count = fread(buffer, 1, buffer_size, ctx->input_file); + return (s32) count; +} + +static s32 output_file_writer(u8 *buffer, u32 buffer_size, void *context) { + struct Context *ctx = (struct Context *) context; + if (feof(ctx->output_file)) { + return -1; + } + size_t count = fwrite(buffer, 1, buffer_size, ctx->output_file); + return (s32) count; +} + +static void +input_file_payload_handler(u16 sender_id, sbp_msg_type_t message_type, const sbp_msg_t *message, void *context) { + struct Context *ctx = (struct Context *) context; + sbp_message_send(&ctx->output_state, message_type, sender_id, message, output_file_writer); +} + +int main() { + int exit_code = EXIT_SUCCESS; + struct Context context = {0}; + + context.input_file = fopen(SBP_FILE, "r"); + if (!context.input_file) { + fprintf(stderr, "Unable to open up input file\n"); + exit_code = EXIT_FAILURE; + goto bail; + } + + context.output_file = tmpfile(); + if (!context.output_file) { + fprintf(stderr, "Unable to open up output file\n"); + exit_code = EXIT_FAILURE; + goto bail; + } + + sbp_state_init(&context.input_state); + sbp_state_set_io_context(&context.input_state, &context); + sbp_all_message_callback_register(&context.input_state, input_file_payload_handler, &context, + &context.message_callback); + + sbp_state_init(&context.output_state); + sbp_state_set_io_context(&context.output_state, &context); + + s8 ret = 0; + do { + ret = sbp_process(&context.input_state, input_file_reader); + } while (ret >= 0); + + rewind(context.input_file); + rewind(context.output_file); + + int input_char = 0; + int output_char = 0; + + do { + input_char = getc(context.input_file); + output_char = getc(context.output_file); + } while (input_char != EOF && output_char != EOF); + + if (input_char != output_char) { + fprintf(stderr, "File mismatch\n"); + exit_code = EXIT_FAILURE; + goto bail; + } + + bail: + fclose(context.input_file); + fclose(context.output_file); + + return exit_code; +} \ No newline at end of file diff --git a/c/test_package/v4.cc b/c/test_package/v4.cc new file mode 100644 index 0000000000..bedb007cf2 --- /dev/null +++ b/c/test_package/v4.cc @@ -0,0 +1,106 @@ +#include +#include + +#include +#include + +struct FileBase { + explicit FileBase(FILE *file) : file_(file) {} + + ~FileBase() { fclose(file_); } + + operator bool() const { + return file_; + } + + void rewind() { + ::rewind(file_); + } + + int getc() { + return ::getc(file_); + } + + FILE *const file_; +}; + +class FileReader : public FileBase, public sbp::IReader { +public: + explicit FileReader(FILE *file) : FileBase(file), sbp::IReader() {} + + s32 read(u8 *buffer, u32 buffer_length) override { + if (feof(file_)) { + return -1; + } + size_t count = fread(buffer, 1, buffer_length, file_); + return (s32) count; + } +}; + +class FileWriter : public FileBase, public sbp::IWriter { +public: + explicit FileWriter(FILE *file) : FileBase(file), sbp::IWriter() {} + + s32 write(const u8 *buffer, u32 buffer_length) override { + if (feof(file_)) { + return -1; + } + size_t count = fwrite(buffer, 1, buffer_length, file_); + return (s32) count; + } +}; + +class MessageHandler : public sbp::AllMessageHandler { +public: + MessageHandler(sbp::State *input_state, sbp::State *output_state) : AllMessageHandler(input_state), + output_state_(output_state) {} + + void handle_sbp_message(uint16_t sender_id, sbp_msg_type_t message_type, const sbp_msg_t &message) override { + output_state_->send_message(sender_id, message_type, message); + } + +private: + sbp::State *const output_state_; +}; + +int main() { + FileReader input_file(fopen(SBP_FILE, "r")); + FileWriter output_file(tmpfile()); + + if (!input_file) { + std::cerr << "Unable to open up input file\n"; + return EXIT_FAILURE; + } + + if (!output_file) { + std::cerr << "Unable to open up output file\n"; + return EXIT_FAILURE; + } + + sbp::State input_state(&input_file, nullptr); + sbp::State output_state(nullptr, &output_file); + MessageHandler message_handler(&input_state, &output_state); + + s8 ret = 0; + do { + ret = input_state.process(); + } while (ret >= 0); + + input_file.rewind(); + output_file.rewind(); + + int input_char = 0; + int output_char = 0; + + do { + input_char = input_file.getc(); + output_char = output_file.getc(); + } while (input_char != EOF && output_char != EOF); + + if (input_char != output_char) { + std::cerr << "File mismatch\n"; + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h b/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h index 4383c9c8d8..d3f1aa2071 100644 --- a/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h +++ b/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h @@ -93,7 +93,7 @@ typedef struct { * * @param msg (((m.type_name))) instance */ - void (((f.fn_prefix)))_init( (((-m.type_name))) *msg); + SBP_EXPORT void (((f.fn_prefix)))_init( (((-m.type_name))) *msg); /** * Test (((comment_name))) for validity @@ -101,7 +101,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return true is (((comment_name))) is valid for encoding purposes, false otherwise */ - bool (((f.fn_prefix)))_valid(const (((m.type_name))) *msg); + SBP_EXPORT bool (((f.fn_prefix)))_valid(const (((m.type_name))) *msg); /** * Tests 2 instances of (((comment_name))) for equality @@ -112,7 +112,7 @@ typedef struct { * @param b (((m.type_name))) instance * @return 0 if equal, <0 if a0 if a>b */ - int (((f.fn_prefix)))_strcmp(const (((m.type_name))) *a, const (((m.type_name))) *b); + SBP_EXPORT int (((f.fn_prefix)))_strcmp(const (((m.type_name))) *a, const (((m.type_name))) *b); /** * Get the encoded size of (((comment_name))) @@ -120,7 +120,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return Size of (((comment_name))) in wire representation */ - size_t (((f.fn_prefix)))_encoded_len(const (((m.type_name))) *msg); + SBP_EXPORT size_t (((f.fn_prefix)))_encoded_len(const (((m.type_name))) *msg); /** * Query (((comment_name))) for remaining space @@ -130,7 +130,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return Maximum number of bytes that can be appended to the existing string */ - size_t (((f.fn_prefix)))_space_remaining(const (((m.type_name))) *msg); + SBP_EXPORT size_t (((f.fn_prefix)))_space_remaining(const (((m.type_name))) *msg); ((*- if f.encoding == "unterminated" or f.encoding == "null_terminated" *)) /** @@ -150,7 +150,7 @@ typedef struct { * written to msg * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_set( (((-m.type_name))) *msg, const char *new_str, bool should_trunc, size_t *n_written); + SBP_EXPORT bool (((f.fn_prefix)))_set( (((-m.type_name))) *msg, const char *new_str, bool should_trunc, size_t *n_written); /** * Set (((comment_name))) from a raw buffer @@ -170,7 +170,7 @@ typedef struct { * written to msg * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_set_raw( (((-m.type_name))) *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); + SBP_EXPORT bool (((f.fn_prefix)))_set_raw( (((-m.type_name))) *msg, const char *new_buf, size_t new_buf_len, bool should_trunc, size_t *n_written); /** * Set (((comment_name))) with printf style formatting @@ -190,7 +190,7 @@ typedef struct { * @param fmt printf style format string * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_printf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4,5); + SBP_EXPORT bool (((f.fn_prefix)))_printf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4,5); /** * Set (((comment_name))) with printf style formatting @@ -205,7 +205,7 @@ typedef struct { * @param ap Argument list * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_vprintf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); + SBP_EXPORT bool (((f.fn_prefix)))_vprintf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Append (((comment_name))) with printf style formatting @@ -223,7 +223,7 @@ typedef struct { * @param fmt printf style format string * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_append_printf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4,5); + SBP_EXPORT bool (((f.fn_prefix)))_append_printf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, ...) SBP_ATTR_FORMAT(4,5); /** * Append (((comment_name))) with printf style formatting @@ -238,7 +238,7 @@ typedef struct { * @param ap Argument list * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_append_vprintf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); + SBP_EXPORT bool (((f.fn_prefix)))_append_vprintf( (((-m.type_name))) *msg, bool should_trunc, size_t *n_written, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(4); /** * Obtain the string value from (((comment_name))) @@ -246,7 +246,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return String contents */ - const char *(((f.fn_prefix)))_get(const (((m.type_name))) *msg); + SBP_EXPORT const char *(((f.fn_prefix)))_get(const (((m.type_name))) *msg); /** * Obtain the length of (((comment_name))) @@ -256,7 +256,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return Length of string */ - size_t (((f.fn_prefix)))_strlen(const (((m.type_name))) *msg); + SBP_EXPORT size_t (((f.fn_prefix)))_strlen(const (((m.type_name))) *msg); ((*- elif f.encoding == "multipart" or f.encoding == "double_null_terminated" *)) /** * Return the number of sections in (((comment_name))) @@ -264,7 +264,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return Number of sections in string */ - size_t (((f.fn_prefix)))_count_sections(const (((m.type_name))) *msg); + SBP_EXPORT size_t (((f.fn_prefix)))_count_sections(const (((m.type_name))) *msg); /** * Add a section to (((comment_name))) @@ -275,7 +275,7 @@ typedef struct { * @param new_str New string * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_add_section( (((-m.type_name))) *msg, const char *new_str); + SBP_EXPORT bool (((f.fn_prefix)))_add_section( (((-m.type_name))) *msg, const char *new_str); /** * Add a section to (((comment_name))) with printf style formatting @@ -286,7 +286,7 @@ typedef struct { * @param fmt printf style format string * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_add_section_printf( (((-m.type_name))) *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2,3); + SBP_EXPORT bool (((f.fn_prefix)))_add_section_printf( (((-m.type_name))) *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2,3); /** * Add a section to (((comment_name))) with printf style formatting @@ -298,7 +298,7 @@ typedef struct { * @param ap Argument list * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_add_section_vprintf( (((-m.type_name))) *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); + SBP_EXPORT bool (((f.fn_prefix)))_add_section_vprintf( (((-m.type_name))) *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); /** * Append a string to the last section in (((comment_name))) @@ -313,7 +313,7 @@ typedef struct { * @param str New string * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_append( (((-m.type_name))) *msg, const char *str); + SBP_EXPORT bool (((f.fn_prefix)))_append( (((-m.type_name))) *msg, const char *str); /** * Append a string to the last section in (((comment_name))) with printf style formatting @@ -328,7 +328,7 @@ typedef struct { * @param fmt printf style format string * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_append_printf( (((-m.type_name))) *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2,3); + SBP_EXPORT bool (((f.fn_prefix)))_append_printf( (((-m.type_name))) *msg, const char *fmt, ...) SBP_ATTR_FORMAT(2,3); /** * Append a string to the last section in (((comment_name))) with printf style formatting @@ -344,7 +344,7 @@ typedef struct { * @param ap Argument list * @return true on success, false otherwise */ - bool (((f.fn_prefix)))_append_vprintf( (((-m.type_name))) *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); + SBP_EXPORT bool (((f.fn_prefix)))_append_vprintf( (((-m.type_name))) *msg, const char *fmt, va_list ap) SBP_ATTR_VFORMAT(2); /** * Obtain a section from (((comment_name))) @@ -355,7 +355,7 @@ typedef struct { * @param section Section number * @return Pointer to C string, NULL on error */ - const char *(((f.fn_prefix)))_get_section(const (((m.type_name))) *msg, size_t section); + SBP_EXPORT const char *(((f.fn_prefix)))_get_section(const (((m.type_name))) *msg, size_t section); /** * Obtain the length of a section in (((comment_name))) @@ -368,7 +368,7 @@ typedef struct { * @param section Section number * @return Length of section */ - size_t (((f.fn_prefix)))_section_strlen(const (((m.type_name))) *msg, size_t section); + SBP_EXPORT size_t (((f.fn_prefix)))_section_strlen(const (((m.type_name))) *msg, size_t section); ((*- else *)) **** INVALID STRING ENCODING : (((f.encoding))) **** ((* endif *)) @@ -382,7 +382,7 @@ typedef struct { * @param msg (((m.type_name))) instance * @return Length of on-wire representation */ -static inline size_t (((m.encoded_len_fn)))(const (((m.type_name))) *msg) +static inline size_t (((m.encoded_len_fn)))(const (((m.type_name))) *msg) { ((*- if m.is_fixed_size *)) (void)msg; @@ -413,7 +413,7 @@ static inline size_t (((m.encoded_len_fn)))(const (((m.type_name))) *msg) * @param msg Instance of (((m.type_name))) to encode * @return SBP_OK on success, or other libsbp error code */ -s8 (((m.public_encode_fn)))(uint8_t *buf, uint8_t len, uint8_t *n_written, const (((m.type_name))) *msg); +SBP_EXPORT s8 (((m.public_encode_fn)))(uint8_t *buf, uint8_t len, uint8_t *n_written, const (((m.type_name))) *msg); /** * Decode an instance of (((m.type_name))) from wire representation @@ -426,7 +426,7 @@ s8 (((m.public_encode_fn)))(uint8_t *buf, uint8_t len, uint8_t *n_written, const * @param msg Destination * @return SBP_OK on success, or other libsbp error code */ -s8 (((m.public_decode_fn)))(const uint8_t *buf, uint8_t len, uint8_t *n_read, (((m.type_name))) *msg); +SBP_EXPORT s8 (((m.public_decode_fn)))(const uint8_t *buf, uint8_t len, uint8_t *n_read, (((m.type_name))) *msg); ((*- if m.is_real_message *)) /** * Send an instance of (((m.type_name))) with the given write function @@ -441,7 +441,7 @@ s8 (((m.public_decode_fn)))(const uint8_t *buf, uint8_t len, uint8_t *n_read, (( * @param write Write function * @return SBP_OK on success, or other libsbp error code */ -s8 (((m.send_fn)))(sbp_state_t *s, u16 sender_id, const (((m.type_name))) *msg, sbp_write_fn_t write); +SBP_EXPORT s8 (((m.send_fn)))(sbp_state_t *s, u16 sender_id, const (((m.type_name))) *msg, sbp_write_fn_t write); ((*- endif *)) /** @@ -457,7 +457,7 @@ s8 (((m.send_fn)))(sbp_state_t *s, u16 sender_id, const (((m.type_name))) *msg, * @param b (((m.type_name))) instance * @return 0, <0, >0 */ -int (((m.cmp_fn)))(const (((m.type_name))) *a, const (((m.type_name))) *b); +SBP_EXPORT int (((m.cmp_fn)))(const (((m.type_name))) *a, const (((m.type_name))) *b); #ifdef __cplusplus }