PulseAudio 13.0-7-gf8c29-rebootstrapped
introspect.h
Go to the documentation of this file.
1#ifndef foointrospecthfoo
2#define foointrospecthfoo
3
4/***
5 This file is part of PulseAudio.
6
7 Copyright 2004-2006 Lennart Poettering
8 Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
9
10 PulseAudio is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published
12 by the Free Software Foundation; either version 2.1 of the License,
13 or (at your option) any later version.
14
15 PulseAudio is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
21 along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
22***/
23
24#include <inttypes.h>
25
26#include <pulse/operation.h>
27#include <pulse/context.h>
28#include <pulse/cdecl.h>
29#include <pulse/gccmacro.h>
30#include <pulse/channelmap.h>
31#include <pulse/volume.h>
32#include <pulse/proplist.h>
33#include <pulse/format.h>
34#include <pulse/version.h>
35
212
219
220PA_C_DECL_BEGIN
221
223
227typedef struct pa_sink_port_info {
228 const char *name;
229 const char *description;
230 uint32_t priority;
233
263
265typedef void (*pa_sink_info_cb_t)(pa_context *c, const pa_sink_info *i, int eol, void *userdata);
266
269
272
275
278
280pa_operation* pa_context_set_sink_volume_by_name(pa_context *c, const char *name, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata);
281
284
286pa_operation* pa_context_set_sink_mute_by_name(pa_context *c, const char *name, int mute, pa_context_success_cb_t cb, void *userdata);
287
289pa_operation* pa_context_suspend_sink_by_name(pa_context *c, const char *sink_name, int suspend, pa_context_success_cb_t cb, void* userdata);
290
292pa_operation* pa_context_suspend_sink_by_index(pa_context *c, uint32_t idx, int suspend, pa_context_success_cb_t cb, void* userdata);
293
295pa_operation* pa_context_set_sink_port_by_index(pa_context *c, uint32_t idx, const char*port, pa_context_success_cb_t cb, void *userdata);
296
298pa_operation* pa_context_set_sink_port_by_name(pa_context *c, const char*name, const char*port, pa_context_success_cb_t cb, void *userdata);
299
301
303
307typedef struct pa_source_port_info {
308 const char *name;
309 const char *description;
310 uint32_t priority;
313
343
345typedef void (*pa_source_info_cb_t)(pa_context *c, const pa_source_info *i, int eol, void *userdata);
346
349
352
355
358
361
364
366pa_operation* pa_context_set_source_mute_by_name(pa_context *c, const char *name, int mute, pa_context_success_cb_t cb, void *userdata);
367
369pa_operation* pa_context_suspend_source_by_name(pa_context *c, const char *source_name, int suspend, pa_context_success_cb_t cb, void* userdata);
370
372pa_operation* pa_context_suspend_source_by_index(pa_context *c, uint32_t idx, int suspend, pa_context_success_cb_t cb, void* userdata);
373
375pa_operation* pa_context_set_source_port_by_index(pa_context *c, uint32_t idx, const char*port, pa_context_success_cb_t cb, void *userdata);
376
378pa_operation* pa_context_set_source_port_by_name(pa_context *c, const char*name, const char*port, pa_context_success_cb_t cb, void *userdata);
379
381
383
398
400typedef void (*pa_server_info_cb_t) (pa_context *c, const pa_server_info*i, void *userdata);
401
404
406
408
412typedef struct pa_module_info {
413 uint32_t index;
414 const char*name,
416 uint32_t n_used;
418 int auto_unload;
422
424typedef void (*pa_module_info_cb_t) (pa_context *c, const pa_module_info*i, int eol, void *userdata);
425
428
431
433typedef void (*pa_context_index_cb_t)(pa_context *c, uint32_t idx, void *userdata);
434
436pa_operation* pa_context_load_module(pa_context *c, const char*name, const char *argument, pa_context_index_cb_t cb, void *userdata);
437
440
442
444
448typedef struct pa_client_info {
449 uint32_t index;
450 const char *name;
451 uint32_t owner_module;
452 const char *driver;
455
457typedef void (*pa_client_info_cb_t) (pa_context *c, const pa_client_info*i, int eol, void *userdata);
458
461
464
467
469
471
473typedef struct pa_card_profile_info {
474 const char *name;
475 const char *description;
476 uint32_t n_sinks;
477 uint32_t n_sources;
478 uint32_t priority;
480
484typedef struct pa_card_profile_info2 {
485 const char *name;
486 const char *description;
487 uint32_t n_sinks;
488 uint32_t n_sources;
489 uint32_t priority;
497
513
531
533typedef void (*pa_card_info_cb_t) (pa_context *c, const pa_card_info*i, int eol, void *userdata);
534
537
540
543
545pa_operation* pa_context_set_card_profile_by_index(pa_context *c, uint32_t idx, const char*profile, pa_context_success_cb_t cb, void *userdata);
546
548pa_operation* pa_context_set_card_profile_by_name(pa_context *c, const char*name, const char*profile, pa_context_success_cb_t cb, void *userdata);
549
551pa_operation* pa_context_set_port_latency_offset(pa_context *c, const char *card_name, const char *port_name, int64_t offset, pa_context_success_cb_t cb, void *userdata);
552
554
556
580
582typedef void (*pa_sink_input_info_cb_t) (pa_context *c, const pa_sink_input_info *i, int eol, void *userdata);
583
586
589
591pa_operation* pa_context_move_sink_input_by_name(pa_context *c, uint32_t idx, const char *sink_name, pa_context_success_cb_t cb, void* userdata);
592
594pa_operation* pa_context_move_sink_input_by_index(pa_context *c, uint32_t idx, uint32_t sink_idx, pa_context_success_cb_t cb, void* userdata);
595
598
600pa_operation* pa_context_set_sink_input_mute(pa_context *c, uint32_t idx, int mute, pa_context_success_cb_t cb, void *userdata);
601
604
606
608
632
634typedef void (*pa_source_output_info_cb_t) (pa_context *c, const pa_source_output_info *i, int eol, void *userdata);
635
638
641
643pa_operation* pa_context_move_source_output_by_name(pa_context *c, uint32_t idx, const char *source_name, pa_context_success_cb_t cb, void* userdata);
644
646pa_operation* pa_context_move_source_output_by_index(pa_context *c, uint32_t idx, uint32_t source_idx, pa_context_success_cb_t cb, void* userdata);
647
650
653
656
658
660
671
673typedef void (*pa_stat_info_cb_t) (pa_context *c, const pa_stat_info *i, void *userdata);
674
677
679
681
697
699typedef void (*pa_sample_info_cb_t)(pa_context *c, const pa_sample_info *i, int eol, void *userdata);
700
703
706
709
711
713
715
717typedef enum pa_autoload_type {
718 PA_AUTOLOAD_SINK = 0,
719 PA_AUTOLOAD_SOURCE = 1
720} pa_autoload_type_t;
721
725typedef struct pa_autoload_info {
726 uint32_t index;
727 const char *name;
728 pa_autoload_type_t type;
729 const char *module;
730 const char *argument;
731} pa_autoload_info;
732
734typedef void (*pa_autoload_info_cb_t)(pa_context *c, const pa_autoload_info *i, int eol, void *userdata);
735
737pa_operation* pa_context_get_autoload_info_by_name(pa_context *c, const char *name, pa_autoload_type_t type, pa_autoload_info_cb_t cb, void *userdata) PA_GCC_DEPRECATED;
738
740pa_operation* pa_context_get_autoload_info_by_index(pa_context *c, uint32_t idx, pa_autoload_info_cb_t cb, void *userdata) PA_GCC_DEPRECATED;
741
743pa_operation* pa_context_get_autoload_info_list(pa_context *c, pa_autoload_info_cb_t cb, void *userdata) PA_GCC_DEPRECATED;
744
746pa_operation* pa_context_add_autoload(pa_context *c, const char *name, pa_autoload_type_t type, const char *module, const char*argument, pa_context_index_cb_t, void* userdata) PA_GCC_DEPRECATED;
747
749pa_operation* pa_context_remove_autoload_by_name(pa_context *c, const char *name, pa_autoload_type_t type, pa_context_success_cb_t cb, void* userdata) PA_GCC_DEPRECATED;
750
752pa_operation* pa_context_remove_autoload_by_index(pa_context *c, uint32_t idx, pa_context_success_cb_t cb, void* userdata) PA_GCC_DEPRECATED;
753
755
757
758PA_C_DECL_END
759
760#endif
Constants and routines for channel mapping handling.
Connection contexts for asynchronous communication with a server.
void(* pa_context_success_cb_t)(pa_context *c, int success, void *userdata)
A generic callback for operation completion.
Definition context.h:160
struct pa_context pa_context
An opaque connection context to a daemon.
Definition context.h:154
enum pa_sink_flags pa_sink_flags_t
Special sink flags.
enum pa_source_state pa_source_state_t
Source state.
enum pa_source_flags pa_source_flags_t
Special source flags.
enum pa_sink_state pa_sink_state_t
Sink state.
Utility functions for handling a stream or sink format.
GCC attribute macros.
#define PA_GCC_DEPRECATED
This function is deprecated.
Definition gccmacro.h:91
pa_operation * pa_context_set_source_output_mute(pa_context *c, uint32_t idx, int mute, pa_context_success_cb_t cb, void *userdata)
Set the mute switch of a source output stream.
void(* pa_card_info_cb_t)(pa_context *c, const pa_card_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_card_info_...()
Definition introspect.h:533
pa_operation * pa_context_get_source_info_list(pa_context *c, pa_source_info_cb_t cb, void *userdata)
Get the complete source list.
void(* pa_source_info_cb_t)(pa_context *c, const pa_source_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_source_info_by_name() and friends.
Definition introspect.h:345
pa_operation * pa_context_get_source_output_info(pa_context *c, uint32_t idx, pa_source_output_info_cb_t cb, void *userdata)
Get information about a source output by its index.
pa_operation * pa_context_get_source_output_info_list(pa_context *c, pa_source_output_info_cb_t cb, void *userdata)
Get the complete list of source outputs.
pa_operation * pa_context_set_sink_mute_by_name(pa_context *c, const char *name, int mute, pa_context_success_cb_t cb, void *userdata)
Set the mute switch of a sink device specified by its name.
pa_operation * pa_context_get_card_info_list(pa_context *c, pa_card_info_cb_t cb, void *userdata)
Get the complete card list.
pa_operation * pa_context_set_card_profile_by_name(pa_context *c, const char *name, const char *profile, pa_context_success_cb_t cb, void *userdata)
Change the profile of a card.
pa_operation * pa_context_suspend_source_by_name(pa_context *c, const char *source_name, int suspend, pa_context_success_cb_t cb, void *userdata)
Suspend/Resume a source.
pa_operation * pa_context_get_sink_info_by_name(pa_context *c, const char *name, pa_sink_info_cb_t cb, void *userdata)
Get information about a sink by its name.
pa_operation * pa_context_move_source_output_by_name(pa_context *c, uint32_t idx, const char *source_name, pa_context_success_cb_t cb, void *userdata)
Move the specified source output to a different source.
pa_operation * pa_context_get_sample_info_by_index(pa_context *c, uint32_t idx, pa_sample_info_cb_t cb, void *userdata)
Get information about a sample by its index.
pa_operation * pa_context_kill_sink_input(pa_context *c, uint32_t idx, pa_context_success_cb_t cb, void *userdata)
Kill a sink input.
pa_operation * pa_context_set_source_mute_by_name(pa_context *c, const char *name, int mute, pa_context_success_cb_t cb, void *userdata)
Set the mute switch of a source device specified by its name.
void(* pa_source_output_info_cb_t)(pa_context *c, const pa_source_output_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_source_output_info() and friends.
Definition introspect.h:634
pa_operation * pa_context_get_card_info_by_index(pa_context *c, uint32_t idx, pa_card_info_cb_t cb, void *userdata)
Get information about a card by its index.
pa_operation * pa_context_get_sample_info_by_name(pa_context *c, const char *name, pa_sample_info_cb_t cb, void *userdata)
Get information about a sample by its name.
pa_operation * pa_context_load_module(pa_context *c, const char *name, const char *argument, pa_context_index_cb_t cb, void *userdata)
Load a module.
pa_operation * pa_context_set_sink_volume_by_index(pa_context *c, uint32_t idx, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata)
Set the volume of a sink device specified by its index.
pa_operation * pa_context_get_module_info(pa_context *c, uint32_t idx, pa_module_info_cb_t cb, void *userdata)
Get some information about a module by its index.
void(* pa_server_info_cb_t)(pa_context *c, const pa_server_info *i, void *userdata)
Callback prototype for pa_context_get_server_info()
Definition introspect.h:400
void(* pa_client_info_cb_t)(pa_context *c, const pa_client_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_client_info() and friends.
Definition introspect.h:457
pa_operation * pa_context_set_source_port_by_index(pa_context *c, uint32_t idx, const char *port, pa_context_success_cb_t cb, void *userdata)
Change the profile of a source.
pa_operation * pa_context_set_source_volume_by_index(pa_context *c, uint32_t idx, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata)
Set the volume of a source device specified by its index.
pa_operation * pa_context_get_client_info_list(pa_context *c, pa_client_info_cb_t cb, void *userdata)
Get the complete client list.
pa_operation * pa_context_move_source_output_by_index(pa_context *c, uint32_t idx, uint32_t source_idx, pa_context_success_cb_t cb, void *userdata)
Move the specified source output to a different source.
void(* pa_sample_info_cb_t)(pa_context *c, const pa_sample_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_sample_info_by_name() and friends.
Definition introspect.h:699
pa_operation * pa_context_suspend_sink_by_index(pa_context *c, uint32_t idx, int suspend, pa_context_success_cb_t cb, void *userdata)
Suspend/Resume a sink.
void(* pa_stat_info_cb_t)(pa_context *c, const pa_stat_info *i, void *userdata)
Callback prototype for pa_context_stat()
Definition introspect.h:673
pa_operation * pa_context_get_sink_info_by_index(pa_context *c, uint32_t idx, pa_sink_info_cb_t cb, void *userdata)
Get information about a sink by its index.
pa_operation * pa_context_kill_source_output(pa_context *c, uint32_t idx, pa_context_success_cb_t cb, void *userdata)
Kill a source output.
pa_operation * pa_context_move_sink_input_by_name(pa_context *c, uint32_t idx, const char *sink_name, pa_context_success_cb_t cb, void *userdata)
Move the specified sink input to a different sink.
void(* pa_sink_input_info_cb_t)(pa_context *c, const pa_sink_input_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_sink_input_info() and friends.
Definition introspect.h:582
pa_operation * pa_context_stat(pa_context *c, pa_stat_info_cb_t cb, void *userdata)
Get daemon memory block statistics.
pa_operation * pa_context_get_sink_input_info(pa_context *c, uint32_t idx, pa_sink_input_info_cb_t cb, void *userdata)
Get some information about a sink input by its index.
pa_operation * pa_context_move_sink_input_by_index(pa_context *c, uint32_t idx, uint32_t sink_idx, pa_context_success_cb_t cb, void *userdata)
Move the specified sink input to a different sink.
pa_operation * pa_context_set_sink_port_by_name(pa_context *c, const char *name, const char *port, pa_context_success_cb_t cb, void *userdata)
Change the profile of a sink.
pa_operation * pa_context_get_card_info_by_name(pa_context *c, const char *name, pa_card_info_cb_t cb, void *userdata)
Get information about a card by its name.
pa_operation * pa_context_set_port_latency_offset(pa_context *c, const char *card_name, const char *port_name, int64_t offset, pa_context_success_cb_t cb, void *userdata)
Set the latency offset of a port.
pa_operation * pa_context_set_source_mute_by_index(pa_context *c, uint32_t idx, int mute, pa_context_success_cb_t cb, void *userdata)
Set the mute switch of a source device specified by its index.
pa_operation * pa_context_suspend_source_by_index(pa_context *c, uint32_t idx, int suspend, pa_context_success_cb_t cb, void *userdata)
Suspend/Resume a source.
pa_operation * pa_context_unload_module(pa_context *c, uint32_t idx, pa_context_success_cb_t cb, void *userdata)
Unload a module.
pa_operation * pa_context_set_sink_input_mute(pa_context *c, uint32_t idx, int mute, pa_context_success_cb_t cb, void *userdata)
Set the mute switch of a sink input stream.
pa_operation * pa_context_get_source_info_by_index(pa_context *c, uint32_t idx, pa_source_info_cb_t cb, void *userdata)
Get information about a source by its index.
pa_operation * pa_context_get_sample_info_list(pa_context *c, pa_sample_info_cb_t cb, void *userdata)
Get the complete list of samples stored in the daemon.
void(* pa_module_info_cb_t)(pa_context *c, const pa_module_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_module_info() and friends.
Definition introspect.h:424
pa_operation * pa_context_kill_client(pa_context *c, uint32_t idx, pa_context_success_cb_t cb, void *userdata)
Kill a client.
pa_operation * pa_context_get_source_info_by_name(pa_context *c, const char *name, pa_source_info_cb_t cb, void *userdata)
Get information about a source by its name.
pa_operation * pa_context_get_module_info_list(pa_context *c, pa_module_info_cb_t cb, void *userdata)
Get the complete list of currently loaded modules.
pa_operation * pa_context_get_client_info(pa_context *c, uint32_t idx, pa_client_info_cb_t cb, void *userdata)
Get information about a client by its index.
void(* pa_sink_info_cb_t)(pa_context *c, const pa_sink_info *i, int eol, void *userdata)
Callback prototype for pa_context_get_sink_info_by_name() and friends.
Definition introspect.h:265
pa_operation * pa_context_set_sink_volume_by_name(pa_context *c, const char *name, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata)
Set the volume of a sink device specified by its name.
pa_operation * pa_context_get_sink_input_info_list(pa_context *c, pa_sink_input_info_cb_t cb, void *userdata)
Get the complete sink input list.
pa_operation * pa_context_get_sink_info_list(pa_context *c, pa_sink_info_cb_t cb, void *userdata)
Get the complete sink list.
pa_operation * pa_context_set_source_output_volume(pa_context *c, uint32_t idx, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata)
Set the volume of a source output stream.
pa_operation * pa_context_set_card_profile_by_index(pa_context *c, uint32_t idx, const char *profile, pa_context_success_cb_t cb, void *userdata)
Change the profile of a card.
pa_operation * pa_context_suspend_sink_by_name(pa_context *c, const char *sink_name, int suspend, pa_context_success_cb_t cb, void *userdata)
Suspend/Resume a sink.
pa_operation * pa_context_set_sink_input_volume(pa_context *c, uint32_t idx, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata)
Set the volume of a sink input stream.
pa_operation * pa_context_set_sink_mute_by_index(pa_context *c, uint32_t idx, int mute, pa_context_success_cb_t cb, void *userdata)
Set the mute switch of a sink device specified by its index.
void(* pa_context_index_cb_t)(pa_context *c, uint32_t idx, void *userdata)
Callback prototype for pa_context_load_module()
Definition introspect.h:433
pa_operation * pa_context_set_sink_port_by_index(pa_context *c, uint32_t idx, const char *port, pa_context_success_cb_t cb, void *userdata)
Change the profile of a sink.
pa_operation * pa_context_get_server_info(pa_context *c, pa_server_info_cb_t cb, void *userdata)
Get some information about the server.
pa_operation * pa_context_set_source_port_by_name(pa_context *c, const char *name, const char *port, pa_context_success_cb_t cb, void *userdata)
Change the profile of a source.
pa_operation * pa_context_set_source_volume_by_name(pa_context *c, const char *name, const pa_cvolume *volume, pa_context_success_cb_t cb, void *userdata)
Set the volume of a source device specified by its name.
Asynchronous operations.
struct pa_operation pa_operation
An asynchronous operation object.
Definition operation.h:33
Property list constants and functions.
struct pa_proplist pa_proplist
A property list object.
Definition proplist.h:272
uint64_t pa_usec_t
Type for usec specifications (unsigned).
Definition sample.h:260
Stores information about cards.
Definition introspect.h:517
pa_proplist * proplist
Property list.
Definition introspect.h:525
uint32_t n_profiles
Number of entries in profile array.
Definition introspect.h:522
pa_card_profile_info2 ** profiles2
Array of pointers to available profiles, or NULL.
Definition introspect.h:528
uint32_t index
Index of this card.
Definition introspect.h:518
uint32_t owner_module
Index of the owning module, or PA_INVALID_INDEX.
Definition introspect.h:520
uint32_t n_ports
Number of entries in port array.
Definition introspect.h:526
pa_card_profile_info * active_profile
Definition introspect.h:524
const char * name
Name of this card.
Definition introspect.h:519
pa_card_port_info ** ports
Array of pointers to ports, or NULL.
Definition introspect.h:527
pa_card_profile_info2 * active_profile2
Pointer to active profile in the array, or NULL.
Definition introspect.h:529
const char * driver
Driver name.
Definition introspect.h:521
pa_card_profile_info * profiles
Definition introspect.h:523
Stores information about a specific port of a card.
Definition introspect.h:501
pa_card_profile_info2 ** profiles2
Array of pointers to available profiles, or NULL.
Definition introspect.h:511
int available
A pa_port_available enum, indicating availability status of this port.
Definition introspect.h:505
int direction
A pa_direction enum, indicating the direction of this port.
Definition introspect.h:506
uint32_t priority
The higher this value is, the more useful this port is as a default.
Definition introspect.h:504
int64_t latency_offset
Latency offset of the port that gets added to the sink/source latency when the port is active.
Definition introspect.h:510
const char * description
Description of this port.
Definition introspect.h:503
pa_card_profile_info ** profiles
Definition introspect.h:508
uint32_t n_profiles
Number of entries in profile array.
Definition introspect.h:507
pa_proplist * proplist
Property list.
Definition introspect.h:509
const char * name
Name of this port.
Definition introspect.h:502
Stores information about a specific profile of a card.
Definition introspect.h:484
const char * name
Name of this profile.
Definition introspect.h:485
uint32_t priority
The higher this value is, the more useful this profile is as a default.
Definition introspect.h:489
uint32_t n_sources
Number of sources this profile would create.
Definition introspect.h:488
const char * description
Description of this profile.
Definition introspect.h:486
int available
Is this profile available?
Definition introspect.h:490
uint32_t n_sinks
Number of sinks this profile would create.
Definition introspect.h:487
Definition introspect.h:473
const char * name
Name of this profile.
Definition introspect.h:474
uint32_t n_sinks
Number of sinks this profile would create.
Definition introspect.h:476
const char * description
Description of this profile.
Definition introspect.h:475
uint32_t priority
The higher this value is, the more useful this profile is as a default.
Definition introspect.h:478
uint32_t n_sources
Number of sources this profile would create.
Definition introspect.h:477
A channel map which can be used to attach labels to specific channels of a stream.
Definition channelmap.h:264
Stores information about clients.
Definition introspect.h:448
const char * name
Name of this client.
Definition introspect.h:450
uint32_t owner_module
Index of the owning module, or PA_INVALID_INDEX.
Definition introspect.h:451
const char * driver
Driver name.
Definition introspect.h:452
uint32_t index
Index of this client.
Definition introspect.h:449
pa_proplist * proplist
Property list.
Definition introspect.h:453
A structure encapsulating a per-channel volume.
Definition volume.h:145
Represents the format of data provided in a stream or processed by a sink.
Definition format.h:94
Stores information about modules.
Definition introspect.h:412
uint32_t index
Index of the module.
Definition introspect.h:413
pa_proplist * proplist
Property list.
Definition introspect.h:420
uint32_t n_used
Usage counter or PA_INVALID_INDEX.
Definition introspect.h:416
const char * name
Name of the module.
Definition introspect.h:414
const char * argument
Argument string of the module.
Definition introspect.h:415
Stores information about sample cache entries.
Definition introspect.h:685
const char * filename
In case this is a lazy cache entry, the filename for the sound file to be loaded on demand.
Definition introspect.h:694
pa_sample_spec sample_spec
Sample specification of the sample.
Definition introspect.h:689
int lazy
Non-zero when this is a lazy cache entry.
Definition introspect.h:693
uint32_t bytes
Length of this sample in bytes.
Definition introspect.h:692
pa_channel_map channel_map
The channel map.
Definition introspect.h:690
pa_cvolume volume
Default volume of this entry.
Definition introspect.h:688
pa_proplist * proplist
Property list for this sample.
Definition introspect.h:695
uint32_t index
Index of this entry.
Definition introspect.h:686
pa_usec_t duration
Duration of this entry.
Definition introspect.h:691
const char * name
Name of this entry.
Definition introspect.h:687
A sample format and attribute specification.
Definition sample.h:248
Server information.
Definition introspect.h:387
const char * host_name
Host name the daemon is running on.
Definition introspect.h:389
pa_sample_spec sample_spec
Default sample specification.
Definition introspect.h:392
const char * user_name
User name of the daemon process.
Definition introspect.h:388
const char * server_name
Server package name (usually "pulseaudio")
Definition introspect.h:391
pa_channel_map channel_map
Default channel map.
Definition introspect.h:396
const char * default_source_name
Name of default source.
Definition introspect.h:394
uint32_t cookie
A random cookie for identifying this instance of PulseAudio.
Definition introspect.h:395
const char * default_sink_name
Name of default sink.
Definition introspect.h:393
const char * server_version
Version string of the daemon.
Definition introspect.h:390
Stores information about sinks.
Definition introspect.h:237
pa_sample_spec sample_spec
Sample spec of this sink.
Definition introspect.h:241
uint32_t card
Card index, or PA_INVALID_INDEX.
Definition introspect.h:256
uint32_t n_volume_steps
Number of volume steps for sinks which do not support arbitrary volumes.
Definition introspect.h:255
uint32_t index
Index of the sink.
Definition introspect.h:239
uint32_t n_ports
Number of entries in port array.
Definition introspect.h:257
pa_volume_t base_volume
Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the outpu...
Definition introspect.h:253
pa_sink_flags_t flags
Flags.
Definition introspect.h:250
pa_usec_t configured_latency
The latency this device has been configured to.
Definition introspect.h:252
pa_format_info ** formats
Array of formats supported by the sink.
Definition introspect.h:261
const char * monitor_source_name
The name of the monitor source.
Definition introspect.h:247
pa_channel_map channel_map
Channel map.
Definition introspect.h:242
const char * name
Name of the sink.
Definition introspect.h:238
pa_sink_port_info * active_port
Pointer to active port in the array, or NULL.
Definition introspect.h:259
pa_usec_t latency
Length of queued audio in the output buffer.
Definition introspect.h:248
uint8_t n_formats
Number of formats supported by the sink.
Definition introspect.h:260
uint32_t owner_module
Index of the owning module of this sink, or PA_INVALID_INDEX.
Definition introspect.h:243
const char * driver
Driver name.
Definition introspect.h:249
int mute
Mute switch of the sink.
Definition introspect.h:245
const char * description
Description of this sink.
Definition introspect.h:240
pa_proplist * proplist
Property list.
Definition introspect.h:251
pa_sink_port_info ** ports
Array of available ports, or NULL.
Definition introspect.h:258
uint32_t monitor_source
Index of the monitor source connected to this sink.
Definition introspect.h:246
pa_sink_state_t state
State.
Definition introspect.h:254
pa_cvolume volume
Volume of the sink.
Definition introspect.h:244
Stores information about sink inputs.
Definition introspect.h:560
uint32_t owner_module
Index of the module this sink input belongs to, or PA_INVALID_INDEX when it does not belong to any mo...
Definition introspect.h:563
pa_sample_spec sample_spec
The sample specification of the sink input.
Definition introspect.h:566
pa_cvolume volume
The volume of this sink input.
Definition introspect.h:568
pa_proplist * proplist
Property list.
Definition introspect.h:574
int volume_writable
The volume can be set.
Definition introspect.h:577
int mute
Stream muted.
Definition introspect.h:573
pa_usec_t sink_usec
Latency of the sink device, see pa_timing_info for details.
Definition introspect.h:570
pa_format_info * format
Stream format information.
Definition introspect.h:578
int corked
Stream corked.
Definition introspect.h:575
const char * name
Name of the sink input.
Definition introspect.h:562
uint32_t index
Index of the sink input.
Definition introspect.h:561
uint32_t sink
Index of the connected sink.
Definition introspect.h:565
const char * driver
Driver name.
Definition introspect.h:572
const char * resample_method
The resampling method used by this sink input.
Definition introspect.h:571
pa_channel_map channel_map
Channel map.
Definition introspect.h:567
pa_usec_t buffer_usec
Latency due to buffering in sink input, see pa_timing_info for details.
Definition introspect.h:569
uint32_t client
Index of the client this sink input belongs to, or PA_INVALID_INDEX when it does not belong to any cl...
Definition introspect.h:564
int has_volume
Stream has volume.
Definition introspect.h:576
Stores information about a specific port of a sink.
Definition introspect.h:227
uint32_t priority
The higher this value is, the more useful this port is as a default.
Definition introspect.h:230
const char * name
Name of this port.
Definition introspect.h:228
int available
A flags (see pa_port_available), indicating availability status of this port.
Definition introspect.h:231
const char * description
Description of this port.
Definition introspect.h:229
Stores information about sources.
Definition introspect.h:317
uint32_t n_volume_steps
Number of volume steps for sources which do not support arbitrary volumes.
Definition introspect.h:335
pa_cvolume volume
Volume of the source.
Definition introspect.h:324
pa_proplist * proplist
Property list.
Definition introspect.h:331
pa_sample_spec sample_spec
Sample spec of this source.
Definition introspect.h:321
const char * driver
Driver name.
Definition introspect.h:329
uint32_t n_ports
Number of entries in port array.
Definition introspect.h:337
pa_source_state_t state
State.
Definition introspect.h:334
const char * monitor_of_sink_name
Name of the owning sink, or NULL.
Definition introspect.h:327
uint32_t monitor_of_sink
If this is a monitor source, the index of the owning sink, otherwise PA_INVALID_INDEX.
Definition introspect.h:326
pa_usec_t latency
Length of filled record buffer of this source.
Definition introspect.h:328
const char * name
Name of the source.
Definition introspect.h:318
uint32_t card
Card index, or PA_INVALID_INDEX.
Definition introspect.h:336
pa_source_port_info ** ports
Array of available ports, or NULL.
Definition introspect.h:338
pa_volume_t base_volume
Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the input...
Definition introspect.h:333
pa_usec_t configured_latency
The latency this device has been configured to.
Definition introspect.h:332
uint32_t owner_module
Owning module index, or PA_INVALID_INDEX.
Definition introspect.h:323
pa_source_port_info * active_port
Pointer to active port in the array, or NULL.
Definition introspect.h:339
pa_channel_map channel_map
Channel map.
Definition introspect.h:322
uint32_t index
Index of the source.
Definition introspect.h:319
int mute
Mute switch of the sink.
Definition introspect.h:325
const char * description
Description of this source.
Definition introspect.h:320
uint8_t n_formats
Number of formats supported by the source.
Definition introspect.h:340
pa_format_info ** formats
Array of formats supported by the source.
Definition introspect.h:341
pa_source_flags_t flags
Flags.
Definition introspect.h:330
Stores information about source outputs.
Definition introspect.h:612
int volume_writable
The volume can be set.
Definition introspect.h:629
pa_channel_map channel_map
Channel map.
Definition introspect.h:619
uint32_t client
Index of the client this source output belongs to, or PA_INVALID_INDEX when it does not belong to any...
Definition introspect.h:616
uint32_t owner_module
Index of the module this source output belongs to, or PA_INVALID_INDEX when it does not belong to any...
Definition introspect.h:615
pa_usec_t buffer_usec
Latency due to buffering in the source output, see pa_timing_info for details.
Definition introspect.h:620
uint32_t index
Index of the source output.
Definition introspect.h:613
pa_proplist * proplist
Property list.
Definition introspect.h:624
pa_sample_spec sample_spec
The sample specification of the source output.
Definition introspect.h:618
const char * resample_method
The resampling method used by this source output.
Definition introspect.h:622
pa_cvolume volume
The volume of this source output.
Definition introspect.h:626
const char * driver
Driver name.
Definition introspect.h:623
int corked
Stream corked.
Definition introspect.h:625
const char * name
Name of the source output.
Definition introspect.h:614
pa_format_info * format
Stream format information.
Definition introspect.h:630
int mute
Stream muted.
Definition introspect.h:627
int has_volume
Stream has volume.
Definition introspect.h:628
uint32_t source
Index of the connected source.
Definition introspect.h:617
pa_usec_t source_usec
Latency of the source device, see pa_timing_info for details.
Definition introspect.h:621
Stores information about a specific port of a source.
Definition introspect.h:307
uint32_t priority
The higher this value is, the more useful this port is as a default.
Definition introspect.h:310
const char * description
Description of this port.
Definition introspect.h:309
const char * name
Name of this port.
Definition introspect.h:308
int available
A flags (see pa_port_available), indicating availability status of this port.
Definition introspect.h:311
Memory block statistics.
Definition introspect.h:664
uint32_t memblock_allocated
Allocated memory blocks during the whole lifetime of the daemon.
Definition introspect.h:667
uint32_t memblock_total
Currently allocated memory blocks.
Definition introspect.h:665
uint32_t memblock_allocated_size
Total size of all memory blocks allocated during the whole lifetime of the daemon.
Definition introspect.h:668
uint32_t scache_size
Total size of all sample cache entries.
Definition introspect.h:669
uint32_t memblock_total_size
Current total size of allocated memory blocks.
Definition introspect.h:666
Define header version.
Constants and routines for volume handling.
uint32_t pa_volume_t
Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...
Definition volume.h:117