Changeset 182 for trunk/src/common.c


Ignore:
Timestamp:
03/17/10 02:41:17 (14 years ago)
Author:
tim
Message:

redesigned regfi logging API to utilize thread-local storage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/common.c

    r178 r182  
    2929const char* common_special_chars = ",\"\\";
    3030
    31 #define REGLOOKUP_VERSION "0.12.0"
     31#define REGLOOKUP_VERSION "0.1?.0"
    3232
    3333#define REGLOOKUP_EXIT_OK       0
     
    4949{
    5050  fprintf(stderr, message);
     51  regfi_log_stop();
    5152  exit(code);
    5253}
    5354
    54 void printMsgs(REGFI_FILE* f)
    55 {
    56   char* msgs = regfi_get_messages(f);
     55void printMsgs()
     56{
     57  char* msgs = regfi_log_get_str();
    5758  if(msgs != NULL)
    5859  {
     
    6263}
    6364
    64 void clearMsgs(REGFI_FILE* f)
    65 {
    66   char* msgs = regfi_get_messages(f);
     65void clearMsgs()
     66{
     67  char* msgs = regfi_log_get_str();
    6768  if(msgs != NULL)
    6869    free(msgs);
Note: See TracChangeset for help on using the changeset viewer.