-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathavs_view.h
More file actions
59 lines (47 loc) · 1.61 KB
/
avs_view.h
File metadata and controls
59 lines (47 loc) · 1.61 KB
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
49
50
51
52
53
54
55
56
57
58
/*
* Wire
* Copyright (C) 2016 Wire Swiss GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AVS_VIEW_H
#define AVS_VIEW_H
typedef void (view_closef)(void);
typedef void (view_showf)(void);
typedef void (view_hidef)(void);
typedef void (set_local_userf)(const char *userid, const char *clientid);
typedef void (vidstate_changedf)(const char *convid,
const char *userid,
const char *clientid,
int state);
typedef int (render_framef)(struct avs_vidframe * frame,
const char *userid,
const char *clientid);
typedef void (preview_startf)(void);
typedef void (preview_stopf)(void);
typedef void (show_mutef)(bool muted);
typedef void (next_pagef)(void);
struct avs_view {
view_closef *view_close;
view_showf *view_show;
view_hidef *view_hide;
set_local_userf *set_local_user;
vidstate_changedf *vidstate_changed;
render_framef *render_frame;
preview_startf *preview_start;
preview_stopf *preview_stop;
show_mutef *show_mute;
next_pagef *next_page;
};
#endif