Browse Source

add debug_color

add_key_notification
Volker Birk 3 years ago
parent
commit
de052553bd
3 changed files with 17 additions and 1 deletions
  1. +8
    -0
      src/pEpEngine.c
  2. +4
    -0
      src/pEpEngine.h
  3. +5
    -1
      src/pEp_internal.h

+ 8
- 0
src/pEpEngine.c View File

@ -5367,3 +5367,11 @@ DYNAMIC_API void _service_error_log(PEP_SESSION session, const char *entity,
#endif
log_service(session, "### service error log ###", entity, buffer, where);
}
#ifndef NDEBUG
DYNAMIC_API void set_debug_color(PEP_SESSION session, int ansi_color)
{
session->debug_color = ansi_color;
}
#endif

+ 4
- 0
src/pEpEngine.h View File

@ -406,6 +406,10 @@ DYNAMIC_API PEP_STATUS encrypt_and_sign(
);
#ifndef NDEBUG
DYNAMIC_API void set_debug_color(PEP_SESSION session, int ansi_color);
#endif
// log_event() - log a user defined event defined by UTF-8 encoded strings into
// management log
//


+ 5
- 1
src/pEp_internal.h View File

@ -277,8 +277,11 @@ struct _pEpSession {
bool unencrypted_subject;
bool service_log;
#ifdef DEBUG_ERRORSTACK
#ifndef NDEBUG
# ifdef DEBUG_ERRORSTACK
stringlist_t* errorstack;
# endif
int debug_color;
#endif
};
@ -567,3 +570,4 @@ static inline int Sqlite3_step(sqlite3_stmt* stmt)
} while (rc == SQLITE_BUSY || rc == SQLITE_LOCKED);
return rc;
}

Loading…
Cancel
Save