X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/39677ec76616fe4165ef92afb14db2bef2488e30..272e15c4b7bdeeb258caadb7c62e70c49c12b16d:/util.h diff --git a/util.h b/util.h index 8ba444b..51b0871 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,8 @@ 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); +unsigned char *getselection(unsigned long offset, unsigned long *len, unsigned long *remain);