diff options
author | aiju <aiju@phicode.de> | 2011-07-12 18:39:40 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2011-07-12 18:39:40 +0200 |
commit | 5851650367a7b693056401af1e7762eeac05deeb (patch) | |
tree | c86e79c183dd40fda8a88b33e30d2e53ae7e2f3b /sys/include/bio.h | |
parent | 9f31fa9d8e6600f82bf61cd2a65c34784b3a38f4 (diff) |
added Blethal to libbio
Diffstat (limited to 'sys/include/bio.h')
-rw-r--r-- | sys/include/bio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/bio.h b/sys/include/bio.h index 4782932e3..f358c962c 100644 --- a/sys/include/bio.h +++ b/sys/include/bio.h @@ -32,6 +32,7 @@ struct Biobufhdr uchar* bbuf; /* pointer to beginning of buffer */ uchar* ebuf; /* pointer to end of buffer */ uchar* gbuf; /* pointer to good data in buf */ + void (*errorf)(char *); /* called on error if not nil */ }; struct Biobuf @@ -70,5 +71,7 @@ int Bterm(Biobufhdr*); int Bungetc(Biobufhdr*); int Bungetrune(Biobufhdr*); long Bwrite(Biobufhdr*, void*, long); +void Blethal(Biobufhdr*, void(*)(char*)); +void Berror(Biobufhdr*, char*, ...); #pragma varargck argpos Bprint 2 |