Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / device / udev_linux / udev.cc
blobe10074b5aa74c54daf77f38ee4262d71f243b0d6
1 // Copyright 2014 The Chromium 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.
5 #include <libudev.h>
7 #include "device/udev_linux/udev.h"
9 namespace device {
11 void UdevDeleter::operator()(udev* dev) const {
12 udev_unref(dev);
15 void UdevEnumerateDeleter::operator()(udev_enumerate* enumerate) const {
16 udev_enumerate_unref(enumerate);
19 void UdevDeviceDeleter::operator()(udev_device* device) const {
20 udev_device_unref(device);
23 void UdevMonitorDeleter::operator()(udev_monitor* monitor) const {
24 udev_monitor_unref(monitor);
27 } // namespace device