Skip to content

Commit

Permalink
campaignd: Add a typedef for the handlers map
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Jun 25, 2014
1 parent 6c5e9e3 commit 6b8e42d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/campaign_server/campaign_server.hpp
Expand Up @@ -84,6 +84,7 @@ class server : private boost::noncopyable
};

typedef boost::function<void (const request& req)> request_handler;
typedef std::map<std::string, request_handler> request_handlers_table;

config cfg_;
const std::string cfg_file_;
Expand All @@ -94,7 +95,7 @@ class server : private boost::noncopyable
boost::scoped_ptr<input_stream> input_; /**< Server control socket. */

std::map<std::string, std::string> hooks_;
std::map<std::string, request_handler> handlers_;
request_handlers_table handlers_;

std::string feedback_url_format_;

Expand Down

0 comments on commit 6b8e42d

Please sign in to comment.