Changeset 5911 for branches/newapi

Show
Ignore:
Timestamp:
12/02/07 20:17:45 (12 months ago)
Author:
erijo
Message:

Moved licq/interface/log.h to licq/log.h. Makes more sense to have it there IMHO.

Location:
branches/newapi/licq
Files:
6 modified
1 moved

Legend:

Unmodified
Added
Removed
  • branches/newapi/licq/licq/interface/logsink.h

    r5498 r5911  
    2121#define LICQ_LOGSINK_H 
    2222 
    23 #include "licq/interface/log.h" 
     23#include "licq/log.h" 
    2424#include "licq/macros.h" 
    2525 
  • branches/newapi/licq/src/daemon.cpp

    r5910 r5911  
    2222#include "licq/exception/runtimeexception.h" 
    2323#include "licq/exception/unixexception.h" 
    24 #include "licq/interface/log.h" 
     24#include "licq/log.h" 
    2525#include "licq/version.h" 
    2626#include "plugin/plugincache.h" 
  • branches/newapi/licq/src/plugin/plugincacheimpl.cpp

    r5910 r5911  
    2222#include "licq/exception/systemexception.h" 
    2323#include "licq/exception/unixexception.h" 
    24 #include "licq/interface/log.h" 
     24#include "licq/log.h" 
    2525#include "plugin/plugincacheimpl.h" 
    2626#include "plugin/pluginlibrary.h" 
  • branches/newapi/licq/src/plugin/test/pluginlibrarytest.cpp

    r5808 r5911  
    1818 */ 
    1919 
    20 #include "licq/interface/log.h" 
     20#include "licq/log.h" 
    2121#include "plugin/pluginlibraryimpl.h" 
    2222 
     
    2828  char** myArgv; 
    2929  bool myDestroyed; 
    30 }; 
    31  
    32 class VoidLog : public Licq::Log 
    33 { 
    34 public: 
    35   void log(Level, const std::string&) {} 
    36   void packet(const std::string&, const uint8_t*, size_t) {} 
    3730}; 
    3831 
     
    112105BOOST_AUTO_TEST_CASE(createDestroy) 
    113106{ 
    114   VoidLog log; 
     107  Licq::Log* log = Licq::Log::getThreadLog(); 
    115108  const char* argv[] = { "licq" }; 
    116   FakePlugin* plugin = (FakePlugin*)myLib.createPlugin(log, 1, (char**)argv); 
     109  FakePlugin* plugin = (FakePlugin*)myLib.createPlugin(*log, 1, (char**)argv); 
    117110  BOOST_CHECK_EQUAL(plugin->myArgc, 1); 
    118111  BOOST_CHECK_EQUAL(plugin->myArgv, (char**)argv); 
  • branches/newapi/licq/src/test/log.h

    r5906 r5911  
    2121#define LICQTEST_LOG_H 
    2222 
    23 #include "licq/interface/log.h" 
     23#include "licq/log.h" 
    2424 
    2525#include <iostream> 
  • branches/newapi/licq/src/util/log.h

    r5910 r5911  
    2121#define LICQDAEMON_LOG_H 
    2222 
    23 #include "licq/interface/log.h" 
    2423#include "licq/interface/logsink.h" 
     24#include "licq/log.h" 
    2525 
    2626#include <string>