Sync with trunk r58740.
[reactos.git] / dll / win32 / hhctrl.ocx / stream.h
index a03fd46..8d61ad5 100644 (file)
@@ -19,7 +19,9 @@
 #ifndef HHCTRL_STREAM_H
 #define HHCTRL_STREAM_H
 
-#define BLOCK_SIZE 0x1000
+#define BLOCK_BITS 12
+#define BLOCK_SIZE (1 << BLOCK_BITS)
+#define BLOCK_MASK (BLOCK_SIZE-1)
 
 typedef struct {
     char *buf;
@@ -34,15 +36,13 @@ typedef struct {
     ULONG p;
 } stream_t;
 
-void strbuf_init(strbuf_t *buf);
-void strbuf_zero(strbuf_t *buf);
-void strbuf_free(strbuf_t *buf);
-void strbuf_append(strbuf_t *buf, const char *data, int len);
-void stream_init(stream_t *stream, IStream *str);
-BOOL stream_chr(stream_t *stream, strbuf_t *buf, char c);
-void get_node_name(strbuf_t *node, strbuf_t *name);
-BOOL next_content(stream_t *stream, strbuf_t *buf);
-BOOL next_node(stream_t *stream, strbuf_t *buf);
-const char *get_attr(const char *node, const char *name, int *len);
+void strbuf_init(strbuf_t *buf) DECLSPEC_HIDDEN;
+void strbuf_zero(strbuf_t *buf) DECLSPEC_HIDDEN;
+void strbuf_free(strbuf_t *buf) DECLSPEC_HIDDEN;
+void stream_init(stream_t *stream, IStream *str) DECLSPEC_HIDDEN;
+void get_node_name(strbuf_t *node, strbuf_t *name) DECLSPEC_HIDDEN;
+BOOL next_content(stream_t *stream, strbuf_t *buf) DECLSPEC_HIDDEN;
+BOOL next_node(stream_t *stream, strbuf_t *buf) DECLSPEC_HIDDEN;
+const char *get_attr(const char *node, const char *name, int *len) DECLSPEC_HIDDEN;
 
 #endif