1616#include <libsbp/common.h>
1717#include <libsbp/legacy/callbacks.h>
1818
19+ SBP_MESSAGE (
20+ "The legacy libsbp API has been deprecated. This file and all symbols contained will "
21+ "be removed in version 6. You should immediately switch over to the modern libsbp API." )
22+
1923#ifdef __cplusplus
2024extern "C" {
2125#endif
@@ -36,7 +40,7 @@ extern "C" {
3640 * `SBP_CALLBACK_ERROR` if the callback was already
3741 * registered for that message type.
3842 */
39- SBP_EXPORT s8 sbp_payload_callback_register (sbp_state_t * s , u16 msg_type , sbp_msg_callback_t cb , void * context ,
43+ SBP_EXPORT SBP_DEPRECATED s8 sbp_payload_callback_register (sbp_state_t * s , u16 msg_type , sbp_msg_callback_t cb , void * context ,
4044 sbp_msg_callbacks_node_t * node );
4145
4246 /** Register a frame callback for a msg_type.
@@ -51,7 +55,7 @@ SBP_EXPORT s8 sbp_payload_callback_register(sbp_state_t* s, u16 msg_type, sbp_ms
5155 * `SBP_CALLBACK_ERROR` if the if callback was already
5256 * registered for that message type.
5357 */
54- SBP_EXPORT s8 sbp_frame_callback_register (sbp_state_t * s , u16 msg_type ,
58+ SBP_EXPORT SBP_DEPRECATED s8 sbp_frame_callback_register (sbp_state_t * s , u16 msg_type ,
5559 sbp_frame_callback_t cb , void * context ,
5660 sbp_msg_callbacks_node_t * node );
5761
@@ -64,7 +68,7 @@ SBP_EXPORT s8 sbp_frame_callback_register(sbp_state_t* s, u16 msg_type,
6468 * \return `SBP_OK` (0) if successful, `SBP_NULL_ERROR` if a usage error,
6569 * `SBP_CALLBACK_ERROR` if the node already exists
6670 */
67- SBP_EXPORT s8 sbp_all_payload_callback_register (sbp_state_t * s , sbp_frame_callback_t cb ,
71+ SBP_EXPORT SBP_DEPRECATED s8 sbp_all_payload_callback_register (sbp_state_t * s , sbp_frame_callback_t cb ,
6872 void * context , sbp_msg_callbacks_node_t * node );
6973
7074/** Directly process an SBP frame.
@@ -87,7 +91,7 @@ SBP_EXPORT s8 sbp_all_payload_callback_register(sbp_state_t *s, sbp_frame_callba
8791 * SBP_OK_CALLBACK_UNDEFINED` (2) if message decoded with no
8892 * associated callback.
8993 */
90- SBP_EXPORT s8 sbp_frame_process (sbp_state_t * s , u16 sender_id , u16 msg_type ,
94+ SBP_EXPORT SBP_DEPRECATED s8 sbp_frame_process (sbp_state_t * s , u16 sender_id , u16 msg_type ,
9195 u8 payload_len , u8 payload [], u16 frame_len , u8 frame [], u8 cb_mask );
9296
9397/** Directly process an SBP message.
@@ -103,7 +107,7 @@ SBP_EXPORT s8 sbp_frame_process(sbp_state_t *s, u16 sender_id, u16 msg_type,
103107 * `SBP_OK_CALLBACK_UNDEFINED` (2) if message decoded with no associated
104108 * callback.
105109 */
106- SBP_EXPORT s8 sbp_payload_process (sbp_state_t * s , u16 sender_id , u16 msg_type , u8 msg_len ,
110+ SBP_EXPORT SBP_DEPRECATED s8 sbp_payload_process (sbp_state_t * s , u16 sender_id , u16 msg_type , u8 msg_len ,
107111 u8 payload []);
108112
109113/** Send SBP messages.
@@ -135,7 +139,7 @@ SBP_EXPORT s8 sbp_payload_process(sbp_state_t *s, u16 sender_id, u16 msg_type, u
135139 * \return `SBP_OK` (0) if successful, `SBP_WRITE_ERROR` if the message could
136140 * not be sent or was only partially sent.
137141 */
138- SBP_EXPORT s8 sbp_payload_send (sbp_state_t * s , u16 msg_type , u16 sender_id , u8 len , u8 * payload ,
142+ SBP_EXPORT SBP_DEPRECATED s8 sbp_payload_send (sbp_state_t * s , u16 msg_type , u16 sender_id , u8 len , u8 * payload ,
139143 sbp_write_fn_t write );
140144
141145#ifdef __cplusplus
0 commit comments