From effcd79eb38e3ab125a0eaf64850f52df914e965 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 28 Apr 2023 19:03:41 -0400 Subject: opk: Absorb seek list management from ustar --- (limited to 'src/ustar.h') diff --git a/src/ustar.h b/src/ustar.h index 220603a..802412a 100644 --- a/src/ustar.h +++ b/src/ustar.h @@ -71,59 +71,6 @@ opkg_opk_ustar_list(struct opkg_opk_ustar *ustar, struct opkg_opk_ustar_member **member); /* - * Adds a name to a list of names to find with opkg_opk_ustar_seek(). List is - * dynamically allocated; free with opkg_opk_ustar_free_seek_names(). - * Parameters: - * - names: Address in which to store address of list. - * - name: Name of member file to find. - * Returns: - * - OPKG_OPK_OK if the name was added to the list. - * - OPKG_OPK_ERROR on memory exhaustion. - */ -int -opkg_opk_ustar_add_seek_name(struct opkg_opk_ustar_seek_name **names, - const char *name); - -/* - * Frees a list of names to find with opkg_opk_ustar_seek(). - * Parameters: - * - names: List of names. - */ -void -opkg_opk_ustar_free_seek_names(struct opkg_opk_ustar_seek_name *names); - -/* - * Advances to a named member file. May be called multiple times until all - * requested members are found. - * Parameters: - * - ustar: Archive structure. - * - names: Name(s) to find. - * Returns: - * - OPKG_OPK_OK if a member matching one of the requested names is found but - * more names remain to be found. - * - OPKG_OPK_END if a member matching one of the requested names is found and - * no more names remain to be found. - * - OPKG_OPK_ERROR if no matching member is found or on decompression error, an - * invalid header, or unsupported file type. - */ -int -opkg_opk_ustar_seek(struct opkg_opk_ustar *ustar, - struct opkg_opk_ustar_seek_name *names); - -/* - * Advances to a named member file. - * Parameters: - * - ustar: Archive structure. - * - name: Name to find. - * Returns: - * - OPKG_OPK_OK if a member matching the requested name is found. - * - OPKG_OPK_ERROR if no matching member is found or on decompression error, an - * invalid header, or unsupported file type. - */ -int -opkg_opk_ustar_seek_one(struct opkg_opk_ustar *ustar, const char *name); - -/* * Reads up to a record (512 octets) of member file data at a time. * Parameters: * - ustar: Archive structure. -- cgit v0.9.1