~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/InitExt.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-12-04 11:43:54 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091204114354-0lik4mbb1bv1a8nw
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add 100_latin_locale_alias.diff (LP 379785)

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
        return (WireToEventType)oldproc;
254
254
}
255
255
 
 
256
typedef Bool (*WireToEventCookieType) (
 
257
    Display*    /* display */,
 
258
    XGenericEventCookie*        /* re */,
 
259
    xEvent*     /* event */
 
260
);
 
261
 
 
262
WireToEventCookieType XESetWireToEventCookie(
 
263
    Display *dpy,       /* display */
 
264
    int extension,      /* extension major opcode */
 
265
    WireToEventCookieType proc /* routine to call for generic events */
 
266
    )
 
267
{
 
268
        WireToEventCookieType oldproc;
 
269
        if (proc == NULL) proc = (WireToEventCookieType)_XUnknownWireEventCookie;
 
270
        LockDisplay (dpy);
 
271
        oldproc = dpy->generic_event_vec[extension & 0x7F];
 
272
        dpy->generic_event_vec[extension & 0x7F] = proc;
 
273
        UnlockDisplay (dpy);
 
274
        return (WireToEventCookieType)oldproc;
 
275
}
 
276
 
 
277
typedef Bool (*CopyEventCookieType) (
 
278
    Display*    /* display */,
 
279
    XGenericEventCookie*        /* in */,
 
280
    XGenericEventCookie*        /* out */
 
281
);
 
282
 
 
283
CopyEventCookieType XESetCopyEventCookie(
 
284
    Display *dpy,       /* display */
 
285
    int extension,      /* extension major opcode */
 
286
    CopyEventCookieType proc /* routine to copy generic events */
 
287
    )
 
288
{
 
289
        CopyEventCookieType oldproc;
 
290
        if (proc == NULL) proc = (CopyEventCookieType)_XUnknownCopyEventCookie;
 
291
        LockDisplay (dpy);
 
292
        oldproc = dpy->generic_event_copy_vec[extension & 0x7F];
 
293
        dpy->generic_event_copy_vec[extension & 0x7F] = proc;
 
294
        UnlockDisplay (dpy);
 
295
        return (CopyEventCookieType)oldproc;
 
296
}
 
297
 
 
298
 
256
299
typedef Status (*EventToWireType) (
257
300
    Display*    /* display */,
258
301
    XEvent*     /* re */,