diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2013-02-12 13:36:23 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2013-02-12 13:36:23 +0000 |
commit | 6204a046f3d3c610925afe8bba404bbb2f0f0c4d (patch) | |
tree | c95fa62c57ae2f8bc7abc56a535d8fa027243860 /src/libudev/libudev.h | |
parent | 8fee3eb8a8550892d0dcf4431b861aacd49e57ec (diff) | |
parent | dee4c244254bb49d1ffa8bd7171ae9cce596d2d0 (diff) | |
download | systemd-6204a046f3d3c610925afe8bba404bbb2f0f0c4d.tar.gz |
Merge tag 'v197' into pauls-trove/sd-update
systemd 197
Diffstat (limited to 'src/libudev/libudev.h')
-rw-r--r-- | src/libudev/libudev.h | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/src/libudev/libudev.h b/src/libudev/libudev.h index 86439849b1..bb41532a21 100644 --- a/src/libudev/libudev.h +++ b/src/libudev/libudev.h @@ -1,13 +1,21 @@ -/* - * libudev - interface to udev device information - * - * Copyright (C) 2008-2011 Kay Sievers <kay.sievers@vrfy.org> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - */ +/*** + This file is part of systemd. + + Copyright 2008-2012 Kay Sievers <kay@vrfy.org> + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +***/ #ifndef _LIBUDEV_H_ #define _LIBUDEV_H_ @@ -73,6 +81,7 @@ struct udev *udev_device_get_udev(struct udev_device *udev_device); struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, dev_t devnum); struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname); +struct udev_device *udev_device_new_from_device_id(struct udev *udev, char *id); struct udev_device *udev_device_new_from_environment(struct udev *udev); /* udev_device_get_parent_*() does not take a reference on the returned device, it is automatically unref'd with the parent */ struct udev_device *udev_device_get_parent(struct udev_device *udev_device); @@ -170,6 +179,17 @@ int udev_queue_get_seqnum_sequence_is_finished(struct udev_queue *udev_queue, struct udev_list_entry *udev_queue_get_queued_list_entry(struct udev_queue *udev_queue); /* + * udev_hwdb + * + * access to the static hardware properties database + */ +struct udev_hwdb; +struct udev_hwdb *udev_hwdb_new(struct udev *udev); +struct udev_hwdb *udev_hwdb_ref(struct udev_hwdb *hwdb); +struct udev_hwdb *udev_hwdb_unref(struct udev_hwdb *hwdb); +struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags); + +/* * udev_util * * udev specific utilities |