~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to HandlerSocket-Plugin-for-MySQL/libhsclient/config.hpp

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// vim:sw=2:ai
 
3
 
 
4
/*
 
5
 * Copyright (C) 2010 DeNA Co.,Ltd.. All rights reserved.
 
6
 * See COPYRIGHT.txt for details.
 
7
 */
 
8
 
 
9
#ifndef DENA_CONFIG_HPP
 
10
#define DENA_CONFIG_HPP
 
11
 
 
12
#include <string>
 
13
#include <map>
 
14
 
 
15
#define DENA_VERBOSE(lv, x) if (dena::verbose_level >= (lv)) { (x); }
 
16
 
 
17
namespace dena {
 
18
 
 
19
struct config : public std::map<std::string, std::string> {
 
20
  std::string get_str(const std::string& key, const std::string& def = "")
 
21
    const;
 
22
  long long get_int(const std::string& key, long long def = 0) const;
 
23
};
 
24
 
 
25
void parse_args(int argc, char **argv, config& conf);
 
26
 
 
27
extern unsigned int verbose_level;
 
28
 
 
29
};
 
30
 
 
31
#endif
 
32