blob: 966040d1abdec0fa88e8eb719780c86a3ca44ad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* tools.h
*
* Created on: 03.08.2012
* Author: savop
*/
#ifndef TOOLS_H_
#define TOOLS_H_
#include <vector>
#include <string>
#include <iostream>
#include <string.h>
#include <vdr/tools.h>
#include <map>
#include <list>
using namespace std;
#define KB(s) (s * 1024)
#define MB(s) (s * 1024 * 1024)
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
#define CRLF "\r\n"
#define NL "\n"
#define MAX_METADATA_LENGTH_L 1024
#define MAX_METADATA_LENGTH_S 256
#define _unused(x) ((void)x)
namespace upnp {
typedef std::list<std::string> StringList;
typedef std::vector<std::string> StringVector;
typedef std::map<std::string, std::string> StringMap;
typedef std::map<std::string, uint32_t> IdList;
}
#include "tools/error.h"
#include "tools/ixml.h"
#include "tools/net.h"
#include "tools/string.h"
#include "tools/uuid.h"
#endif /* TOOLS_H_ */
|