about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTStream.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2005-01-02 23:49:58 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2005-01-02 23:49:58 -0500
commit1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f (patch)
treea83fd699321c8545516d56abcda6c9718fd1f4fb /WWW/Library/Implementation/HTStream.h
parentbed9a2c79bfdde6e4ec89d9d02a5d6e88ae12f79 (diff)
downloadlynx-snapshots-1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f.tar.gz
snapshot of project "lynx", label v2-8-6dev_10
Diffstat (limited to 'WWW/Library/Implementation/HTStream.h')
-rw-r--r--WWW/Library/Implementation/HTStream.h38
1 files changed, 22 insertions, 16 deletions
diff --git a/WWW/Library/Implementation/HTStream.h b/WWW/Library/Implementation/HTStream.h
index c5f6a67a..43ce9725 100644
--- a/WWW/Library/Implementation/HTStream.h
+++ b/WWW/Library/Implementation/HTStream.h
@@ -17,7 +17,10 @@
 #include <HTUtils.h>
 #endif
 
-typedef struct _HTStream HTStream;
+#ifdef __cplusplus
+extern "C" {
+#endif
+    typedef struct _HTStream HTStream;
 
 /*
 
@@ -29,26 +32,26 @@ typedef struct _HTStream HTStream;
    write().
    
  */
-typedef struct _HTStreamClass {
+    typedef struct _HTStreamClass {
 
-    const char *name;		/* Just for diagnostics */
+	const char *name;	/* Just for diagnostics */
 
-    void (*_free) (HTStream *me);
+	void (*_free) (HTStream *me);
 
-    void (*_abort) (HTStream *me,
-		    HTError e);
+	void (*_abort) (HTStream *me,
+			HTError e);
 
-    void (*put_character) (HTStream *me,
-			   char ch);
+	void (*put_character) (HTStream *me,
+			       char ch);
 
-    void (*put_string) (HTStream *me,
-			const char *str);
+	void (*put_string) (HTStream *me,
+			    const char *str);
 
-    void (*put_block) (HTStream *me,
-		       const char *str,
-		       int len);
+	void (*put_block) (HTStream *me,
+			   const char *str,
+			   int len);
 
-} HTStreamClass;
+    } HTStreamClass;
 
 /*
 
@@ -59,6 +62,9 @@ typedef struct _HTStreamClass {
    example from the network.
 
  */
-extern HTStream *HTErrorStream(void);
+    extern HTStream *HTErrorStream(void);
 
-#endif /* HTSTREAM_H */
+#ifdef __cplusplus
+}
+#endif
+#endif				/* HTSTREAM_H */