blob: 230f44c4cf7ef072394c701eef2a53f687d249c7 (
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
|
/*
* util.h
*
* Created on: 23.5.2012
* Author: d.petrovski
*/
#ifndef UTIL_H_
#define UTIL_H_
#include <time.h>
class cChannel;
struct tChannelID;
class cEvent;
namespace util
{
extern int AvailableSources[32];
extern int NumberOfAvailableSources;
extern int Yesterday;
extern int YesterdayEpoch;
extern int YesterdayEpochUTC;
void AddEvent(cEvent *event, tChannelID ChannelID);
cChannel *GetChannelByID(tChannelID & channelID, bool searchOtherPos);
time_t LocalTime2UTC (time_t t);
time_t UTC2LocalTime (time_t t);
void GetLocalTimeOffset (void);
void CleanString (unsigned char *String);
}
#endif /* UTIL_H_ */
|