* *
**************************************************************************/
-static XExtDisplayInfo *find_display();
+static XExtDisplayInfo *find_display(Display *dpy);
/*
* A reply buffer holds a reply from RecordEnableContext.
Bool display_closed; /* so we know when to free ourself */
};
-static int close_display(dpy, codes)
- Display *dpy;
- XExtCodes *codes; /* not used */
+static int close_display(
+ Display *dpy,
+ XExtCodes *codes) /* not used */
{
XExtDisplayInfo *info = find_display (dpy);
return XextRemoveDisplay(xrecord_info, dpy);
}
-static XPointer alloc_mem_cache()
+static XPointer alloc_mem_cache(void)
{
struct mem_cache_str *cache;
return (XPointer) cache;
}
-static char *xrecord_error_list[] = {
+static const char *xrecord_error_list[] = {
"XRecordBadContext (Not a defined RECORD context)",
};
**************************************************************************/
static void
-SendRange(dpy, range_item, nranges)
- Display *dpy;
- XRecordRange **range_item;
- int nranges;
+SendRange(
+ Display *dpy,
+ XRecordRange **range_item,
+ int nranges)
{
int rlen = SIZEOF(xRecordRange);
while(nranges--)
}
static void
-WireToLibRange(wire_range, lib_range)
- xRecordRange *wire_range;
- XRecordRange *lib_range;
+WireToLibRange(
+ xRecordRange *wire_range,
+ XRecordRange *lib_range)
{
lib_range->core_requests.first = wire_range->coreRequestsFirst;
lib_range->core_requests.last = wire_range->coreRequestsLast;
Xfree(state);
}
-static struct reply_buffer *alloc_reply_buffer(info, nbytes)
- XExtDisplayInfo *info;
- int nbytes;
+static struct reply_buffer *alloc_reply_buffer(
+ XExtDisplayInfo *info,
+ int nbytes)
{
struct mem_cache_str *cache = (struct mem_cache_str *)info->data;
struct reply_buffer *rbp;
return rbp;
}
-static XRecordInterceptData *alloc_inter_data(info)
- XExtDisplayInfo *info;
+static XRecordInterceptData *alloc_inter_data(XExtDisplayInfo *info)
{
struct mem_cache_str *cache = (struct mem_cache_str *)info->data;
struct intercept_queue *iq;
enum parser_return { Continue, End, Error };
static enum parser_return
-parse_reply_call_callback(dpy, info, rep, reply, callback, closure)
- Display *dpy;
- XExtDisplayInfo *info;
- xRecordEnableContextReply *rep;
- struct reply_buffer *reply;
- XRecordInterceptProc callback;
- XPointer closure;
+parse_reply_call_callback(
+ Display *dpy,
+ XExtDisplayInfo *info,
+ xRecordEnableContextReply *rep,
+ struct reply_buffer *reply,
+ XRecordInterceptProc callback,
+ XPointer closure)
{
int current_index;
int datum_bytes = 0;
} record_async_state;
static Bool
-record_async_handler(dpy, rep, buf, len, adata)
- register Display *dpy;
- register xReply *rep;
- char *buf;
- int len;
- XPointer adata;
+record_async_handler(
+ register Display *dpy,
+ register xReply *rep,
+ char *buf,
+ int len,
+ XPointer adata)
{
register record_async_state *state = (record_async_state *)adata;
struct reply_buffer *reply;
* *
*****************************************************************************/
-static int close_display();
+static int close_display(Display *dpy, XExtCodes *codes);
static /* const */ XExtensionHooks xtest_extension_hooks = {
NULL, /* create_gc */
NULL, /* copy_gc */
};
static XPointer
-get_xinput_base(dpy)
- Display *dpy;
+get_xinput_base(Display *dpy)
{
int major_opcode, first_event, first_error;
first_event = 0;
}
static void
-send_axes(dpy, info, req, dev, first_axis, axes, n_axes)
- Display *dpy;
- XExtDisplayInfo *info;
- xXTestFakeInputReq *req;
- XDevice *dev;
- int first_axis;
- int *axes;
- int n_axes;
+send_axes(
+ Display *dpy,
+ XExtDisplayInfo *info,
+ xXTestFakeInputReq *req,
+ XDevice *dev,
+ int first_axis,
+ int *axes,
+ int n_axes)
{
deviceValuator ev;
int n;