New prototypes.
FossilOrigin-Name: c7bfad55d4a09a51680a9795617d519960527a6030e01fcdce06355af53f4c01
This commit is contained in:
parent
cf4a4ae44f
commit
14302b1531
@ -97,6 +97,8 @@ static inline uint8_t * bstr16_create(uint8_t *data, uint16_t len)
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t * bstr16_create_from_str(const char *s);
|
||||||
|
|
||||||
|
|
||||||
typedef uint8_t * vendorstr_t;
|
typedef uint8_t * vendorstr_t;
|
||||||
|
|
||||||
@ -116,7 +118,7 @@ typedef uint8_t * vendorstr_t;
|
|||||||
(((uint8_t*)(str))+6)
|
(((uint8_t*)(str))+6)
|
||||||
|
|
||||||
#define vendorstr_size(n)\
|
#define vendorstr_size(n)\
|
||||||
(1+6+(len)*sizeof(uint8_t))
|
(1+6+(n)*sizeof(uint8_t))
|
||||||
|
|
||||||
|
|
||||||
static inline uint8_t * vendorstr_create(uint32_t vendor_id, uint8_t *data, uint8_t len)
|
static inline uint8_t * vendorstr_create(uint32_t vendor_id, uint8_t *data, uint8_t len)
|
||||||
@ -133,6 +135,9 @@ static inline uint8_t * vendorstr_create(uint32_t vendor_id, uint8_t *data, uint
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t * vendorstr_create_from_str(uint32_t vendor_id,const char *s);
|
||||||
|
|
||||||
|
|
||||||
uint8_t * bstr16cfgstr(const char * s);
|
uint8_t * bstr16cfgstr(const char * s);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user