[Developers] Patch: [cctk_WarnLevel.h and WarnLevel.c]: to register the callbacks call them
Jian Tao
jtao at cct.lsu.edu
Thu May 26 11:06:59 CDT 2005
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);
###########################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PATCH_cctk_WarnLevel.h
Type: text/x-chdr
Size: 2024 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20050526/d7e31203/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PATCH_WarnLevel.c
Type: text/x-csrc
Size: 8074 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20050526/d7e31203/attachment-0001.bin
More information about the Developers
mailing list