beep.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 2014, Russell Bryant
00005  *
00006  * Russell Bryant <russell@russellbryant.net>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*!
00020  * \file
00021  * \brief Periodic beeps into the audio of a call
00022  */
00023 
00024 #ifndef _ASTERISK_BEEP_H
00025 #define _ASTERISK_BEEP_H
00026 
00027 #include "asterisk/optional_api.h"
00028 
00029 #if defined(__cplusplus) || defined(c_plusplus)
00030 extern "C" {
00031 #endif
00032 
00033 AST_OPTIONAL_API(int, ast_beep_start,
00034       (struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len),
00035       { return -1; });
00036 
00037 AST_OPTIONAL_API(int, ast_beep_stop,
00038       (struct ast_channel *chan, const char *beep_id),
00039       { return -1; });
00040 
00041 #if defined(__cplusplus) || defined(c_plusplus)
00042 }
00043 #endif
00044 
00045 #endif /* _ASTERISK_BEEP_H */

Generated on Thu Apr 16 06:27:15 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6