diff options
Diffstat (limited to 'tools/common.h')
-rw-r--r-- | tools/common.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/common.h b/tools/common.h index 09a9242..84889d3 100644 --- a/tools/common.h +++ b/tools/common.h @@ -50,6 +50,8 @@ #include <stdint.h> +#include <popt.h> + #include <amqp.h> #include <amqp_framing.h> @@ -60,6 +62,8 @@ extern void die(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); extern void die_errno(int err, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); +extern void die_amqp_error(int err, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); extern void die_rpc(amqp_rpc_reply_t r, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); @@ -73,14 +77,6 @@ extern void write_all(int fd, amqp_bytes_t data); extern void copy_body(amqp_connection_state_t conn, int fd); -struct pipeline { - int pid; - int infd; -}; - -extern void pipeline(const char * const *argv, struct pipeline *pl); -extern int finish_pipeline(struct pipeline *pl); - #define INCLUDE_OPTIONS(options) \ {NULL, 0, POPT_ARG_INCLUDE_TABLE, options, 0, options ## _title, NULL} |