chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keymap: Add Dell XPS force-release quirk
[elogind.git]
/
src
/
udev
/
libudev-list.c
diff --git
a/src/udev/libudev-list.c
b/src/udev/libudev-list.c
index 4bdef35ae83da0b364c057b8a90e9405f44e8f9f..054c0a931cdf0905627228c51b601a40420b4772 100644
(file)
--- a/
src/udev/libudev-list.c
+++ b/
src/udev/libudev-list.c
@@
-148,17
+148,14
@@
struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *
if (i >= 0) {
entry = list->entries[i];
if (i >= 0) {
entry = list->entries[i];
- dbg(list->udev, "'%s' is already in the list\n", name);
free(entry->value);
if (value == NULL) {
entry->value = NULL;
free(entry->value);
if (value == NULL) {
entry->value = NULL;
- dbg(list->udev, "'%s' value unset\n", name);
return entry;
}
entry->value = strdup(value);
if (entry->value == NULL)
return NULL;
return entry;
}
entry->value = strdup(value);
if (entry->value == NULL)
return NULL;
- dbg(list->udev, "'%s' value replaced with '%s'\n", name, value);
return entry;
}
}
return entry;
}
}
@@
-216,7
+213,6
@@
struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *
udev_list_entry_append(entry, list);
}
udev_list_entry_append(entry, list);
}
- dbg(list->udev, "'%s=%s' added\n", entry->name, entry->value);
return entry;
}
return entry;
}
@@
-267,7
+263,7
@@
struct udev_list_entry *udev_list_get_entry(struct udev_list *list)
*
* Returns: the next entry from the list, #NULL is no more entries are found.
*/
*
* Returns: the next entry from the list, #NULL is no more entries are found.
*/
-
UDEV_EXPORT
struct udev_list_entry *udev_list_entry_get_next(struct udev_list_entry *list_entry)
+
_public_
struct udev_list_entry *udev_list_entry_get_next(struct udev_list_entry *list_entry)
{
struct udev_list_node *next;
{
struct udev_list_node *next;
@@
-287,7
+283,7
@@
UDEV_EXPORT struct udev_list_entry *udev_list_entry_get_next(struct udev_list_en
*
* Returns: the entry where @name matched, #NULL if no matching entry is found.
*/
*
* Returns: the entry where @name matched, #NULL if no matching entry is found.
*/
-
UDEV_EXPORT
struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list_entry *list_entry, const char *name)
+
_public_
struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list_entry *list_entry, const char *name)
{
int i;
{
int i;
@@
-309,7
+305,7
@@
UDEV_EXPORT struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list
*
* Returns: the name string of this entry.
*/
*
* Returns: the name string of this entry.
*/
-
UDEV_EXPORT
const char *udev_list_entry_get_name(struct udev_list_entry *list_entry)
+
_public_
const char *udev_list_entry_get_name(struct udev_list_entry *list_entry)
{
if (list_entry == NULL)
return NULL;
{
if (list_entry == NULL)
return NULL;
@@
-322,7
+318,7
@@
UDEV_EXPORT const char *udev_list_entry_get_name(struct udev_list_entry *list_en
*
* Returns: the value string of this entry.
*/
*
* Returns: the value string of this entry.
*/
-
UDEV_EXPORT
const char *udev_list_entry_get_value(struct udev_list_entry *list_entry)
+
_public_
const char *udev_list_entry_get_value(struct udev_list_entry *list_entry)
{
if (list_entry == NULL)
return NULL;
{
if (list_entry == NULL)
return NULL;