-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibvenowm.h
35 lines (25 loc) · 1.16 KB
/
libvenowm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef LIBVENOWM_H
#define LIBVENOWM_H
#include <wayland-client.h>
// the venowm client object
struct venowm;
struct venowm *venowm_create();
void venowm_destroy(struct venowm *v);
// return the last error message (buffer is part of struct venowm)
const char *venowm_errmsg(struct venowm *v);
// all remaining functions return -1 on error or 0 on success:
/* Call venowm_connect before any other commands. Set display to non-null to
reuse an existing wayland display connection. */
int venowm_connect(struct venowm *v, struct wl_display *wl_display);
// flush any pending commands (without having to issue an additional command)
int venowm_flush(struct venowm *v);
/* Send commands to venowm. Setting flush=false will tell venowm to wait to
render the command until either a command is sent with flush=true or
venowm_flush is called. */
int venowm_focus_up(struct venowm *v, bool flush);
int venowm_focus_down(struct venowm *v, bool flush);
int venowm_focus_left(struct venowm *v, bool flush);
int venowm_focus_right(struct venowm *v, bool flush);
/* tell venowm to launch a command */
int venowm_launch(struct venowm *v, int argc, char **argv);
#endif // LIBVENOWM_H