X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fblkid-util.h;h=b596daddf21ea717ade4f4ced0b18ca79cc7d389;hb=0a763769282e494dc3c4ef192f3e763931179817;hp=c689310324f02ddf53bb745b84b367a57ba6f34e;hpb=1b9e5b126359a2a2ec37de1f94f046093abc74b8;p=elogind.git diff --git a/src/shared/blkid-util.h b/src/shared/blkid-util.h index c68931032..b596daddf 100644 --- a/src/shared/blkid-util.h +++ b/src/shared/blkid-util.h @@ -21,13 +21,17 @@ along with systemd; If not, see . ***/ -#ifdef HAVE_BLKID -#include -#endif +#include "sd-bus.h" +#include "proxy.h" -#include "util.h" +int synthetic_driver_send(sd_bus *b, sd_bus_message *m); -#ifdef HAVE_BLKID -DEFINE_TRIVIAL_CLEANUP_FUNC(blkid_probe, blkid_free_probe); -#define _cleanup_blkid_free_probe_ _cleanup_(blkid_free_probep) -#endif +int synthetic_reply_method_return(sd_bus_message *call, const char *types, ...); +int synthetic_reply_method_return_strv(sd_bus_message *call, char **l); + +int synthetic_reply_method_error(sd_bus_message *call, const sd_bus_error *e); +int synthetic_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) _sd_printf_(3, 4); +int synthetic_reply_method_errno(sd_bus_message *call, int error, const sd_bus_error *p); +int synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) _sd_printf_(3, 4); + +int synthesize_name_acquired(Proxy *p, sd_bus *a, sd_bus *b, sd_bus_message *m);