Functions | Variables

src/debug.c File Reference

#include <stdio.h>
#include <xcb/xcb.h>
#include "log.h"
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

int format_event (xcb_generic_event_t *e)
int handle_event (void *ignored, xcb_connection_t *c, xcb_generic_event_t *e)

Variables

static const char * labelError []
static const char * labelRequest []
static const char * labelEvent []
static const char * labelSendEvent []

Function Documentation

int format_event ( xcb_generic_event_t *  e  ) 

Definition at line 214 of file debug.c.

References DLOG, labelError, labelEvent, labelRequest, and labelSendEvent.

Referenced by handle_event().

int handle_event ( void *  ignored,
xcb_connection_t *  c,
xcb_generic_event_t *  e 
)

Definition at line 248 of file debug.c.

References format_event().

Referenced by drag_pointer(), and main().

Here is the call graph for this function:


Variable Documentation

const char* labelError[] [static]
Initial value:
 {
    "Success",
    "BadRequest",
    "BadValue",
    "BadWindow",
    "BadPixmap",
    "BadAtom",
    "BadCursor",
    "BadFont",
    "BadMatch",
    "BadDrawable",
    "BadAccess",
    "BadAlloc",
    "BadColor",
    "BadGC",
    "BadIDChoice",
    "BadName",
    "BadLength",
    "BadImplementation",
}

Definition at line 19 of file debug.c.

Referenced by format_event().

const char* labelEvent[] [static]

Definition at line 171 of file debug.c.

Referenced by format_event().

const char* labelRequest[] [static]

Definition at line 40 of file debug.c.

Referenced by format_event().

const char* labelSendEvent[] [static]
Initial value:
 {
    "",
    " (from SendEvent)",
}

Definition at line 209 of file debug.c.

Referenced by format_event().