• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include <libudev.h>
6 
7 #include "device/udev_linux/udev.h"
8 
9 namespace device {
10 
operator ()(udev * dev) const11 void UdevDeleter::operator()(udev* dev) const {
12   udev_unref(dev);
13 }
14 
operator ()(udev_enumerate * enumerate) const15 void UdevEnumerateDeleter::operator()(udev_enumerate* enumerate) const {
16   udev_enumerate_unref(enumerate);
17 }
18 
operator ()(udev_device * device) const19 void UdevDeviceDeleter::operator()(udev_device* device) const {
20   udev_device_unref(device);
21 }
22 
operator ()(udev_monitor * monitor) const23 void UdevMonitorDeleter::operator()(udev_monitor* monitor) const {
24   udev_monitor_unref(monitor);
25 }
26 
27 }  // namespace device
28