1 |
/* |
/* |
2 |
stream.h - `Stream' object |
stream.h - `Stream' object |
3 |
Copyright (C) 2008 siliconforks.com |
Copyright (C) 2008, 2009 siliconforks.com |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
24 |
#include <stdint.h> |
#include <stdint.h> |
25 |
#include <stdlib.h> |
#include <stdlib.h> |
26 |
|
|
27 |
|
#ifdef __cplusplus |
28 |
|
extern "C" { |
29 |
|
#endif |
30 |
|
|
31 |
typedef struct Stream { |
typedef struct Stream { |
32 |
uint8_t * data; |
uint8_t * data; |
33 |
size_t length; |
size_t length; |
50 |
|
|
51 |
void Stream_delete(Stream * stream); |
void Stream_delete(Stream * stream); |
52 |
|
|
53 |
|
#ifdef __cplusplus |
54 |
|
} |
55 |
|
#endif |
56 |
|
|
57 |
#endif /* STREAM_H_ */ |
#endif /* STREAM_H_ */ |