mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 11:40:39 +03:00
Merge pull request #285 from mrdeep1/delete_str
Remove deprecated str typedef to remove namespace pollution
This commit is contained in:
2 files changed
+1
-7
No files matched your search
@@ -43,7 +43,7 @@ void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h);
|
||||
#endif /* coap_hash */
|
||||
|
||||
/**
|
||||
* Calls coap_hash() with given @c str object as parameter.
|
||||
* Calls coap_hash() with given @c coap_string_t object as parameter.
|
||||
*
|
||||
* @param Str Must contain a pointer to a coap string object.
|
||||
* @param H A coap_key_t object to store the result.
|
||||
|
||||
@@ -35,12 +35,6 @@ typedef struct coap_str_const_t {
|
||||
const uint8_t *s; /**< string data */
|
||||
} coap_str_const_t;
|
||||
|
||||
/**
|
||||
* @deprecated Use coap_string_t instead.
|
||||
*/
|
||||
COAP_DEPRECATED
|
||||
typedef coap_string_t str;
|
||||
|
||||
#define COAP_SET_STR(st,l,v) { (st)->length = (l), (st)->s = (v); }
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user