13#include <backends/gp_proxy_proto.h>
17typedef struct gp_proxy_cli {
28static inline void gp_proxy_cli_show(gp_proxy_cli *self)
33 gp_proxy_send(self->fd.fd, GP_PROXY_SHOW, NULL);
36static inline void gp_proxy_cli_hide(gp_proxy_cli *self)
41 gp_proxy_send(self->fd.fd, GP_PROXY_HIDE, NULL);
44static inline void gp_proxy_cli_event(gp_proxy_cli *self,
gp_event *ev)
46 if (gp_proxy_send(self->fd.fd, GP_PROXY_EVENT, ev))
50static inline int gp_proxy_cli_send(gp_proxy_cli *self,
51 enum gp_proxy_msg_types type,
54 return gp_proxy_send(self->fd.fd, type, payload);
57struct gp_proxy_cli_ops {
59 void (*on_unmap)(gp_proxy_cli *self);
60 void (*on_map)(gp_proxy_cli *self);
61 void (*on_hide)(gp_proxy_cli *self);
62 void (*on_show)(gp_proxy_cli *self);
71int gp_proxy_cli_read(gp_proxy_cli *self,
struct gp_proxy_cli_ops *ops);
80gp_proxy_cli *gp_proxy_cli_add(
gp_dlist *clients,
int cli_fd);
88void gp_proxy_cli_rem(
gp_dlist *clients, gp_proxy_cli *self);
int gp_coord
Integer type for coordinates i.e. x, y, ...
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
#define GP_WARN(...)
A debug WARN printf-like macro.
A linked list implementation.
A double linked list header.
A double linked list pointers.
An epoll file descriptor.