added cs_error() compatibility function
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 31 May 2004 22:30:58 +0000 (22:30 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 31 May 2004 22:30:58 +0000 (22:30 +0000)
include/pcmcia/ds.h

index 8de9f00056ab465b5a7fefa7c678688e63abe04b..1be7299eae7c85039266762f730f75a788eb4e3e 100644 (file)
@@ -21,13 +21,18 @@ struct pcmcia_driver {
 static inline int pcmcia_register_driver(struct pcmcia_driver *driver)
 {
        return register_pccard_driver(driver->drv.name, driver->attach, driver->detach);
-}
+};
 
 static void inline pcmcia_unregister_driver(struct pcmcia_driver *driver)
 {
        unregister_pccard_driver(driver->drv.name);
-}
+};
 
+static void inline cs_error(client_handle_t handle, int func, int ret)
+{
+    error_info_t err = { func, ret };
+    CardServices(ReportError, handle, &err);
+};
 
 #endif