This commit is contained in:
Pavel Shramov 2019-10-27 16:37:47 +00:00 committed by GitHub
commit 76d9c56aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 185 additions and 213 deletions

14
include/sway/util.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef _SWAY_SWAY_UTIL_H
#define _SWAY_SWAY_UTIL_H
#include <spawn.h>
/**
* Close fd and log theoretical case when close(2) failed
*/
void close_warn(int fd);
struct wl_client *spawn_wl_client(char * const cmd[], struct wl_display *display);
struct wl_client *spawn_wl_client_fa(char * const cmd[], struct wl_display *display, posix_spawn_file_actions_t *fa);
#endif//_SWAY_SWAY_UTIL_H