mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 11:40:39 +03:00
locking: Add missing COAP_API
This commit is contained in:
1 parent
782e607879
commit
dec13f94f1
6 files changed
+24
-23
No files matched your search
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user