summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-introspect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
committerLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
commite02be6c15beddec976220bce2ee1a68520286c01 (patch)
treeda9cfdfd7a254fa7e8e21b1ef29456b852dbc133 /polyp/polyplib-introspect.c
parent9a01cf44f09e92e14a720f4f531e943a50f26b72 (diff)
* fix include file names in installed header files
* add browsing API * add new tool pabrowse * add typeid subsystem * bump API version * split off random.c * add an identification cookie git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@320 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-introspect.c')
-rw-r--r--polyp/polyplib-introspect.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/polyp/polyplib-introspect.c b/polyp/polyplib-introspect.c
index fe632c26..166555c0 100644
--- a/polyp/polyplib-introspect.c
+++ b/polyp/polyplib-introspect.c
@@ -85,6 +85,7 @@ static void context_get_server_info_callback(struct pa_pdispatch *pd, uint32_t c
pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
pa_tagstruct_gets(t, &i.default_sink_name) < 0 ||
pa_tagstruct_gets(t, &i.default_source_name) < 0 ||
+ pa_tagstruct_getu32(t, &i.cookie) < 0 ||
!pa_tagstruct_eof(t)) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
@@ -130,7 +131,9 @@ static void context_get_sink_info_callback(struct pa_pdispatch *pd, uint32_t com
pa_tagstruct_getu32(t, &i.volume) < 0 ||
pa_tagstruct_getu32(t, &i.monitor_source) < 0 ||
pa_tagstruct_gets(t, &i.monitor_source_name) < 0 ||
- pa_tagstruct_get_usec(t, &i.latency) < 0) {
+ pa_tagstruct_get_usec(t, &i.latency) < 0 ||
+ pa_tagstruct_getu32(t, &i.typeid) < 0) {
+
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}
@@ -222,7 +225,8 @@ static void context_get_source_info_callback(struct pa_pdispatch *pd, uint32_t c
pa_tagstruct_getu32(t, &i.owner_module) < 0 ||
pa_tagstruct_getu32(t, &i.monitor_of_sink) < 0 ||
pa_tagstruct_gets(t, &i.monitor_of_sink_name) < 0 ||
- pa_tagstruct_get_usec(t, &i.latency) < 0) {
+ pa_tagstruct_get_usec(t, &i.latency) < 0 ||
+ pa_tagstruct_getu32(t, &i.typeid) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
@@ -310,8 +314,8 @@ static void context_get_client_info_callback(struct pa_pdispatch *pd, uint32_t c
if (pa_tagstruct_getu32(t, &i.index) < 0 ||
pa_tagstruct_gets(t, &i.name) < 0 ||
- pa_tagstruct_gets(t, &i.protocol_name) < 0 ||
- pa_tagstruct_getu32(t, &i.owner_module) < 0) {
+ pa_tagstruct_getu32(t, &i.owner_module) < 0 ||
+ pa_tagstruct_getu32(t, &i.typeid) < 0 ) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}
@@ -450,7 +454,9 @@ static void context_get_sink_input_info_callback(struct pa_pdispatch *pd, uint32
pa_tagstruct_getu32(t, &i.volume) < 0 ||
pa_tagstruct_get_usec(t, &i.buffer_usec) < 0 ||
pa_tagstruct_get_usec(t, &i.sink_usec) < 0 ||
- pa_tagstruct_gets(t, &i.resample_method) < 0) {
+ pa_tagstruct_gets(t, &i.resample_method) < 0 ||
+ pa_tagstruct_getu32(t, &i.typeid) < 0) {
+
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}
@@ -521,7 +527,9 @@ static void context_get_source_output_info_callback(struct pa_pdispatch *pd, uin
pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
pa_tagstruct_get_usec(t, &i.buffer_usec) < 0 ||
pa_tagstruct_get_usec(t, &i.source_usec) < 0 ||
- pa_tagstruct_gets(t, &i.resample_method) < 0) {
+ pa_tagstruct_gets(t, &i.resample_method) < 0 ||
+ pa_tagstruct_getu32(t, &i.typeid) < 0) {
+
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}
@@ -659,6 +667,7 @@ static void context_get_sample_info_callback(struct pa_pdispatch *pd, uint32_t c
pa_tagstruct_getu32(t, &i.bytes) < 0 ||
pa_tagstruct_get_boolean(t, &i.lazy) < 0 ||
pa_tagstruct_gets(t, &i.filename) < 0) {
+
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}