]> code.delx.au - pulseaudio/commit
pulse: Add pa_operation_set_state_callback() API
authorPaul Meng <mno2.csie@gmail.com>
Mon, 7 Jan 2013 13:41:26 +0000 (21:41 +0800)
committerTanu Kaskinen <tanuk@iki.fi>
Sat, 12 Jan 2013 15:55:07 +0000 (17:55 +0200)
commita255c293446a0bdbfea3bb4b2abbedaf7ad023e9
tree8323c0b3f8dc94a86cfdbad90ce8eb918709d7f7
parentb1e47df72c0bb8fd802a96911dc479bd8dfd8a0a
pulse: Add pa_operation_set_state_callback() API

[The original commit message didn't have any explanation why this
change is made, so I'll add that information here myself.
--Tanu Kaskinen]

This change is from the developers of a Haskell binding[1]. According
to them, this change isn't strictly necessary, but their code gets
significantly cleaner if they can register an operation callback that
is called when the operation is cancelled due to the context getting
disconnected.

[1] https://github.com/favonia/pulse
src/map-file
src/pulse/internal.h
src/pulse/operation.c
src/pulse/operation.h