X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=src%2Fstorage%2Ffamily.h;h=adf2dac5502daca279cf5375c2d34b7ce6d82abc;hb=4faf7e4b4b91a9c320f7d60299162b09720f1e4a;hp=a8dc2fd95b4079443c75aa2ee255e9b3a37042d2;hpb=338b1e4b2fd96379fa007962949fa99a7e070cd6;p=familia.git diff --git a/src/storage/family.h b/src/storage/family.h index a8dc2fd..adf2dac 100644 --- a/src/storage/family.h +++ b/src/storage/family.h @@ -67,14 +67,14 @@ void familia_family_free(struct familia_family * family); * @parameter family to set the individual * @parameter individual which will be set */ -void familia_family_set_individual(struct familia_family * family, struct familia_individual * individual, enum FFamilyIndividualIndex index); +void familia_family_set_parent(struct familia_family * family, struct familia_individual * individual, enum FFamilyIndividualIndex index); /** * Gets individual from the given family * @parameter family to get the individual * @parameter individual index of which individual get */ -struct familia_individual * familia_family_get_individual(struct familia_family * family, enum FFamilyIndividualIndex index); +struct familia_individual * familia_family_get_parent(struct familia_family * family, enum FFamilyIndividualIndex index); /** * Removes individual from the given family @@ -84,10 +84,12 @@ struct familia_individual * familia_family_get_individual(struct familia_family * @parameter individual index of which individual to remove * @return returns removed individual, NULL if such does not exist. */ -struct familia_individual * familia_family_remove_individual(struct familia_family * family, enum FFamilyIndividualIndex index); +struct familia_individual * familia_family_remove_parent(struct familia_family * family, enum FFamilyIndividualIndex index); /** * Adds new child in the given family + * Automatically sets family as parents in individual variable. + * * @parameter family to set the individual * @parameter individual which will be added */