]> git.sur5r.net Git - cc65/blobdiff - include/joystick/joy-kernel.h
Document style clean-up.
[cc65] / include / joystick / joy-kernel.h
index f30f7982b549068dcf28b6c04dc25bef7e216209..783508247e76daf7267dd8b0b26abdb392eec648 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002      Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 2002-2006, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 /* A structure that describes the header of a joystick driver loaded into
- * memory.
- */
+** memory.
+*/
 typedef struct {
 
     /* Driver header */
-    char                id[3];          /* Contains 0x65, 0x6d, 0x64 ("emd") */
+    char                id[3];          /* Contains 0x6a, 0x6f, 0x79 ("joy") */
     unsigned char       version;        /* Interface version */
-
-    /* Bitmasks for the joystick states. See joystick.h for indices */
-    unsigned char       masks[8];
+    void*               libreference;   /* Library reference */
 
     /* Jump vectors. Note that these are not C callable */
     void*               install;        /* INSTALL routine */
-    void*               deinstall;      /* DEINSTALL routine */
+    void*               uninstall;      /* UNINSTALL routine */
     void*               count;          /* COUNT routine */
     void*               read;           /* READ routine */
 
@@ -66,29 +64,21 @@ typedef struct {
 
 
 
-/* EM kernel variables */
-extern joy_drv_header*         joy_drv;        /* Pointer to driver */
-
+/* JOY kernel variables */
+extern joy_drv_header*  joy_drv;        /* Pointer to driver */
 
 
 
 /*****************************************************************************/
-/*                                Functions                                 */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-unsigned char __fastcall__ joy_install (void* driver);
-/* Install the driver once it is loaded, return an error code. */
-
-void __fastcall__ joy_deinstall (void);
-/* Deinstall the driver before unloading it */
+void joy_clear_ptr (void);
+/* Clear the joy_drv pointer */
 
 
 
 /* End of joy-kernel.h */
 #endif
-
-
-
-