Name: pulseaudio
Summary: Improved Linux sound server
Version: 13.0
-Release: 34
+Release: 35
Group: Multimedia/Audio
License: LGPL-2.1
URL: http://pulseaudio.org
pa_subscription_post(c->core, PA_SUBSCRIPTION_EVENT_CLIENT|PA_SUBSCRIPTION_EVENT_CHANGE, c->index);
}
+#ifdef __TIZEN__
+void pa_client_dump_status(pa_client *c) {
+ pa_assert(c);
+
+ pa_log_info(_("\t#%u, %s, %s(%s)"),
+ c->index, pa_strnull(c->driver),
+ pa_strnull(pa_proplist_gets(c->proplist, PA_PROP_APPLICATION_PROCESS_BINARY)),
+ pa_strnull(pa_proplist_gets(c->proplist, PA_PROP_APPLICATION_PROCESS_ID)));
+
+ /* ToDo : dump connection time */
+}
+#endif
+
void pa_client_send_event(pa_client *c, const char *event, pa_proplist *data) {
pa_proplist *pl = NULL;
pa_client_send_event_hook_data hook_data;
void pa_client_set_name(pa_client *c, const char *name);
void pa_client_update_proplist(pa_client *c, pa_update_mode_t mode, pa_proplist *p);
+#ifdef __TIZEN__
+void pa_client_dump_status(pa_client *c);
+#endif
void pa_client_send_event(pa_client *c, const char *event, pa_proplist *data);
}
}
+#ifdef __TIZEN__
+void pa_native_protocol_dump_connections(pa_native_protocol *p) {
+ pa_native_connection *c = NULL;
+ void *state = NULL;
+
+ pa_assert(p);
+
+ pa_log_info("Dump status of current connections(%u)", pa_idxset_size(p->connections));
+
+ while ((c = pa_idxset_iterate(p->connections, &state, NULL)))
+ pa_client_dump_status(c->client);
+}
+#endif
+
void pa_native_protocol_connect(pa_native_protocol *p, pa_iochannel *io, pa_native_options *o) {
pa_native_connection *c;
char pname[128];
pa_assert(io);
pa_assert(o);
+#ifdef __TIZEN__
+ pa_native_protocol_dump_connections(p);
+#endif
+
if (pa_idxset_size(p->connections)+1 > MAX_CONNECTIONS) {
pa_log_warn("Warning! Too many connections (%u), dropping incoming connection.", MAX_CONNECTIONS);
pa_iochannel_free(io);
void pa_native_options_unref(pa_native_options *o);
int pa_native_options_parse(pa_native_options *o, pa_core *c, pa_modargs *ma);
+#ifdef __TIZEN__
+void pa_native_protocol_dump_connections(pa_native_protocol *p);
+#endif
+
#endif