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).