~ubuntu-branches/ubuntu/karmic/unsort/karmic

« back to all changes in this revision

Viewing changes to filebuf.h

  • Committer: Bazaar Package Importer
  • Author(s): Guus Sliepen
  • Date: 2008-06-08 12:53:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080608125354-yizugn2e7fxzxuix
Tags: 1.1.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        You should have received a copy of the GNU General Public License
17
17
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
 
19
 
        $Id: filebuf.h 1234 2007-11-26 00:26:28Z wsl $
 
19
        $Id: filebuf.h 1309 2008-06-02 22:25:06Z wsl $
20
20
        $URL: http://rot.zo.oi/svn/wsl/src/unsort/filebuf.h $
21
21
 
22
22
*****************************************************************************/
24
24
#ifndef FILEBUF_H
25
25
#define FILEBUF_H
26
26
 
 
27
#include <stdint.h>
27
28
#include <sys/types.h>
28
29
 
29
 
struct filebuf;
30
 
 
31
30
typedef struct filebuf {
32
 
        const struct filebuf *next;
33
31
        void *buf;
34
 
        void *end;
35
32
        size_t len;
 
33
        const char *name;
 
34
        uint32_t start;
 
35
        uint32_t count;
 
36
        uint32_t cursor;
36
37
} filebuf_t;
37
38
 
38
39
extern const filebuf_t filebuf_0;
39
 
extern filebuf_t *filebuf_first;
40
40
 
41
 
extern void filebuf_add(int);
 
41
extern void filebuf_init(filebuf_t *, int);
42
42
 
43
43
#endif