From fd1cac507bde711f6cac96fbdb08ca1c58d5d8f0 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 30 Aug 2021 15:12:08 +1000 Subject: [PATCH 01/21] setup basic symbol export --- c/CMakeLists.txt | 2 +- c/src/CMakeLists.txt | 29 ++++++++++++++++++++++++----- 2 files changed, 25 insertions(+), 6 deletions(-) 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/src/CMakeLists.txt b/c/src/CMakeLists.txt index b8b4825d1b..0ec174f39b 100644 --- a/c/src/CMakeLists.txt +++ b/c/src/CMakeLists.txt @@ -1,3 +1,5 @@ +include(GenerateExportHeader) + FILE(GLOB generated_c_sources v4/*.c) set(libsbp_SRCS @@ -16,9 +18,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) +generate_export_header(sbp + DEPRECATED_MACRO_NAME CMAKE_SBP_DEPRECATED + NO_DEPRECATED_MACRO_NAME CMAKE_SBP_NO_DEPRECATED + INCLUDE_GUARD_NAME LIBSBP_SBP_EXPORT_H +) +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 +) if (MINGW) if (CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.7.0" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "8.0.0") @@ -34,8 +52,9 @@ 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) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sbp_export.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libsbp) export(EXPORT sbp-export - NAMESPACE LibSbp:: + NAMESPACE swiftnav:: FILE ${PROJECT_BINARY_DIR}/LibSbpImport.cmake) From c7340d271620d1b94a5e46c18e96d28e67a10409 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Fri, 3 Sep 2021 23:10:44 +1000 Subject: [PATCH 02/21] primary functions --- c/include/libsbp/edc.h | 4 +++- c/include/libsbp/sbp.h | 12 +++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/c/include/libsbp/edc.h b/c/include/libsbp/edc.h index bfeb3c55ad..62ebb84c81 100644 --- a/c/include/libsbp/edc.h +++ b/c/include/libsbp/edc.h @@ -15,11 +15,13 @@ #include +#include "sbp_export.h" + #ifdef __cplusplus 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/sbp.h b/c/include/libsbp/sbp.h index 1c2b307678..ea945a6ba5 100644 --- a/c/include/libsbp/sbp.h +++ b/c/include/libsbp/sbp.h @@ -19,6 +19,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -148,11 +150,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 } From 3c738db4d0402c66eb46a4ed7deca90d3e9b178c Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Fri, 3 Sep 2021 23:20:13 +1000 Subject: [PATCH 03/21] v4 --- c/include/libsbp/cpp/message_handler.h | 9 +-- c/include/libsbp/cpp/state.h | 8 ++- c/include/libsbp/v4/api.h | 10 ++-- .../resources/c/v4/sbp_messages_template.h | 56 ++++++++++--------- .../targets/resources/c/v4/sbp_msg_template.h | 2 + 5 files changed, 47 insertions(+), 38 deletions(-) diff --git a/c/include/libsbp/cpp/message_handler.h b/c/include/libsbp/cpp/message_handler.h index d6a76bc3de..9d18050e2f 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_; @@ -184,7 +185,7 @@ inline void sbp_all_msg_cb_passthrough(uint16_t sender_id, sbp_msg_type_t msg_ty instance->handle_sbp_message(sender_id, msg_type, *msg); } -class AllMessageHandler { +class SBP_EXPORT AllMessageHandler { State &state_; sbp_msg_callbacks_node_t callback_node_; diff --git a/c/include/libsbp/cpp/state.h b/c/include/libsbp/cpp/state.h index aa75db3f19..6786b276fc 100644 --- a/c/include/libsbp/cpp/state.h +++ b/c/include/libsbp/cpp/state.h @@ -16,23 +16,25 @@ #include #include +#include "sbp_export.h" + namespace sbp { -class IReader { +class SBP_EXPORT IReader { public: virtual ~IReader() = default; virtual s32 read(u8 *buffer, u32 buffer_length) = 0; }; -class IWriter { +class SBP_EXPORT IWriter { public: virtual ~IWriter() = default; virtual s32 write(const u8 *buffer, u32 buffer_length) = 0; }; -class State { +class SBP_EXPORT State { private: sbp_state_t state_; IReader *reader_; diff --git a/c/include/libsbp/v4/api.h b/c/include/libsbp/v4/api.h index 740adc8f10..8f69e1a86a 100644 --- a/c/include/libsbp/v4/api.h +++ b/c/include/libsbp/v4/api.h @@ -16,18 +16,20 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif 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/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h b/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h index 4383c9c8d8..6b78c5abb2 100644 --- a/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h +++ b/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h @@ -33,6 +33,8 @@ #include ((*- endfor *)) +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,7 +95,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 +103,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 +114,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 +122,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 +132,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 +152,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 +172,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 +192,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 +207,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 +225,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 +240,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 +248,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 +258,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 +266,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 +277,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 +288,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 +300,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 +315,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 +330,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 +346,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 +357,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 +370,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 +384,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 +415,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 +428,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 +443,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 +459,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 } diff --git a/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h b/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h index 49dcf48917..f5d1fbcea8 100644 --- a/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h +++ b/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h @@ -27,6 +27,8 @@ #include ((*- endfor *)) +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif From e402c3fc0df2cc4c1ab256258bd76772088ed7a3 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 09:11:58 +1000 Subject: [PATCH 04/21] legacy --- c/include/libsbp/legacy/api.h | 14 ++++++++------ c/include/libsbp/legacy/cpp/frame_handler.h | 9 ++++++--- c/include/libsbp/legacy/cpp/payload_handler.h | 2 +- c/include/libsbp/legacy/cpp/sbp_stdio.h | 6 ++++-- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/c/include/libsbp/legacy/api.h b/c/include/libsbp/legacy/api.h index 961275f897..f51a3bda27 100644 --- a/c/include/libsbp/legacy/api.h +++ b/c/include/libsbp/legacy/api.h @@ -15,6 +15,8 @@ #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -41,7 +43,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 +58,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 +71,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 +94,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 +110,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 +142,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..385c25c205 100644 --- a/c/include/libsbp/legacy/cpp/frame_handler.h +++ b/c/include/libsbp/legacy/cpp/frame_handler.h @@ -13,12 +13,15 @@ #ifndef SBP_LEGACY_CPP_FRAME_HANDLER_H #define SBP_LEGACY_CPP_FRAME_HANDLER_H -#include #include +#include +#include #include #include +#include "sbp_export.h" + namespace sbp { /** @@ -164,7 +167,7 @@ class FrameHandler { * }; * */ -class AllFrameHandler { +class SBP_EXPORT AllFrameHandler { State &state_; sbp_msg_callbacks_node_t callback_node_; @@ -193,4 +196,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/legacy/cpp/sbp_stdio.h b/c/include/libsbp/legacy/cpp/sbp_stdio.h index 4185f80ae8..e8dd8c9cdc 100644 --- a/c/include/libsbp/legacy/cpp/sbp_stdio.h +++ b/c/include/libsbp/legacy/cpp/sbp_stdio.h @@ -17,9 +17,11 @@ #include +#include "sbp_export.h" + namespace sbp { -class SbpFileReader : public sbp::IReader { +class SBP_EXPORT SbpFileReader : public sbp::IReader { public: explicit SbpFileReader(const char *file_path) : file_stream_(file_path, std::ios::binary | std::ios_base::in) {} @@ -48,7 +50,7 @@ class SbpFileReader : public sbp::IReader { std::ifstream file_stream_; }; -class SbpFileWriter : public sbp::IWriter { +class SBP_EXPORT SbpFileWriter : public sbp::IWriter { public: explicit SbpFileWriter(const char *file_path) : file_stream_(file_path, std::ios::binary | std::ios_base::out) {} From 6d8f119dc2c9997608c29dedcec28acbaf1a65a6 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 09:17:04 +1000 Subject: [PATCH 05/21] make gen-c --- .../libsbp/v4/acquisition/AcqSvProfile.h | 16 ++-- .../libsbp/v4/acquisition/AcqSvProfileDep.h | 17 ++-- .../libsbp/v4/acquisition/MSG_ACQ_RESULT.h | 22 +++-- .../v4/acquisition/MSG_ACQ_RESULT_DEP_A.h | 24 ++--- .../v4/acquisition/MSG_ACQ_RESULT_DEP_B.h | 24 ++--- .../v4/acquisition/MSG_ACQ_RESULT_DEP_C.h | 24 ++--- .../v4/acquisition/MSG_ACQ_SV_PROFILE.h | 23 +++-- .../v4/acquisition/MSG_ACQ_SV_PROFILE_DEP.h | 25 ++--- .../bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h | 36 ++++---- .../bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h | 10 +- .../bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h | 36 ++++---- .../v4/bootload/MSG_BOOTLOADER_JUMP_TO_APP.h | 14 +-- .../v4/bootload/MSG_NAP_DEVICE_DNA_REQ.h | 25 ++--- .../v4/bootload/MSG_NAP_DEVICE_DNA_RESP.h | 25 ++--- .../libsbp/v4/ext_events/MSG_EXT_EVENT.h | 21 +++-- .../libsbp/v4/file_io/MSG_FILEIO_CONFIG_REQ.h | 24 ++--- .../v4/file_io/MSG_FILEIO_CONFIG_RESP.h | 25 ++--- .../v4/file_io/MSG_FILEIO_READ_DIR_REQ.h | 56 ++++++------ .../v4/file_io/MSG_FILEIO_READ_DIR_RESP.h | 49 +++++----- .../libsbp/v4/file_io/MSG_FILEIO_READ_REQ.h | 75 ++++++++------- .../libsbp/v4/file_io/MSG_FILEIO_READ_RESP.h | 24 ++--- .../libsbp/v4/file_io/MSG_FILEIO_REMOVE.h | 89 +++++++++--------- .../libsbp/v4/file_io/MSG_FILEIO_WRITE_REQ.h | 76 ++++++++-------- .../libsbp/v4/file_io/MSG_FILEIO_WRITE_RESP.h | 24 ++--- c/include/libsbp/v4/flash/MSG_FLASH_DONE.h | 22 +++-- c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h | 22 +++-- c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h | 22 +++-- .../libsbp/v4/flash/MSG_FLASH_READ_REQ.h | 23 +++-- .../libsbp/v4/flash/MSG_FLASH_READ_RESP.h | 23 +++-- .../v4/flash/MSG_M25_FLASH_WRITE_STATUS.h | 14 +-- .../v4/flash/MSG_STM_FLASH_LOCK_SECTOR.h | 17 ++-- .../v4/flash/MSG_STM_FLASH_UNLOCK_SECTOR.h | 10 +- .../libsbp/v4/flash/MSG_STM_UNIQUE_ID_REQ.h | 24 ++--- .../libsbp/v4/flash/MSG_STM_UNIQUE_ID_RESP.h | 25 ++--- c/include/libsbp/v4/gnss/CarrierPhase.h | 16 ++-- c/include/libsbp/v4/gnss/GPSTime.h | 14 ++- c/include/libsbp/v4/gnss/GPSTimeDep.h | 15 +-- c/include/libsbp/v4/gnss/GPSTimeSec.h | 15 +-- c/include/libsbp/v4/gnss/GnssSignal.h | 16 ++-- c/include/libsbp/v4/gnss/GnssSignalDep.h | 16 ++-- c/include/libsbp/v4/gnss/SvId.h | 12 ++- c/include/libsbp/v4/imu/MSG_IMU_AUX.h | 19 ++-- c/include/libsbp/v4/imu/MSG_IMU_RAW.h | 19 ++-- .../libsbp/v4/linux/MSG_LINUX_CPU_STATE.h | 74 +++++++-------- .../v4/linux/MSG_LINUX_CPU_STATE_DEP_A.h | 43 +++++---- .../libsbp/v4/linux/MSG_LINUX_MEM_STATE.h | 74 +++++++-------- .../v4/linux/MSG_LINUX_MEM_STATE_DEP_A.h | 43 +++++---- .../v4/linux/MSG_LINUX_PROCESS_FD_COUNT.h | 40 ++++---- .../v4/linux/MSG_LINUX_PROCESS_FD_SUMMARY.h | 39 ++++---- .../linux/MSG_LINUX_PROCESS_SOCKET_COUNTS.h | 36 ++++---- .../linux/MSG_LINUX_PROCESS_SOCKET_QUEUES.h | 36 ++++---- .../libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h | 25 ++--- .../libsbp/v4/linux/MSG_LINUX_SYS_STATE.h | 23 +++-- .../v4/linux/MSG_LINUX_SYS_STATE_DEP_A.h | 17 ++-- c/include/libsbp/v4/logging/MSG_FWD.h | 16 ++-- c/include/libsbp/v4/logging/MSG_LOG.h | 66 ++++++++------ c/include/libsbp/v4/logging/MSG_PRINT_DEP.h | 82 ++++++++++------- c/include/libsbp/v4/mag/MSG_MAG_RAW.h | 19 ++-- .../EstimatedHorizontalErrorEllipse.h | 8 +- .../v4/navigation/MSG_AGE_CORRECTIONS.h | 23 +++-- .../libsbp/v4/navigation/MSG_BASELINE_ECEF.h | 22 +++-- .../v4/navigation/MSG_BASELINE_ECEF_DEP_A.h | 25 ++--- .../navigation/MSG_BASELINE_HEADING_DEP_A.h | 14 +-- .../libsbp/v4/navigation/MSG_BASELINE_NED.h | 22 +++-- .../v4/navigation/MSG_BASELINE_NED_DEP_A.h | 25 ++--- c/include/libsbp/v4/navigation/MSG_DOPS.h | 18 ++-- .../libsbp/v4/navigation/MSG_DOPS_DEP_A.h | 22 +++-- c/include/libsbp/v4/navigation/MSG_GPS_TIME.h | 20 ++-- .../libsbp/v4/navigation/MSG_GPS_TIME_DEP_A.h | 23 +++-- .../libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h | 22 +++-- c/include/libsbp/v4/navigation/MSG_POS_ECEF.h | 20 ++-- .../libsbp/v4/navigation/MSG_POS_ECEF_COV.h | 22 +++-- .../v4/navigation/MSG_POS_ECEF_COV_GNSS.h | 24 ++--- .../libsbp/v4/navigation/MSG_POS_ECEF_DEP_A.h | 23 +++-- .../libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h | 22 +++-- c/include/libsbp/v4/navigation/MSG_POS_LLH.h | 19 ++-- .../libsbp/v4/navigation/MSG_POS_LLH_ACC.h | 22 +++-- .../libsbp/v4/navigation/MSG_POS_LLH_COV.h | 22 +++-- .../v4/navigation/MSG_POS_LLH_COV_GNSS.h | 24 ++--- .../libsbp/v4/navigation/MSG_POS_LLH_DEP_A.h | 22 +++-- .../libsbp/v4/navigation/MSG_POS_LLH_GNSS.h | 22 +++-- .../v4/navigation/MSG_PROTECTION_LEVEL.h | 24 ++--- .../navigation/MSG_PROTECTION_LEVEL_DEP_A.h | 14 +-- c/include/libsbp/v4/navigation/MSG_UTC_TIME.h | 20 ++-- .../libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h | 22 +++-- c/include/libsbp/v4/navigation/MSG_VEL_BODY.h | 20 ++-- c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h | 20 ++-- .../libsbp/v4/navigation/MSG_VEL_ECEF_COV.h | 22 +++-- .../v4/navigation/MSG_VEL_ECEF_COV_GNSS.h | 24 ++--- .../libsbp/v4/navigation/MSG_VEL_ECEF_DEP_A.h | 23 +++-- .../libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h | 22 +++-- c/include/libsbp/v4/navigation/MSG_VEL_NED.h | 19 ++-- .../libsbp/v4/navigation/MSG_VEL_NED_COV.h | 22 +++-- .../v4/navigation/MSG_VEL_NED_COV_GNSS.h | 24 ++--- .../libsbp/v4/navigation/MSG_VEL_NED_DEP_A.h | 22 +++-- .../libsbp/v4/navigation/MSG_VEL_NED_GNSS.h | 22 +++-- c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h | 21 +++-- .../v4/observation/AlmanacCommonContent.h | 19 ++-- .../v4/observation/AlmanacCommonContentDep.h | 12 ++- .../libsbp/v4/observation/CarrierPhaseDepA.h | 17 ++-- c/include/libsbp/v4/observation/Doppler.h | 12 ++- .../v4/observation/EphemerisCommonContent.h | 15 +-- .../observation/EphemerisCommonContentDepA.h | 8 +- .../observation/EphemerisCommonContentDepB.h | 8 +- c/include/libsbp/v4/observation/GnssCapb.h | 14 ++- .../libsbp/v4/observation/MSG_ALMANAC_GLO.h | 22 +++-- .../v4/observation/MSG_ALMANAC_GLO_DEP.h | 23 +++-- .../libsbp/v4/observation/MSG_ALMANAC_GPS.h | 22 +++-- .../v4/observation/MSG_ALMANAC_GPS_DEP.h | 23 +++-- .../libsbp/v4/observation/MSG_BASE_POS_ECEF.h | 22 +++-- .../libsbp/v4/observation/MSG_BASE_POS_LLH.h | 22 +++-- .../libsbp/v4/observation/MSG_EPHEMERIS_BDS.h | 22 +++-- .../v4/observation/MSG_EPHEMERIS_DEP_A.h | 23 +++-- .../v4/observation/MSG_EPHEMERIS_DEP_B.h | 23 +++-- .../v4/observation/MSG_EPHEMERIS_DEP_C.h | 23 +++-- .../v4/observation/MSG_EPHEMERIS_DEP_D.h | 23 +++-- .../libsbp/v4/observation/MSG_EPHEMERIS_GAL.h | 22 +++-- .../v4/observation/MSG_EPHEMERIS_GAL_DEP_A.h | 25 ++--- .../libsbp/v4/observation/MSG_EPHEMERIS_GLO.h | 22 +++-- .../v4/observation/MSG_EPHEMERIS_GLO_DEP_A.h | 25 ++--- .../v4/observation/MSG_EPHEMERIS_GLO_DEP_B.h | 25 ++--- .../v4/observation/MSG_EPHEMERIS_GLO_DEP_C.h | 25 ++--- .../v4/observation/MSG_EPHEMERIS_GLO_DEP_D.h | 25 ++--- .../libsbp/v4/observation/MSG_EPHEMERIS_GPS.h | 22 +++-- .../v4/observation/MSG_EPHEMERIS_GPS_DEP_E.h | 25 ++--- .../v4/observation/MSG_EPHEMERIS_GPS_DEP_F.h | 25 ++--- .../v4/observation/MSG_EPHEMERIS_QZSS.h | 23 +++-- .../v4/observation/MSG_EPHEMERIS_SBAS.h | 23 +++-- .../v4/observation/MSG_EPHEMERIS_SBAS_DEP_A.h | 21 +++-- .../v4/observation/MSG_EPHEMERIS_SBAS_DEP_B.h | 21 +++-- .../libsbp/v4/observation/MSG_GLO_BIASES.h | 22 +++-- .../libsbp/v4/observation/MSG_GNSS_CAPB.h | 21 +++-- .../libsbp/v4/observation/MSG_GROUP_DELAY.h | 22 +++-- .../v4/observation/MSG_GROUP_DELAY_DEP_A.h | 24 ++--- .../v4/observation/MSG_GROUP_DELAY_DEP_B.h | 24 ++--- c/include/libsbp/v4/observation/MSG_IONO.h | 18 ++-- c/include/libsbp/v4/observation/MSG_OBS.h | 16 ++-- .../libsbp/v4/observation/MSG_OBS_DEP_A.h | 21 +++-- .../libsbp/v4/observation/MSG_OBS_DEP_B.h | 21 +++-- .../libsbp/v4/observation/MSG_OBS_DEP_C.h | 21 +++-- c/include/libsbp/v4/observation/MSG_OSR.h | 16 ++-- .../libsbp/v4/observation/MSG_SV_AZ_EL.h | 20 ++-- .../MSG_SV_CONFIGURATION_GPS_DEP.h | 10 +- .../libsbp/v4/observation/ObservationHeader.h | 17 ++-- .../v4/observation/ObservationHeaderDep.h | 19 ++-- .../libsbp/v4/observation/PackedObsContent.h | 17 ++-- .../v4/observation/PackedObsContentDepA.h | 15 +-- .../v4/observation/PackedObsContentDepB.h | 15 +-- .../v4/observation/PackedObsContentDepC.h | 15 +-- .../libsbp/v4/observation/PackedOsrContent.h | 17 ++-- c/include/libsbp/v4/observation/SvAzEl.h | 13 ++- .../libsbp/v4/orientation/MSG_ANGULAR_RATE.h | 22 +++-- .../v4/orientation/MSG_BASELINE_HEADING.h | 24 ++--- .../libsbp/v4/orientation/MSG_ORIENT_EULER.h | 22 +++-- .../libsbp/v4/orientation/MSG_ORIENT_QUAT.h | 22 +++-- c/include/libsbp/v4/piksi/Latency.h | 12 ++- c/include/libsbp/v4/piksi/MSG_ALMANAC.h | 19 ++-- .../libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h | 24 ++--- .../libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h | 87 +++++++++--------- c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h | 91 ++++++++++--------- c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h | 22 +++-- c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h | 22 +++-- c/include/libsbp/v4/piksi/MSG_CW_START.h | 20 ++-- .../libsbp/v4/piksi/MSG_DEVICE_MONITOR.h | 23 +++-- .../libsbp/v4/piksi/MSG_FRONT_END_GAIN.h | 23 +++-- c/include/libsbp/v4/piksi/MSG_IAR_STATE.h | 21 +++-- c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h | 22 +++-- .../libsbp/v4/piksi/MSG_MASK_SATELLITE.h | 23 +++-- .../libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h | 25 ++--- .../v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h | 10 +- .../libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h | 24 ++--- .../libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h | 25 ++--- c/include/libsbp/v4/piksi/MSG_RESET.h | 19 ++-- c/include/libsbp/v4/piksi/MSG_RESET_DEP.h | 21 +++-- c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h | 22 +++-- c/include/libsbp/v4/piksi/MSG_SET_TIME.h | 20 ++-- c/include/libsbp/v4/piksi/MSG_SPECAN.h | 19 ++-- c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h | 22 +++-- c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h | 22 +++-- c/include/libsbp/v4/piksi/MSG_UART_STATE.h | 22 +++-- .../libsbp/v4/piksi/MSG_UART_STATE_DEPA.h | 23 +++-- c/include/libsbp/v4/piksi/NetworkUsage.h | 16 ++-- c/include/libsbp/v4/piksi/Period.h | 12 ++- c/include/libsbp/v4/piksi/UARTChannel.h | 15 +-- c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h | 20 ++-- c/include/libsbp/v4/sbp_msg.h | 2 + .../MSG_SETTINGS_READ_BY_INDEX_DONE.h | 10 +- .../settings/MSG_SETTINGS_READ_BY_INDEX_REQ.h | 10 +- .../MSG_SETTINGS_READ_BY_INDEX_RESP.h | 38 ++++---- .../v4/settings/MSG_SETTINGS_READ_REQ.h | 55 +++++------ .../v4/settings/MSG_SETTINGS_READ_RESP.h | 54 ++++++----- .../v4/settings/MSG_SETTINGS_REGISTER.h | 55 +++++------ .../v4/settings/MSG_SETTINGS_REGISTER_RESP.h | 42 +++++---- .../libsbp/v4/settings/MSG_SETTINGS_SAVE.h | 22 +++-- .../libsbp/v4/settings/MSG_SETTINGS_WRITE.h | 64 +++++++------ .../v4/settings/MSG_SETTINGS_WRITE_RESP.h | 53 ++++++----- .../libsbp/v4/solution_meta/GNSSInputType.h | 16 ++-- .../libsbp/v4/solution_meta/IMUInputType.h | 16 ++-- .../libsbp/v4/solution_meta/MSG_SOLN_META.h | 21 +++-- .../v4/solution_meta/MSG_SOLN_META_DEP_A.h | 23 +++-- .../libsbp/v4/solution_meta/OdoInputType.h | 16 ++-- .../v4/solution_meta/SolutionInputType.h | 17 ++-- c/include/libsbp/v4/ssr/CodeBiasesContent.h | 17 ++-- .../libsbp/v4/ssr/GridDefinitionHeaderDepA.h | 8 +- .../libsbp/v4/ssr/GriddedCorrectionHeader.h | 15 +-- .../v4/ssr/GriddedCorrectionHeaderDepA.h | 8 +- c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h | 23 +++-- .../v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h | 14 +-- .../v4/ssr/MSG_SSR_GRIDDED_CORRECTION_DEP_A.h | 10 +- .../MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A.h | 10 +- .../v4/ssr/MSG_SSR_GRID_DEFINITION_DEP_A.h | 10 +- c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h | 23 +++-- .../libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK_DEP_A.h | 17 ++-- .../libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h | 24 ++--- .../libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h | 24 ++--- .../libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h | 25 ++--- .../v4/ssr/MSG_SSR_STEC_CORRECTION_DEP_A.h | 10 +- .../libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h | 25 ++--- c/include/libsbp/v4/ssr/PhaseBiasesContent.h | 18 ++-- c/include/libsbp/v4/ssr/STECHeader.h | 14 ++- c/include/libsbp/v4/ssr/STECHeaderDepA.h | 16 ++-- c/include/libsbp/v4/ssr/STECResidual.h | 16 ++-- c/include/libsbp/v4/ssr/STECResidualNoStd.h | 18 ++-- c/include/libsbp/v4/ssr/STECSatElement.h | 16 ++-- c/include/libsbp/v4/ssr/SatelliteAPC.h | 16 ++-- .../v4/ssr/TroposphericDelayCorrection.h | 8 +- .../v4/ssr/TroposphericDelayCorrectionNoStd.h | 8 +- .../libsbp/v4/system/MSG_CSAC_TELEMETRY.h | 75 ++++++++------- .../v4/system/MSG_CSAC_TELEMETRY_LABELS.h | 44 +++++---- c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h | 91 ++++++++++--------- .../libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h | 24 ++--- c/include/libsbp/v4/system/MSG_GROUP_META.h | 22 +++-- c/include/libsbp/v4/system/MSG_HEARTBEAT.h | 21 +++-- c/include/libsbp/v4/system/MSG_INS_STATUS.h | 22 +++-- c/include/libsbp/v4/system/MSG_INS_UPDATES.h | 22 +++-- c/include/libsbp/v4/system/MSG_PPS_TIME.h | 20 ++-- c/include/libsbp/v4/system/MSG_STARTUP.h | 19 ++-- .../libsbp/v4/system/MSG_STATUS_REPORT.h | 22 +++-- c/include/libsbp/v4/system/SubSystemReport.h | 16 ++-- .../v4/tracking/MSG_MEASUREMENT_STATE.h | 24 ++--- .../libsbp/v4/tracking/MSG_TRACKING_IQ.h | 22 +++-- .../v4/tracking/MSG_TRACKING_IQ_DEP_A.h | 24 ++--- .../v4/tracking/MSG_TRACKING_IQ_DEP_B.h | 24 ++--- .../libsbp/v4/tracking/MSG_TRACKING_STATE.h | 23 +++-- .../v4/tracking/MSG_TRACKING_STATE_DEP_A.h | 21 +++-- .../v4/tracking/MSG_TRACKING_STATE_DEP_B.h | 21 +++-- .../MSG_TRACKING_STATE_DETAILED_DEP.h | 10 +- .../MSG_TRACKING_STATE_DETAILED_DEP_A.h | 10 +- .../libsbp/v4/tracking/MeasurementState.h | 16 ++-- .../v4/tracking/TrackingChannelCorrelation.h | 8 +- .../tracking/TrackingChannelCorrelationDep.h | 8 +- .../libsbp/v4/tracking/TrackingChannelState.h | 19 ++-- .../v4/tracking/TrackingChannelStateDepA.h | 8 +- .../v4/tracking/TrackingChannelStateDepB.h | 8 +- c/include/libsbp/v4/user/MSG_USER_DATA.h | 21 +++-- c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h | 20 ++-- c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h | 21 +++-- 257 files changed, 3461 insertions(+), 2642 deletions(-) diff --git a/c/include/libsbp/v4/acquisition/AcqSvProfile.h b/c/include/libsbp/v4/acquisition/AcqSvProfile.h index e3e5c92227..1dd296885e 100644 --- a/c/include/libsbp/v4/acquisition/AcqSvProfile.h +++ b/c/include/libsbp/v4/acquisition/AcqSvProfile.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -138,8 +140,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 +159,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 +178,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..91047f6136 100644 --- a/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h +++ b/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -136,8 +138,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 +157,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 +176,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..8aeb606735 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -99,8 +101,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 +120,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 +139,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 +158,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..7463c2f943 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,9 +99,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 +118,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 +137,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 +156,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..7b2d802591 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,9 +99,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 +118,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 +137,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 +156,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..192de059cb 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -96,9 +98,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 +117,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 +136,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 +155,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..c748bd6188 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,8 +96,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 +115,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 +134,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 +153,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..76c2a1f2e8 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,9 +95,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 +114,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 +134,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 +153,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/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h index 5c5cb4d6ed..3893a53d35 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -54,7 +56,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 +66,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 +80,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 +91,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 +104,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 +123,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 +145,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 +168,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 +187,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 +208,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 +227,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 +237,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 +248,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 +283,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 +305,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 +325,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 +344,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..5709eaae17 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -84,7 +86,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 +107,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 +127,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 +146,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..47373d4319 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -62,7 +64,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 +74,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 +88,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 +99,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 +112,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 +131,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 +153,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 +175,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 +193,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 +214,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 +233,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 +243,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 +254,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 +289,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 +310,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 +330,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 +349,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..8378e93f39 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -80,7 +82,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 +103,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 +123,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 +142,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..b27bd7c903 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -85,9 +87,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 +106,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 +126,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 +145,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..6c87e190ad 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -84,9 +86,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 +105,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 +125,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 +144,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..fc5c99f71f 100644 --- a/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h +++ b/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,8 +104,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 +123,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 +142,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 +161,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..f2c5c3cc58 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,9 +84,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 +103,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 +122,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 +141,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..696e48c76e 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,9 +100,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 +119,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 +139,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 +158,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..7d09b614e1 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -71,7 +73,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 +83,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 +96,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 +106,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 +119,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 +138,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 +160,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 +182,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 +200,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 +220,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 +238,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 +248,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 +259,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 +293,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 +312,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 +332,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 +351,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..d5c5e4cd1b 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -63,7 +65,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 +75,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 +88,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 +99,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 +112,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 +120,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 +134,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 +150,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 +166,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 +188,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 +209,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 +232,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 +247,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 +261,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 +295,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 +314,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 +334,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 +353,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..cd89af4318 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -75,7 +77,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 +87,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 +100,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 +109,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 +122,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 +141,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 +163,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 +185,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 +203,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 +223,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 +241,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 +251,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 +262,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 +296,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 +315,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 +334,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 +353,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..1bfd03226d 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -99,9 +101,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 +120,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 +139,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 +158,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..1fef531ec5 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -57,7 +59,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 +69,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 +82,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 +91,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 +104,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 +123,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 +146,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 +168,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 +186,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 +206,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 +224,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 +234,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 +245,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 +279,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 +298,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 +317,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 +336,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..88ef0c7132 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -85,7 +87,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 +97,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 +110,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 +119,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 +132,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 +151,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 +173,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 +195,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 +213,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 +233,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 +251,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 +261,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 +272,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 +307,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 +326,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 +345,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 +364,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..5627dc939f 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,9 +85,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 +104,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 +123,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 +142,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..e74454aaa2 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,8 +84,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 +103,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 +122,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 +141,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..b2c0914ca2 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -88,8 +90,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 +109,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 +128,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 +147,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..2200234583 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -100,8 +102,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 +121,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 +140,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 +159,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..927797fa9f 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -96,8 +98,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 +117,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 +136,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 +155,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..2ae40d155e 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -96,8 +98,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 +117,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 +136,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 +155,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..67013f2d55 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,7 +83,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 +104,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 +124,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 +143,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..716c16db5a 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,7 +83,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 +104,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 +124,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 +143,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..309f8b7cfc 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,7 +84,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 +105,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 +125,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 +144,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..5b86164907 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -84,9 +86,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 +105,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 +124,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 +143,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..553d57b3fe 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,9 +85,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 +104,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 +124,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 +143,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..260994b9b2 100644 --- a/c/include/libsbp/v4/gnss/CarrierPhase.h +++ b/c/include/libsbp/v4/gnss/CarrierPhase.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,8 +89,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 +108,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 +127,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..c55dad6ff0 100644 --- a/c/include/libsbp/v4/gnss/GPSTime.h +++ b/c/include/libsbp/v4/gnss/GPSTime.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -92,8 +94,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 +113,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 +131,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..86096801a9 100644 --- a/c/include/libsbp/v4/gnss/GPSTimeDep.h +++ b/c/include/libsbp/v4/gnss/GPSTimeDep.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,8 +88,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 +107,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 +125,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..63284e2ddf 100644 --- a/c/include/libsbp/v4/gnss/GPSTimeSec.h +++ b/c/include/libsbp/v4/gnss/GPSTimeSec.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,8 +88,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 +107,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 +125,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..855d6337e7 100644 --- a/c/include/libsbp/v4/gnss/GnssSignal.h +++ b/c/include/libsbp/v4/gnss/GnssSignal.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,8 +88,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 +107,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 +126,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..93994ba91a 100644 --- a/c/include/libsbp/v4/gnss/GnssSignalDep.h +++ b/c/include/libsbp/v4/gnss/GnssSignalDep.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,8 +95,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 +114,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 +133,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..56f0b944ed 100644 --- a/c/include/libsbp/v4/gnss/SvId.h +++ b/c/include/libsbp/v4/gnss/SvId.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -85,8 +87,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 +105,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 +123,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..5974df41fb 100644 --- a/c/include/libsbp/v4/imu/MSG_IMU_AUX.h +++ b/c/include/libsbp/v4/imu/MSG_IMU_AUX.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -91,8 +93,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 +112,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 +130,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 +149,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..a91914f4ec 100644 --- a/c/include/libsbp/v4/imu/MSG_IMU_RAW.h +++ b/c/include/libsbp/v4/imu/MSG_IMU_RAW.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -122,8 +124,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 +143,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 +161,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 +180,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..6863190425 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -85,7 +87,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 +97,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 +110,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 +119,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 +132,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 +151,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 +173,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 +195,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 +213,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 +233,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 +251,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 +261,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 +272,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 +306,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 +325,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 +344,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 +363,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..63ed199611 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -75,7 +77,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 +87,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 +100,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 +111,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 +124,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 +143,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 +165,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 +187,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 +205,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 +225,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 +243,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 +253,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 +264,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 +298,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 +319,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 +339,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 +358,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..6ad6d9404d 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -85,7 +87,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 +97,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 +110,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 +119,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 +132,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 +151,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 +173,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 +195,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 +213,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 +233,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 +251,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 +261,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 +272,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 +306,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 +325,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 +344,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 +363,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..f56205082b 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -75,7 +77,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 +87,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 +100,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 +111,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 +124,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 +143,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 +165,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 +187,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 +205,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 +225,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 +243,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 +253,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 +264,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 +298,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 +319,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 +339,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 +358,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..e1e7f7ef81 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -69,7 +71,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 +81,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 +94,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 +105,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 +118,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 +137,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 +159,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 +181,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 +199,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 +219,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 +237,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 +247,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 +258,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 +292,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 +313,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 +333,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 +352,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..6f36698774 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -63,7 +65,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 +75,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 +89,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 +100,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 +113,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 +122,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 +136,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 +152,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 +168,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 +191,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 +212,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 +235,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 +250,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 +265,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 +300,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 +321,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 +341,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 +360,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..dd5432450f 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,7 +85,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 +95,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 +109,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 +120,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 +133,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 +152,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 +174,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 +197,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 +216,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 +237,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 +256,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 +266,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 +277,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 +312,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 +334,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 +354,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 +373,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..8652cbfbed 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -95,7 +97,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 +107,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 +121,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 +132,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 +145,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 +164,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 +186,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 +209,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 +228,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 +249,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 +268,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 +278,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 +289,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 +324,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 +346,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 +366,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 +385,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..d5fdc80f9d 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,9 +99,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 +118,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 +138,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 +157,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..7fec414d05 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -115,8 +117,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 +136,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 +155,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 +174,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..27d8e4ffb2 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -105,7 +107,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 +128,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 +148,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 +167,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..6aa909c515 100644 --- a/c/include/libsbp/v4/logging/MSG_FWD.h +++ b/c/include/libsbp/v4/logging/MSG_FWD.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -103,8 +105,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 +123,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 +141,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 +159,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..3e4311955a 100644 --- a/c/include/libsbp/v4/logging/MSG_LOG.h +++ b/c/include/libsbp/v4/logging/MSG_LOG.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -61,7 +63,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 +72,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 +84,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 +93,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 +105,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 +123,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 +144,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 +167,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 +184,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 +204,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 +224,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 +236,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 +246,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 +277,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 +295,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 +313,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 +331,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..457e55583a 100644 --- a/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h +++ b/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -54,7 +56,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 +65,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 +77,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 +86,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 +99,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 +118,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 +141,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 +165,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 +185,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 +207,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 +227,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 +237,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 +248,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 +281,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 +300,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 +319,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 +338,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..9f75630817 100644 --- a/c/include/libsbp/v4/mag/MSG_MAG_RAW.h +++ b/c/include/libsbp/v4/mag/MSG_MAG_RAW.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -100,8 +102,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 +121,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 +139,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 +158,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..1e0a41af52 100644 --- a/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h +++ b/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -90,7 +92,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 +114,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 +133,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..fe49523f19 100644 --- a/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h +++ b/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,8 +88,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 +107,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 +126,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 +145,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..8f39d80d7c 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -113,8 +115,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 +134,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 +153,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 +172,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..ee12d98af6 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -113,9 +115,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 +134,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 +154,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 +173,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..97c482197b 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,7 +99,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 +120,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 +140,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 +159,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..3443931f2e 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -120,8 +122,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 +141,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 +160,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 +179,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..2213791da4 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -121,9 +123,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 +142,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 +162,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 +181,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..803fa1256f 100644 --- a/c/include/libsbp/v4/navigation/MSG_DOPS.h +++ b/c/include/libsbp/v4/navigation/MSG_DOPS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -112,8 +114,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 +132,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 +150,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 +169,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..3db5bb89cd 100644 --- a/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -106,8 +108,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 +127,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 +146,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 +165,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..cb305868f2 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -100,8 +102,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 +121,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 +139,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 +158,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..0099eff8cb 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -100,8 +102,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 +121,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 +140,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 +159,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..4be52387ef 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -100,8 +102,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 +121,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 +140,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 +159,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..8b96ed5c88 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,8 +118,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 +137,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 +155,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 +174,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..42f64ceec5 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -142,8 +144,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 +163,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 +182,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 +201,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..43ab98d8dd 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -142,9 +144,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 +163,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 +182,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 +201,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..61afcaf90c 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,8 +118,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 +137,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 +156,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 +175,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..5157677b59 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,8 +118,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 +137,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 +156,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 +175,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..7ceb6b6579 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -119,8 +121,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 +140,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 +158,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 +177,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..63c7117ceb 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -155,8 +157,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 +176,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 +195,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 +214,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..927476af66 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -142,8 +144,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 +163,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 +182,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 +201,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..b928e40b5e 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -142,9 +144,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 +163,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 +182,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 +201,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..97ccf5aacd 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -121,8 +123,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 +142,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 +161,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 +180,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..061838dccb 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -120,8 +122,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 +141,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 +160,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 +179,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..215494d8d4 100644 --- a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h +++ b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -184,9 +186,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 +205,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 +224,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 +243,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..36a8c80c5c 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -112,7 +114,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 +135,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 +155,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 +174,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..d5c3a49d37 100644 --- a/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h +++ b/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -121,8 +123,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 +142,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 +160,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 +179,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..2d99474201 100644 --- a/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -121,8 +123,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 +142,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 +161,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 +180,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..07f319418d 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -143,8 +145,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 +164,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 +182,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 +201,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..20f9731c27 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -112,8 +114,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 +133,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 +151,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 +170,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..515625f98f 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -137,8 +139,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 +158,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 +177,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 +196,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..fa007c2056 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -137,9 +139,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 +158,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 +177,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 +196,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..d8a8687a6e 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -112,8 +114,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 +133,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 +152,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 +171,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..49cb239aba 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -112,8 +114,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 +133,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 +152,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 +171,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..0b42f6b4cd 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -117,8 +119,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 +138,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 +156,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 +175,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..76a24d691d 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -140,8 +142,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 +161,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 +180,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 +199,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..3e7afee2ce 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -140,9 +142,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 +161,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 +180,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 +199,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..3713792d70 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -120,8 +122,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 +141,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 +160,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 +179,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..67a3bfb10d 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -118,8 +120,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 +139,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 +158,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 +177,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..417949848a 100644 --- a/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h +++ b/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -122,8 +124,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 +143,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 +162,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 +181,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..ce93e8bab7 100644 --- a/c/include/libsbp/v4/observation/AlmanacCommonContent.h +++ b/c/include/libsbp/v4/observation/AlmanacCommonContent.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,9 +118,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 +137,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 +156,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..aa0c0651c1 100644 --- a/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h +++ b/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,7 +118,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 +139,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 +158,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..769e473e1d 100644 --- a/c/include/libsbp/v4/observation/CarrierPhaseDepA.h +++ b/c/include/libsbp/v4/observation/CarrierPhaseDepA.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -88,8 +90,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 +109,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 +128,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..ec9b17f197 100644 --- a/c/include/libsbp/v4/observation/Doppler.h +++ b/c/include/libsbp/v4/observation/Doppler.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,8 +88,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 +106,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 +124,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..cf1d164c59 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContent.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContent.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -106,7 +108,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 +127,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 +146,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..424c1285f9 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -107,7 +109,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 +131,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 +150,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..238fdbc3ba 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -106,7 +108,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 +130,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 +149,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..b5cc39bb04 100644 --- a/c/include/libsbp/v4/observation/GnssCapb.h +++ b/c/include/libsbp/v4/observation/GnssCapb.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -147,8 +149,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 +168,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 +186,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..499d986103 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -120,8 +122,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 +141,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 +160,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 +179,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..426d0a0b93 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -120,8 +122,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 +141,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 +160,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 +179,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..2db01f287a 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -129,8 +131,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 +150,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 +169,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 +188,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..285a3e9eb2 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -129,8 +131,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 +150,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 +169,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 +188,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..17b312292e 100644 --- a/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h +++ b/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,8 +96,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 +115,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 +134,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 +153,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..4a84f58309 100644 --- a/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h +++ b/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,8 +95,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 +114,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 +133,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 +152,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..6b70ce13c4 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -208,8 +210,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 +229,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 +248,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 +267,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..01160633b4 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -209,8 +211,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 +230,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 +249,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 +268,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..a70f73a2ed 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -214,8 +216,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 +235,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 +254,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 +273,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..60b60a26a9 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -228,8 +230,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 +249,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 +268,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 +287,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..04ece1415c 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -228,8 +230,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 +249,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 +268,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 +287,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..f6200edc2c 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -209,8 +211,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 +230,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 +249,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 +268,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..fdee894d6b 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -202,9 +204,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 +223,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 +243,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 +262,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..333ddccbe8 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -124,8 +126,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 +145,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 +164,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 +183,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..1fdf365e31 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -109,9 +111,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 +130,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 +150,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 +169,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..a06721455e 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -109,9 +111,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 +130,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 +150,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 +169,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..c63d06c74f 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -119,9 +121,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 +140,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 +160,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 +179,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..aa813b822e 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -122,9 +124,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 +143,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 +163,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 +182,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..319c0c9454 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -199,8 +201,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 +220,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 +239,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 +258,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..953b12514c 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -199,9 +201,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 +220,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 +240,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 +259,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..45a041a48d 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -197,9 +199,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 +218,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 +238,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 +257,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..5652544db3 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -197,8 +199,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 +218,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 +237,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 +256,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..e106caa7b8 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,8 +104,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 +123,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 +142,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 +161,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..6b231292e2 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,7 +104,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 +123,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 +143,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 +162,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..98b7ba7d7c 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -107,7 +109,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 +128,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 +148,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 +167,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..6d4624edd9 100644 --- a/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h +++ b/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,8 +104,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 +123,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 +142,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 +161,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..2a1d249f5b 100644 --- a/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h +++ b/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,8 +85,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 +104,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 +123,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 +142,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..9888c5500e 100644 --- a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h +++ b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -99,8 +101,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 +120,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 +139,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 +158,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..fca29ed44f 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,9 +100,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 +119,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 +138,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 +157,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..3da3c59ab3 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -99,9 +101,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 +120,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 +139,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 +158,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..2ba7005d30 100644 --- a/c/include/libsbp/v4/observation/MSG_IONO.h +++ b/c/include/libsbp/v4/observation/MSG_IONO.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,8 +100,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 +118,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 +136,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 +155,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..fb550796ab 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS.h +++ b/c/include/libsbp/v4/observation/MSG_OBS.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,8 +104,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 +122,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 +140,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 +158,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..5f2b9bdc51 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,8 +100,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 +119,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 +138,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 +157,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..dc873ad843 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -101,8 +103,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 +122,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 +141,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 +160,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..6a8c917144 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -103,8 +105,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 +124,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 +143,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 +162,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..470cc65188 100644 --- a/c/include/libsbp/v4/observation/MSG_OSR.h +++ b/c/include/libsbp/v4/observation/MSG_OSR.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,8 +99,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 +117,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 +135,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 +153,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..8f4d62ba0e 100644 --- a/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h +++ b/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,8 +95,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 +114,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 +132,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 +151,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..ea46b80854 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,7 +89,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 +110,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 +130,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 +149,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..3971d2b7f6 100644 --- a/c/include/libsbp/v4/observation/ObservationHeader.h +++ b/c/include/libsbp/v4/observation/ObservationHeader.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,8 +89,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 +108,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 +127,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..011bb4aa64 100644 --- a/c/include/libsbp/v4/observation/ObservationHeaderDep.h +++ b/c/include/libsbp/v4/observation/ObservationHeaderDep.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,9 +89,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 +108,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 +127,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..8ac2d1a2a1 100644 --- a/c/include/libsbp/v4/observation/PackedObsContent.h +++ b/c/include/libsbp/v4/observation/PackedObsContent.h @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -122,8 +124,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 +143,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 +162,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..8f3ad8354f 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepA.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepA.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -103,7 +105,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 +124,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 +143,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..e17208b09c 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepB.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepB.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -105,7 +107,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 +126,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 +145,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..7e9b31c6c8 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepC.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepC.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -106,7 +108,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 +127,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 +146,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..ac7d16fe27 100644 --- a/c/include/libsbp/v4/observation/PackedOsrContent.h +++ b/c/include/libsbp/v4/observation/PackedOsrContent.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -121,8 +123,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 +142,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 +161,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..2e41d4c577 100644 --- a/c/include/libsbp/v4/observation/SvAzEl.h +++ b/c/include/libsbp/v4/observation/SvAzEl.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -90,8 +92,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 +110,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 +128,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..037913cbb5 100644 --- a/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h +++ b/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -108,8 +110,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 +129,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 +148,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 +167,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..4faace97e3 100644 --- a/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h +++ b/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,9 +100,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 +119,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 +138,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 +157,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..c0b39c637e 100644 --- a/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h +++ b/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -120,8 +122,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 +141,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 +160,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 +179,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..e54ad52e3c 100644 --- a/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h +++ b/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -129,8 +131,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 +150,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 +169,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 +188,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..ef4ff5307b 100644 --- a/c/include/libsbp/v4/piksi/Latency.h +++ b/c/include/libsbp/v4/piksi/Latency.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,8 +99,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 +117,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 +135,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..30afa0afd0 100644 --- a/c/include/libsbp/v4/piksi/MSG_ALMANAC.h +++ b/c/include/libsbp/v4/piksi/MSG_ALMANAC.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,8 +83,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 +102,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 +120,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 +139,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..4a8c28c299 100644 --- a/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h +++ b/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -103,9 +105,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 +124,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 +143,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 +162,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..a17cd33b97 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -61,7 +63,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 +72,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 +85,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 +94,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 +107,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 +126,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 +149,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 +171,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 +189,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 +209,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 +227,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 +237,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 +248,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 +282,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 +301,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 +320,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 +339,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..5a2fcacd6b 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -60,7 +62,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 +71,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 +84,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 +93,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 +106,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 +125,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 +148,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 +172,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 +192,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 +214,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 +232,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 +242,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 +253,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 +287,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 +306,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 +325,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 +344,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..7b5cee6a21 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,8 +88,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 +107,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 +126,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 +145,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..5e38023ab4 100644 --- a/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h +++ b/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,8 +85,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 +104,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 +123,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 +142,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..670847c52b 100644 --- a/c/include/libsbp/v4/piksi/MSG_CW_START.h +++ b/c/include/libsbp/v4/piksi/MSG_CW_START.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,8 +85,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 +104,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 +122,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 +141,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..83591e7c40 100644 --- a/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h +++ b/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,8 +104,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 +123,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 +142,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 +161,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..0cd58309ec 100644 --- a/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h +++ b/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -91,8 +93,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 +112,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 +131,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 +150,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..2ace9beafd 100644 --- a/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,8 +84,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 +103,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 +122,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 +141,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..03b49fa5e9 100644 --- a/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,8 +83,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 +102,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 +121,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 +140,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..a65b081aab 100644 --- a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h +++ b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,8 +89,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 +108,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 +127,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 +146,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..8b9f40f8d4 100644 --- a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,9 +88,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 +107,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 +127,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 +146,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..4a0e742615 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,7 +96,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 +117,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 +137,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 +156,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..e5acd589f6 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,9 +84,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 +103,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 +122,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 +141,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..cfd324c3f8 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,9 +118,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 +137,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 +157,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 +176,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..3f0a478534 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -79,8 +81,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 +100,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 +118,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 +137,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..a5233980e3 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,8 +83,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 +102,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 +121,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 +140,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..e745bfa552 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,8 +83,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 +102,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 +121,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 +140,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..2df7c495d1 100644 --- a/c/include/libsbp/v4/piksi/MSG_SET_TIME.h +++ b/c/include/libsbp/v4/piksi/MSG_SET_TIME.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,8 +84,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 +103,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 +121,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 +140,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..27f0950566 100644 --- a/c/include/libsbp/v4/piksi/MSG_SPECAN.h +++ b/c/include/libsbp/v4/piksi/MSG_SPECAN.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -121,8 +123,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 +142,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 +160,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 +179,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..852fa50f09 100644 --- a/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -122,8 +124,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 +143,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 +162,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 +181,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..e41a582afe 100644 --- a/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,8 +95,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 +114,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 +133,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 +152,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..aeed86b8bd 100644 --- a/c/include/libsbp/v4/piksi/MSG_UART_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_UART_STATE.h @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -110,8 +112,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 +131,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 +150,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 +169,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..4db0451c26 100644 --- a/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h +++ b/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,8 +99,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 +118,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 +137,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 +156,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..b957df0ed5 100644 --- a/c/include/libsbp/v4/piksi/NetworkUsage.h +++ b/c/include/libsbp/v4/piksi/NetworkUsage.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -104,8 +106,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 +125,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 +144,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..5dd98f48d9 100644 --- a/c/include/libsbp/v4/piksi/Period.h +++ b/c/include/libsbp/v4/piksi/Period.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,8 +100,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 +118,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 +136,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..0c835a36c0 100644 --- a/c/include/libsbp/v4/piksi/UARTChannel.h +++ b/c/include/libsbp/v4/piksi/UARTChannel.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -106,8 +108,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 +127,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 +145,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..d917d35289 100644 --- a/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h +++ b/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,8 +99,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 +118,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 +136,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 +155,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/sbp_msg.h b/c/include/libsbp/v4/sbp_msg.h index c81960b810..6706d1a672 100644 --- a/c/include/libsbp/v4/sbp_msg.h +++ b/c/include/libsbp/v4/sbp_msg.h @@ -47,6 +47,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif 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..d935547ff3 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,7 +84,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 +106,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 +126,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 +145,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..d3eb69e2c6 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,7 +85,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 +107,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 +127,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 +146,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..6e55a1398f 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 @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -62,7 +64,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 +74,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 +88,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 +99,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 +112,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 +121,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 +135,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 +151,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 +167,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 +189,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 +210,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 +233,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 +248,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 +263,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 +298,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 +320,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 +340,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 +359,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..6d146aad83 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -61,7 +63,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 +73,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 +86,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 +95,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 +108,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 +116,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 +130,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 +146,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 +162,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 +183,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 +204,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 +227,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 +242,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 +256,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 +290,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 +309,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 +328,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 +347,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..69eaa4e34e 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -60,7 +62,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 +72,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 +85,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 +95,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 +108,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 +116,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 +130,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 +146,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 +162,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 +183,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 +204,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 +227,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 +242,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 +256,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 +290,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 +309,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 +329,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 +348,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..a92bf0abe8 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -57,7 +59,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 +69,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 +82,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 +91,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 +104,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 +112,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 +126,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 +142,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 +158,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 +179,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 +200,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 +223,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 +238,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 +252,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 +286,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 +305,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 +324,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 +343,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..db23c95f61 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -64,7 +66,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 +76,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 +89,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 +100,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 +113,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 +121,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 +135,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 +151,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 +167,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 +189,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 +210,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 +233,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 +248,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 +262,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 +296,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 +317,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 +337,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 +356,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..3dab1e58f6 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -82,8 +84,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 +103,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 +122,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 +141,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..617ceb97b2 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -60,7 +62,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 +72,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 +85,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 +94,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 +107,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 +115,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 +129,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 +145,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 +160,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 +181,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 +202,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 +224,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 +239,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 +253,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 +287,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 +306,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 +325,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 +344,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..4bcd6f336b 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -65,7 +67,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 +77,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 +90,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 +100,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 +113,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 +121,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 +135,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 +151,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 +167,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 +188,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 +209,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 +232,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 +247,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 +261,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 +295,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 +314,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 +334,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 +353,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..137ad6b071 100644 --- a/c/include/libsbp/v4/solution_meta/GNSSInputType.h +++ b/c/include/libsbp/v4/solution_meta/GNSSInputType.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,8 +83,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 +102,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 +121,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..ebf3942f2a 100644 --- a/c/include/libsbp/v4/solution_meta/IMUInputType.h +++ b/c/include/libsbp/v4/solution_meta/IMUInputType.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,8 +85,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 +104,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 +123,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..94c21e82fa 100644 --- a/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h +++ b/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -137,8 +139,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 +158,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 +177,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 +196,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..dc23753342 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -140,8 +142,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 +161,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 +180,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 +199,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..727b125e73 100644 --- a/c/include/libsbp/v4/solution_meta/OdoInputType.h +++ b/c/include/libsbp/v4/solution_meta/OdoInputType.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -83,8 +85,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 +104,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 +123,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..7171c5b262 100644 --- a/c/include/libsbp/v4/solution_meta/SolutionInputType.h +++ b/c/include/libsbp/v4/solution_meta/SolutionInputType.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -90,8 +92,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 +111,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 +130,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..4a1ee32ba9 100644 --- a/c/include/libsbp/v4/ssr/CodeBiasesContent.h +++ b/c/include/libsbp/v4/ssr/CodeBiasesContent.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,8 +89,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 +108,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 +127,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..a047b0d3f4 100644 --- a/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -109,7 +111,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 +132,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 +151,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..0f5b8216b6 100644 --- a/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h +++ b/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -119,7 +121,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 +142,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 +161,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..caac67bc18 100644 --- a/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -110,7 +112,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 +134,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 +153,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..d823278c28 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -118,8 +120,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 +139,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 +158,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 +177,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..fe779be189 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -111,7 +113,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 +134,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 +154,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 +173,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..595c4e9b6e 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 @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -107,7 +109,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 +131,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 +151,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 +170,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..0014f99feb 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 @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -109,7 +111,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 +133,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 +153,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 +173,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..9bad5636b5 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,7 +99,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 +120,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 +140,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 +159,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..247b2141b0 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -154,8 +156,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 +175,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 +194,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 +213,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..abfedbb1d7 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -148,7 +150,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 +171,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 +191,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 +210,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..91a6ad583d 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -140,9 +142,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 +161,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 +180,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 +199,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..0193a48660 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -88,9 +90,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 +109,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 +128,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 +147,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..51a1cebcea 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -103,9 +105,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 +124,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 +144,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 +163,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..5172a734ce 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -96,7 +98,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 +119,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 +139,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 +158,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..e659149e0f 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -162,9 +164,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 +183,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 +203,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 +222,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..655c5c16a9 100644 --- a/c/include/libsbp/v4/ssr/PhaseBiasesContent.h +++ b/c/include/libsbp/v4/ssr/PhaseBiasesContent.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -102,9 +104,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 +123,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 +142,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..78401e495b 100644 --- a/c/include/libsbp/v4/ssr/STECHeader.h +++ b/c/include/libsbp/v4/ssr/STECHeader.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -113,8 +115,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 +134,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 +152,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..d77051c7a7 100644 --- a/c/include/libsbp/v4/ssr/STECHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/STECHeaderDepA.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -104,8 +106,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 +125,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 +144,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..4bee367e31 100644 --- a/c/include/libsbp/v4/ssr/STECResidual.h +++ b/c/include/libsbp/v4/ssr/STECResidual.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,8 +96,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 +115,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 +134,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..0876833887 100644 --- a/c/include/libsbp/v4/ssr/STECResidualNoStd.h +++ b/c/include/libsbp/v4/ssr/STECResidualNoStd.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,9 +88,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 +107,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 +126,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..abf850dde9 100644 --- a/c/include/libsbp/v4/ssr/STECSatElement.h +++ b/c/include/libsbp/v4/ssr/STECSatElement.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,8 +95,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 +114,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 +133,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..889caac568 100644 --- a/c/include/libsbp/v4/ssr/SatelliteAPC.h +++ b/c/include/libsbp/v4/ssr/SatelliteAPC.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -105,8 +107,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 +126,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 +145,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..4c85efd93c 100644 --- a/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h +++ b/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,7 +96,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 +117,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 +136,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..87ea61f35b 100644 --- a/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h +++ b/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -87,7 +89,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 +111,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 +130,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..0461aaf88a 100644 --- a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h +++ b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -62,7 +64,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 +74,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 +87,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 +96,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 +109,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 +128,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 +150,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 +172,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 +190,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 +210,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 +228,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 +238,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 +249,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 +283,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 +302,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 +321,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 +340,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..2b9a12e915 100644 --- a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h +++ b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -62,7 +64,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 +74,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 +88,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 +99,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 +112,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 +132,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 +154,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 +177,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 +196,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 +217,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 +236,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 +247,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 +258,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 +292,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 +313,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 +333,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 +352,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..b14da7f0d7 100644 --- a/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h +++ b/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -71,7 +73,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 +82,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 +95,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 +104,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 +117,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 +136,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 +159,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 +183,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 +203,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 +225,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 +243,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 +253,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 +264,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 +298,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 +317,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 +336,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 +355,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..d1f1007fde 100644 --- a/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h +++ b/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -97,9 +99,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 +118,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 +137,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 +156,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..ea8dfb4128 100644 --- a/c/include/libsbp/v4/system/MSG_GROUP_META.h +++ b/c/include/libsbp/v4/system/MSG_GROUP_META.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -98,8 +100,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 +119,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 +138,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 +157,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..452e58bee0 100644 --- a/c/include/libsbp/v4/system/MSG_HEARTBEAT.h +++ b/c/include/libsbp/v4/system/MSG_HEARTBEAT.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -85,8 +87,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 +106,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 +125,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 +144,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..fcbb0bacea 100644 --- a/c/include/libsbp/v4/system/MSG_INS_STATUS.h +++ b/c/include/libsbp/v4/system/MSG_INS_STATUS.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -81,8 +83,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 +102,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 +121,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 +140,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..394b59ffd0 100644 --- a/c/include/libsbp/v4/system/MSG_INS_UPDATES.h +++ b/c/include/libsbp/v4/system/MSG_INS_UPDATES.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -112,8 +114,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 +133,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 +152,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 +171,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..3b2e8f830f 100644 --- a/c/include/libsbp/v4/system/MSG_PPS_TIME.h +++ b/c/include/libsbp/v4/system/MSG_PPS_TIME.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -89,8 +91,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 +110,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 +128,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 +147,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..7de88e1b40 100644 --- a/c/include/libsbp/v4/system/MSG_STARTUP.h +++ b/c/include/libsbp/v4/system/MSG_STARTUP.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -91,8 +93,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 +112,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 +130,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 +149,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..4cddcc13df 100644 --- a/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h +++ b/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -116,8 +118,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 +137,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 +156,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 +175,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..ada29c64a5 100644 --- a/c/include/libsbp/v4/system/SubSystemReport.h +++ b/c/include/libsbp/v4/system/SubSystemReport.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -91,8 +93,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 +112,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 +131,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..d6e0a34b7c 100644 --- a/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h +++ b/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,9 +96,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 +115,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 +134,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 +153,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..1bcf8e27f5 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,8 +95,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 +114,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 +133,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 +152,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..2c3557cbd3 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,9 +95,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 +114,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 +133,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 +152,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..94c7e8126b 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 @@ -31,6 +31,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,9 +96,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 +115,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 +134,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 +153,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..30d6156ba5 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -94,8 +96,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 +115,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 +134,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 +153,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..d800f6b9f6 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,7 +95,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 +114,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 +134,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 +153,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..81b441a95d 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 @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -93,7 +95,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 +114,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 +134,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 +153,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..a4446519ea 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 @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -193,7 +195,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 +217,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 +237,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 +256,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..b8d979a05a 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 @@ -32,6 +32,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -194,7 +196,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 +218,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 +238,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 +257,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..f9345859c8 100644 --- a/c/include/libsbp/v4/tracking/MeasurementState.h +++ b/c/include/libsbp/v4/tracking/MeasurementState.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -89,8 +91,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 +110,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 +129,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..657e476bd8 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,7 +88,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 +109,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 +128,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..016b6bc6ee 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -86,7 +88,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 +110,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 +129,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..fec75cdb99 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelState.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelState.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -92,9 +94,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 +113,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 +132,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..1be60d8da1 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -91,7 +93,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 +114,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 +133,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..1a793bf56d 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h @@ -30,6 +30,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -92,7 +94,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 +115,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 +134,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..e5c4217fea 100644 --- a/c/include/libsbp/v4/user/MSG_USER_DATA.h +++ b/c/include/libsbp/v4/user/MSG_USER_DATA.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -92,8 +94,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 +113,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 +132,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 +151,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..68411268f5 100644 --- a/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h +++ b/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -100,8 +102,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 +121,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 +139,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 +158,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..059302926e 100644 --- a/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h +++ b/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h @@ -29,6 +29,8 @@ #include #include +#include "sbp_export.h" + #ifdef __cplusplus extern "C" { #endif @@ -111,8 +113,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 +132,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 +151,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 +170,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 } From 0693f873f5217af3afd98e1b47529efa92222fcb Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 09:56:59 +1000 Subject: [PATCH 06/21] test string --- c/test/string/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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 From 4df1147d97f5c272a932157ba33f731851508b2a Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 11:01:42 +1000 Subject: [PATCH 07/21] workflow --- .github/workflows/c.yaml | 99 +++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 57 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index a65cbd9fcc..0419c5e299 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -38,8 +38,18 @@ 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_library: [ "true", "false" ] + exclude: [ + { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_library: "false" } + ] runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -50,65 +60,30 @@ 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 - - - clang6-debug: - name: Clang6 - Debug - runs-on: ubuntu-18.04 - 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=Debug -DBUILD_EXAMPLES=true - CC: clang-6.0 - CXX: clang++-6.0 - - - name: Build examples - run: make -C c/build examples + 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_library }} \ + -DBUILD_EXAMPLES=true + - name: Build + run: cmake --build build --target all - clang6-release: - name: Clang6 - Release - 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 + - name: Install env: - CMAKEFLAGS: -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true - CC: clang-6.0 - CXX: clang++-6.0 - - - name: Build examples - run: make -C c/build examples + DESTDIR: "${GITHUB_WORKSPACE}/install" + run: cmake --build build --target install macos: @@ -153,6 +128,9 @@ jobs: windows-minGW: name: Windows MinGW runs-on: windows-2019 + strategy: + matrix: + build_shared_library: [ "True", "False" ] steps: - uses: actions/checkout@v2 @@ -161,7 +139,9 @@ jobs: fetch-depth: 0 - name: Configure - run: cmake -G "MinGW Makefiles" -S c -B build + run: | + cmake -G "MinGW Makefiles" -S c -B build \ + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_library }} - name: Build run: cmake --build build --target all @@ -173,15 +153,20 @@ jobs: windows-vs-2019: name: Windows VS 2019 runs-on: windows-2019 + strategy: + matrix: + build_shared_library: [ "true", "false" ] 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 + run: | + cmake -G "Visual Studio 16 2019" -S c -B build \ + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_library }} \ + -Dgtest_force_shared_crt=true - name: Build run: cmake --build build --target ALL_BUILD From 499176a99ae67d5f3e83112f2649212cdeffbfb0 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 13:13:23 +1000 Subject: [PATCH 08/21] why mingw? --- .github/workflows/c.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 0419c5e299..6bef27f5f7 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -46,9 +46,9 @@ jobs: { 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_library: [ "true", "false" ] + build_shared_libraries: [ "true", "false" ] exclude: [ - { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_library: "false" } + { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: "false" } ] runs-on: ubuntu-18.04 steps: @@ -68,7 +68,7 @@ jobs: -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ -DCMAKE_C_COMPILER=${{ matrix.compiler.c }} \ -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} \ - -DBUILD_SHARED_LIBS=${{ matrix.build_shared_library }} \ + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} \ -DBUILD_EXAMPLES=true - name: Build @@ -130,7 +130,7 @@ jobs: runs-on: windows-2019 strategy: matrix: - build_shared_library: [ "True", "False" ] + build_shared_libraries: [ "true", "false" ] steps: - uses: actions/checkout@v2 @@ -141,7 +141,7 @@ jobs: - name: Configure run: | cmake -G "MinGW Makefiles" -S c -B build \ - -DBUILD_SHARED_LIBS=${{ matrix.build_shared_library }} + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} - name: Build run: cmake --build build --target all @@ -155,7 +155,7 @@ jobs: runs-on: windows-2019 strategy: matrix: - build_shared_library: [ "true", "false" ] + build_shared_libraries: [ "true", "false" ] steps: - uses: actions/checkout@v2 with: @@ -165,7 +165,7 @@ jobs: - name: Configure run: | cmake -G "Visual Studio 16 2019" -S c -B build \ - -DBUILD_SHARED_LIBS=${{ matrix.build_shared_library }} \ + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} \ -Dgtest_force_shared_crt=true - name: Build From 582dc9fd0a7fcbc3cdf134e94be61b66f8fc5a78 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 13:16:23 +1000 Subject: [PATCH 09/21] sigh, stupid powershell --- .github/workflows/c.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 6bef27f5f7..4de4f00447 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -140,7 +140,7 @@ jobs: - name: Configure run: | - cmake -G "MinGW Makefiles" -S c -B build \ + cmake -G "MinGW Makefiles" -S c -B build ` -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} - name: Build @@ -164,8 +164,8 @@ jobs: - name: Configure run: | - cmake -G "Visual Studio 16 2019" -S c -B build \ - -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} \ + cmake -G "Visual Studio 16 2019" -S c -B build ` + -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} ` -Dgtest_force_shared_crt=true - name: Build From 4544b6005ad2c80c36a2b3b245304c61130d0faf Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 14:24:38 +1000 Subject: [PATCH 10/21] C++ definition vs declaration export --- c/include/libsbp/cpp/message_handler.h | 2 +- c/include/libsbp/cpp/state.h | 8 +++----- c/include/libsbp/legacy/cpp/frame_handler.h | 4 +--- c/include/libsbp/legacy/cpp/sbp_stdio.h | 6 ++---- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/c/include/libsbp/cpp/message_handler.h b/c/include/libsbp/cpp/message_handler.h index 9d18050e2f..a48c6802be 100644 --- a/c/include/libsbp/cpp/message_handler.h +++ b/c/include/libsbp/cpp/message_handler.h @@ -185,7 +185,7 @@ inline void sbp_all_msg_cb_passthrough(uint16_t sender_id, sbp_msg_type_t msg_ty instance->handle_sbp_message(sender_id, msg_type, *msg); } -class SBP_EXPORT AllMessageHandler { +class AllMessageHandler { State &state_; sbp_msg_callbacks_node_t callback_node_; diff --git a/c/include/libsbp/cpp/state.h b/c/include/libsbp/cpp/state.h index 6786b276fc..aa75db3f19 100644 --- a/c/include/libsbp/cpp/state.h +++ b/c/include/libsbp/cpp/state.h @@ -16,25 +16,23 @@ #include #include -#include "sbp_export.h" - namespace sbp { -class SBP_EXPORT IReader { +class IReader { public: virtual ~IReader() = default; virtual s32 read(u8 *buffer, u32 buffer_length) = 0; }; -class SBP_EXPORT IWriter { +class IWriter { public: virtual ~IWriter() = default; virtual s32 write(const u8 *buffer, u32 buffer_length) = 0; }; -class SBP_EXPORT State { +class State { private: sbp_state_t state_; IReader *reader_; diff --git a/c/include/libsbp/legacy/cpp/frame_handler.h b/c/include/libsbp/legacy/cpp/frame_handler.h index 385c25c205..6609180ac1 100644 --- a/c/include/libsbp/legacy/cpp/frame_handler.h +++ b/c/include/libsbp/legacy/cpp/frame_handler.h @@ -20,8 +20,6 @@ #include #include -#include "sbp_export.h" - namespace sbp { /** @@ -167,7 +165,7 @@ class FrameHandler { * }; * */ -class SBP_EXPORT AllFrameHandler { +class AllFrameHandler { State &state_; sbp_msg_callbacks_node_t callback_node_; diff --git a/c/include/libsbp/legacy/cpp/sbp_stdio.h b/c/include/libsbp/legacy/cpp/sbp_stdio.h index e8dd8c9cdc..4185f80ae8 100644 --- a/c/include/libsbp/legacy/cpp/sbp_stdio.h +++ b/c/include/libsbp/legacy/cpp/sbp_stdio.h @@ -17,11 +17,9 @@ #include -#include "sbp_export.h" - namespace sbp { -class SBP_EXPORT SbpFileReader : public sbp::IReader { +class SbpFileReader : public sbp::IReader { public: explicit SbpFileReader(const char *file_path) : file_stream_(file_path, std::ios::binary | std::ios_base::in) {} @@ -50,7 +48,7 @@ class SBP_EXPORT SbpFileReader : public sbp::IReader { std::ifstream file_stream_; }; -class SBP_EXPORT SbpFileWriter : public sbp::IWriter { +class SbpFileWriter : public sbp::IWriter { public: explicit SbpFileWriter(const char *file_path) : file_stream_(file_path, std::ios::binary | std::ios_base::out) {} From d190d4e11c69788880c5208ab9737b10e5a9416d Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 14:43:23 +1000 Subject: [PATCH 11/21] dry vs2019 --- .github/workflows/c.yaml | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 4de4f00447..28923c7950 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -46,9 +46,9 @@ jobs: { 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" ] + build_shared_libraries: [ true, false ] exclude: [ - { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: "false" } + { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: false } ] runs-on: ubuntu-18.04 steps: @@ -125,37 +125,12 @@ jobs: CMAKEFLAGS: -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-static" -Dgtest_disable_pthreads=ON - windows-minGW: - name: Windows MinGW + windows-2019: runs-on: windows-2019 strategy: matrix: - build_shared_libraries: [ "true", "false" ] - steps: - - - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 - - - name: Configure - run: | - cmake -G "MinGW Makefiles" -S c -B build ` - -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} - - - name: Build - run: cmake --build build --target all - - - name: Test - run: cmake --build build --target do-all-tests - - - windows-vs-2019: - name: Windows VS 2019 - runs-on: windows-2019 - strategy: - matrix: - build_shared_libraries: [ "true", "false" ] + generator: [ "MinGW Makefiles", "Visual Studio 16 2019" ] + build_shared_libraries: [ true, false ] steps: - uses: actions/checkout@v2 with: @@ -164,7 +139,7 @@ jobs: - name: Configure run: | - cmake -G "Visual Studio 16 2019" -S c -B build ` + cmake -G "${{ matrix.generator }}" -S c -B build ` -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} ` -Dgtest_force_shared_crt=true From 960587fe18fa1e4ddd673dff3ca335cbd73c8fd6 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 14:53:35 +1000 Subject: [PATCH 12/21] no all target used --- .github/workflows/c.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 28923c7950..09e6ddb665 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -72,7 +72,7 @@ jobs: -DBUILD_EXAMPLES=true - name: Build - run: cmake --build build --target all + run: cmake --build build - name: Example run: cmake --build build --target examples @@ -144,8 +144,11 @@ jobs: -Dgtest_force_shared_crt=true - name: Build - run: cmake --build build --target ALL_BUILD + run: cmake --build build - name: Test run: cmake --build build --target do-all-tests + - name: Install + run: cmake --build build --target install + From 1f127beae8277dc58cd3862076e217c014ecce57 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 16:13:59 +1000 Subject: [PATCH 13/21] VS2019 not playing nice with shared libraries --- .github/workflows/c.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 09e6ddb665..64c78d3dee 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -140,14 +140,19 @@ jobs: - name: Configure run: | cmake -G "${{ matrix.generator }}" -S c -B build ` + "-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install" ` -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} ` -Dgtest_force_shared_crt=true - name: Build run: cmake --build build - - name: Test + - name: Build Test + run: cmake --build build --target build-all-tests + + - name: Run Test run: cmake --build build --target do-all-tests + if: ${{ !matrix.build_shared_libraries }} - name: Install run: cmake --build build --target install From 20a62846ab8df07628db5a54e1be5194c177335c Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 16:23:36 +1000 Subject: [PATCH 14/21] naming --- .github/workflows/c.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 64c78d3dee..cfd9519cbd 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -50,6 +50,7 @@ jobs: exclude: [ { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: false } ] + name: "Ubuntu TLS (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 @@ -126,11 +127,12 @@ jobs: windows-2019: - runs-on: 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: From 6f0ac7995f2d5f86e52b0b23793a98c2a9dc7f5d Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Mon, 6 Sep 2021 16:37:02 +1000 Subject: [PATCH 15/21] nit --- .github/workflows/c.yaml | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index cfd9519cbd..59481cc972 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 @@ -50,7 +50,7 @@ jobs: exclude: [ { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: false } ] - name: "Ubuntu TLS (Build: ${{ matrix.build_type }}, Compilers: ${{ matrix.compiler.c }}/${{ matrix.compiler.cxx }}, Shared Library: ${{ matrix.build_shared_libraries }})" + 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 @@ -70,6 +70,8 @@ jobs: -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 @@ -82,13 +84,11 @@ jobs: run: cmake --build build --target do-all-tests - name: Install - env: - DESTDIR: "${GITHUB_WORKSPACE}/install" run: cmake --build build --target install macos: - name: macos + name: macOS Catalina runs-on: macos-10.15 steps: - uses: actions/checkout@v2 @@ -96,11 +96,23 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Run tests - run: make test-c - env: - CC: clang - CXX: clang++ + - name: Configure + run: | + 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 + run: cmake --build build + + - name: Test + run: cmake --build build --target do-all-tests + + - name: Install + run: cmake --build build --target install big-endian: @@ -142,9 +154,11 @@ jobs: - name: Configure run: | cmake -G "${{ matrix.generator }}" -S c -B build ` - "-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install" ` + -DCMAKE_BUILD_TYPE=Release ` -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} ` - -Dgtest_force_shared_crt=true + -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" ` + -Dgtest_force_shared_crt=true ` + -DINSTALL_GTEST=false - name: Build run: cmake --build build From 66eba5754ee0217a83d1008901904274677583db Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Sep 2021 12:08:52 +0000 Subject: [PATCH 16/21] remove unnecissary sbp_export.h inclusion --- c/include/libsbp/v4/sbp_msg.h | 2 -- generator/sbpg/targets/resources/c/v4/sbp_msg_template.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/c/include/libsbp/v4/sbp_msg.h b/c/include/libsbp/v4/sbp_msg.h index 6706d1a672..c81960b810 100644 --- a/c/include/libsbp/v4/sbp_msg.h +++ b/c/include/libsbp/v4/sbp_msg.h @@ -47,8 +47,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h b/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h index f5d1fbcea8..49dcf48917 100644 --- a/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h +++ b/generator/sbpg/targets/resources/c/v4/sbp_msg_template.h @@ -27,8 +27,6 @@ #include ((*- endfor *)) -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif From 6dc64040f927834e76463be7864159aea82f7e32 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Tue, 7 Sep 2021 11:02:34 +1000 Subject: [PATCH 17/21] common.h --- c/include/libsbp/common.h | 10 ++++++++++ c/include/libsbp/edc.h | 2 -- c/include/libsbp/legacy/api.h | 2 -- c/include/libsbp/sbp.h | 2 -- c/include/libsbp/v4/acquisition/AcqSvProfile.h | 2 -- c/include/libsbp/v4/acquisition/AcqSvProfileDep.h | 2 -- c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h | 2 -- c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_A.h | 2 -- c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_B.h | 2 -- c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT_DEP_C.h | 2 -- c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h | 2 -- .../libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE_DEP.h | 2 -- c/include/libsbp/v4/api.h | 2 -- .../v4/bootload/MSG_BOOTLOADER_HANDSHAKE_DEP_A.h | 2 -- .../libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h | 2 -- .../libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h | 2 -- .../libsbp/v4/bootload/MSG_BOOTLOADER_JUMP_TO_APP.h | 2 -- c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_REQ.h | 2 -- c/include/libsbp/v4/bootload/MSG_NAP_DEVICE_DNA_RESP.h | 2 -- c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_REQ.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_CONFIG_RESP.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_REQ.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_READ_DIR_RESP.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_READ_REQ.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_READ_RESP.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_REQ.h | 2 -- c/include/libsbp/v4/file_io/MSG_FILEIO_WRITE_RESP.h | 2 -- c/include/libsbp/v4/flash/MSG_FLASH_DONE.h | 2 -- c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h | 2 -- c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h | 2 -- c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h | 2 -- c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h | 2 -- c/include/libsbp/v4/flash/MSG_M25_FLASH_WRITE_STATUS.h | 2 -- c/include/libsbp/v4/flash/MSG_STM_FLASH_LOCK_SECTOR.h | 2 -- .../libsbp/v4/flash/MSG_STM_FLASH_UNLOCK_SECTOR.h | 2 -- c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_REQ.h | 2 -- c/include/libsbp/v4/flash/MSG_STM_UNIQUE_ID_RESP.h | 2 -- c/include/libsbp/v4/gnss/CarrierPhase.h | 2 -- c/include/libsbp/v4/gnss/GPSTime.h | 2 -- c/include/libsbp/v4/gnss/GPSTimeDep.h | 2 -- c/include/libsbp/v4/gnss/GPSTimeSec.h | 2 -- c/include/libsbp/v4/gnss/GnssSignal.h | 2 -- c/include/libsbp/v4/gnss/GnssSignalDep.h | 2 -- c/include/libsbp/v4/gnss/SvId.h | 2 -- c/include/libsbp/v4/imu/MSG_IMU_AUX.h | 2 -- c/include/libsbp/v4/imu/MSG_IMU_RAW.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE_DEP_A.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE_DEP_A.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_PROCESS_FD_COUNT.h | 2 -- .../libsbp/v4/linux/MSG_LINUX_PROCESS_FD_SUMMARY.h | 2 -- .../libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_COUNTS.h | 2 -- .../libsbp/v4/linux/MSG_LINUX_PROCESS_SOCKET_QUEUES.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h | 2 -- c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE_DEP_A.h | 2 -- c/include/libsbp/v4/logging/MSG_FWD.h | 2 -- c/include/libsbp/v4/logging/MSG_LOG.h | 2 -- c/include/libsbp/v4/logging/MSG_PRINT_DEP.h | 2 -- c/include/libsbp/v4/mag/MSG_MAG_RAW.h | 2 -- .../v4/navigation/EstimatedHorizontalErrorEllipse.h | 2 -- c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h | 2 -- c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h | 2 -- .../libsbp/v4/navigation/MSG_BASELINE_ECEF_DEP_A.h | 2 -- .../libsbp/v4/navigation/MSG_BASELINE_HEADING_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h | 2 -- .../libsbp/v4/navigation/MSG_BASELINE_NED_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_DOPS.h | 2 -- c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_GPS_TIME.h | 2 -- c/include/libsbp/v4/navigation/MSG_GPS_TIME_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_ECEF.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_ECEF_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_LLH.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_LLH_COV_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_LLH_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h | 2 -- .../libsbp/v4/navigation/MSG_PROTECTION_LEVEL_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_UTC_TIME.h | 2 -- c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_BODY.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_ECEF_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_NED.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_NED_COV_GNSS.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_NED_DEP_A.h | 2 -- c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h | 2 -- c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h | 2 -- c/include/libsbp/v4/observation/AlmanacCommonContent.h | 2 -- .../libsbp/v4/observation/AlmanacCommonContentDep.h | 2 -- c/include/libsbp/v4/observation/CarrierPhaseDepA.h | 2 -- c/include/libsbp/v4/observation/Doppler.h | 2 -- .../libsbp/v4/observation/EphemerisCommonContent.h | 2 -- .../libsbp/v4/observation/EphemerisCommonContentDepA.h | 2 -- .../libsbp/v4/observation/EphemerisCommonContentDepB.h | 2 -- c/include/libsbp/v4/observation/GnssCapb.h | 2 -- c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h | 2 -- c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h | 2 -- c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h | 2 -- c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h | 2 -- c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h | 2 -- c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GAL_DEP_A.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_A.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_B.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_C.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GLO_DEP_D.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_E.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_GPS_DEP_F.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h | 2 -- c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_A.h | 2 -- .../libsbp/v4/observation/MSG_EPHEMERIS_SBAS_DEP_B.h | 2 -- c/include/libsbp/v4/observation/MSG_GLO_BIASES.h | 2 -- c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h | 2 -- c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h | 2 -- .../libsbp/v4/observation/MSG_GROUP_DELAY_DEP_A.h | 2 -- .../libsbp/v4/observation/MSG_GROUP_DELAY_DEP_B.h | 2 -- c/include/libsbp/v4/observation/MSG_IONO.h | 2 -- c/include/libsbp/v4/observation/MSG_OBS.h | 2 -- c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h | 2 -- c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h | 2 -- c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h | 2 -- c/include/libsbp/v4/observation/MSG_OSR.h | 2 -- c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h | 2 -- .../v4/observation/MSG_SV_CONFIGURATION_GPS_DEP.h | 2 -- c/include/libsbp/v4/observation/ObservationHeader.h | 2 -- c/include/libsbp/v4/observation/ObservationHeaderDep.h | 2 -- c/include/libsbp/v4/observation/PackedObsContent.h | 2 -- c/include/libsbp/v4/observation/PackedObsContentDepA.h | 2 -- c/include/libsbp/v4/observation/PackedObsContentDepB.h | 2 -- c/include/libsbp/v4/observation/PackedObsContentDepC.h | 2 -- c/include/libsbp/v4/observation/PackedOsrContent.h | 2 -- c/include/libsbp/v4/observation/SvAzEl.h | 2 -- c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h | 2 -- c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h | 2 -- c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h | 2 -- c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h | 2 -- c/include/libsbp/v4/piksi/Latency.h | 2 -- c/include/libsbp/v4/piksi/MSG_ALMANAC.h | 2 -- c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h | 2 -- c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h | 2 -- c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h | 2 -- c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h | 2 -- c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h | 2 -- c/include/libsbp/v4/piksi/MSG_CW_START.h | 2 -- c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h | 2 -- c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h | 2 -- c/include/libsbp/v4/piksi/MSG_IAR_STATE.h | 2 -- c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h | 2 -- c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h | 2 -- c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h | 2 -- .../libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h | 2 -- c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h | 2 -- c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h | 2 -- c/include/libsbp/v4/piksi/MSG_RESET.h | 2 -- c/include/libsbp/v4/piksi/MSG_RESET_DEP.h | 2 -- c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h | 2 -- c/include/libsbp/v4/piksi/MSG_SET_TIME.h | 2 -- c/include/libsbp/v4/piksi/MSG_SPECAN.h | 2 -- c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h | 2 -- c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h | 2 -- c/include/libsbp/v4/piksi/MSG_UART_STATE.h | 2 -- c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h | 2 -- c/include/libsbp/v4/piksi/NetworkUsage.h | 2 -- c/include/libsbp/v4/piksi/Period.h | 2 -- c/include/libsbp/v4/piksi/UARTChannel.h | 2 -- c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h | 2 -- .../v4/settings/MSG_SETTINGS_READ_BY_INDEX_DONE.h | 2 -- .../v4/settings/MSG_SETTINGS_READ_BY_INDEX_REQ.h | 2 -- .../v4/settings/MSG_SETTINGS_READ_BY_INDEX_RESP.h | 2 -- c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h | 2 -- c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h | 2 -- c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h | 2 -- .../libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h | 2 -- c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h | 2 -- c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h | 2 -- c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h | 2 -- c/include/libsbp/v4/solution_meta/GNSSInputType.h | 2 -- c/include/libsbp/v4/solution_meta/IMUInputType.h | 2 -- c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h | 2 -- .../libsbp/v4/solution_meta/MSG_SOLN_META_DEP_A.h | 2 -- c/include/libsbp/v4/solution_meta/OdoInputType.h | 2 -- c/include/libsbp/v4/solution_meta/SolutionInputType.h | 2 -- c/include/libsbp/v4/ssr/CodeBiasesContent.h | 2 -- c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h | 2 -- c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h | 2 -- c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h | 2 -- .../libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION_DEP_A.h | 2 -- .../v4/ssr/MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A.h | 2 -- .../libsbp/v4/ssr/MSG_SSR_GRID_DEFINITION_DEP_A.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK_DEP_A.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h | 2 -- .../libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION_DEP_A.h | 2 -- c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h | 2 -- c/include/libsbp/v4/ssr/PhaseBiasesContent.h | 2 -- c/include/libsbp/v4/ssr/STECHeader.h | 2 -- c/include/libsbp/v4/ssr/STECHeaderDepA.h | 2 -- c/include/libsbp/v4/ssr/STECResidual.h | 2 -- c/include/libsbp/v4/ssr/STECResidualNoStd.h | 2 -- c/include/libsbp/v4/ssr/STECSatElement.h | 2 -- c/include/libsbp/v4/ssr/SatelliteAPC.h | 2 -- c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h | 2 -- .../libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h | 2 -- c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h | 2 -- c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h | 2 -- c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h | 2 -- c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h | 2 -- c/include/libsbp/v4/system/MSG_GROUP_META.h | 2 -- c/include/libsbp/v4/system/MSG_HEARTBEAT.h | 2 -- c/include/libsbp/v4/system/MSG_INS_STATUS.h | 2 -- c/include/libsbp/v4/system/MSG_INS_UPDATES.h | 2 -- c/include/libsbp/v4/system/MSG_PPS_TIME.h | 2 -- c/include/libsbp/v4/system/MSG_STARTUP.h | 2 -- c/include/libsbp/v4/system/MSG_STATUS_REPORT.h | 2 -- c/include/libsbp/v4/system/SubSystemReport.h | 2 -- c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h | 2 -- c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h | 2 -- c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_A.h | 2 -- c/include/libsbp/v4/tracking/MSG_TRACKING_IQ_DEP_B.h | 2 -- c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h | 2 -- .../libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_A.h | 2 -- .../libsbp/v4/tracking/MSG_TRACKING_STATE_DEP_B.h | 2 -- .../v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP.h | 2 -- .../v4/tracking/MSG_TRACKING_STATE_DETAILED_DEP_A.h | 2 -- c/include/libsbp/v4/tracking/MeasurementState.h | 2 -- .../libsbp/v4/tracking/TrackingChannelCorrelation.h | 2 -- .../libsbp/v4/tracking/TrackingChannelCorrelationDep.h | 2 -- c/include/libsbp/v4/tracking/TrackingChannelState.h | 2 -- .../libsbp/v4/tracking/TrackingChannelStateDepA.h | 2 -- .../libsbp/v4/tracking/TrackingChannelStateDepB.h | 2 -- c/include/libsbp/v4/user/MSG_USER_DATA.h | 2 -- c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h | 2 -- c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h | 2 -- c/src/CMakeLists.txt | 10 +++------- .../targets/resources/c/v4/sbp_messages_template.h | 2 -- 263 files changed, 13 insertions(+), 529 deletions(-) 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/edc.h b/c/include/libsbp/edc.h index 62ebb84c81..861799a0dc 100644 --- a/c/include/libsbp/edc.h +++ b/c/include/libsbp/edc.h @@ -15,8 +15,6 @@ #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/legacy/api.h b/c/include/libsbp/legacy/api.h index f51a3bda27..287d75af84 100644 --- a/c/include/libsbp/legacy/api.h +++ b/c/include/libsbp/legacy/api.h @@ -15,8 +15,6 @@ #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/sbp.h b/c/include/libsbp/sbp.h index ea945a6ba5..b3e6a0912a 100644 --- a/c/include/libsbp/sbp.h +++ b/c/include/libsbp/sbp.h @@ -19,8 +19,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/acquisition/AcqSvProfile.h b/c/include/libsbp/v4/acquisition/AcqSvProfile.h index 1dd296885e..18e59f4d1e 100644 --- a/c/include/libsbp/v4/acquisition/AcqSvProfile.h +++ b/c/include/libsbp/v4/acquisition/AcqSvProfile.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h b/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h index 91047f6136..8b7d5ce3df 100644 --- a/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h +++ b/c/include/libsbp/v4/acquisition/AcqSvProfileDep.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h index 8aeb606735..f577c12359 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_RESULT.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 7463c2f943..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 7b2d802591..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 192de059cb..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 c748bd6188..af16435dea 100644 --- a/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h +++ b/c/include/libsbp/v4/acquisition/MSG_ACQ_SV_PROFILE.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 76c2a1f2e8..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/api.h b/c/include/libsbp/v4/api.h index 8f69e1a86a..df224b19c4 100644 --- a/c/include/libsbp/v4/api.h +++ b/c/include/libsbp/v4/api.h @@ -16,8 +16,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 3893a53d35..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 5709eaae17..f0a39566fb 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_REQ.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 47373d4319..ca6c9b9848 100644 --- a/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h +++ b/c/include/libsbp/v4/bootload/MSG_BOOTLOADER_HANDSHAKE_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 8378e93f39..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 b27bd7c903..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6c87e190ad..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 fc5c99f71f..3a8bcc557e 100644 --- a/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h +++ b/c/include/libsbp/v4/ext_events/MSG_EXT_EVENT.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 f2c5c3cc58..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 696e48c76e..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 7d09b614e1..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d5c5e4cd1b..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 cd89af4318..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 1bfd03226d..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 1fef531ec5..9373b9a7ae 100644 --- a/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h +++ b/c/include/libsbp/v4/file_io/MSG_FILEIO_REMOVE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 88ef0c7132..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 5627dc939f..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h b/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h index e74454aaa2..4ebc4c4328 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_DONE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h b/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h index b2c0914ca2..399e2d5e38 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_ERASE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h b/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h index 2200234583..cde05eac7b 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_PROGRAM.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 927797fa9f..7843c07581 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_READ_REQ.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 2ae40d155e..c27f61c0a1 100644 --- a/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h +++ b/c/include/libsbp/v4/flash/MSG_FLASH_READ_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 67013f2d55..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 716c16db5a..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 309f8b7cfc..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 5b86164907..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 553d57b3fe..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/CarrierPhase.h b/c/include/libsbp/v4/gnss/CarrierPhase.h index 260994b9b2..bacfd77667 100644 --- a/c/include/libsbp/v4/gnss/CarrierPhase.h +++ b/c/include/libsbp/v4/gnss/CarrierPhase.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/GPSTime.h b/c/include/libsbp/v4/gnss/GPSTime.h index c55dad6ff0..c6cb776120 100644 --- a/c/include/libsbp/v4/gnss/GPSTime.h +++ b/c/include/libsbp/v4/gnss/GPSTime.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/GPSTimeDep.h b/c/include/libsbp/v4/gnss/GPSTimeDep.h index 86096801a9..1b1157bb80 100644 --- a/c/include/libsbp/v4/gnss/GPSTimeDep.h +++ b/c/include/libsbp/v4/gnss/GPSTimeDep.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/GPSTimeSec.h b/c/include/libsbp/v4/gnss/GPSTimeSec.h index 63284e2ddf..184cb18f13 100644 --- a/c/include/libsbp/v4/gnss/GPSTimeSec.h +++ b/c/include/libsbp/v4/gnss/GPSTimeSec.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/GnssSignal.h b/c/include/libsbp/v4/gnss/GnssSignal.h index 855d6337e7..e7ca4e0d4c 100644 --- a/c/include/libsbp/v4/gnss/GnssSignal.h +++ b/c/include/libsbp/v4/gnss/GnssSignal.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/GnssSignalDep.h b/c/include/libsbp/v4/gnss/GnssSignalDep.h index 93994ba91a..9212303355 100644 --- a/c/include/libsbp/v4/gnss/GnssSignalDep.h +++ b/c/include/libsbp/v4/gnss/GnssSignalDep.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/gnss/SvId.h b/c/include/libsbp/v4/gnss/SvId.h index 56f0b944ed..7052fa0137 100644 --- a/c/include/libsbp/v4/gnss/SvId.h +++ b/c/include/libsbp/v4/gnss/SvId.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/imu/MSG_IMU_AUX.h b/c/include/libsbp/v4/imu/MSG_IMU_AUX.h index 5974df41fb..2efc7cb673 100644 --- a/c/include/libsbp/v4/imu/MSG_IMU_AUX.h +++ b/c/include/libsbp/v4/imu/MSG_IMU_AUX.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/imu/MSG_IMU_RAW.h b/c/include/libsbp/v4/imu/MSG_IMU_RAW.h index a91914f4ec..ed857b6f04 100644 --- a/c/include/libsbp/v4/imu/MSG_IMU_RAW.h +++ b/c/include/libsbp/v4/imu/MSG_IMU_RAW.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6863190425..9fa9ee24b3 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_CPU_STATE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 63ed199611..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6ad6d9404d..2f94e3b7a5 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_MEM_STATE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 f56205082b..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 e1e7f7ef81..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6f36698774..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 dd5432450f..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 8652cbfbed..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d5fdc80f9d..60a537e4d5 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SOCKET_USAGE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 7fec414d05..a9bc5415ae 100644 --- a/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h +++ b/c/include/libsbp/v4/linux/MSG_LINUX_SYS_STATE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 27d8e4ffb2..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/logging/MSG_FWD.h b/c/include/libsbp/v4/logging/MSG_FWD.h index 6aa909c515..00c9560aa5 100644 --- a/c/include/libsbp/v4/logging/MSG_FWD.h +++ b/c/include/libsbp/v4/logging/MSG_FWD.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/logging/MSG_LOG.h b/c/include/libsbp/v4/logging/MSG_LOG.h index 3e4311955a..3d406f2cf8 100644 --- a/c/include/libsbp/v4/logging/MSG_LOG.h +++ b/c/include/libsbp/v4/logging/MSG_LOG.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h b/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h index 457e55583a..f2538eef0c 100644 --- a/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h +++ b/c/include/libsbp/v4/logging/MSG_PRINT_DEP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/mag/MSG_MAG_RAW.h b/c/include/libsbp/v4/mag/MSG_MAG_RAW.h index 9f75630817..f25dd9ff42 100644 --- a/c/include/libsbp/v4/mag/MSG_MAG_RAW.h +++ b/c/include/libsbp/v4/mag/MSG_MAG_RAW.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h b/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h index 1e0a41af52..de6ba093f6 100644 --- a/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h +++ b/c/include/libsbp/v4/navigation/EstimatedHorizontalErrorEllipse.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h b/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h index fe49523f19..d27e0db14a 100644 --- a/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h +++ b/c/include/libsbp/v4/navigation/MSG_AGE_CORRECTIONS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h index 8f39d80d7c..3a6bc487b8 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_ECEF.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 ee12d98af6..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 97c482197b..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h index 3443931f2e..e795e3df00 100644 --- a/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h +++ b/c/include/libsbp/v4/navigation/MSG_BASELINE_NED.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 2213791da4..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_DOPS.h b/c/include/libsbp/v4/navigation/MSG_DOPS.h index 803fa1256f..1c46764be7 100644 --- a/c/include/libsbp/v4/navigation/MSG_DOPS.h +++ b/c/include/libsbp/v4/navigation/MSG_DOPS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 3db5bb89cd..7f3a548b52 100644 --- a/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h +++ b/c/include/libsbp/v4/navigation/MSG_DOPS_DEP_A.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h b/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h index cb305868f2..139545c521 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 0099eff8cb..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 4be52387ef..c20361dd70 100644 --- a/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_GPS_TIME_GNSS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h b/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h index 8b96ed5c88..b6bd565f35 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 42f64ceec5..542e6c3149 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_COV.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 43ab98d8dd..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 61afcaf90c..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 5157677b59..07383a348e 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_ECEF_GNSS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_POS_LLH.h b/c/include/libsbp/v4/navigation/MSG_POS_LLH.h index 7ceb6b6579..8e57125fcd 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 63c7117ceb..07ca8fc682 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_ACC.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 927476af66..13a409f6f7 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_COV.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 b928e40b5e..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 97ccf5aacd..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 061838dccb..9ced72740f 100644 --- a/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_POS_LLH_GNSS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h index 215494d8d4..6e0c6581a5 100644 --- a/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h +++ b/c/include/libsbp/v4/navigation/MSG_PROTECTION_LEVEL.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 36a8c80c5c..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h b/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h index d5c3a49d37..6ffe1b281a 100644 --- a/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h +++ b/c/include/libsbp/v4/navigation/MSG_UTC_TIME.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 2d99474201..d5538e5720 100644 --- a/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_UTC_TIME_GNSS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h b/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h index 07f319418d..0e7ce23ce8 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_BODY.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h index 20f9731c27..04e99f2ff2 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 515625f98f..406bb6c5fa 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_COV.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 fa007c2056..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d8a8687a6e..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 49cb239aba..d9c36a6b65 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_ECEF_GNSS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/navigation/MSG_VEL_NED.h b/c/include/libsbp/v4/navigation/MSG_VEL_NED.h index 0b42f6b4cd..e371994c1b 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 76a24d691d..d6e670de8a 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_COV.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 3e7afee2ce..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 3713792d70..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 67a3bfb10d..8520f3121d 100644 --- a/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h +++ b/c/include/libsbp/v4/navigation/MSG_VEL_NED_GNSS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h b/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h index 417949848a..3c806697a2 100644 --- a/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h +++ b/c/include/libsbp/v4/ndb/MSG_NDB_EVENT.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/AlmanacCommonContent.h b/c/include/libsbp/v4/observation/AlmanacCommonContent.h index ce93e8bab7..5290bb57c3 100644 --- a/c/include/libsbp/v4/observation/AlmanacCommonContent.h +++ b/c/include/libsbp/v4/observation/AlmanacCommonContent.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h b/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h index aa0c0651c1..9b8f203202 100644 --- a/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h +++ b/c/include/libsbp/v4/observation/AlmanacCommonContentDep.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/CarrierPhaseDepA.h b/c/include/libsbp/v4/observation/CarrierPhaseDepA.h index 769e473e1d..9db2e4c1ff 100644 --- a/c/include/libsbp/v4/observation/CarrierPhaseDepA.h +++ b/c/include/libsbp/v4/observation/CarrierPhaseDepA.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/Doppler.h b/c/include/libsbp/v4/observation/Doppler.h index ec9b17f197..8fdab80fe9 100644 --- a/c/include/libsbp/v4/observation/Doppler.h +++ b/c/include/libsbp/v4/observation/Doppler.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/EphemerisCommonContent.h b/c/include/libsbp/v4/observation/EphemerisCommonContent.h index cf1d164c59..7d15879632 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContent.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContent.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h b/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h index 424c1285f9..51745dc55b 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContentDepA.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h b/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h index 238fdbc3ba..8be93362c0 100644 --- a/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h +++ b/c/include/libsbp/v4/observation/EphemerisCommonContentDepB.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/GnssCapb.h b/c/include/libsbp/v4/observation/GnssCapb.h index b5cc39bb04..1ff0e77896 100644 --- a/c/include/libsbp/v4/observation/GnssCapb.h +++ b/c/include/libsbp/v4/observation/GnssCapb.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h index 499d986103..40ef9a61b3 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 426d0a0b93..ac2857cadc 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GLO_DEP.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h index 2db01f287a..dd534afa09 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 285a3e9eb2..9b0d098d2c 100644 --- a/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h +++ b/c/include/libsbp/v4/observation/MSG_ALMANAC_GPS_DEP.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 17b312292e..9d77524ba7 100644 --- a/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h +++ b/c/include/libsbp/v4/observation/MSG_BASE_POS_ECEF.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 4a84f58309..9a074a72e1 100644 --- a/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h +++ b/c/include/libsbp/v4/observation/MSG_BASE_POS_LLH.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h index 6b70ce13c4..6a46ae7b6e 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_BDS.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 01160633b4..6cfaee2450 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_A.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 a70f73a2ed..d41c171fde 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_B.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 60b60a26a9..611dbfff39 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_C.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 04ece1415c..c044ad603b 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_DEP_D.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h index f6200edc2c..94b62fa190 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GAL.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 fdee894d6b..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h index 333ddccbe8..b607d9f58c 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GLO.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 1fdf365e31..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 a06721455e..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 c63d06c74f..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 aa813b822e..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h index 319c0c9454..354d3dc83d 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_GPS.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 953b12514c..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 45a041a48d..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h index 5652544db3..8df824c585 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_QZSS.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h index e106caa7b8..e1fe12908e 100644 --- a/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h +++ b/c/include/libsbp/v4/observation/MSG_EPHEMERIS_SBAS.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6b231292e2..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 98b7ba7d7c..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h b/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h index 6d4624edd9..1aba728e90 100644 --- a/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h +++ b/c/include/libsbp/v4/observation/MSG_GLO_BIASES.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h b/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h index 2a1d249f5b..25feb50bb4 100644 --- a/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h +++ b/c/include/libsbp/v4/observation/MSG_GNSS_CAPB.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h index 9888c5500e..9ede22d3d7 100644 --- a/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h +++ b/c/include/libsbp/v4/observation/MSG_GROUP_DELAY.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 fca29ed44f..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 3da3c59ab3..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_IONO.h b/c/include/libsbp/v4/observation/MSG_IONO.h index 2ba7005d30..30b781ae2d 100644 --- a/c/include/libsbp/v4/observation/MSG_IONO.h +++ b/c/include/libsbp/v4/observation/MSG_IONO.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_OBS.h b/c/include/libsbp/v4/observation/MSG_OBS.h index fb550796ab..63b2733bdc 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS.h +++ b/c/include/libsbp/v4/observation/MSG_OBS.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 5f2b9bdc51..947c6786c1 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_A.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 dc873ad843..60c5ec99f4 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_B.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6a8c917144..84874b259c 100644 --- a/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h +++ b/c/include/libsbp/v4/observation/MSG_OBS_DEP_C.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/MSG_OSR.h b/c/include/libsbp/v4/observation/MSG_OSR.h index 470cc65188..b5c52d4f8c 100644 --- a/c/include/libsbp/v4/observation/MSG_OSR.h +++ b/c/include/libsbp/v4/observation/MSG_OSR.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 8f4d62ba0e..0c36b04eea 100644 --- a/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h +++ b/c/include/libsbp/v4/observation/MSG_SV_AZ_EL.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 ea46b80854..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/ObservationHeader.h b/c/include/libsbp/v4/observation/ObservationHeader.h index 3971d2b7f6..19c42e18e5 100644 --- a/c/include/libsbp/v4/observation/ObservationHeader.h +++ b/c/include/libsbp/v4/observation/ObservationHeader.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/ObservationHeaderDep.h b/c/include/libsbp/v4/observation/ObservationHeaderDep.h index 011bb4aa64..2f71751b15 100644 --- a/c/include/libsbp/v4/observation/ObservationHeaderDep.h +++ b/c/include/libsbp/v4/observation/ObservationHeaderDep.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/PackedObsContent.h b/c/include/libsbp/v4/observation/PackedObsContent.h index 8ac2d1a2a1..25822976a2 100644 --- a/c/include/libsbp/v4/observation/PackedObsContent.h +++ b/c/include/libsbp/v4/observation/PackedObsContent.h @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/PackedObsContentDepA.h b/c/include/libsbp/v4/observation/PackedObsContentDepA.h index 8f3ad8354f..17b66a5365 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepA.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepA.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/PackedObsContentDepB.h b/c/include/libsbp/v4/observation/PackedObsContentDepB.h index e17208b09c..1cebc029a4 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepB.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepB.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/PackedObsContentDepC.h b/c/include/libsbp/v4/observation/PackedObsContentDepC.h index 7e9b31c6c8..1e731d7d77 100644 --- a/c/include/libsbp/v4/observation/PackedObsContentDepC.h +++ b/c/include/libsbp/v4/observation/PackedObsContentDepC.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/PackedOsrContent.h b/c/include/libsbp/v4/observation/PackedOsrContent.h index ac7d16fe27..071a95692e 100644 --- a/c/include/libsbp/v4/observation/PackedOsrContent.h +++ b/c/include/libsbp/v4/observation/PackedOsrContent.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/observation/SvAzEl.h b/c/include/libsbp/v4/observation/SvAzEl.h index 2e41d4c577..c5eb0c9234 100644 --- a/c/include/libsbp/v4/observation/SvAzEl.h +++ b/c/include/libsbp/v4/observation/SvAzEl.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h b/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h index 037913cbb5..36be54acdc 100644 --- a/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h +++ b/c/include/libsbp/v4/orientation/MSG_ANGULAR_RATE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h b/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h index 4faace97e3..ec60214f44 100644 --- a/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h +++ b/c/include/libsbp/v4/orientation/MSG_BASELINE_HEADING.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h b/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h index c0b39c637e..47a6ea9e6a 100644 --- a/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h +++ b/c/include/libsbp/v4/orientation/MSG_ORIENT_EULER.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h b/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h index e54ad52e3c..b2340e1168 100644 --- a/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h +++ b/c/include/libsbp/v4/orientation/MSG_ORIENT_QUAT.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/Latency.h b/c/include/libsbp/v4/piksi/Latency.h index ef4ff5307b..c004e70adf 100644 --- a/c/include/libsbp/v4/piksi/Latency.h +++ b/c/include/libsbp/v4/piksi/Latency.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_ALMANAC.h b/c/include/libsbp/v4/piksi/MSG_ALMANAC.h index 30afa0afd0..f3519d75f1 100644 --- a/c/include/libsbp/v4/piksi/MSG_ALMANAC.h +++ b/c/include/libsbp/v4/piksi/MSG_ALMANAC.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 4a8c28c299..d2f1b3cadc 100644 --- a/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h +++ b/c/include/libsbp/v4/piksi/MSG_CELL_MODEM_STATUS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h b/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h index a17cd33b97..842fac0dc9 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_OUTPUT.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h b/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h index 5a2fcacd6b..50f1b71702 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_REQ.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h b/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h index 7b5cee6a21..44bc8fdb09 100644 --- a/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h +++ b/c/include/libsbp/v4/piksi/MSG_COMMAND_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h b/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h index 5e38023ab4..a6a8aba190 100644 --- a/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h +++ b/c/include/libsbp/v4/piksi/MSG_CW_RESULTS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_CW_START.h b/c/include/libsbp/v4/piksi/MSG_CW_START.h index 670847c52b..58b62711ad 100644 --- a/c/include/libsbp/v4/piksi/MSG_CW_START.h +++ b/c/include/libsbp/v4/piksi/MSG_CW_START.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h b/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h index 83591e7c40..5be3c8baf9 100644 --- a/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h +++ b/c/include/libsbp/v4/piksi/MSG_DEVICE_MONITOR.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 0cd58309ec..efdc38861e 100644 --- a/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h +++ b/c/include/libsbp/v4/piksi/MSG_FRONT_END_GAIN.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h b/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h index 2ace9beafd..53cb3312a5 100644 --- a/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_IAR_STATE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 03b49fa5e9..05839be7e6 100644 --- a/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_INIT_BASE_DEP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h index a65b081aab..fe0634d49d 100644 --- a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h +++ b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 8b9f40f8d4..1cec567de0 100644 --- a/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_MASK_SATELLITE_DEP.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 4a0e742615..7e849f554b 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_BANDWIDTH_USAGE.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 e5acd589f6..fe8ba1abd8 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_REQ.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 cfd324c3f8..3206a04249 100644 --- a/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h +++ b/c/include/libsbp/v4/piksi/MSG_NETWORK_STATE_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_RESET.h b/c/include/libsbp/v4/piksi/MSG_RESET.h index 3f0a478534..f2ef9dcf02 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h b/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h index a5233980e3..cf2a9f1acf 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET_DEP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h b/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h index e745bfa552..a3bd8ae2df 100644 --- a/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h +++ b/c/include/libsbp/v4/piksi/MSG_RESET_FILTERS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_SET_TIME.h b/c/include/libsbp/v4/piksi/MSG_SET_TIME.h index 2df7c495d1..b554142eb4 100644 --- a/c/include/libsbp/v4/piksi/MSG_SET_TIME.h +++ b/c/include/libsbp/v4/piksi/MSG_SET_TIME.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_SPECAN.h b/c/include/libsbp/v4/piksi/MSG_SPECAN.h index 27f0950566..80f3e9b380 100644 --- a/c/include/libsbp/v4/piksi/MSG_SPECAN.h +++ b/c/include/libsbp/v4/piksi/MSG_SPECAN.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h b/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h index 852fa50f09..3ca9afd8bd 100644 --- a/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h +++ b/c/include/libsbp/v4/piksi/MSG_SPECAN_DEP.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h b/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h index e41a582afe..c10a8c9ac0 100644 --- a/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_THREAD_STATE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/MSG_UART_STATE.h b/c/include/libsbp/v4/piksi/MSG_UART_STATE.h index aeed86b8bd..b7de37aca2 100644 --- a/c/include/libsbp/v4/piksi/MSG_UART_STATE.h +++ b/c/include/libsbp/v4/piksi/MSG_UART_STATE.h @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 4db0451c26..4c82c4d1a3 100644 --- a/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h +++ b/c/include/libsbp/v4/piksi/MSG_UART_STATE_DEPA.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/NetworkUsage.h b/c/include/libsbp/v4/piksi/NetworkUsage.h index b957df0ed5..c5629ca5ed 100644 --- a/c/include/libsbp/v4/piksi/NetworkUsage.h +++ b/c/include/libsbp/v4/piksi/NetworkUsage.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/Period.h b/c/include/libsbp/v4/piksi/Period.h index 5dd98f48d9..ad987fff52 100644 --- a/c/include/libsbp/v4/piksi/Period.h +++ b/c/include/libsbp/v4/piksi/Period.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/piksi/UARTChannel.h b/c/include/libsbp/v4/piksi/UARTChannel.h index 0c835a36c0..e752413867 100644 --- a/c/include/libsbp/v4/piksi/UARTChannel.h +++ b/c/include/libsbp/v4/piksi/UARTChannel.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h b/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h index d917d35289..169daceff2 100644 --- a/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h +++ b/c/include/libsbp/v4/sbas/MSG_SBAS_RAW.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d935547ff3..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d3eb69e2c6..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6e55a1398f..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 @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 6d146aad83..807d890076 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_REQ.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 69eaa4e34e..e22be21749 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_READ_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h index a92bf0abe8..4cf6295a92 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 db23c95f61..0946620865 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_REGISTER_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h index 3dab1e58f6..5ec2e898b4 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_SAVE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h index 617ceb97b2..d59a9340af 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 4bcd6f336b..2485f8d100 100644 --- a/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h +++ b/c/include/libsbp/v4/settings/MSG_SETTINGS_WRITE_RESP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/solution_meta/GNSSInputType.h b/c/include/libsbp/v4/solution_meta/GNSSInputType.h index 137ad6b071..8455a7d0c2 100644 --- a/c/include/libsbp/v4/solution_meta/GNSSInputType.h +++ b/c/include/libsbp/v4/solution_meta/GNSSInputType.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/solution_meta/IMUInputType.h b/c/include/libsbp/v4/solution_meta/IMUInputType.h index ebf3942f2a..5aa62a5b38 100644 --- a/c/include/libsbp/v4/solution_meta/IMUInputType.h +++ b/c/include/libsbp/v4/solution_meta/IMUInputType.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 94c21e82fa..389ebcb5b9 100644 --- a/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h +++ b/c/include/libsbp/v4/solution_meta/MSG_SOLN_META.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 dc23753342..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/solution_meta/OdoInputType.h b/c/include/libsbp/v4/solution_meta/OdoInputType.h index 727b125e73..a3df39a265 100644 --- a/c/include/libsbp/v4/solution_meta/OdoInputType.h +++ b/c/include/libsbp/v4/solution_meta/OdoInputType.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/solution_meta/SolutionInputType.h b/c/include/libsbp/v4/solution_meta/SolutionInputType.h index 7171c5b262..4599163a29 100644 --- a/c/include/libsbp/v4/solution_meta/SolutionInputType.h +++ b/c/include/libsbp/v4/solution_meta/SolutionInputType.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/CodeBiasesContent.h b/c/include/libsbp/v4/ssr/CodeBiasesContent.h index 4a1ee32ba9..a7a9c09288 100644 --- a/c/include/libsbp/v4/ssr/CodeBiasesContent.h +++ b/c/include/libsbp/v4/ssr/CodeBiasesContent.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h b/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h index a047b0d3f4..a679dcba83 100644 --- a/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/GridDefinitionHeaderDepA.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h b/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h index 0f5b8216b6..c1743f9faf 100644 --- a/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h +++ b/c/include/libsbp/v4/ssr/GriddedCorrectionHeader.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h b/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h index caac67bc18..f5649eb66a 100644 --- a/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/GriddedCorrectionHeaderDepA.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d823278c28..d19c5c7a2c 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_CODE_BIASES.h @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 fe779be189..87d0cf09fd 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_GRIDDED_CORRECTION.h @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 595c4e9b6e..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 @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 0014f99feb..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 @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 9bad5636b5..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 247b2141b0..b883c96e63 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_ORBIT_CLOCK.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 abfedbb1d7..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 91a6ad583d..14a8d38ee9 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_PHASE_BIASES.h @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 0193a48660..68b0f001ed 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_SATELLITE_APC.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 51a1cebcea..3c884a91cd 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_STEC_CORRECTION.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 5172a734ce..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 e659149e0f..d7d02b89d2 100644 --- a/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h +++ b/c/include/libsbp/v4/ssr/MSG_SSR_TILE_DEFINITION.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/PhaseBiasesContent.h b/c/include/libsbp/v4/ssr/PhaseBiasesContent.h index 655c5c16a9..0e8255e70d 100644 --- a/c/include/libsbp/v4/ssr/PhaseBiasesContent.h +++ b/c/include/libsbp/v4/ssr/PhaseBiasesContent.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/STECHeader.h b/c/include/libsbp/v4/ssr/STECHeader.h index 78401e495b..464f5be901 100644 --- a/c/include/libsbp/v4/ssr/STECHeader.h +++ b/c/include/libsbp/v4/ssr/STECHeader.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/STECHeaderDepA.h b/c/include/libsbp/v4/ssr/STECHeaderDepA.h index d77051c7a7..71a347b3c1 100644 --- a/c/include/libsbp/v4/ssr/STECHeaderDepA.h +++ b/c/include/libsbp/v4/ssr/STECHeaderDepA.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/STECResidual.h b/c/include/libsbp/v4/ssr/STECResidual.h index 4bee367e31..190a1a3bda 100644 --- a/c/include/libsbp/v4/ssr/STECResidual.h +++ b/c/include/libsbp/v4/ssr/STECResidual.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/STECResidualNoStd.h b/c/include/libsbp/v4/ssr/STECResidualNoStd.h index 0876833887..661d45a9f5 100644 --- a/c/include/libsbp/v4/ssr/STECResidualNoStd.h +++ b/c/include/libsbp/v4/ssr/STECResidualNoStd.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/STECSatElement.h b/c/include/libsbp/v4/ssr/STECSatElement.h index abf850dde9..63960a8b5a 100644 --- a/c/include/libsbp/v4/ssr/STECSatElement.h +++ b/c/include/libsbp/v4/ssr/STECSatElement.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/SatelliteAPC.h b/c/include/libsbp/v4/ssr/SatelliteAPC.h index 889caac568..dee1ab2ea0 100644 --- a/c/include/libsbp/v4/ssr/SatelliteAPC.h +++ b/c/include/libsbp/v4/ssr/SatelliteAPC.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h b/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h index 4c85efd93c..0ad1655ca0 100644 --- a/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h +++ b/c/include/libsbp/v4/ssr/TroposphericDelayCorrection.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h b/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h index 87ea61f35b..76591dcb66 100644 --- a/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h +++ b/c/include/libsbp/v4/ssr/TroposphericDelayCorrectionNoStd.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h index 0461aaf88a..8cf7de6859 100644 --- a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h +++ b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 2b9a12e915..9b9a083548 100644 --- a/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h +++ b/c/include/libsbp/v4/system/MSG_CSAC_TELEMETRY_LABELS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h b/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h index b14da7f0d7..59bd20f787 100644 --- a/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h +++ b/c/include/libsbp/v4/system/MSG_DGNSS_STATUS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d1f1007fde..0ce2e3fd7d 100644 --- a/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h +++ b/c/include/libsbp/v4/system/MSG_GNSS_TIME_OFFSET.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_GROUP_META.h b/c/include/libsbp/v4/system/MSG_GROUP_META.h index ea8dfb4128..7038ca59d8 100644 --- a/c/include/libsbp/v4/system/MSG_GROUP_META.h +++ b/c/include/libsbp/v4/system/MSG_GROUP_META.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_HEARTBEAT.h b/c/include/libsbp/v4/system/MSG_HEARTBEAT.h index 452e58bee0..e8e1e70aa6 100644 --- a/c/include/libsbp/v4/system/MSG_HEARTBEAT.h +++ b/c/include/libsbp/v4/system/MSG_HEARTBEAT.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_INS_STATUS.h b/c/include/libsbp/v4/system/MSG_INS_STATUS.h index fcbb0bacea..ca7cce11be 100644 --- a/c/include/libsbp/v4/system/MSG_INS_STATUS.h +++ b/c/include/libsbp/v4/system/MSG_INS_STATUS.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_INS_UPDATES.h b/c/include/libsbp/v4/system/MSG_INS_UPDATES.h index 394b59ffd0..e3aa3c87fa 100644 --- a/c/include/libsbp/v4/system/MSG_INS_UPDATES.h +++ b/c/include/libsbp/v4/system/MSG_INS_UPDATES.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_PPS_TIME.h b/c/include/libsbp/v4/system/MSG_PPS_TIME.h index 3b2e8f830f..c879439cdd 100644 --- a/c/include/libsbp/v4/system/MSG_PPS_TIME.h +++ b/c/include/libsbp/v4/system/MSG_PPS_TIME.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_STARTUP.h b/c/include/libsbp/v4/system/MSG_STARTUP.h index 7de88e1b40..ba55461c4e 100644 --- a/c/include/libsbp/v4/system/MSG_STARTUP.h +++ b/c/include/libsbp/v4/system/MSG_STARTUP.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h b/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h index 4cddcc13df..82ff625772 100644 --- a/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h +++ b/c/include/libsbp/v4/system/MSG_STATUS_REPORT.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/system/SubSystemReport.h b/c/include/libsbp/v4/system/SubSystemReport.h index ada29c64a5..25ceaf23ee 100644 --- a/c/include/libsbp/v4/system/SubSystemReport.h +++ b/c/include/libsbp/v4/system/SubSystemReport.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h b/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h index d6e0a34b7c..2375630f62 100644 --- a/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h +++ b/c/include/libsbp/v4/tracking/MSG_MEASUREMENT_STATE.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h index 1bcf8e27f5..9f4ca58c55 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_IQ.h @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 2c3557cbd3..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 94c7e8126b..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 @@ -31,8 +31,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h index 30d6156ba5..83802cf427 100644 --- a/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h +++ b/c/include/libsbp/v4/tracking/MSG_TRACKING_STATE.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 d800f6b9f6..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 81b441a95d..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 @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 a4446519ea..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 @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif 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 b8d979a05a..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 @@ -32,8 +32,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/MeasurementState.h b/c/include/libsbp/v4/tracking/MeasurementState.h index f9345859c8..b8c6c21211 100644 --- a/c/include/libsbp/v4/tracking/MeasurementState.h +++ b/c/include/libsbp/v4/tracking/MeasurementState.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h b/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h index 657e476bd8..ce155470b4 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelCorrelation.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h b/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h index 016b6bc6ee..15d895cb5e 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelCorrelationDep.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/TrackingChannelState.h b/c/include/libsbp/v4/tracking/TrackingChannelState.h index fec75cdb99..3dda751aac 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelState.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelState.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h b/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h index 1be60d8da1..e04fd90eb3 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelStateDepA.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h b/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h index 1a793bf56d..91cf0babdd 100644 --- a/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h +++ b/c/include/libsbp/v4/tracking/TrackingChannelStateDepB.h @@ -30,8 +30,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/user/MSG_USER_DATA.h b/c/include/libsbp/v4/user/MSG_USER_DATA.h index e5c4217fea..50eb513f29 100644 --- a/c/include/libsbp/v4/user/MSG_USER_DATA.h +++ b/c/include/libsbp/v4/user/MSG_USER_DATA.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h b/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h index 68411268f5..d1fa783c30 100644 --- a/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h +++ b/c/include/libsbp/v4/vehicle/MSG_ODOMETRY.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h b/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h index 059302926e..69c12a0bc4 100644 --- a/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h +++ b/c/include/libsbp/v4/vehicle/MSG_WHEELTICK.h @@ -29,8 +29,6 @@ #include #include -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/c/src/CMakeLists.txt b/c/src/CMakeLists.txt index 0ec174f39b..529fa0a6fc 100644 --- a/c/src/CMakeLists.txt +++ b/c/src/CMakeLists.txt @@ -1,5 +1,3 @@ -include(GenerateExportHeader) - FILE(GLOB generated_c_sources v4/*.c) set(libsbp_SRCS @@ -18,10 +16,9 @@ swift_add_library(sbp ) add_library(swiftnav::sbp ALIAS sbp) -generate_export_header(sbp - DEPRECATED_MACRO_NAME CMAKE_SBP_DEPRECATED - NO_DEPRECATED_MACRO_NAME CMAKE_SBP_NO_DEPRECATED - INCLUDE_GUARD_NAME LIBSBP_SBP_EXPORT_H +target_compile_definitions(sbp + PRIVATE + $ ) target_include_directories(sbp PUBLIC @@ -53,7 +50,6 @@ install( ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/libsbp/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libsbp) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sbp_export.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libsbp) export(EXPORT sbp-export NAMESPACE swiftnav:: 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 6b78c5abb2..d3f1aa2071 100644 --- a/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h +++ b/generator/sbpg/targets/resources/c/v4/sbp_messages_template.h @@ -33,8 +33,6 @@ #include ((*- endfor *)) -#include "sbp_export.h" - #ifdef __cplusplus extern "C" { #endif From c2e9ac635adac25d49be793f0beabe4690c1035b Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Tue, 7 Sep 2021 16:21:11 +1000 Subject: [PATCH 18/21] test_package --- .github/workflows/c.yaml | 10 ++++ c/test_package/CMakeLists.txt | 37 ++++++++++++ c/test_package/legacy.c | 95 +++++++++++++++++++++++++++++ c/test_package/legacy.cc | 110 ++++++++++++++++++++++++++++++++++ c/test_package/v4.c | 91 ++++++++++++++++++++++++++++ c/test_package/v4.cc | 106 ++++++++++++++++++++++++++++++++ 6 files changed, 449 insertions(+) create mode 100644 c/test_package/CMakeLists.txt create mode 100644 c/test_package/legacy.c create mode 100644 c/test_package/legacy.cc create mode 100644 c/test_package/v4.c create mode 100644 c/test_package/v4.cc diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 59481cc972..fa5c57ac3c 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -86,6 +86,11 @@ jobs: - name: Install run: cmake --build build --target install + - 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 + macos: name: macOS Catalina @@ -173,3 +178,8 @@ jobs: - name: Install run: cmake --build build --target install + - 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 + diff --git a/c/test_package/CMakeLists.txt b/c/test_package/CMakeLists.txt new file mode 100644 index 0000000000..39930ae53b --- /dev/null +++ b/c/test_package/CMakeLists.txt @@ -0,0 +1,37 @@ +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) +find_path(SBP_INCLUDE_DIRS libsbp) + +if (NOT SBP_LIBRARY) + message(FATAL_ERROR "SBP library was not found") +endif() +if (NOT SBP_INCLUDE_DIRS) + message(FATAL_ERROR "SBP header folder was not found") +endif() + +add_executable(legacy_c legacy.c) +add_executable(legacy_cxx legacy.cc) +add_executable(v4_c v4.c) +add_executable(v4_cxx v4.cc) + +foreach(executable IN ITEMS legacy_c v4_c) + target_compile_features(${executable} PRIVATE c_std_11) +endforeach() + +foreach(executable IN ITEMS legacy_cxx v4_cxx) + target_compile_features(${executable} PRIVATE cxx_std_14) +endforeach() + +foreach(executable IN ITEMS legacy_c legacy_cxx v4_c v4_cxx) + target_link_libraries(${executable} PRIVATE ${SBP_LIBRARY}) + target_include_directories(${executable} PRIVATE ${SBP_INCLUDE_DIRS}) + target_compile_definitions(${executable} PRIVATE SBP_FILE="${SBP_FILE}") +endforeach() \ No newline at end of file diff --git a/c/test_package/legacy.c b/c/test_package/legacy.c new file mode 100644 index 0000000000..9761a53594 --- /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 = {}; + + 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..bdae4141a4 --- /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 = {}; + + 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 From 642d3bcfcd004a081d9660f516ec68b214d02993 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Tue, 7 Sep 2021 17:31:25 +1000 Subject: [PATCH 19/21] few fixes --- .github/workflows/c.yaml | 5 +++++ c/src/CMakeLists.txt | 1 + c/test_package/CMakeLists.txt | 4 ++-- c/test_package/legacy.c | 2 +- c/test_package/v4.c | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index fa5c57ac3c..5253111bf1 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -119,6 +119,11 @@ jobs: - name: Install run: cmake --build build --target install + - 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: name: Test Big Endian diff --git a/c/src/CMakeLists.txt b/c/src/CMakeLists.txt index 529fa0a6fc..6913bdacfc 100644 --- a/c/src/CMakeLists.txt +++ b/c/src/CMakeLists.txt @@ -33,6 +33,7 @@ set_target_properties(sbp VISIBILITY_INLINES_HIDDEN true C_VISIBILITY_PRESET hidden CXX_VISIBILITY_PRESET hidden + POSITION_INDEPENDENT_CODE true ) if (MINGW) diff --git a/c/test_package/CMakeLists.txt b/c/test_package/CMakeLists.txt index 39930ae53b..3ca41999cd 100644 --- a/c/test_package/CMakeLists.txt +++ b/c/test_package/CMakeLists.txt @@ -8,11 +8,11 @@ if (NOT EXISTS ${SBP_FILE} OR NOT IS_ABSOLUTE ${SBP_FILE}) endif() find_library(SBP_LIBRARY sbp) -find_path(SBP_INCLUDE_DIRS libsbp) - 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() diff --git a/c/test_package/legacy.c b/c/test_package/legacy.c index 9761a53594..2fd78dbaaf 100644 --- a/c/test_package/legacy.c +++ b/c/test_package/legacy.c @@ -41,7 +41,7 @@ input_file_payload_handler(u16 sender_id, u16 message_type, u8 payload_length, u int main() { int exit_code = EXIT_SUCCESS; - struct Context context = {}; + struct Context context = {0}; context.input_file = fopen(SBP_FILE, "r"); if (!context.input_file) { diff --git a/c/test_package/v4.c b/c/test_package/v4.c index bdae4141a4..22a42ce942 100644 --- a/c/test_package/v4.c +++ b/c/test_package/v4.c @@ -37,7 +37,7 @@ input_file_payload_handler(u16 sender_id, sbp_msg_type_t message_type, const sbp int main() { int exit_code = EXIT_SUCCESS; - struct Context context = {}; + struct Context context = {0}; context.input_file = fopen(SBP_FILE, "r"); if (!context.input_file) { From 7b5d4421e9562dd32e332359da1786f9832bcfb3 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Tue, 7 Sep 2021 21:06:38 +1000 Subject: [PATCH 20/21] fix Windows --- c/test_package/CMakeLists.txt | 39 +++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/c/test_package/CMakeLists.txt b/c/test_package/CMakeLists.txt index 3ca41999cd..05a4eb7ee4 100644 --- a/c/test_package/CMakeLists.txt +++ b/c/test_package/CMakeLists.txt @@ -17,21 +17,28 @@ if (NOT SBP_INCLUDE_DIRS) message(FATAL_ERROR "SBP header folder was not found") endif() -add_executable(legacy_c legacy.c) -add_executable(legacy_cxx legacy.cc) -add_executable(v4_c v4.c) -add_executable(v4_cxx v4.cc) - -foreach(executable IN ITEMS legacy_c v4_c) - target_compile_features(${executable} PRIVATE c_std_11) -endforeach() +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() -foreach(executable IN ITEMS legacy_cxx v4_cxx) - target_compile_features(${executable} PRIVATE cxx_std_14) -endforeach() +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}") -foreach(executable IN ITEMS legacy_c legacy_cxx v4_c v4_cxx) - target_link_libraries(${executable} PRIVATE ${SBP_LIBRARY}) - target_include_directories(${executable} PRIVATE ${SBP_INCLUDE_DIRS}) - target_compile_definitions(${executable} PRIVATE SBP_FILE="${SBP_FILE}") -endforeach() \ No newline at end of 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}") From 62c742497981204924630c8bd0c832a74ff6a755 Mon Sep 17 00:00:00 2001 From: Rodrigo Reichert Date: Tue, 7 Sep 2021 21:34:12 +1000 Subject: [PATCH 21/21] mingw fix --- .github/workflows/c.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 5253111bf1..e18c983fd0 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -185,6 +185,6 @@ jobs: - name: Test Package run: | - cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install" + 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