2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <exec/memory.h>
10 #include <proto/exec.h>
13 #include <aros/debug.h>
16 /*****************************************************************************
19 #include <proto/layers.h>
20 #include "layers_intern.h"
21 #include "basicfuncs.h"
23 AROS_LH0(struct Layer_Info
*, NewLayerInfo
,
29 struct LayersBase
*, LayersBase
, 24, Layers
)
48 27-11-96 digulla automatically created from
49 layers_lib.fd and clib/layers_protos.h
51 *****************************************************************************/
55 struct Layer_Info
*li
;
57 D(bug("NewLayerInfo(void)\n"));
59 if(!(li
= (struct Layer_Info
*)AllocMem(sizeof(struct Layer_Info
), MEMF_PUBLIC
)))
64 /* get memory for LayerInfo_extra structure */
65 if(!_AllocExtLayerInfo(li
, LayersBase
))
67 FreeMem(li
, sizeof(struct Layer_Info
));
71 li
->Flags
|= NEWLAYERINFO_CALLED
;