chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added the cdrom.h #defines directly into the cdrom_id.c file
[elogind.git]
/
udev_utils.h
diff --git
a/udev_utils.h
b/udev_utils.h
index 3e372dd9480402e18b7cae12e72afb9b343cb6fa..a3fc283203cbab8760ed5b7bc1dc77fbbfec6068 100644
(file)
--- a/
udev_utils.h
+++ b/
udev_utils.h
@@
-1,8
+1,7
@@
/*
/*
- * udev_lib - generic stuff used by udev
- *
- * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
+ * udev_utils.c - generic stuff used by udev
*
*
+ * Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-19,19
+18,20
@@
*
*/
*
*/
-#ifndef _UDEV_
LIB
_H_
-#define _UDEV_
LIB
_H_
+#ifndef _UDEV_
COMMON
_H_
+#define _UDEV_
COMMON
_H_
#include "udev.h"
#include "udev.h"
+#include "list.h"
+
+#define UDEV_MAX(a,b) ((a) > (b) ? (a) : (b))
struct name_entry {
struct list_head node;
char name[PATH_SIZE];
};
struct name_entry {
struct list_head node;
char name[PATH_SIZE];
};
-extern int udev_init_device(struct udevice *udev, const char* devpath, const char *subsystem, const char *action);
-extern void udev_cleanup_device(struct udevice *udev);
-
+extern int strcmp_pattern(const char *p, const char *s);
extern int kernel_release_satisfactory(unsigned int version, unsigned int patchlevel, unsigned int sublevel);
extern int create_path(const char *path);
extern int log_priority(const char *priority);
extern int kernel_release_satisfactory(unsigned int version, unsigned int patchlevel, unsigned int sublevel);
extern int create_path(const char *path);
extern int log_priority(const char *priority);
@@
-44,7
+44,10
@@
extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);
extern void remove_trailing_char(char *path, char c);
extern void replace_untrusted_chars(char *string);
extern int name_list_add(struct list_head *name_list, const char *name, int sort);
extern void remove_trailing_char(char *path, char c);
extern void replace_untrusted_chars(char *string);
extern int name_list_add(struct list_head *name_list, const char *name, int sort);
+extern int name_list_key_add(struct list_head *name_list, const char *key, const char *value);
extern int add_matching_files(struct list_head *name_list, const char *dirname, const char *suffix);
extern int add_matching_files(struct list_head *name_list, const char *dirname, const char *suffix);
-extern int execute_command(const char *command, const char *subsystem);
+extern int pass_env_to_socket(const char *name, const char *devpath, const char *action);
+extern int run_program(const char *command, const char *subsystem,
+ char *result, size_t ressize, size_t *reslen, int log);
#endif
#endif