-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneko_view_app.h
48 lines (40 loc) · 1.03 KB
/
neko_view_app.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
36
37
38
39
40
41
42
43
44
45
46
47
48
//SPDX-License-Identifier: GPL-2.0-or-later
/*
Copyright (c) 2019-2024 Cyril Hrubis <[email protected]>
*/
/**
* @brief A running application.
* @file neko_view_app.h
*/
#ifndef NEKO_VIEW_APP_H
#define NEKO_VIEW_APP_H
/**
* @brief Creates a slot content for a running application.
*
* @param cli A proxy backend client handle.
*
* Displays an application.
*/
neko_view_slot *neko_view_app_init(gp_proxy_cli *cli);
/**
* @brief A poll handler for the app slot.
*
* @param self A gfxprim poll fd. The priv pointer must point to the
* application slot returned from neko_view_app_init().
*/
enum gp_poll_event_ret neko_view_app_event(gp_fd *self);
/**
* @brief A gp_vec of running applications.
*/
extern neko_view_slot **neko_apps;
/**
* @brief Returns a proxy cli handle for a neko_view_app.
*
* This is supposed to be used on the pointers in the #neko_apps array.
*
* @param self A neko_view_slot with an app.
*
* @return A proxy cli handle.
*/
gp_proxy_cli *neko_view_app_cli(neko_view_slot *self);
#endif /* NEKO_VIEW_APP_H */