2 * Copyright (c) 2010-2011 Matthias Rustler
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 #include <aros/symbolsets.h>
27 #include <proto/identify.h>
31 #include "identify_intern.h"
33 // Global library base so that we can call library functions,
34 // e.g. IdFormatString calls IdHardware.
35 struct Library
*IdentifyBase
;
37 static int InitFunc(struct IdentifyBaseIntern
*lh
)
39 IdentifyBase
= (struct Library
*)lh
;
42 NEWLIST(&lh
->libList
);
43 InitSemaphore(&lh
->sem
);
44 lh
->poolMem
= CreatePool(MEMF_ANY
, 1024, 1024);
51 static int ExpungeFunc(struct IdentifyBaseIntern
*lh
)
53 DeletePool(lh
->poolMem
);
58 ADD2INITLIB(InitFunc
, 0);
59 ADD2EXPUNGELIB(ExpungeFunc
, 0);