]> git.tuebingen.mpg.de Git - paraslash.git/commit
Introduce afs_max_size_handler_data and afs_max_size_handler().
authorAndre Noll <maan@systemlinux.org>
Mon, 16 Jan 2012 21:14:41 +0000 (22:14 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 5 May 2012 10:54:53 +0000 (12:54 +0200)
commit68cb0aef88594f3dea1f7dfdc279f125bf5bbecc
treeed311d8c846fa663c2e07e0fd0c665ac4718e001
parentd04b837e6b24d0fdbe5803a98c9c7f099748bfee
Introduce afs_max_size_handler_data and afs_max_size_handler().

Whenever the maximal size of a para buffer is reached, para_printf()
calls the specified max size handler. This handler takes, in addition
to the actual buffer and its size, a void * context pointer.  Currently
all commands simply pass a pointer to the underlying file descriptor
here since this is the only context the handler needs to know about.

However, this is going to change since with sideband connections the
handler needs to know also the sideband designator.

To meet this future need, this patch introduces struct
afs_max_size_handler_data, which consists of the file descriptor only
at the moment, as well as a simple wrapper for pass_buffer_as_shm().
afs.c
afs.h
aft.c
attribute.c
blob.c
mood.c
playlist.c