maomaowm/src/common/util.h

10 lines
407 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);
int32_t fd_set_nonblock(int32_t fd);
int32_t 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);
2025-12-02 16:57:24 +08:00
uint32_t get_now_in_ms(void);
uint32_t timespec_to_ms(struct timespec *ts);