src/pEpEngine.h
changeset 1819 b3e57d741b15
parent 1810 0beaab16a32c
child 1864 9ce429048fd7
     1.1 --- a/src/pEpEngine.h	Fri Jun 02 18:35:21 2017 +0200
     1.2 +++ b/src/pEpEngine.h	Sat Jun 03 11:08:14 2017 +0200
     1.3 @@ -202,6 +202,14 @@
     1.4  DYNAMIC_API void config_keep_sync_msg(PEP_SESSION session, bool enable);
     1.5  
     1.6  
     1.7 +// config_service_log() - log more for service purposes
     1.8 +//
     1.9 +//      session (in)    session handle
    1.10 +//      enable (in)     flag if enabled or disabled
    1.11 +
    1.12 +DYNAMIC_API void config_service_log(PEP_SESSION session, bool enable);
    1.13 +
    1.14 +
    1.15  // decrypt_and_verify() - decrypt and/or verify a message
    1.16  //
    1.17  //    parameters:
    1.18 @@ -316,6 +324,17 @@
    1.19      );
    1.20  
    1.21  
    1.22 +DYNAMIC_API PEP_STATUS log_service(PEP_SESSION session, const char *title,
    1.23 +        const char *entity, const char *description, const char *comment);
    1.24 +
    1.25 +#define _STR_(x) #x
    1.26 +#define _D_STR_(x) _STR_(x)
    1.27 +#define S_LINE _D_STR_(__LINE__)
    1.28 +
    1.29 +#define SERVICE_LOG(session, title, entity, desc) \
    1.30 +    log_service((session), (title), (entity), (desc), "service " __FILE__ ":" S_LINE)
    1.31 +
    1.32 +
    1.33  // trustword() - get the corresponding trustword for a 16 bit value
    1.34  //
    1.35  //    parameters: