X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fmicrohttpd-util.h;h=df4d003eb95eaf943c34d54c741a2d48118fa872;hb=d36d90933a832bd1e1eb8e3d16b3de73f91636b4;hp=cd14ac4dcfecbef8aaf27a462d85a0a085fe1c61;hpb=f12be7e8ca278a5a207d0fd051acec700b804a7a;p=elogind.git diff --git a/src/journal/microhttpd-util.h b/src/journal/microhttpd-util.h index cd14ac4dc..df4d003eb 100644 --- a/src/journal/microhttpd-util.h +++ b/src/journal/microhttpd-util.h @@ -28,14 +28,18 @@ void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_(2, 0); -int respond_oom_internal(struct MHD_Connection *connection); - /* respond_oom() must be usable with return, hence this form. */ -#define respond_oom(connection) log_oom(), respond_oom_internal(connection) +#define respond_oom(connection) log_oom(), mhd_respond_oom(connection) + +int mhd_respondf(struct MHD_Connection *connection, + unsigned code, + const char *format, ...) _printf_(3,4); + +int mhd_respond(struct MHD_Connection *connection, + unsigned code, + const char *message); -int respond_error(struct MHD_Connection *connection, - unsigned code, - const char *format, ...); +int mhd_respond_oom(struct MHD_Connection *connection); int check_permissions(struct MHD_Connection *connection, int *code);