[Devel] need to call t relay to from a module

Daniel-Constantin Mierla daniel at voice-system.ro
Tue Jul 19 19:57:57 CEST 2005


Hello,

On 07/19/05 19:59, Ingo Wolfsberger wrote:

>Hi
>
>I need to call t_relay_to from a module, but compiling always ends in:
>In file included from ../tm/lock.h:61,
>                 from ../tm/t_funcs.h:54,
>                 from xxx.c:26:
>../tm/h_table.h:275: error: `TABLE_ENTRIES' undeclared here (not in a
>function)
>
>I have included:
>#include "../../hash_func.h" (for TABLE_ENTRIES)
>#include "../tm/t_funcs.h"
>  
>
you cannot do it in this way, you can load the functions exported by a 
module and then use in your module. Take a look at msilo module how it 
loads and uses the TM api (in modules/msilo/msilo.c, functions: 
mod_init() for loading and m_dump() for usage).

Daniel

>bye,
>   Ingo
>
>  
>



More information about the Devel mailing list