Features:
- add radio module
- xmlrpc/http
-- dbus
-- rendezvous
+- dbus/hal
+- rendezvous autotunnel module
- polish for starting polypaudio as root/system-wide instance
- export connection fd
-- lirc plugin
- /dev/input/event plugin
Long term:
u->lirc_fd = -1;
u->mute_toggle_save = 0;
- if ((u->lirc_fd = lirc_init(pa_modargs_get_value(ma, "appname", "polypaudio"), 1)) < 0) {
+ if ((u->lirc_fd = lirc_init((char*) pa_modargs_get_value(ma, "appname", "polypaudio"), 1)) < 0) {
pa_log(__FILE__": lirc_init() failed.\n");
goto fail;
}
"Latency: %0.0f usec\n",
i->index,
i->name,
- pa_typeid_to_string(i->typeid, tid, sizeof(tid)),
+ pa_typeid_to_string(i->_typeid, tid, sizeof(tid)),
i->description,
s,
i->owner_module,
"Monitor of Sink: %s\n"
"Latency: %0.0f usec\n",
i->index,
- pa_typeid_to_string(i->typeid, tid, sizeof(tid)),
+ pa_typeid_to_string(i->_typeid, tid, sizeof(tid)),
i->name,
i->description,
s,
"Owner Module: %s\n",
i->index,
i->name,
- pa_typeid_to_string(i->typeid, tid, sizeof(tid)),
+ pa_typeid_to_string(i->_typeid, tid, sizeof(tid)),
i->owner_module != PA_INVALID_INDEX ? t : "n/a");
}
"Resample method: %s\n",
i->index,
i->name,
- pa_typeid_to_string(i->typeid, tid, sizeof(tid)),
+ pa_typeid_to_string(i->_typeid, tid, sizeof(tid)),
i->owner_module != PA_INVALID_INDEX ? t : "n/a",
i->client != PA_INVALID_INDEX ? k : "n/a",
i->sink,
"Resample method: %s\n",
i->index,
i->name,
- pa_typeid_to_string(i->typeid, tid, sizeof(tid)),
+ pa_typeid_to_string(i->_typeid, tid, sizeof(tid)),
i->owner_module != PA_INVALID_INDEX ? t : "n/a",
i->client != PA_INVALID_INDEX ? k : "n/a",
i->source,
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_getu32(t, &i.typeid) < 0) {
+ pa_tagstruct_getu32(t, &i._typeid) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
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_getu32(t, &i.typeid) < 0) {
+ pa_tagstruct_getu32(t, &i._typeid) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
if (pa_tagstruct_getu32(t, &i.index) < 0 ||
pa_tagstruct_gets(t, &i.name) < 0 ||
pa_tagstruct_getu32(t, &i.owner_module) < 0 ||
- pa_tagstruct_getu32(t, &i.typeid) < 0 ) {
+ pa_tagstruct_getu32(t, &i._typeid) < 0 ) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}
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_getu32(t, &i.typeid) < 0) {
+ pa_tagstruct_getu32(t, &i._typeid) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
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_getu32(t, &i.typeid) < 0) {
+ pa_tagstruct_getu32(t, &i._typeid) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
uint32_t monitor_source; /**< Index of the monitor source connected to this sink */
const char *monitor_source_name; /**< The name of the monitor source */
pa_usec_t latency; /**< Length of filled playback buffer of this sink */
- pa_typeid_t typeid; /**< Implementation type. \since 0.8 */
+ pa_typeid_t _typeid; /**< Implementation type. \since 0.8 */
};
/** Get information about a sink by its name */
uint32_t monitor_of_sink; /**< If this is a monitor source the index of the owning sink, otherwise PA_INVALID_INDEX */
const char *monitor_of_sink_name; /**< Name of the owning sink, or PA_INVALID_INDEX */
pa_usec_t latency; /**< Length of filled record buffer of this source. \since 0.5 */
- pa_typeid_t typeid; /**< Implementation type. \since 0.8 */
+ pa_typeid_t _typeid; /**< Implementation type. \since 0.8 */
};
/** Get information about a source by its name */
uint32_t index; /**< Index of this client */
const char *name; /**< Name of this client */
uint32_t owner_module; /**< Index of the owning module, or PA_INVALID_INDEX */
- pa_typeid_t typeid; /**< Implementation type. \since 0.8 */
+ pa_typeid_t _typeid; /**< Implementation type. \since 0.8 */
};
/** Get information about a client by its index */
pa_usec_t buffer_usec; /**< Latency due to buffering in sink input, see pa_latency_info for details */
pa_usec_t sink_usec; /**< Latency of the sink device, see pa_latency_info for details */
const char *resample_method; /**< Thre resampling method used by this sink input. \since 0.7 */
- pa_typeid_t typeid; /**< Implementation type. \since 0.8 */
+ pa_typeid_t _typeid; /**< Implementation type. \since 0.8 */
};
/** Get some information about a sink input by its index */
pa_usec_t buffer_usec; /**< Latency due to buffering in the source output, see pa_latency_info for details. \since 0.5 */
pa_usec_t source_usec; /**< Latency of the source device, see pa_latency_info for details. \since 0.5 */
const char *resample_method; /**< Thre resampling method used by this source output. \since 0.7 */
- pa_typeid_t typeid; /**< Implementation type. \since 0.8 */
+ pa_typeid_t _typeid; /**< Implementation type. \since 0.8 */
};
/** Get information about a source output by its index */
#include <inttypes.h>
#include <sys/types.h>
+#include <polyp/cdecl.h>
+
+PA_C_DECL_BEGIN
+
typedef uint32_t pa_typeid_t;
#define PA_TYPEID_UNKNOWN ((pa_typeid_t) -1)
(((pa_typeid_t) c & 0xFF) << 8) | \
(((pa_typeid_t) d & 0xFF)))
+PA_C_DECL_END
+
#endif