device-manager: Add an untested protocol extension.

This is effectively copied from the stream restore extension.
This commit is contained in:
Colin Guthrie 2009-06-27 22:08:07 +01:00
parent bc869b5b28
commit 37e82cec0a
6 changed files with 732 additions and 1 deletions

View file

@ -128,6 +128,9 @@ static void reset_callbacks(pa_context *c) {
c->event_callback = NULL;
c->event_userdata = NULL;
c->ext_device_manager.callback = NULL;
c->ext_device_manager.userdata = NULL;
c->ext_stream_restore.callback = NULL;
c->ext_stream_restore.userdata = NULL;
}
@ -1434,6 +1437,8 @@ void pa_command_extension(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_t
if (!strcmp(name, "module-stream-restore"))
pa_ext_stream_restore_command(c, tag, t);
else if (!strcmp(name, "module-device-manager"))
pa_ext_device_manager_command(c, tag, t);
else
pa_log(_("Received message for unknown extension '%s'"), name);