maomaowm/src/common/util.h

10 lines
403 B
C
Raw Normal View History

2025-02-03 23:18:47 +08:00
/* See LICENSE.dwm file for copyright and license details. */
2025-08-16 18:10:44 +08:00
#include <wayland-util.h>
2025-02-03 23:18:47 +08:00
void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size);
2025-04-13 09:05:09 +08:00
int fd_set_nonblock(int fd);
2025-05-18 18:26:06 +08:00
int regex_match(const char *pattern_mb, const char *str_mb);
2025-08-16 18:10:44 +08:00
void wl_list_append(struct wl_list *list, struct wl_list *object);
unsigned int get_now_in_ms(void);
unsigned int timespec_to_ms(struct timespec *ts);