summaryrefslogtreecommitdiffstats
path: root/include/util.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-06-11 15:02:26 -0400
committerLibravatar GitHub <noreply@github.com>2016-06-11 15:02:26 -0400
commit6388e1e288009fc12af3fe418a6faf8cfe9926f7 (patch)
treed1b4fb33848d09c71602005c57919a903ce3d72d /include/util.h
parentMany improvements to man pages (diff)
parentcleanup + add timeouts for pid_workspace list (diff)
downloadsway-6388e1e288009fc12af3fe418a6faf8cfe9926f7.tar.gz
sway-6388e1e288009fc12af3fe418a6faf8cfe9926f7.tar.zst
sway-6388e1e288009fc12af3fe418a6faf8cfe9926f7.zip
Merge pull request #701 from zandrmartin/assign-command
messy start of a fix for #462
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
index dc47e343..6f21bff0 100644
--- a/include/util.h
+++ b/include/util.h
@@ -2,6 +2,7 @@
2#define _SWAY_UTIL_H 2#define _SWAY_UTIL_H
3 3
4#include <stdint.h> 4#include <stdint.h>
5#include <unistd.h>
5#include <wlc/wlc.h> 6#include <wlc/wlc.h>
6#include <xkbcommon/xkbcommon.h> 7#include <xkbcommon/xkbcommon.h>
7 8
@@ -36,4 +37,11 @@ const char *get_modifier_name_by_mask(uint32_t modifier);
36 */ 37 */
37int get_modifier_names(const char **names, uint32_t modifier_masks); 38int get_modifier_names(const char **names, uint32_t modifier_masks);
38 39
40/**
41 * Get the pid of a parent process given the pid of a child process.
42 *
43 * Returns the parent pid or NULL if the parent pid cannot be determined.
44 */
45pid_t get_parent_pid(pid_t pid);
46
39#endif 47#endif