functions added to the C interface for giftwrapping methods