[Developers] Re: Patch: [cctk_WarnLevel.h and WarnLevel.c]: to register the callbacks call them

Tom Goodale goodale at cct.lsu.edu
Thu May 26 11:14:27 CDT 2005


Hi Jian,

thanks for this.  I'll look through the patches, but as a first comment, 
the CCTKi functions can be static and so don't need to appear in the 
header file;  they can also be void as they don't need to return an error 
code.

Tom

On Thu, 26 May 2005, Jian Tao wrote:

> Hi,
>
> Four new functions are declared in cctk_WarnLevel.h together with the macros
> to enable users to register their own functions to  take care of Info/Warn
> message. The main purpose is to provide a generic interface to deal with
> Info/Warn message.
>
> A sample thorn is also ready and was used to test the those four functions.
>
> Cheers,
> Jian
>
> ###########################################################
> int CCTK_WarnCallbackRegister(int minlevel,
>                              int maxlevel,
>                              void *data,
>                              void callback(CCTK_DECLARE_WARN_CALLBACK_ARGS));
>
> int CCTKi_WarnCallbacksCall(CCTKi_DECLARE_WARN_CALLBACKSCALL_ARGS);
>
> int CCTK_InfoCallbackRegister(/*int minlevel,
>                              int maxlevel,*/
>                              void *data,
>                              void callback(CCTK_DECLARE_INFO_CALLBACK_ARGS));
>
> int CCTKi_InfoCallbacksCall(CCTKi_DECLARE_INFO_CALLBACKSCALL_ARGS);
> ###########################################################
>
>



More information about the Developers mailing list