BOOTSTRAP (kcms) functions


LIBRARY ROUTINE

kcms_get_attribute - get a single attribute from kcms object

LIBRARY CALL

int 
kcms_get_attribute(
   kobject  object,
   kvalist)

INPUT

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

This function is used to retrieve the value of an attribute from a kcms object. All kcms objects have a KCMS_NAME attribute, which is of type kstring. Given any kcms object, the following code will determine the object's name:
   kobject  object;
   kstring  name;

kcms_get_attribute(object, KCMS_NAME, &name); kprintf("Object's name is %s.\n", name);

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kcms/src/public.c

SEE ALSO

kcms(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.