Initial commit of an experimental COAP/HTTP/REST implementation for Contiki
This commit is contained in:
parent
932fed8cc7
commit
e441bd4321
19 changed files with 2311 additions and 0 deletions
17
apps/rest-common/buffer.h
Normal file
17
apps/rest-common/buffer.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* buffer.h
|
||||
*
|
||||
* Created on: Oct 19, 2010
|
||||
* Author: dogan
|
||||
*/
|
||||
|
||||
#ifndef BUFFER_H_
|
||||
#define BUFFER_H_
|
||||
|
||||
void delete_buffer(void);
|
||||
uint8_t* init_buffer(uint16_t size);
|
||||
uint8_t* allocate_buffer(uint16_t size);
|
||||
uint8_t* copy_to_buffer(void* data, uint16_t len);
|
||||
uint8_t* copy_text_to_buffer(char* text);
|
||||
|
||||
#endif /* BUFFER_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue