X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmainloop.h;h=98722e599459c2a4baa327d88b1820e776846f33;hb=c331aaf4fac9e19240a55a829a2eb3d430f72ae6;hp=8fd2e6edee3be1e67bb16b73a0dd1f231d8bc2bf;hpb=0c2909a2920a39a9fe2501b562571d913fd8503f;p=libucw.git diff --git a/ucw/mainloop.h b/ucw/mainloop.h index 8fd2e6ed..98722e59 100644 --- a/ucw/mainloop.h +++ b/ucw/mainloop.h @@ -422,7 +422,7 @@ struct main_block_io { struct main_file file; byte *rbuf; /* Read/write pointers for use by file_read/write */ uint rpos, rlen; - byte *wbuf; + const byte *wbuf; uint wpos, wlen; void (*read_done)(struct main_block_io *bio); /* [*] Called when file_read is finished; rpos < rlen if EOF */ void (*write_done)(struct main_block_io *bio); /* [*] Called when file_write is finished */ @@ -475,7 +475,7 @@ void block_io_read(struct main_block_io *bio, void *buf, uint len); * If you call it with zero @len, it will cancel the previous write, but note * that some data may already be written. **/ -void block_io_write(struct main_block_io *bio, void *buf, uint len); +void block_io_write(struct main_block_io *bio, const void *buf, uint len); /** * Sets a timer for a file @bio. If the timer is not overwritten or disabled @@ -580,7 +580,7 @@ void rec_io_stop_read(struct main_rec_io *rio); /** Analogous to @block_io_set_timeout(). **/ void rec_io_set_timeout(struct main_rec_io *rio, timestamp_t expires_delta); -void rec_io_write(struct main_rec_io *rio, void *data, uint len); +void rec_io_write(struct main_rec_io *rio, const void *data, uint len); /** * An auxiliary function used for parsing of lines. When called in the @read_handler,