summaryrefslogtreecommitdiff
path: root/Xext/geext.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-05-17 17:59:02 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-05-17 17:59:02 +0930
commit333bab4b235801efd2b2de5b60df5b0c44048d3e (patch)
treede742ef0c84bb51a725dcb3c036f84978ba59014 /Xext/geext.c
parentbc334286b060bc8d0c829b18acebadf24fbdaf19 (diff)
Clean up, correct some comments.
Send event type down with the RawEvents.
Diffstat (limited to 'Xext/geext.c')
-rw-r--r--Xext/geext.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Xext/geext.c b/Xext/geext.c
index fed74dc54..f0801cbf8 100644
--- a/Xext/geext.c
+++ b/Xext/geext.c
@@ -246,11 +246,10 @@ GEExtensionInit(void)
/* interface for extensions */
/************************************************************/
-/* Register extension with GE.
- * Requires the event swap function as parameter. The function will be called
- * each time an event is sent to a client with different byte order.
- * Returns extension offset. This offset is to be used in all generic events
- * sent to the client.
+/* Register an extension with GE. The given swap function will be called each
+ * time an event is sent to a client with different byte order.
+ * @param extension The extensions major opcode
+ * @param ev_swap the event swap function.
*/
void GERegisterExtension(
int extension,
@@ -266,7 +265,8 @@ void GERegisterExtension(
/* Sets type and extension field for a generic event. This is just an
- * auxiliary function, extensions could do it manually too. */
+ * auxiliary function, extensions could do it manually too.
+ */
void GEInitEvent(xGenericEvent* ev, int extension)
{
ev->type = GenericEvent;