chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: add udev_device_new_from_environment()
[elogind.git]
/
libudev
/
libudev-list.c
diff --git
a/libudev/libudev-list.c
b/libudev/libudev-list.c
index bd9792ad6cc0106bde0cbc8d9ab2610d3fb15ca1..b5e96458cc26657d3333b39b5ef2734f65531ae4 100644
(file)
--- a/
libudev/libudev-list.c
+++ b/
libudev/libudev-list.c
@@
-19,10
+19,18
@@
#include "libudev.h"
#include "libudev-private.h"
#include "libudev.h"
#include "libudev-private.h"
+/**
+ * SECTION:libudev-list
+ * @short_description: list operation
+ *
+ * Libudev list operations.
+ */
+
/**
* udev_list_entry:
*
/**
* udev_list_entry:
*
- * One entry in a list, containing a name and an optional value.
+ * Opaque object representing one entry in a list. An entry contains
+ * contains a name, and optionally a value.
*/
struct udev_list_entry {
struct udev_list_node node;
*/
struct udev_list_entry {
struct udev_list_node node;
@@
-30,7
+38,7
@@
struct udev_list_entry {
struct udev_list_node *list;
char *name;
char *value;
struct udev_list_node *list;
char *name;
char *value;
-
int flag
;
+
unsigned int flags
;
};
/* list head point to itself if empty */
};
/* list head point to itself if empty */
@@
-250,16
+258,16
@@
const char *udev_list_entry_get_value(struct udev_list_entry *list_entry)
return list_entry->value;
}
return list_entry->value;
}
-
int udev_list_entry_get_flag
(struct udev_list_entry *list_entry)
+
unsigned int udev_list_entry_get_flags
(struct udev_list_entry *list_entry)
{
if (list_entry == NULL)
return -EINVAL;
{
if (list_entry == NULL)
return -EINVAL;
- return list_entry->flag;
+ return list_entry->flag
s
;
}
}
-void udev_list_entry_set_flag
(struct udev_list_entry *list_entry, int flag
)
+void udev_list_entry_set_flag
s(struct udev_list_entry *list_entry, unsigned int flags
)
{
if (list_entry == NULL)
return;
{
if (list_entry == NULL)
return;
- list_entry->flag
= flag
;
+ list_entry->flag
s = flags
;
}
}