Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: device/udev_linux/udev.cc

Issue 302093009: Linux: Unify udev scopers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/udev_linux/udev.h ('k') | device/udev_linux/udev.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
11 void UdevDeleter::operator()(udev* dev) const {
12 udev_unref(dev);
13 }
14
15 void UdevEnumerateDeleter::operator()(udev_enumerate* enumerate) const {
16 udev_enumerate_unref(enumerate);
17 }
18
19 void UdevDeviceDeleter::operator()(udev_device* device) const {
20 udev_device_unref(device);
21 }
22
23 void UdevMonitorDeleter::operator()(udev_monitor* monitor) const {
24 udev_monitor_unref(monitor);
25 }
26
27 } // namespace device
OLDNEW
« no previous file with comments | « device/udev_linux/udev.h ('k') | device/udev_linux/udev.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698