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


Ignore:
Timestamp:
06/16/11 23:00:44 (2 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
e11d494
Parents:
3bdaf18
Message:

various fixes and changes here and there
Mainly build related (been trying to fix symbol dumper problems) as well as tweaks for the up-coming "nightly release")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/NSClient++.h

    r3bdaf18 r7ec3dd1  
    9696  //boost::shared_mutex m_mutexRWcmdDescriptions; 
    9797  //cmdMap cmdDescriptions_; 
    98   enum log_status {log_unknown, log_looking, log_debug, log_nodebug }; 
     98  enum log_status {log_state_unknown, log_state_looking, log_state_debug, log_state_nodebug }; 
    9999  log_status debug_; 
    100100  std::wstring context_; 
     
    117117  typedef std::multimap<std::wstring,std::wstring> plugin_alias_list_type; 
    118118  // c-tor, d-tor 
    119   NSClientT(void) : debug_(log_unknown), enable_shared_session_(false), commands_(this), channels_(this), next_plugin_id_(0), service_name_(DEFAULT_SERVICE_NAME) { 
     119  NSClientT(void) : debug_(log_state_unknown), enable_shared_session_(false), commands_(this), channels_(this), next_plugin_id_(0), service_name_(DEFAULT_SERVICE_NAME) { 
    120120    logger_master_.start_slave(); 
    121121  } 
     
    123123  void enableDebug(bool debug = true) { 
    124124    if (debug) 
    125       debug_ = log_debug; 
     125      debug_ = log_state_debug; 
    126126    else 
    127       debug_ = log_nodebug; 
     127      debug_ = log_state_nodebug; 
    128128  } 
    129129 
     
    145145  // Service API 
    146146  static NSClient* get_global_instance(); 
     147  /* 
    147148  void handle_error(unsigned int line, const char *file, std::wstring message) { 
    148149    std::string s = nsclient::logger_helper::create_error(file, line, message); 
    149150    reportMessage(s.c_str()); 
    150151  } 
     152  */ 
    151153  void handle_startup(std::wstring service_name); 
    152154  void handle_shutdown(std::wstring service_name); 
     
    222224    void load_all_plugins(int mode); 
    223225 
     226    static void log_debug(const char* file, const int line, std::wstring message); 
     227    static void log_error(const char* file, const int line, std::wstring message); 
     228    static void log_error(const char* file, const int line, std::string message); 
     229    static void log_info(const char* file, const int line, std::wstring message); 
     230 
     231 
    224232 
    225233  private: 
Note: See TracChangeset for help on using the changeset viewer.