Erases the object, resetting all internal fields to the same state as a newly-created object. This is provided to allow you to quickly recycle objects without thrashing the heap.
archive_entry_clone
A deep copy operation; all text fields are duplicated.
archive_entry_free
Releases the struct archive_entry object.
archive_entry_new
Allocate and return a blank struct archive_entry object.
Stores the provided data in the object. In particular, for strings, the pointer is stored, not the referenced string.
archive_entry_copy_XXXX
As above, except that the referenced data is copied into the object.
archive_entry_XXXX
Returns the specified data. In the case of strings, a const-qualified pointer to the string is returned.
String data can be set or accessed as wide character strings or normal char strings. The functions that use wide character strings are suffixed with _w. Note that these are different representations of the same data: For example, if you store a narrow string and read the corresponding wide string, the object will transparently convert formats using the current locale. Similarly, if you store a wide string and then store a narrow string for the same data, the previously-set wide string will be discarded in favor of the new data.
There are a few set/get functions that merit additional description:
archive_entry_set_link
This function sets the symlink field if it is already set. Otherwise, it sets the hardlink field.