1 // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 syntax = "proto2"; 6 7 option optimize_for = LITE_RUNTIME; 8 9 package power_manager; 10 11 message PeripheralBatteryStatus { 12 // Path of the battery sysfs. 13 optional string path = 1; 14 15 // Name of the peripheral device. 16 optional string name = 2; 17 18 // Battery level in range [0, 100]. Unset if the level is 19 // unknown or the device is disconnected. 20 optional int32 level = 3; 21 } 22 23