Tests/Library: Update to new genmodule interfaces
[AROS.git] / test / library / getparentbase.c
blob3676c6ffdb94edbe2bce50bfa33412abe45337ed
1 /*
2 Copyright © 2009-2012, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/pertask.h>
7 #include <aros/libcall.h>
9 #include LC_LIBDEFS_FILE
11 AROS_LH0(struct Library *, GetParentBase,
12 struct PertaskBase *, PertaskBase, 5, Pertask
15 AROS_LIBFUNC_INIT
17 return (struct Library *)__GM_GetBaseParent(PertaskBase);
19 AROS_LIBFUNC_EXIT
22 struct Library *GetParentBase2(void)
24 struct PertaskBase *PertaskBase = __aros_getbase();
26 return (struct Library *)__GM_GetBaseParent(PertaskBase);