~ubuntu-branches/ubuntu/precise/x11proto-core/precise

« back to all changes in this revision

Viewing changes to Xproto.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2008-11-07 21:15:15 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081107211515-lma68y8l06mj1361
Tags: 7.0.14-1
* debian/control: x-dev is in Section: libdevel, not x11.
* New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1212
1212
    } u;
1213
1213
} xEvent;
1214
1214
 
 
1215
/*********************************************************
 
1216
 *
 
1217
 * Generic event
 
1218
 * 
 
1219
 * Those events are not part of the core protocol spec and can be used by
 
1220
 * various extensions.
 
1221
 * type is always GenericEvent
 
1222
 * extension is the minor opcode of the extension the event belongs to.
 
1223
 * evtype is the actual event type, unique __per extension__. 
 
1224
 *
 
1225
 * GenericEvents can be longer than 32 bytes, with the length field
 
1226
 * specifying the number of 4 byte blocks after the first 32 bytes. 
 
1227
 *
 
1228
 *
 
1229
 */
 
1230
typedef struct 
 
1231
{
 
1232
    BYTE    type;
 
1233
    CARD8   extension;
 
1234
    CARD16  sequenceNumber B16;
 
1235
    CARD32  length B32;
 
1236
    CARD16  evtype B16;
 
1237
    CARD16  pad2 B16;
 
1238
    CARD32  pad3 B32;
 
1239
    CARD32  pad4 B32;
 
1240
    CARD32  pad5 B32;
 
1241
    CARD32  pad6 B32;
 
1242
    CARD32  pad7 B32;
 
1243
} xGenericEvent;
 
1244
 
 
1245
 
 
1246
 
1215
1247
/* KeymapNotify events are not included in the above union because they
1216
1248
   are different from all other events: they do not have a "detail"
1217
1249
   or "sequenceNumber", so there is room for a 248-bit key mask. */