562ccb03cc
of localtime(), gmtime() and mktime() * implemented tzset() to read the required info from libroot_timezone_info git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37935 a95241bf-73f2-0310-859d-f6bbb57e9c96
44 lines
640 B
C++
44 lines
640 B
C++
/*
|
|
* Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _TIME_BACKEND_H
|
|
#define _TIME_BACKEND_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
struct TimeDataBridge {
|
|
int* addrOfDaylight;
|
|
long* addrOfTimezone;
|
|
char** addrOfTZName;
|
|
|
|
TimeDataBridge();
|
|
};
|
|
|
|
|
|
class TimeBackend {
|
|
public:
|
|
TimeBackend();
|
|
virtual ~TimeBackend();
|
|
|
|
virtual const status_t TZSet() = 0;
|
|
|
|
virtual void Initialize(TimeDataBridge* dataBridge) = 0;
|
|
|
|
static status_t LoadBackend();
|
|
};
|
|
|
|
|
|
extern TimeBackend* gTimeBackend;
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
#endif // _TIME_BACKEND_H
|