[asterisk-dev] AST_BUILDOPT_SUM stability
Tilghman Lesher
tilghman at meg.abyt.es
Tue Dec 4 11:07:16 CST 2012
On Tue, Dec 4, 2012 at 10:47 AM, Jason Parker <jparker at digium.com> wrote:
> On 12/04/2012 05:29 AM, Tzafrir Cohen wrote:
>> Thanks.
>>
>> So what I need is something along the lines of:
>>
>> #include <asterisk/asterisk.h>
>>
>> /* Changes to nullify checksum */
>> #undef AST_BUILDOPT_SUM
>> #define AST_BUILDOPT_SUM ""
>>
>> /* ... */
>>
>> #nclude <asterisk/module.h>
>>
>> /* ... */
>>
>> AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "The name");
>>
>> Will it be OK for me to complain if this (redefining AST_BUILDOPT_SUM at
>> that specific point) breaks in the future??
>>
>
> The trick is to not set buildopt_sum, which can be achieved by not using the
> AST_MODULE_INFO macros.
<snip>
Since the loading code uses ast_strlen_zero(), setting it to NULL or
the empty string will function identically.
-Tilghman
More information about the asterisk-dev
mailing list