![]() |
![]() |
![]() |
![]() |
OMget_obj_parent
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_idparent_idAn 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 ).Examples
/* 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");See Also
![]() |
![]() |
![]() |
![]() |