X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=util.h;h=4b82cefa4f33ea9e33a0c12350fd563e16e27587;hb=8a8b7956b6de80decbfd3bff6d2ad6e5bb69b2bd;hp=8ba444b0d845d6217d6da9b2009fe661c7458111;hpb=39677ec76616fe4165ef92afb14db2bef2488e30;p=dwm.git diff --git a/util.h b/util.h index 8ba444b..4b82cef 100644 --- a/util.h +++ b/util.h @@ -2,6 +2,7 @@ * (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. */ +#include extern void error(char *errstr, ...); extern void *emallocz(unsigned int size); @@ -12,5 +13,7 @@ extern char *estrdup(const char *str); if(!(a)) \ failed_assert(#a, __FILE__, __LINE__); \ } while (0) -void failed_assert(char *a, char *file, int line); -void swap(void **p1, void **p2); +extern void failed_assert(char *a, char *file, int line); +void pipe_spawn(char *buf, unsigned int len, Display *dpy, const char *cmd); +extern void spawn(Display *dpy, const char *cmd); +extern void swap(void **p1, void **p2);