Changeset 7f9c823 in nscp for service/NSClient++.h


Ignore:
Timestamp:
11/08/09 23:24:31 (4 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
6672c56
Parents:
3b4097d
Message:

First attempt at serious boostification.
NOTICE! This is NOT a complete edition, it build and runs but many features are disabled and/or broken.
But we have working, sockets and mutexes and conversion functions from boost inside now and more to come...
Also started to build with CMake since it works better then boost.build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/NSClient++.h

    rd5356c1 r7f9c823  
    2222 
    2323#include <config.h> 
    24 #include <ServiceCmd.h> 
    25 #include <NTService.h> 
     24#include <service/system_service.hpp> 
    2625#include "NSCPlugin.h" 
    2726#include <Mutex.h> 
     
    3130#include <com_helpers.hpp> 
    3231#include <nsclient_session.hpp> 
    33  
     32#include <boost/thread/thread.hpp> 
     33#include <boost/thread/locks.hpp> 
    3434 
    3535/** 
     
    9999  pluginList messageHandlers_; 
    100100  std::wstring basePath; 
    101   MutexHandler internalVariables; 
    102   MutexHandler messageMutex; 
     101  boost::timed_mutex internalVariables; 
     102  boost::timed_mutex messageMutex; 
    103103  MutexRW  m_mutexRW; 
    104104  MutexRW  m_mutexRWcmdDescriptions; 
     
    180180}; 
    181181 
    182 typedef service_helper::NTService<NSClientT> NSClient; 
     182typedef service_helper::impl<NSClientT>::system_service NSClient; 
    183183 
    184184extern NSClient mainClient; // Global core instance forward declaration. 
    185185 
    186186 
    187 std::wstring Encrypt(std::wstring str, unsigned int algorithm = NSCAPI::xor); 
    188 std::wstring Decrypt(std::wstring str, unsigned int algorithm = NSCAPI::xor); 
     187std::wstring Encrypt(std::wstring str, unsigned int algorithm = NSCAPI::encryption_xor); 
     188std::wstring Decrypt(std::wstring str, unsigned int algorithm = NSCAPI::encryption_xor); 
    189189 
    190190////////////////////////////////////////////////////////////////////////// 
Note: See TracChangeset for help on using the changeset viewer.