actube/src/capwap/bstr.h
7u83@mail.ru ac8b979e84 More Cisco specific stuff
FossilOrigin-Name: ba1217e4069e946c852d379efe8a1c7bc95a6a545c85853ae54cdc3786b60dac
2015-03-14 09:15:12 +00:00

20 lines
329 B
C

#ifndef __BSTR_H
#define __BSTR_H
#include <stdint.h>
typedef uint8_t* bstr_t;
extern uint8_t * bstr_create(uint8_t *data, uint8_t len);
extern uint8_t * bstr_create_from_cfgstr(const char * s);
extern uint8_t * bstr_replace( uint8_t ** dst, uint8_t * bstr);
#define bstr_len(s) (*(s))
#define bstr_data(s) (s+1)
#endif