(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/exec.h>
#include <exec/memory.h>
#include <aros/libcall.h>
#include <aros/debug.h>

AttrBase ObtainAttrBase (interfaceID)

LOCATION
In OOPBase at offset 6

SYNOPSIS
STRPTR interfaceID

FUNCTION
Maps a globally unique string interface ID into a numeric AttrBase ID that is unique on pr. machine basis. The AttrBase can be combiner with attribute offsets to generate attribute IDs.

INPUTS
interfaceID
globally unique interface identifier. for which to obtain an attrbase.

RESULT
Numeric AttrBase that is unique for this machine. A return value of 0 means that the call failed.

EXAMPLE
#define aTimer_CurrentTime    (__AB_Timer + aoTime_CurrentTime)

..
__AB_Timer = ObtainAttrBase(IID_Timer);

SetAttrs(timer, aTimer_CurrentTime, "10:37:00");

SEE ALSO

NOTES
Obtained attrbases should be released with ReleasAttrBase().

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
19.09.1998 nlorentz
Added two new functions + fixed bugs