dockapps/wmifinfo/xutils.h
Doug Torrance 342325db8e wmifinfo: Use extern when declaring global variables in header file.
Avoids a FTBFS when compiling with -fno-common, which will be default in
GCC 10.
2020-04-17 17:57:38 +01:00

48 lines
882 B
C

#ifndef WMGENERAL_H_INCLUDED
#define WMGENERAL_H_INCLUDED
/*
* Typedefs
*/
typedef struct {
Pixmap pixmap;
Pixmap mask;
XpmAttributes attributes;
} XpmIcon;
/*
* Global variable
*/
extern Display *display;
extern Window Root;
extern Window iconwin, win;
extern int screen;
extern int DisplayDepth;
/*
* Function Prototypes
*/
void AddMouseRegion(int, int, int, int, int);
int CheckMouseRegion(int, int);
void openXwindow(int, char **, char **, char *, int, int, char *, char *, char *, char *,char *);
void initXwindow(int, char **);
void RedrawWindow(void);
void RedrawWindowXY(int, int);
void copyXPMArea(int, int, int, int, int, int);
void copyXBMArea(int, int, int, int, int, int);
void setMaskXY(int, int);
unsigned long getColor(char *, float);
void RedrawWindow(void);
#endif