PulseAudio 16.1

ext-stream-restore.h
Go to the documentation of this file.
1#ifndef foopulseextstreamrestorehfoo
2#define foopulseextstreamrestorehfoo
3
4/***
5 This file is part of PulseAudio.
6
7 Copyright 2008 Lennart Poettering
8
9 PulseAudio is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published
11 by the Free Software Foundation; either version 2.1 of the License,
12 or (at your option) any later version.
13
14 PulseAudio is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
21***/
22
23#include <pulse/cdecl.h>
24#include <pulse/context.h>
25#include <pulse/version.h>
26#include <pulse/volume.h>
27#include <pulse/channelmap.h>
28
34PA_C_DECL_BEGIN
35
38 typedef struct pa_ext_stream_restore_info {
39 const char *name;
40 pa_channel_map channel_map;
41 pa_cvolume volume;
42 const char *device;
43 int mute;
44} pa_ext_stream_restore_info;
45
47 typedef void (*pa_ext_stream_restore_test_cb_t)(
48 pa_context *c,
49 uint32_t version,
50 void *userdata);
51
53 pa_operation *pa_ext_stream_restore_test(
54 pa_context *c,
55 pa_ext_stream_restore_test_cb_t cb,
56 void *userdata);
57
59 typedef void (*pa_ext_stream_restore_read_cb_t)(
60 pa_context *c,
61 const pa_ext_stream_restore_info *info,
62 int eol,
63 void *userdata);
64
66 pa_operation *pa_ext_stream_restore_read(
67 pa_context *c,
68 pa_ext_stream_restore_read_cb_t cb,
69 void *userdata);
70
72 pa_operation *pa_ext_stream_restore_write(
73 pa_context *c,
74 pa_update_mode_t mode,
75 const pa_ext_stream_restore_info data[],
76 unsigned n,
77 int apply_immediately,
78 pa_context_success_cb_t cb,
79 void *userdata);
80
82 pa_operation *pa_ext_stream_restore_delete(
83 pa_context *c,
84 const char *const s[],
85 pa_context_success_cb_t cb,
86 void *userdata);
87
89 pa_operation *pa_ext_stream_restore_subscribe(
90 pa_context *c,
91 int enable,
92 pa_context_success_cb_t cb,
93 void *userdata);
94
96 typedef void (*pa_ext_stream_restore_subscribe_cb_t)(
97 pa_context *c,
98 void *userdata);
99
102 void pa_ext_stream_restore_set_subscribe_cb(
103 pa_context *c,
104 pa_ext_stream_restore_subscribe_cb_t cb,
105 void *userdata);
106
107PA_C_DECL_END
108
109#endif
channelmap.h
Constants and routines for channel mapping handling.
context.h
Connection contexts for asynchronous communication with a server.
pa_context_success_cb_t
void(* pa_context_success_cb_t)(pa_context *c, int success, void *userdata)
A generic callback for operation completion.
Definition: context.h:160
pa_context
struct pa_context pa_context
An opaque connection context to a daemon.
Definition: context.h:154
pa_ext_stream_restore_delete
pa_operation * pa_ext_stream_restore_delete(pa_context *c, const char *const s[], pa_context_success_cb_t cb, void *userdata)
Delete entries from the stream database.
pa_ext_stream_restore_write
pa_operation * pa_ext_stream_restore_write(pa_context *c, pa_update_mode_t mode, const pa_ext_stream_restore_info data[], unsigned n, int apply_immediately, pa_context_success_cb_t cb, void *userdata)
Store entries in the stream database.
pa_ext_stream_restore_set_subscribe_cb
void pa_ext_stream_restore_set_subscribe_cb(pa_context *c, pa_ext_stream_restore_subscribe_cb_t cb, void *userdata)
Set the subscription callback that is called when pa_ext_stream_restore_subscribe() was called.
pa_ext_stream_restore_subscribe
pa_operation * pa_ext_stream_restore_subscribe(pa_context *c, int enable, pa_context_success_cb_t cb, void *userdata)
Subscribe to changes in the stream database.
pa_ext_stream_restore_subscribe_cb_t
void(* pa_ext_stream_restore_subscribe_cb_t)(pa_context *c, void *userdata)
Callback prototype for pa_ext_stream_restore_set_subscribe_cb().
Definition: ext-stream-restore.h:96
pa_ext_stream_restore_test_cb_t
void(* pa_ext_stream_restore_test_cb_t)(pa_context *c, uint32_t version, void *userdata)
Callback prototype for pa_ext_stream_restore_test().
Definition: ext-stream-restore.h:47
pa_ext_stream_restore_read
pa_operation * pa_ext_stream_restore_read(pa_context *c, pa_ext_stream_restore_read_cb_t cb, void *userdata)
Read all entries from the stream database.
pa_ext_stream_restore_test
pa_operation * pa_ext_stream_restore_test(pa_context *c, pa_ext_stream_restore_test_cb_t cb, void *userdata)
Test if this extension module is available in the server.
pa_ext_stream_restore_read_cb_t
void(* pa_ext_stream_restore_read_cb_t)(pa_context *c, const pa_ext_stream_restore_info *info, int eol, void *userdata)
Callback prototype for pa_ext_stream_restore_read().
Definition: ext-stream-restore.h:59
pa_ext_stream_restore_info
struct pa_ext_stream_restore_info pa_ext_stream_restore_info
Stores information about one entry in the stream database that is maintained by module-stream-restore...
pa_operation
struct pa_operation pa_operation
An asynchronous operation object.
Definition: operation.h:33
pa_update_mode_t
enum pa_update_mode pa_update_mode_t
Update mode enum for pa_proplist_update().
pa_channel_map
A channel map which can be used to attach labels to specific channels of a stream.
Definition: channelmap.h:264
pa_cvolume
A structure encapsulating a per-channel volume.
Definition: volume.h:145
pa_ext_stream_restore_info
Stores information about one entry in the stream database that is maintained by module-stream-restore...
Definition: ext-stream-restore.h:38
pa_ext_stream_restore_info::mute
int mute
The boolean mute state of the stream when it was last seen, if applicable and saved.
Definition: ext-stream-restore.h:43
pa_ext_stream_restore_info::channel_map
pa_channel_map channel_map
The channel map for the volume field, if applicable.
Definition: ext-stream-restore.h:40
pa_ext_stream_restore_info::device
const char * device
The sink/source of the stream when it was last seen, if applicable and saved.
Definition: ext-stream-restore.h:42
pa_ext_stream_restore_info::volume
pa_cvolume volume
The volume of the stream when it was seen last, if applicable and saved.
Definition: ext-stream-restore.h:41
pa_ext_stream_restore_info::name
const char * name
Identifier string of the stream.
Definition: ext-stream-restore.h:39
volume.h
Constants and routines for volume handling.