Indentation fix, cleanup.
[AROS.git] / arch / m68k-amiga / hidd / pci-mediator / pci-mediator_init.c
blobe2249dd6ffdfe7eab6d0d2a8bf6c1d424d1f1bd3
1 /*
2 Copyright © 2003-2006, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <aros/symbolsets.h>
9 #include <exec/execbase.h>
10 #include <exec/types.h>
11 #include <exec/memory.h>
12 #include <exec/lists.h>
14 #include <hidd/pci.h>
16 #include <utility/utility.h>
18 #include <proto/exec.h>
19 #include <proto/oop.h>
20 #include <aros/debug.h>
22 #include "pci.h"
23 #include LC_LIBDEFS_FILE
25 static int PCIMediator_Expunge(LIBBASETYPEPTR LIBBASE)
27 int ok;
29 OOP_Object *pci = OOP_NewObject(NULL, CLID_Hidd_PCI, NULL);
30 if (pci)
32 struct pHidd_PCI_RemHardwareDriver msg, *pmsg=&msg;
34 msg.mID = OOP_GetMethodID(IID_Hidd_PCI, moHidd_PCI_RemHardwareDriver);
35 msg.driverClass = LIBBASE->psd.driverClass;
37 ok = OOP_DoMethod(pci, (OOP_Msg)pmsg);
39 OOP_DisposeObject(pci);
41 else
42 ok = FALSE;
44 return ok;
47 ADD2EXPUNGELIB(PCIMediator_Expunge, 0)
48 ADD2LIBS("pci.hidd", 0, static struct Library *, __pcihidd)