mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
glib mainloop fix
implement server status command support for sink_list/source_list in polyplib git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@110 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e9bed206d2
commit
37d930ac4a
13 changed files with 319 additions and 29 deletions
|
|
@ -105,7 +105,7 @@ struct pa_sink_info {
|
|||
const char *name;
|
||||
uint32_t index;
|
||||
const char *description;
|
||||
struct pa_sample_spec *sample_spec;
|
||||
struct pa_sample_spec sample_spec;
|
||||
uint32_t owner_module;
|
||||
uint32_t volume;
|
||||
uint32_t monitor_source;
|
||||
|
|
@ -113,24 +113,34 @@ struct pa_sink_info {
|
|||
uint32_t latency;
|
||||
};
|
||||
|
||||
void pa_context_get_sink_info_by_name(struct pa_context *c, const char *name, void (*cb)(struct pa_context *c, const struct pa_sink_info *i, void *userdata), void *userdata);
|
||||
void pa_context_get_sink_info_by_id(struct pa_context *c, uint32_t id, void (*cb)(struct pa_context *c, const struct pa_sink_info *i, void *userdata), void *userdata);
|
||||
void pa_context_get_sink_info_list(struct pa_context *c, void (*cb)(struct pa_context *c, const struct pa_sink_info *i, void *userdata), void *userdata);
|
||||
void pa_context_get_sink_info_by_name(struct pa_context *c, const char *name, void (*cb)(struct pa_context *c, const struct pa_sink_info *i, int is_last, void *userdata), void *userdata);
|
||||
void pa_context_get_sink_info_by_id(struct pa_context *c, uint32_t id, void (*cb)(struct pa_context *c, const struct pa_sink_info *i, int is_last, void *userdata), void *userdata);
|
||||
void pa_context_get_sink_info_list(struct pa_context *c, void (*cb)(struct pa_context *c, const struct pa_sink_info *i, int is_last, void *userdata), void *userdata);
|
||||
|
||||
struct pa_source_info {
|
||||
const char *name;
|
||||
uint32_t index;
|
||||
const char *description;
|
||||
struct pa_sample_spec *sample_spec;
|
||||
struct pa_sample_spec sample_spec;
|
||||
uint32_t owner_module;
|
||||
uint32_t monitor_of_sink;
|
||||
const char *monitor_of_sink_name;
|
||||
};
|
||||
|
||||
void pa_context_get_source_info_by_name(struct pa_context *c, const char *name, void (*cb)(struct pa_context *c, const struct pa_source_info *i, void *userdata), void *userdata);
|
||||
void pa_context_get_source_info_by_id(struct pa_context *c, uint32_t id, void (*cb)(struct pa_context *c, const struct pa_source_info *i, void *userdata), void *userdata);
|
||||
void pa_context_get_source_info_list(struct pa_context *c, void (*cb)(struct pa_context *c, const struct pa_source_info *i, void *userdata), void *userdata);
|
||||
void pa_context_get_source_info_by_name(struct pa_context *c, const char *name, void (*cb)(struct pa_context *c, const struct pa_source_info *i, int is_last, void *userdata), void *userdata);
|
||||
void pa_context_get_source_info_by_id(struct pa_context *c, uint32_t id, void (*cb)(struct pa_context *c, const struct pa_source_info *i, int is_last, void *userdata), void *userdata);
|
||||
void pa_context_get_source_info_list(struct pa_context *c, void (*cb)(struct pa_context *c, const struct pa_source_info *i, int is_last, void *userdata), void *userdata);
|
||||
|
||||
struct pa_server_info {
|
||||
const char *user_name;
|
||||
const char *host_name;
|
||||
const char *server_version;
|
||||
const char *server_name;
|
||||
struct pa_sample_spec sample_spec;
|
||||
};
|
||||
|
||||
void pa_context_get_server_info(struct pa_context *c, void (*cb)(struct pa_context *c, const struct pa_server_info*i, void *userdata), void *userdata);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue