Asterisk - The Open Source Telephony Project  18.5.0
beep.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2014, Russell Bryant
5  *
6  * Russell Bryant <[email protected]>
7  *
8  * See http://www.asterisk.org for more information about
9  * the Asterisk project. Please do not directly contact
10  * any of the maintainers of this project for assistance;
11  * the project provides a web site, mailing lists and IRC
12  * channels for your use.
13  *
14  * This program is free software, distributed under the terms of
15  * the GNU General Public License Version 2. See the LICENSE file
16  * at the top of the source tree.
17  */
18 
19 /*!
20  * \file
21  * \brief Periodic beeps into the audio of a call
22  */
23 
24 #ifndef _ASTERISK_BEEP_H
25 #define _ASTERISK_BEEP_H
26 
27 #include "asterisk/optional_api.h"
28 
29 #if defined(__cplusplus) || defined(c_plusplus)
30 extern "C" {
31 #endif
32 
34  (struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len),
35  { return -1; });
36 
38  (struct ast_channel *chan, const char *beep_id),
39  { return -1; });
40 
41 #if defined(__cplusplus) || defined(c_plusplus)
42 }
43 #endif
44 
45 #endif /* _ASTERISK_BEEP_H */
Main Channel structure associated with a channel.
Optional API function macros.
int AST_OPTIONAL_API_NAME() ast_beep_stop(struct ast_channel *chan, const char *beep_id)
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
Definition: optional_api.h:230
int AST_OPTIONAL_API_NAME() ast_beep_start(struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)