synthesize.h revision 5f6cb091278906423f8b7e70c40131db7269916a
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack#pragma once
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack/***
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack This file is part of systemd.
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack Copyright 2014 Lennart Poettering
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack systemd is free software; you can redistribute it and/or modify it
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack under the terms of the GNU Lesser General Public License as published by
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack the Free Software Foundation; either version 2.1 of the License, or
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack (at your option) any later version.
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack systemd is distributed in the hope that it will be useful, but
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack WITHOUT ANY WARRANTY; without even the implied warranty of
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack Lesser General Public License for more details.
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack You should have received a copy of the GNU Lesser General Public License
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack along with systemd; If not, see <http://www.gnu.org/licenses/>.
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack***/
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack#include "sd-bus.h"
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mack
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mackint synthetic_reply_method_return(sd_bus_message *call, const char *types, ...);
1433efd219a6df414a1821b3d3d70d86201ed3e4Lennart Poetteringint synthetic_reply_method_return_strv(sd_bus_message *call, char **l);
1433efd219a6df414a1821b3d3d70d86201ed3e4Lennart Poettering
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mackint synthetic_reply_method_error(sd_bus_message *call, const sd_bus_error *e);
5f6cb091278906423f8b7e70c40131db7269916aLennart Poetteringint synthetic_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) _sd_printf_(3, 4);
f3c4724635951c5b8a2b3f3c3f25798ce4d290cdDaniel Mackint synthetic_reply_method_errno(sd_bus_message *call, int error, const sd_bus_error *p);
5f6cb091278906423f8b7e70c40131db7269916aLennart Poetteringint synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) _sd_printf_(3, 4);
5f6cb091278906423f8b7e70c40131db7269916aLennart Poettering
5e2de0eb1dff7bb86b40c16a0a9c9c4de33e77d1Daniel Mackint synthesize_name_acquired(sd_bus *a, sd_bus *b, sd_bus_message *m);