table
table - Maintain a table of FOURCC/value pairs
.
Return a newly created table.
| RIFFIOFCCTableNew(void)
OBLIGATIONS
Use RIFFIOFCCTableDelete to free the table.
The new table or null on failure.
Free all memory allocated for a table.
void
RIFFIOFCCTableDelete(RIFFIOFCCTable *ptable)
Orphans all table entry values if they happen to be pointers.
<*ptable> must have been created by RIFFIOFCCTableCreate.
Make a new entry in a table.
RIFFIOSuccess
RIFFIOFCCTableMakeEntry(RIFFIOFCCTable *ptable, RIFFIOFCCTableEntry newEntry)
Replaces any existing entry with the value of the new entry.
Return the success status of the operation.
Lookup a value in a RIFFIOFCCTable given a FOURCC.
RIFFIOSuccess
RIFFIOFCCTableLookup(RIFFIOFCCTable *ptable, RIFFIOFCCTableEntry *entryp)
Return the number of entries in a table
unsigned
RIFFIOFCCTableCount(RIFFIOFCCTable *ptable)
Return a newly allocated array of all the entries in a table.
RIFFIOFCCTableEntry *
RIFFIOFCCTableCreateArray(RIFFIOFCCTable *ptable)
The new array is NOT sorted in any particular order.
The new array must be freed by the caller.
Apply a function over every entry in a table.
void
RIFFIOFCCTableForEachEntry(RIFFIOFCCTable *ptable, void f(RIFFIOFCCTableEntry))
Print the contents of a RIFFIOFCCTable for debugging
void
RIFFIOFCCTableDump(FILE *fp, RIFFIOFCCTable *ptable)