-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflasher.h
More file actions
52 lines (36 loc) · 1.29 KB
/
flasher.h
File metadata and controls
52 lines (36 loc) · 1.29 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
/*==========================================================================*\
*
* flasher.h - Standalone Adobe Flash (TM) 7 player window.
* flasher (C) 2006 Alex Graveley
*
\*==========================================================================*/
#ifndef __FLASHER_H__
#define __FLASHER_H__
#define PROGRAM_NAME "flasher"
#include <stdio.h>
#include <X11/Intrinsic.h> /* for XtAppContext */
#define XP_UNIX 1
#define MOZ_X11 1
#include "npapi.h"
#include "npupp.h"
/*==========================================================================*\
* Logging utils...
\*==========================================================================*/
/* #define DEBUG */
#ifdef DEBUG
#define Debug(fmt...) Log(fmt)
#else
#define Debug(fmt...) do {} while (0)
#endif
#define Log(fmt...) printf(fmt)
#define Warning(fmt...) Log("WARNING: " fmt)
#define Error(fmt...) Log("ERROR: " fmt); exit(1)
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define NOT_IMPLEMENTED() \
Warning("Unimplemented function %s at line %d\n", __func__, __LINE__)
/*==========================================================================*\
* Globals...
\*==========================================================================*/
extern XtAppContext x_app_context;
extern NPPluginFuncs plugin_funcs;
#endif /* __FLASHER_H__ */