prism2.device: Compiler delint
[AROS.git] / arch / i386-pc / drivers / mouse.hidd / startup.c
blobb56ae72aa1500cf15cacf2bcaa4c56b2d0c739a2
1 #include <aros/symbolsets.h>
2 #include <hidd/mouse.h>
3 #include <proto/oop.h>
5 #include LC_LIBDEFS_FILE
7 static int init_mouse(LIBBASETYPEPTR LIBBASE)
9 OOP_Object *ms;
10 OOP_Object *drv = NULL;
12 ms = OOP_NewObject(NULL, CLID_Hidd_Mouse, NULL);
13 if (ms) {
14 drv = HIDD_Mouse_AddHardwareDriver(ms, LIBBASE->msd.mouseclass, NULL);
15 OOP_DisposeObject(ms);
18 if (!drv)
19 return FALSE;
21 LIBBASE->library.lib_OpenCnt = 1;
22 return TRUE;
25 ADD2INITLIB(init_mouse, 10);