|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
| struct | WsStreamRec |
Macros | |
| #define | WS_STREAM_BUFFER_SIZE 1024 |
Typedefs | |
| typedef size_t(* | WsStreamIOProc) (void *context, WsUInt32 *buf, size_t buflen) |
| typedef WsBool(* | WsStreamFlushProc) (void *context) |
| typedef void(* | WsStreamCloseProc) (void *context) |
| typedef struct WsStreamRec | WsStream |
Functions | |
| WsBool | ws_stream_getc (WsStream *stream, WsUInt32 *ch_return) |
| void | ws_stream_ungetc (WsStream *stream, WsUInt32 ch) |
| WsBool | ws_stream_flush (WsStream *stream) |
| void | ws_stream_close (WsStream *stream) |
| WsStream * | ws_stream_new (void *context, WsStreamIOProc io, WsStreamFlushProc flush, WsStreamCloseProc close) |
| WsStream * | ws_stream_new_file (FILE *fp, WsBool output, WsBool close) |
| WsStream * | ws_stream_new_data_input (const unsigned char *data, size_t data_len) |
| #define WS_STREAM_BUFFER_SIZE 1024 |
Definition at line 78 of file wsstream.h.
Referenced by file_output(), and ws_stream_getc().
| typedef struct WsStreamRec WsStream |
Definition at line 118 of file wsstream.h.
| typedef void(* WsStreamCloseProc) (void *context) |
Definition at line 95 of file wsstream.h.
Definition at line 92 of file wsstream.h.
Definition at line 87 of file wsstream.h.
| void ws_stream_close | ( | WsStream * | stream | ) |
Definition at line 117 of file wsstream.c.
References WsStreamRec::close, WsStreamRec::context, and ws_free().
Referenced by ws_compile_data(), and ws_compile_file().
Definition at line 108 of file wsstream.c.
References WsStreamRec::context, WsStreamRec::flush, and WS_TRUE.
Definition at line 74 of file wsstream.c.
References WsStreamRec::buffer, WsStreamRec::buffer_pos, WsStreamRec::context, WsStreamRec::data_in_buffer, WsStreamRec::io, WsStreamRec::ungetch, WsStreamRec::ungetch_valid, WS_FALSE, WS_STREAM_BUFFER_SIZE, and WS_TRUE.
Referenced by read_float_from_exp(), read_float_from_point(), and ws_yy_lex().
| WsStream* ws_stream_new | ( | void * | context, |
| WsStreamIOProc | io, | ||
| WsStreamFlushProc | flush, | ||
| WsStreamCloseProc | close | ||
| ) |
Definition at line 126 of file wsstream.c.
References WsStreamRec::close, WsStreamRec::context, WsStreamRec::flush, WsStreamRec::io, and ws_calloc().
Referenced by ws_stream_new_data_input(), and ws_stream_new_file().
| WsStream* ws_stream_new_data_input | ( | const unsigned char * | data, |
| size_t | data_len | ||
| ) |
Definition at line 108 of file wsstream_data.c.
References WsStreamDataInputCtxRec::data, data_close(), data_input(), WsStreamDataInputCtxRec::data_len, ws_calloc(), and ws_stream_new().
Referenced by ws_compile_data().
Definition at line 206 of file wsstream_file.c.
References WsStreamFileCtxRec::close_fp, file_close(), file_flush(), file_input(), file_output(), WsStreamFileCtxRec::fp, ws_calloc(), and ws_stream_new().
Referenced by ws_compile_file().
Definition at line 101 of file wsstream.c.
References WsStreamRec::ungetch, WsStreamRec::ungetch_valid, and WS_TRUE.
Referenced by read_float_from_exp(), read_float_from_point(), and ws_yy_lex().