#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "hyport.h"
#include "zipsup.h"
#include "hypool.h"
Functions | |
HyZipCache * | zipCache_new (HyPortLibrary *portLib, char *zipName, IDATA zipNameLength) |
Creates a new, empty zip cache for the provided zip file. | |
BOOLEAN | zipCache_addElement (HyZipCache *zipCache, char *elementName, UDATA elementOffset) |
Add an association between a file or directory named elementName and offset elementOffset to the zip cache provided. | |
UDATA | zipCache_findElement (HyZipCache *zipCache, const char *elementName, BOOLEAN searchDirList) |
Returns the offset associated with a file or directory element named elementName in a zipCache. | |
void | zipCache_kill (HyZipCache *zipCache) |
Deletes a zip cache and frees its resources. | |
IDATA | zipCache_enumNew (HyZipCache *zipCache, char *directoryName, void **handle) |
Searches for a directory named elementName in zipCache and if found provides a handle to it that can be used to enumerate through all of the directory's files. | |
IDATA | zipCache_enumElement (void *handle, char *nameBuf, UDATA nameBufSize, UDATA *offset) |
Gets the name and offset of the next element in the directory being enumerated. | |
IDATA | zipCache_enumGetDirName (void *handle, char *nameBuf, UDATA nameBufSize) |
Gets the name of the directory on which the enumeration is based. | |
void | zipCache_enumKill (void *handle) |
Frees any resources allocated by zipCache_enumNew. |
|
Add an association between a file or directory named elementName and offset elementOffset to the zip cache provided.
|
|
Gets the name and offset of the next element in the directory being enumerated. If nameBufSize is insufficient to hold the entire name, returns the required size for nameBuf.
|
|
Gets the name of the directory on which the enumeration is based.
|
|
Frees any resources allocated by zipCache_enumNew.
|
|
Searches for a directory named elementName in zipCache and if found provides a handle to it that can be used to enumerate through all of the directory's files.
|
|
Returns the offset associated with a file or directory element named elementName in a zipCache.
|
|
Deletes a zip cache and frees its resources.
|
|
Creates a new, empty zip cache for the provided zip file.
|