diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-07-14 20:48:59 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-07-14 20:48:59 +0000 |
commit | 832d1296c61477eb5c5848b64cf48b36e636bfb0 (patch) | |
tree | 2b34378f0a47d89598b41b610afdfbe6643fad16 /include/asterisk/optional_api.h | |
parent | 8e7d01d48418786d3f0abc232a2d12de7362e50e (diff) |
Remove the old stub files, preferring the optional_api method.
(closes issue #17475)
Reported by: tilghman
Review: https://reviewboard.asterisk.org/r/695/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/optional_api.h')
-rw-r--r-- | include/asterisk/optional_api.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/asterisk/optional_api.h b/include/asterisk/optional_api.h index df875a849..88ab238b4 100644 --- a/include/asterisk/optional_api.h +++ b/include/asterisk/optional_api.h @@ -80,6 +80,13 @@ * definition; this means that any consumers of the API functions so * defined will require that the provider of the API functions be * loaded before they can reference the symbols. + * + * WARNING WARNING WARNING WARNING WARNING + * + * You MUST add the AST_MODFLAG_GLOBAL_SYMBOLS to the module for which you + * are enabling optional_api functionality, or it will fail to work. + * + * WARNING WARNING WARNING WARNING WARNING */ #define __stringify_1(x) #x @@ -174,11 +181,11 @@ #define AST_OPTIONAL_API(result, name, proto, stub) \ result AST_OPTIONAL_API_NAME(name) proto; \ - __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name; + static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name; #define AST_OPTIONAL_API_ATTR(result, attr, name, proto, stub) \ result __attribute__((attr)) AST_OPTIONAL_API_NAME(name) proto; \ - __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name; + static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name; #else |