Synopsis
int OMget_obj_parent (
OMobj_id object_id,
OMobj_id *parent_id );
Description
OMget_obj_parent gets the id of an object's parent.
Arguments
object_id
The id of an object.
parent_id
An output argument containing the parent's id.
parent_id is set to OMnull_obj(an object id predefined in <avs/om.h>) if the object has no parent.
Returned value
The status code (see Return Status ).
Example
/* Get object var1_id's parent. */
OMobj_id var1_id;
int status;
OMobj_id var1_parent;
...
status = OMget_obj_parent(var1_id, &var1_parent);
if (OMequal_objs(var1_parent, OMnull_obj)
printf("Object has no parent\n");