diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-03 18:14:35 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-03 18:14:35 +0000 |
commit | a7de4be0d5d01425755a1bb33dd81c811b52c579 (patch) | |
tree | a99936572577ee64e1dc351307de1bd656809a91 /1.2-netsec/include/asterisk/inline_api.h | |
parent | 67da2f8263b4e9bb5522fa59b27e143381d69774 (diff) |
remove improperly created directory
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.2.5@11748 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to '1.2-netsec/include/asterisk/inline_api.h')
-rw-r--r-- | 1.2-netsec/include/asterisk/inline_api.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/1.2-netsec/include/asterisk/inline_api.h b/1.2-netsec/include/asterisk/inline_api.h deleted file mode 100644 index 2347d09d7..000000000 --- a/1.2-netsec/include/asterisk/inline_api.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Asterisk -- An open source telephony toolkit. - * - * Copyright (C) 1999 - 2005, Digium, Inc. - * - * Kevin P. Fleming <kpfleming@digium.com> - * - * See http://www.asterisk.org for more information about - * the Asterisk project. Please do not directly contact - * any of the maintainers of this project for assistance; - * the project provides a web site, mailing lists and IRC - * channels for your use. - * - * This program is free software, distributed under the terms of - * the GNU General Public License Version 2. See the LICENSE file - * at the top of the source tree. - */ - -#ifndef __ASTERISK_INLINEAPI_H -#define __ASTERISK_INLINEAPI_H - -/*! \file - * \brief Inlinable API function macro - - Small API functions that are candidates for inlining need to be specially - declared and defined, to ensure that the 'right thing' always happens. - For example: - - there must _always_ be a non-inlined version of the function - available for modules compiled out of the tree to link to - - references to a function that cannot be inlined (for any - reason that the compiler deems proper) must devolve into an - 'extern' reference, instead of 'static', so that multiple - copies of the function body are not built in different modules - - when LOW_MEMORY is defined, inlining should be disabled - completely, even if the compiler is configured to support it - - The AST_INLINE_API macro allows this to happen automatically, when - used to define your function. Proper usage is as follows: - - define your function one place, in a header file, using the macro - to wrap the function (see strings.h or time.h for examples) - - choose a module to 'host' the function body for non-inline - usages, and in that module _only_, define AST_API_MODULE before - including the header file - */ - -#if !defined(LOW_MEMORY) - -#if !defined(AST_API_MODULE) -#define AST_INLINE_API(hdr, body) hdr; extern inline hdr body -#else -#define AST_INLINE_API(hdr, body) hdr; hdr body -#endif - -#else /* defined(LOW_MEMORY) */ - -#if !defined(AST_API_MODULE) -#define AST_INLINE_API(hdr, body) hdr; -#else -#define AST_INLINE_API(hdr, body) hdr; hdr body -#endif - -#endif - -#undef AST_API_MODULE - -#endif /* __ASTERISK_INLINEAPI_H */ |