libudev-list.c revision ad29a9f14fa8b1932c0e418bfcf1c10ce6a35a33
17N/A * libudev - interface to udev device information 17N/A * Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org> 17N/A * This library is free software; you can redistribute it and/or 17N/A * modify it under the terms of the GNU Lesser General Public 17N/A * License as published by the Free Software Foundation; either 17N/A * version 2.1 of the License, or (at your option) any later version. 17N/A * SECTION:libudev-list 17N/A * @short_description: list operation 17N/A * Libudev list operations. 17N/A * Opaque object representing one entry in a list. An entry contains 17N/A * contains a name, and optionally a value. 17N/A/* the list's head points to itself if empty */ /* return list entry which embeds this node */ /* insert entry into a list as the last element */ /* inserting before the list head make the node the last node in the list */ /* insert entry into a list, before a given existing entry */ /* binary search in sorted array */ /* not found, return negative insertion-index+1 */ /* lookup existing name or insertion-index */ /* allocate or enlarge sorted array if needed */ /* the negative i returned the insertion index */ /* insert into sorted list */ /* insert into sorted array */ /* remove entry from sorted array */ * udev_list_entry_get_next: * @list_entry: current entry * Returns: the next entry from the list, #NULL is no more entries are found. /* empty list or no more entries */ * udev_list_entry_get_by_name: * @list_entry: current entry * @name: name string to match * Returns: the entry where @name matched, #NULL if no matching entry is found. * udev_list_entry_get_name: * @list_entry: current entry * Returns: the name string of this entry. * udev_list_entry_get_value: * @list_entry: current entry * Returns: the value string of this entry.