func_audiohookinherit.c File Reference

Audiohook inheritance function. More...

#include "asterisk.h"
#include "asterisk/channel.h"
#include "asterisk/logger.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"

Include dependency graph for func_audiohookinherit.c:

Go to the source code of this file.

Functions

 AST_MODULE_INFO_STANDARD_DEPRECATED (ASTERISK_GPL_KEY,"Audiohook inheritance placeholder function")
static int func_inheritance_write (struct ast_channel *chan, const char *function, char *data, const char *value)
static int load_module (void)
static int unload_module (void)

Variables

static struct ast_custom_function inheritance_function


Detailed Description

Audiohook inheritance function.

Author:
Mark Michelson <mmichelson@digium.com>

Definition in file func_audiohookinherit.c.


Function Documentation

AST_MODULE_INFO_STANDARD_DEPRECATED ( ASTERISK_GPL_KEY  ,
"Audiohook inheritance placeholder function"   
)

static int func_inheritance_write ( struct ast_channel chan,
const char *  function,
char *  data,
const char *  value 
) [static]

Definition at line 59 of file func_audiohookinherit.c.

References ast_log, and LOG_NOTICE.

00060 {
00061    static int warned = 0;
00062 
00063    if (!warned) {
00064       ast_log(LOG_NOTICE, "AUDIOHOOK_INHERIT is deprecated and now does nothing.\n");
00065       warned++;
00066    }
00067 
00068    return 0;
00069 }

static int load_module ( void   )  [static]

Definition at line 81 of file func_audiohookinherit.c.

References ast_custom_function_register, AST_MODULE_LOAD_DECLINE, and AST_MODULE_LOAD_SUCCESS.

00082 {
00083    if (ast_custom_function_register(&inheritance_function)) {
00084       return AST_MODULE_LOAD_DECLINE;
00085    } else {
00086       return AST_MODULE_LOAD_SUCCESS;
00087    }
00088 }

static int unload_module ( void   )  [static]

Definition at line 76 of file func_audiohookinherit.c.

References ast_custom_function_unregister().

00077 {
00078    return ast_custom_function_unregister(&inheritance_function);
00079 }


Variable Documentation

Initial value:

 {
   .name = "AUDIOHOOK_INHERIT",
   .write = func_inheritance_write,
}

Definition at line 71 of file func_audiohookinherit.c.


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