File: stream.h

package info (click to toggle)
libaal 1.0.7-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,768 kB
  • sloc: sh: 4,118; ansic: 2,461; makefile: 52
file content (34 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
   libaal/COPYING.
   
   stream.h -- simple stream implementation. */  

#ifndef AAL_STREAM_H
#define AAL_STREAM_H

#ifndef ENABLE_MINIMAL
#include <aal/types.h>

extern int aal_stream_eof(aal_stream_t *stream);
extern void aal_stream_fini(aal_stream_t *stream);
extern void aal_stream_close(aal_stream_t *stream);
extern void aal_stream_reset(aal_stream_t *stream);

extern aal_stream_t *aal_stream_create(void *entity,
				       aal_proto_t *proto);

extern int32_t aal_stream_read(aal_stream_t *stream,
			       void *buff, uint32_t n);

extern int32_t aal_stream_write(aal_stream_t *stream,
				void *buff, uint32_t n);

extern int32_t aal_stream_format(aal_stream_t *stream,
				 const char *format, ...);
extern void aal_stream_init(aal_stream_t *stream,
			    void *entity,
			    aal_proto_t *proto);
				       
#endif

#endif