mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 08:55:40 +03:00
coap_address_t: Update functions documentation and add coap_is_af_unix()
This commit is contained in:
1 parent
4dc295f7e9
commit
d17f47ab54
8 files changed
+121
-11
No files matched your search
@@ -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_ */
|
||||
Reference in new issue
Block a user