IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ CGI_Install_ContentEncoding_Table()

int CGI_Install_ContentEncoding_Table ( unsigned int  entries,
CUSTOM_CONTENTENCODING_TABLE contentEncodingTable 
)

This function installs a custom content-encoding table. The content encoding table references to the custom MIME table. So the content encoding table assigns every mime type defined in the MIME table a correspondent content encoding type.

Parameters
entriesNumber of entries in content-encoding table (must be equal to the custom mime table size).
contentEncodingTablePointer to custom content-encoding table
Compatibility:
In contrast to the legacy SC1x, SC2x, SC1x3 and SC2x3 systems, the @CHIP-RTOS-LNX does need to make a copy of this content-encoding table, because it cannot pass a pointer between separated memory spaces. As a consequence the size of the table itself is limited and the size of the content-encoding strings is limited too.

The table can contain up to 20 entries, as the MIME table.

The content-encoding strings can be up to 32 characters long, including zero termination. Longer values will be truncated.
Returns
zero on success, -1 on failure (wrong number of entries).
Since
V0.84
See also
CGI_Remove_ContentEncoding_Table()





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:20 by Doxygen 1.8.13