-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxroot_stream.h
47 lines (34 loc) · 994 Bytes
/
xroot_stream.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
/*
* Copyright (c) 2017-2018 Ioannis Nompelis
* See "LICENSE" for terms of use
*/
#ifndef _XROOT_STREAM_H_
#define _XROOT_STREAM_H_
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xmu/WinUtil.h>
#include <X11/XWDFile.h>
struct my_xvars {
Display *xdisplay;
Window xroot;
int iscreen;
int iplanes;
unsigned int width, height;
unsigned int iseq,jseq, imax;
XImage *ximage;
XImage **ximage_array;
XImage **ximage_array2;
// char **ichange;
};
int attach_root( struct my_xvars *xvars,
char *display_name,
unsigned int imax );
int refresh_root( struct my_xvars * );
int dettach_root( struct my_xvars * );
int compare_ximage( XImage *ximg1, XImage *ximg2 );
int refresh_root_using( struct my_xvars *,
void func( unsigned int,
int, int, unsigned int, unsigned int,
void * ),
void *arg );
#endif