revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-linux / hidd / linuxinput / startup.c
blobb0a01018f6a9d9131d3aec1cf5856757f84a9ee2
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <aros/symbolsets.h>
8 #include <hidd/mouse.h>
9 #include <hidd/keyboard.h>
10 #include <proto/exec.h>
11 #include <proto/oop.h>
13 #include LC_LIBDEFS_FILE
15 static int LinuxInput_Startup(LIBBASETYPEPTR LIBBASE)
17 OOP_Object *ms, *kbd = NULL;
19 D(bug("[LinuxMouse] LinuxMouse_Startup()\n"));
21 ms = OOP_NewObject(NULL, CLID_Hidd_Mouse, NULL);
22 if (ms) {
23 HIDD_Mouse_AddHardwareDriver(ms, LIBBASE->lsd.mouseclass, NULL);
24 OOP_DisposeObject(ms);
27 kbd = OOP_NewObject(NULL, CLID_Hidd_Kbd, NULL);
28 if (kbd) {
29 HIDD_Mouse_AddHardwareDriver(kbd, LIBBASE->lsd.kbdclass, NULL);
30 OOP_DisposeObject(kbd);
34 /* We use ourselves, and noone else */
35 LIBBASE->library.lib_OpenCnt = 1;
37 return TRUE;
40 ADD2INITLIB(LinuxInput_Startup, 10);