You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
#ifndef COMMON_ITK_UTIL
|
|
#define COMMON_ITK_UTIL
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define DOFREE(obj) \
|
|
{ \
|
|
if(obj) \
|
|
{ \
|
|
MEM_free(obj); \
|
|
obj = NULL; \
|
|
} \
|
|
}
|
|
void ECHO(char *format, ...);
|
|
void KCreateLogFile(char* FunctionName, char *userId, char **fullname);
|
|
void CreateFileName(char* FunctionName, char *userId, char **fullname);
|
|
void CreateTempFileName(char*preFix, const char* FunctionName, char *ext, char *userId, char **fullname, char **fileName);
|
|
void KWriteLog(logical debug,const char* format, ...);
|
|
void KWriteLog1(const char* txt);
|
|
void initUserDir(char *userId);
|
|
//void initUserDir(char *userId,char **dir);
|
|
void KCloseLog(void);
|
|
void set_bypass(logical bypass);
|
|
int ORIGIN_close_bypass(void *returnValue);
|
|
int ORIGIN_set_bypass(void *returnValue);
|
|
int GetLocalizedType(void * return_data);
|
|
int WriteToFile(logical debug, FILE* file, const char* format, ...);
|
|
int CreateUserFile(logical debug, char* FunctionName, char *userId, char **fullname, FILE **file);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |