coap_address_t: Update functions documentation and add coap_is_af_unix()

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-07-17 09:43:35 +01:00
1 parent 4dc295f7e9
commit d17f47ab54
8 files changed
+121 -11

No files matched your search

+16
View File
@@ -269,6 +269,12 @@ int coap_is_mcast(const coap_address_t *a);
*/
int coap_is_bcast(const coap_address_t *a);
/**
* Checks if given address @p a denotes a AF_UNIX address. This function
* returns @c 1 if @p a is of type AF_UNIX, @c 0 otherwise.
*/
int coap_is_af_unix(const coap_address_t *a);
#else /* WITH_LWIP || WITH_CONTIKI */
/**
@@ -280,6 +286,16 @@ coap_is_mcast(const coap_address_t *a) {
return a && _coap_is_mcast_impl(a);
}
/**
* Checks if given address @p a denotes a AF_UNIX address. This function
* returns @c 1 if @p a is of type AF_UNIX, @c 0 otherwise.
*/
COAP_STATIC_INLINE int
coap_is_af_unix(const coap_address_t *a) {
(void)a;
return 0;
}
#endif /* WITH_LWIP || WITH_CONTIKI */
#endif /* COAP_ADDRESS_H_ */