summaryrefslogtreecommitdiff
path: root/src/libudev/env-util.h
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-06-04 11:27:50 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-06-04 11:45:41 -0400
commitd347f1c510f83f3e8e7d6e028e37419979b08029 (patch)
treebcd53f89b0d24bc728d08997df15acd18f94ddf8 /src/libudev/env-util.h
parent00e01c3841eb1ab67ab4d358731740ae836c64b8 (diff)
src/libudev/util.c: bring in line with upstream
To bring this in line with upstream, we had to add in env-util.c. The approach we will take is to slim down upstream's "shared" code so that it only contains functions and macros for what we need. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/env-util.h')
-rw-r--r--src/libudev/env-util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/libudev/env-util.h b/src/libudev/env-util.h
new file mode 100644
index 0000000000..61a5332d63
--- /dev/null
+++ b/src/libudev/env-util.h
@@ -0,0 +1,24 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+#pragma once
+
+/***
+ This file is part of systemd.
+
+ Copyright 2013 Lennart Poettering
+
+ 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/>.
+***/
+
+char *strv_env_get_n(char **l, const char *name, size_t k) _pure_;