summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-03 23:12:16 +0200
committerMattias Andrée <maandree@kth.se>2017-07-03 23:12:16 +0200
commit87719884e259bcf11794cba30c8b8df5ef10a1cd (patch)
tree43afee9eb7815216674459c0e791edcb34c42218 /common.h
parentFirst commit (diff)
downloadbff-87719884e259bcf11794cba30c8b8df5ef10a1cd.tar.gz
bff-87719884e259bcf11794cba30c8b8df5ef10a1cd.tar.bz2
bff-87719884e259bcf11794cba30c8b8df5ef10a1cd.tar.xz
Add bff-premultiply and bff-unpremultiply
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/common.h b/common.h
new file mode 100644
index 0000000..ff9732c
--- /dev/null
+++ b/common.h
@@ -0,0 +1,22 @@
+/* See LICENSE file for copyright and license details. */
+#include <sys/prctl.h>
+#include <sys/wait.h>
+#include <signal.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "arg.h"
+
+#define USAGE(SYNOPSIS)\
+ static void usage(void)\
+ { eprintf("usage: %s%s%s\n", argv0, *SYNOPSIS ? " " : "", SYNOPSIS); }
+
+void eprintf(const char *fmt, ...);
+
+void bff_begin(void);
+void bff_end(void);
+pid_t bff_run(const char **args, int in, int out);
+void bff_wait(pid_t pid, const char *cmd);