X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=util.h;h=8c9dea801eec0651d041f126505b636f38d8313c;hb=ab8ea24411df95861c53aeee1dd91e765331f717;hp=a9c430f722f8b0749cf2e4ed43cb5932ca528515;hpb=79d6d8160834fdfc964f4b8b2a6b7fb32c7b36c9;p=elogind.git diff --git a/util.h b/util.h index a9c430f72..8c9dea801 100644 --- a/util.h +++ b/util.h @@ -3,6 +3,25 @@ #ifndef fooutilhfoo #define fooutilhfoo +/*** + This file is part of systemd. + + Copyright 2010 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with systemd; If not, see . +***/ + #include #include #include @@ -121,6 +140,9 @@ char *ascii_strlower(char *path); char *xescape(const char *s, const char *bad); +char *bus_path_escape(const char *s); +char *bus_path_unescape(const char *s); + #define DEFINE_STRING_TABLE_LOOKUP(name,type) \ const char *name##_to_string(type i) { \ if (i < 0 || i >= (type) ELEMENTSOF(name##_table)) \