Creating Object Relationships
/* Note that if there was no link object,
// my_associate_link_object will be set to NULL.
if(SE_AddAssociate( my_object, my_associate_object,
my_associate_link_object) != SE_SUCCESS)
fprintf(stderr, "Could not add Associate link. \n");
/* my_object is added as a component to the parent.
// This is done by getting the parent using the parent_id
// and then calling AddComponent. We then must decrement
// the parents count in the unfinished map. When the count
// goes to 0, the unfinished map will automatically free
FindParent(my_parent_id, &my_parent);
if(SE_AddComponent(my_parent, my_object, NULL)!= SE_SUCCESS)
fprintf(stderr, "Error - Can't add component!\n");