File: context.h

package info (click to toggle)
wl-mirror 0.18.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 688 kB
  • sloc: ansic: 4,886; xml: 2,062; sh: 284; makefile: 54
file content (28 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (3)
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
#ifndef WL_MIRROR_CONTEXT_H_
#define WL_MIRROR_CONTEXT_H_

#include <stdint.h>
#include <stdbool.h>
#include <stdnoreturn.h>

#include <wlm/log.h>
#include <wlm/options.h>
#include <wlm/event.h>
#include <wlm/stream.h>
#include <wlm/wayland.h>
#include <wlm/egl.h>
#include <wlm/mirror.h>

typedef struct ctx {
    ctx_opt_t opt;
    ctx_event_t event;
    ctx_stream_t stream;
    ctx_wl_t wl;
    ctx_egl_t egl;
    ctx_mirror_t mirror;
} ctx_t;

noreturn void wlm_exit_fail(ctx_t * ctx);
void wlm_cleanup(ctx_t * ctx);

#endif