summaryrefslogtreecommitdiff
path: root/xtraplib.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 19:27:47 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 19:27:47 -0200
commit0fe78008d234d5f87e09588f5fabb7231882019f (patch)
treef168e7937e0aceb5855a5f7372e845c7fe85042b /xtraplib.h
parent905d83be89b54fbe54762f9cba592edf40bd26f9 (diff)
Janitor: Ansification of and missing prototypes.
This corrects compiler warnings in lib/libXTrap and app/xtrap.
Diffstat (limited to 'xtraplib.h')
-rw-r--r--xtraplib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/xtraplib.h b/xtraplib.h
index f3f273a..db0289f 100644
--- a/xtraplib.h
+++ b/xtraplib.h
@@ -52,6 +52,11 @@ SOFTWARE.
#include <X11/extensions/xtrapdi.h>
#include <X11/extensions/xtrapemacros.h>
+typedef struct _XETC XETC;
+
+typedef int (*int_function)(XETC *tc, XETrapDatum *pdatum, BYTE *userp);
+typedef void (*void_function)(XETC *tc, XETrapDatum *pdatum, BYTE *userp);
+
typedef struct /* Callback structure */
{
void_function func;
@@ -100,7 +105,7 @@ typedef struct {
} XETrapDataEvent;
/* Trap Context structure for maintaining XTrap State for client */
-typedef struct _XETC
+struct _XETC
{
struct _XETC *next; /* Ptr to next linked-listed TC */
Display *dpy; /* Display ptr of current TC */
@@ -122,7 +127,7 @@ typedef struct _XETC
unsigned dirty /*B32*/; /* cache dirty bits */
XETCValues values; /* shadow structure of values */
Boolean (*eventFunc[XETrapNumberEvents])(XETrapDataEvent *event, struct _XETC *tc);
-} XETC;
+};
#endif /* __XTRAPLIB__ */