diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2017-03-06 21:32:49 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2017-03-06 21:32:49 +0200 |
| commit | a3dbe2dff7a56485eb4054368c2d2d1c4dee3437 (patch) | |
| tree | d3f0cd0ddd3e539c1ea3325184abe1dcbebcabd1 /src/stringstream.h | |
| parent | a062d934aef40829d9559a8ca83147ea4c44108e (diff) | |
| download | mqtt-a3dbe2dff7a56485eb4054368c2d2d1c4dee3437.tar.gz mqtt-a3dbe2dff7a56485eb4054368c2d2d1c4dee3437.zip | |
Add forgotten files
Diffstat (limited to 'src/stringstream.h')
| -rw-r--r-- | src/stringstream.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/stringstream.h b/src/stringstream.h new file mode 100644 index 0000000..60d42fb --- /dev/null +++ b/src/stringstream.h @@ -0,0 +1,21 @@ +#ifndef STRINGSTREAM_H +#define STRINGSTREAM_H + +#include "stream.h" +#include <bstrlib/bstrlib.h> +#include <stdio.h> + +typedef struct StringStream StringStream; + +struct StringStream +{ + Stream base; + bstring buffer; + int64_t pos; +}; + +int StringStreamInit(StringStream *stream); + +int StringStreamInitFromBstring(StringStream *stream, bstring buffer); + +#endif |
