hal/linux/LinuxPower.cpp
author Vicamo Yang <vyang@mozilla.com>
Mon, 04 Jun 2012 13:04:24 +0800
changeset 99781 c659893397872151115ab3d472a53d20060b6f39
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 115256 6bcb5f9359d8cae3ee2f2d4ee452b13e3f093b35
permissions -rw-r--r--
Bug 744360 - Part 1: add WspPduHelper, r=philikon

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "Hal.h"

#include <unistd.h>
#include <sys/reboot.h>

namespace mozilla {
namespace hal_impl {

void
Reboot()
{
  reboot(RB_AUTOBOOT);
}

void
PowerOff()
{
  reboot(RB_POWER_OFF);
}

} // hal_impl
} // mozilla