locking: Add missing COAP_API

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2024-06-05 08:33:39 +01:00
1 parent 782e607879
commit dec13f94f1
6 files changed
+24 -23

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ COAP_API void coap_async_trigger(coap_async_t *async);
* @param session The session to use.
* @param async The object to delete.
*/
void coap_free_async(coap_session_t *session, coap_async_t *async);
COAP_API void coap_free_async(coap_session_t *session, coap_async_t *async);
/**
* Retrieves the object identified by @p token from the list of asynchronous
+3 -1
View File
@@ -216,11 +216,13 @@ int coap_insert_node(coap_queue_t **queue, coap_queue_t *node);
/**
* Destroys specified @p node.
*
* Note: Not a part of the Public API.
*
* @param node Node entry to remove.
*
* @return @c 1 node deleted from queue, @c 0 failure.
*/
int coap_delete_node(coap_queue_t *node);
COAP_API int coap_delete_node(coap_queue_t *node);
/**
* Destroys specified @p node.
+5 -5
View File
@@ -54,11 +54,11 @@ int coap_oscore_is_supported(void);
* @return A new CoAP session or NULL if failed. Call coap_session_release()
* to free.
*/
coap_session_t *coap_new_client_session_oscore(coap_context_t *ctx,
const coap_address_t *local_if,
const coap_address_t *server,
coap_proto_t proto,
coap_oscore_conf_t *oscore_conf);
COAP_API coap_session_t *coap_new_client_session_oscore(coap_context_t *ctx,
const coap_address_t *local_if,
const coap_address_t *server,
coap_proto_t proto,
coap_oscore_conf_t *oscore_conf);
/**
* Creates a new client session to the designated server with PSK credentials
+11 -12
View File
@@ -253,12 +253,11 @@ COAP_API size_t coap_session_max_pdu_size(const coap_session_t *session);
*
* @return A new CoAP session or NULL if failed. Call coap_session_release to free.
*/
COAP_API coap_session_t *coap_new_client_session(
coap_context_t *ctx,
const coap_address_t *local_if,
const coap_address_t *server,
coap_proto_t proto
);
COAP_API coap_session_t *coap_new_client_session(coap_context_t *ctx,
const coap_address_t *local_if,
const coap_address_t *server,
coap_proto_t proto
);
/**
* Creates a new client session to the designated server with PSK credentials
@@ -303,12 +302,12 @@ COAP_API coap_session_t *coap_new_client_session_psk(coap_context_t *ctx,
* @return A new CoAP session or NULL if failed. Call coap_session_release()
* to free.
*/
coap_session_t *coap_new_client_session_psk2(coap_context_t *ctx,
const coap_address_t *local_if,
const coap_address_t *server,
coap_proto_t proto,
coap_dtls_cpsk_t *setup_data
);
COAP_API coap_session_t *coap_new_client_session_psk2(coap_context_t *ctx,
const coap_address_t *local_if,
const coap_address_t *server,
coap_proto_t proto,
coap_dtls_cpsk_t *setup_data
);
/**
* Get the server session's current Identity Hint (PSK).
+1 -1
View File
@@ -193,7 +193,7 @@ coap_free_async_sub(coap_context_t *context, coap_async_t *s) {
}
}
void
COAP_API void
coap_free_async(coap_session_t *session, coap_async_t *async) {
coap_lock_lock(session->context, return);
coap_free_async_lkd(session, async);
+3 -3
View File
@@ -200,7 +200,7 @@ coap_insert_node(coap_queue_t **queue, coap_queue_t *node) {
return 1;
}
int
COAP_API int
coap_delete_node(coap_queue_t *node) {
int ret;
#if COAP_THREAD_SAFE
@@ -4257,7 +4257,7 @@ coap_event_name(coap_event_t event) {
}
#endif /* COAP_MAX_LOGGING_LEVEL >= _COAP_LOG_DEBUG */
int
COAP_API int
coap_handle_event(coap_context_t *context, coap_event_t event,
coap_session_t *session) {
int ret;
@@ -4754,7 +4754,7 @@ coap_mcast_set_hops(coap_session_t *session, size_t hops) {
#endif /* COAP_CLIENT_SUPPORT */
#else /* defined WITH_CONTIKI || defined WITH_LWIP */
int
COAP_API int
coap_join_mcast_group_intf(coap_context_t *ctx COAP_UNUSED,
const char *group_name COAP_UNUSED,
const char *ifname COAP_UNUSED) {