aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_speaker_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_speaker_lib.h')
-rw-r--r--src/include/gnunet_speaker_lib.h47
1 files changed, 22 insertions, 25 deletions
diff --git a/src/include/gnunet_speaker_lib.h b/src/include/gnunet_speaker_lib.h
index 71f643791..261ea5981 100644
--- a/src/include/gnunet_speaker_lib.h
+++ b/src/include/gnunet_speaker_lib.h
@@ -1,19 +1,19 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 Copyright (C) 2013 GNUnet e.V. 3 Copyright (C) 2013 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License, 7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version. 8 or (at your option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
@@ -36,7 +36,7 @@
36#ifdef __cplusplus 36#ifdef __cplusplus
37extern "C" 37extern "C"
38{ 38{
39#if 0 /* keep Emacsens' auto-indent happy */ 39#if 0 /* keep Emacsens' auto-indent happy */
40} 40}
41#endif 41#endif
42#endif 42#endif
@@ -74,16 +74,14 @@ typedef void (*GNUNET_SPEAKER_DestroyCallback)(void *cls);
74 * opaque to the API but should be OPUS. 74 * opaque to the API but should be OPUS.
75 */ 75 */
76typedef void (*GNUNET_SPEAKER_PlayCallback)(void *cls, 76typedef void (*GNUNET_SPEAKER_PlayCallback)(void *cls,
77 size_t data_size, 77 size_t data_size,
78 const void *data); 78 const void *data);
79 79
80 80
81/** 81/**
82 * A speaker is a device that can play or record audio data. 82 * A speaker is a device that can play or record audio data.
83 */ 83 */
84struct GNUNET_SPEAKER_Handle 84struct GNUNET_SPEAKER_Handle {
85{
86
87 /** 85 /**
88 * Turn on the speaker. 86 * Turn on the speaker.
89 */ 87 */
@@ -108,7 +106,6 @@ struct GNUNET_SPEAKER_Handle
108 * Closure for the callbacks. 106 * Closure for the callbacks.
109 */ 107 */
110 void *cls; 108 void *cls;
111
112}; 109};
113 110
114 111
@@ -120,7 +117,7 @@ struct GNUNET_SPEAKER_Handle
120 * @return NULL on error 117 * @return NULL on error
121 */ 118 */
122struct GNUNET_SPEAKER_Handle * 119struct GNUNET_SPEAKER_Handle *
123GNUNET_SPEAKER_create_from_hardware (const struct GNUNET_CONFIGURATION_Handle *cfg); 120GNUNET_SPEAKER_create_from_hardware(const struct GNUNET_CONFIGURATION_Handle *cfg);
124 121
125 122
126/** 123/**
@@ -129,10 +126,10 @@ GNUNET_SPEAKER_create_from_hardware (const struct GNUNET_CONFIGURATION_Handle *c
129 * @param speaker speaker to destroy 126 * @param speaker speaker to destroy
130 */ 127 */
131void 128void
132GNUNET_SPEAKER_destroy (struct GNUNET_SPEAKER_Handle *speaker); 129GNUNET_SPEAKER_destroy(struct GNUNET_SPEAKER_Handle *speaker);
133 130
134 131
135#if 0 /* keep Emacsens' auto-indent happy */ 132#if 0 /* keep Emacsens' auto-indent happy */
136{ 133{
137#endif 134#endif
138#ifdef __cplusplus 135#ifdef __cplusplus