Lines Matching refs:extension
167 /* Reset extension. Called on server shutdown. */
175 /* Calls the registered event swap function for the extension.
177 * Each extension can register a swap function to handle GenericEvents being
188 if ((gefrom->extension & 0x7f) > MAXEXTENSIONS)
190 ErrorF("GE: Invalid extension offset for event.\n");
194 if (GEExtensions[gefrom->extension & 0x7F].evswap)
195 GEExtensions[gefrom->extension & 0x7F].evswap(gefrom, geto);
198 /* Init extension, register at server.
200 * idea to init XGE first, before any other extension.
233 /* Register an extension with GE. The given swap function will be called each
235 * @param extension The extensions major opcode
237 * @param ev_fill Called for an event before delivery. The extension now has
241 GERegisterExtension(int extension,
244 if ((extension & 0x7F) >= MAXEXTENSIONS)
245 FatalError("GE: extension > MAXEXTENSIONS. This should not happen.\n");
247 /* extension opcodes are > 128, might as well save some space here */
248 GEExtensions[extension & 0x7f].evswap = ev_swap;
252 /* Sets type and extension field for a generic event. This is just an
256 GEInitEvent(xGenericEvent* ev, int extension)
259 ev->extension = extension;