2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek This file is part of systemd.
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek Copyright 2014 Zbigniew Jędrzejewski-Szmek
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek systemd is free software; you can redistribute it and/or modify it
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek under the terms of the GNU Lesser General Public License as published by
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek the Free Software Foundation; either version 2.1 of the License, or
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek (at your option) any later version.
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek systemd is distributed in the hope that it will be useful, but
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek WITHOUT ANY WARRANTY; without even the implied warranty of
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek Lesser General Public License for more details.
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek You should have received a copy of the GNU Lesser General Public License
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek along with systemd; If not, see <http://www.gnu.org/licenses/>.
8eea868708923a092ee85d6146ba4c04b7baea06Zbigniew Jędrzejewski-Szmekint drop_in_file(const char *dir, const char *unit, unsigned level,
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek const char *name, char **_p, char **_q);
8eea868708923a092ee85d6146ba4c04b7baea06Zbigniew Jędrzejewski-Szmekint write_drop_in(const char *dir, const char *unit, unsigned level,
2968644080fd103062f070e83edd620e0a58c44dZbigniew Jędrzejewski-Szmek const char *name, const char *data);
8eea868708923a092ee85d6146ba4c04b7baea06Zbigniew Jędrzejewski-Szmekint write_drop_in_format(const char *dir, const char *unit, unsigned level,
f5a4b0d3534bb13ef734a857647ab04be236c6f3Thomas Hindoe Paaboel Andersen const char *name, const char *format, ...) _printf_(5, 6);
1a7f1b385cd9de8a0da934fadc379860f914ef33Zbigniew Jędrzejewski-Szmek * This callback will be called for each directory entry @entry,
1a7f1b385cd9de8a0da934fadc379860f914ef33Zbigniew Jędrzejewski-Szmek * with @filepath being the full path to the entry.
1a7f1b385cd9de8a0da934fadc379860f914ef33Zbigniew Jędrzejewski-Szmek * If return value is negative, loop will be aborted.