blob: 5f68b92adebb29617568ddd981cd295eb085c207 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include "garnet/bin/timezone/timezone.h"
#include "lib/component/cpp/startup_context.h"
#include "lib/fidl/cpp/binding_set.h"
#include "lib/fxl/logging.h"
namespace time_zone {
constexpr char kIcuDataPath[] = "/pkg/data/icudtl.dat";
constexpr char kTzIdPath[] = "/data/tz_id";
class MainService {
public:
MainService()
: timezone_(component::StartupContext::CreateFromStartupInfo(),
kIcuDataPath, kTzIdPath) {}
private:
TimezoneImpl timezone_;
};
} // namespace time_zone
int main(int argc, char** argv) {
async::Loop loop(&kAsyncLoopConfigAttachToThread);
time_zone::MainService svc;
loop.Run();
return 0;
}