aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_stream_lib.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-01-13 17:41:15 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-01-13 17:41:15 +0000
commit8f71b722481934d389a5fb338d9bac2d96b2af88 (patch)
treea62c09df5ca9fd0c00a52c6005df89ccb2ef2d6e /src/include/gnunet_stream_lib.h
parentee197e302378f236df0662e0c9bbd637006aa8c6 (diff)
downloadgnunet-8f71b722481934d389a5fb338d9bac2d96b2af88.tar.gz
gnunet-8f71b722481934d389a5fb338d9bac2d96b2af88.zip
generic type for read data
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r--src/include/gnunet_stream_lib.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h
index 36cfabd7e..af0b8e5cd 100644
--- a/src/include/gnunet_stream_lib.h
+++ b/src/include/gnunet_stream_lib.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2011, Christian Grothoff (and other contributing authors) 3 (C) 2011, 2012 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -24,8 +24,8 @@
24 * @author Sree Harsha Totakura 24 * @author Sree Harsha Totakura
25 */ 25 */
26 26
27#ifndef GNUNET_STREAM_LIB_H_ 27#ifndef GNUNET_STREAM_LIB_H
28#define GNUNET_STREAM_LIB_H_ 28#define GNUNET_STREAM_LIB_H
29 29
30#ifdef __cplusplus 30#ifdef __cplusplus
31extern "C" 31extern "C"
@@ -60,7 +60,7 @@ enum GNUNET_STREAM_Status
60 GNUNET_STREAM_SHUTDOWN = 2, 60 GNUNET_STREAM_SHUTDOWN = 2,
61 61
62 /** 62 /**
63 * A serious error occured while operating of this stream 63 * A serious error occured while operating on this stream
64 */ 64 */
65 GNUNET_STREAM_SYSERR = 3 65 GNUNET_STREAM_SYSERR = 3
66 }; 66 };
@@ -239,9 +239,9 @@ GNUNET_STREAM_write (struct GNUNET_STREAM_Socket *socket,
239 * given to the next time the read processor is called). 239 * given to the next time the read processor is called).
240 */ 240 */
241typedef size_t (*GNUNET_STREAM_DataProcessor) (void *cls, 241typedef size_t (*GNUNET_STREAM_DataProcessor) (void *cls,
242 enum GNUNET_STREAM_Status status, 242 enum GNUNET_STREAM_Status status,
243 const char *data, 243 const void *data,
244 size_t size); 244 size_t size);
245 245
246 246
247/** 247/**
@@ -276,4 +276,4 @@ GNUNET_STREAM_io_cancel (struct GNUNET_STREAM_IOHandle *ioh);
276} 276}
277#endif 277#endif
278 278
279#endif 279#endif /* STREAM_PROTOCOL_H */