/[jscoverage]/trunk/stream.h
ViewVC logotype

Diff of /trunk/stream.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by siliconforks, Wed May 7 04:21:22 2008 UTC revision 427 by siliconforks, Wed Feb 18 16:08:33 2009 UTC
# Line 1  Line 1 
1  /*  /*
2      stream.h - `Stream' object      stream.h - `Stream' object
3      Copyright (C) 2008 siliconforks.com      Copyright (C) 2008, 2009 siliconforks.com
4    
5      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# Line 21  Line 21 
21  #define STREAM_H_  #define STREAM_H_
22    
23  #include <stdio.h>  #include <stdio.h>
24    #include <stdint.h>
25  #include <stdlib.h>  #include <stdlib.h>
26    
27    #ifdef __cplusplus
28    extern "C" {
29    #endif
30    
31  typedef struct Stream {  typedef struct Stream {
32    void * data;    uint8_t * data;
33    size_t length;    size_t length;
34    size_t capacity;    size_t capacity;
35  } Stream;  } Stream;
# Line 41  Line 46 
46    
47  void Stream_write_file_contents(Stream * stream, FILE * f);  void Stream_write_file_contents(Stream * stream, FILE * f);
48    
49    void Stream_reset(Stream * stream);
50    
51  void Stream_delete(Stream * stream);  void Stream_delete(Stream * stream);
52    
53    #ifdef __cplusplus
54    }
55    #endif
56    
57  #endif /* STREAM_H_ */  #endif /* STREAM_H_ */

Legend:
Removed from v.92  
changed lines
  Added in v.427

  ViewVC Help
Powered by ViewVC 1.1.24