IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ CGI_Install_MIME_Table()

int CGI_Install_MIME_Table ( unsigned int  entries,
CUSTOM_MIMETYPES_TABLE mimeTable 
)

This function installs a custom MIME table.

Parameters
entriesNumber of entries in MIME table.
mimeTablePointer to custom MIME 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 MIME 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 individual string items is limited too.

The table can contain up to 20 entries.

The following limitations apply to the strings, longer values will be truncated:
  • The "mimeExt" can be up to 6 characters long, including zero termination.
  • The "mimeType" can be up to 128 characters long, including zero termination.
Returns
zero on success, -1 on failure.
Since
V0.84
See also
CGI_Remove_MIME_Table()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:36 by Doxygen 1.8.13