Browse Source

Merge pull request 'master' (#8) from Thomas/libpEpAdapter:master into master

Reviewed-on: https://gitea.pep.foundation/pEp.foundation/libpEpAdapter/pulls/8
OS390/rc1
heck 12 months ago
parent
commit
f1b1cd2820
8 changed files with 400 additions and 61 deletions
  1. +9
    -25
      build-windows/libpEpAdapter.vcxproj
  2. +380
    -23
      build-windows/libpEpAdapter.vcxproj.filters
  3. +2
    -3
      src/group_manager_api.cc
  4. +1
    -2
      src/group_manager_api.h
  5. +1
    -1
      src/message_cache.cc
  6. +2
    -2
      src/pEpLog.cc
  7. +4
    -4
      src/pEpLog.hh
  8. +1
    -1
      src/std_utils.cc

+ 9
- 25
build-windows/libpEpAdapter.vcxproj View File

@ -58,8 +58,9 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_LIB;_EXPORT_PEP_ENGINE_DLL;_CRT_SECURE_NO_WARNINGS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<EnablePREfast>false</EnablePREfast>
<AdditionalIncludeDirectories>$(ProjectDir)src;</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -73,8 +74,9 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_LIB;_EXPORT_PEP_ENGINE_DLL;_CRT_SECURE_NO_WARNINGS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<EnablePREfast>false</EnablePREfast>
<AdditionalIncludeDirectories>$(ProjectDir)src;</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@ -86,31 +88,13 @@
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\Adapter.cc" />
<ClCompile Include="..\src\callback_dispatcher.cc" />
<ClCompile Include="..\src\call_with_lock.cc" />
<ClCompile Include="..\src\constant_time_algo.cc" />
<ClCompile Include="..\src\message_cache.cc" />
<ClCompile Include="..\src\passphrase_cache.cc" />
<ClCompile Include="..\src\pEpLog.cc" />
<ClCompile Include="..\src\slurp.cc" />
<ClCompile Include="..\src\status_to_string.cc" />
<ClCompile Include="..\src\*.cc" />
<ClCompile Include="..\..\pEpEngine\src\sqlite3.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\Adapter.hh" />
<ClInclude Include="..\src\Adapter.hxx" />
<ClInclude Include="..\src\callback_dispatcher.hh" />
<ClInclude Include="..\src\call_with_lock.hh" />
<ClInclude Include="..\src\constant_time_algo.hh" />
<ClInclude Include="..\src\locked_queue.hh" />
<ClInclude Include="..\src\message_cache.hh" />
<ClInclude Include="..\src\passphrase_cache.hh" />
<ClInclude Include="..\src\passphrase_cache.hxx" />
<ClInclude Include="..\src\pc_container.hh" />
<ClInclude Include="..\src\pEpLog.hh" />
<ClInclude Include="..\src\Semaphore.hh" />
<ClInclude Include="..\src\slurp.hh" />
<ClInclude Include="..\src\status_to_string.hh" />
<ClInclude Include="..\src\*.h" />
<ClInclude Include="..\src\*.hh" />
<ClInclude Include="..\src\*.hxx" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\pEpEngine\build-windows\pEpEngine.vcxproj">


+ 380
- 23
build-windows/libpEpAdapter.vcxproj.filters View File

@ -18,75 +18,432 @@
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\Adapter.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\call_with_lock.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\callback_dispatcher.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\constant_time_algo.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\message_cache.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\passphrase_cache.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\pEpLog.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\slurp.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\status_to_string.cc">
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\*.cc">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\call_with_lock.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\Adapter.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\Adapter.hxx">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\callback_dispatcher.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\constant_time_algo.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\locked_queue.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\message_cache.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\passphrase_cache.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\passphrase_cache.hxx">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\pc_container.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\pEpLog.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\Semaphore.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\slurp.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\status_to_string.hh">
<ClInclude Include="..\src\*.hh">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>

+ 2
- 3
src/group_manager_api.cc View File

@ -21,7 +21,7 @@ shared_ptr<Adapter::GroupDriverEngine> grp_drv_engine;
DYNAMIC_API PEP_STATUS adapter_group_init()
{
PEP_STATUS status;
PEP_STATUS status = PEP_STATUS_OK;
try {
const string lm_dummy_db_filename = "groups.db";
#ifdef WIN32
@ -123,8 +123,7 @@ DYNAMIC_API PEP_STATUS adapter_group_query_groups(PEP_SESSION session, identity_
return status;
}
DYNAMIC_API PEP_STATUS
adapter_group_query_manager(PEP_SESSION session, const pEp_identity *const group, pEp_identity **manager)
DYNAMIC_API PEP_STATUS adapter_group_query_manager(PEP_SESSION session, const pEp_identity *const group, pEp_identity **manager)
{
pEpLog("called");
PEP_STATUS status = adapter_grp_manager.group_query_manager(session, group, manager);


+ 1
- 2
src/group_manager_api.h View File

@ -79,8 +79,7 @@ DYNAMIC_API PEP_STATUS adapter_group_create(
* @warning For recipients to accept the dissolution, the sender/manager key used must be a key that they
* have a trust entry for.
*/
DYNAMIC_API PEP_STATUS
adapter_group_dissolve(PEP_SESSION session, pEp_identity *group_identity, pEp_identity *manager);
DYNAMIC_API PEP_STATUS adapter_group_dissolve(PEP_SESSION session, pEp_identity *group_identity, pEp_identity *manager);
/**
* <!-- adapter_group_invite_member() -->


+ 1
- 1
src/message_cache.cc View File

@ -96,7 +96,7 @@ namespace pEp {
if (!src)
return nullptr;
char *dst = ::strdup(src);
char *dst = ::_strdup(src);
assert(dst);
if (!dst)
throw std::bad_alloc();


+ 2
- 2
src/pEpLog.cc View File

@ -78,7 +78,7 @@ namespace pEp {
string decorate_centered(const string& msg, char decoration)
{
stringstream tmp;
int max_len = line_width - 10;
size_t max_len = line_width - 10;
// truncate msg
string msg_truncated = msg;
if (msg.length() >= max_len) {
@ -115,7 +115,7 @@ namespace pEp {
void pEpLogger::log(const string& msg, Utils::Color col) const
{
std::stringstream msg_;
msg_ << "[" << getpid() << " " << std::this_thread::get_id() << "]";
msg_ << "[" << _getpid() << " " << std::this_thread::get_id() << "]";
msg_ << " - ";
msg_ << this->get_classname() << "[" << this->get_instancename() << "]";
msg_ << " - " << msg;


+ 4
- 4
src/pEpLog.hh View File

@ -49,7 +49,7 @@
do { \
if (pEp::Adapter::pEpLog::get_enabled()) { \
std::stringstream msg_; \
msg_ << "[" << getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << "[" << _getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << " - " << __FILE__ << "::" << __FUNCTION__; \
msg_ << " - " << msg; \
pEp::Adapter::pEpLog::log(msg_.str()); \
@ -67,7 +67,7 @@
do { \
if (pEp::Adapter::pEpLog::get_enabled()) { \
std::stringstream msg_; \
msg_ << "[" << getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << "[" << _getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << " - " << __FILE__ << "::" << __FUNCTION__; \
msg_ << " - " << pEp::Adapter::pEpLog::decorateH1(msg); \
pEp::Adapter::pEpLog::log(msg_.str()); \
@ -85,7 +85,7 @@
do { \
if (pEp::Adapter::pEpLog::get_enabled()) { \
std::stringstream msg_; \
msg_ << "[" << getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << "[" << _getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << " - " << __FILE__ << "::" << __FUNCTION__; \
msg_ << " - " << pEp::Adapter::pEpLog::decorateH2(msg); \
pEp::Adapter::pEpLog::log(msg_.str()); \
@ -176,7 +176,7 @@ namespace pEp {
#define pEpLogClass(msg) \
do { \
std::stringstream msg_; \
msg_ << "[" << getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << "[" << _getpid() << " " << std::this_thread::get_id() << "]"; \
msg_ << " - " << this->m4gic_logger_n4me.get_classname(); \
msg_ << "[" << this->m4gic_logger_n4me.get_instancename() << "]"; \
msg_ << "::" << __FUNCTION__; \


+ 1
- 1
src/std_utils.cc View File

@ -118,6 +118,7 @@ namespace pEp {
return ss.str();
}
#ifndef WIN32
void path_ensure_not_existing(const string &path)
{
while (path_exists(path)) {
@ -125,7 +126,6 @@ namespace pEp {
}
}
#ifndef WIN32
void dir_create(const string &dirname, const mode_t mode)
{
if (mkdir(dirname.c_str(), mode) != 0) {


Loading…
Cancel
Save