mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
main part of the native protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@31 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
eecf602476
commit
acb25b3510
62 changed files with 2473 additions and 755 deletions
|
|
@ -12,8 +12,7 @@ struct protocol_cli {
|
|||
|
||||
static void cli_eof_cb(struct cli*c, void*userdata) {
|
||||
struct protocol_cli *p = userdata;
|
||||
assert(c && p);
|
||||
|
||||
assert(p);
|
||||
idxset_remove_by_data(p->connections, c, NULL);
|
||||
cli_free(c);
|
||||
}
|
||||
|
|
@ -22,7 +21,7 @@ static void on_connection(struct socket_server*s, struct iochannel *io, void *us
|
|||
struct protocol_cli *p = userdata;
|
||||
struct cli *c;
|
||||
assert(s && io && p);
|
||||
|
||||
|
||||
c = cli_new(p->core, io);
|
||||
assert(c);
|
||||
cli_set_eof_callback(c, cli_eof_cb, p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue