Fix log setup inline function warning

This commit is contained in:
Vinnie Falco
2013-06-12 10:15:23 -07:00
parent f6a2920692
commit d90a1276a8
11 changed files with 40 additions and 23 deletions

View File

@@ -0,0 +1,2 @@
SETUP_LOG (WSConnectionLog)

View File

@@ -5,22 +5,10 @@
#include "../websocketpp/src/sockets/autotls.hpp"
#include "../websocketpp/src/websocketpp.hpp"
#include <boost/weak_ptr.hpp>
#include <boost/asio.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/pointer_cast.hpp>
#include "WSDoor.h"
#include "CallRPC.h"
#include "LoadManager.h"
#include "RPCErr.h"
DEFINE_INSTANCE(WebSocketConnection);
// This is for logging
struct WSConnectionLog { };
SETUP_LOG (WSConnectionLog)
struct WSConnectionLog;
template <typename endpoint_type>
class WSServerHandler;

View File

@@ -0,0 +1,2 @@
SETUP_LOG (WSServerHandlerLog)

View File

@@ -11,11 +11,7 @@ class WSConnection;
// CAUTION: on_* functions are called by the websocket code while holding a lock
struct WSServerHandlerLog // for logging
{
};
SETUP_LOG (WSServerHandlerLog)
struct WSServerHandlerLog;
// A single instance of this object is made.
// This instance dispatches all events. There is no per connection persistence.