- /*-----------------------------------------------------------------------------
- | @(#) machblue_customer.h
- |
- | JSWF: The Portable SWF Engine For Embedded Devices,
- | Copyright (c) 2002-2006, BlueStreak Technology Inc., All Rights Reserved.
- |
- +----------------------------------------------------------------------------*/
- #ifndef _MACHBLUE_CUSTOMER_H_
- #define _MACHBLUE_CUSTOMER_H_
- /*----------------------------------------------------------
- | Include definition below this line
- +----------------------------------------------------------*/
- /** customer defined C89 compatible variable argument list include file */
- #include <stdarg.h>
- /** st20cc-specific float support */
- #include <float.h>
- #ifdef __cplusplus
- extern "C" {
- #endif /* __cplusplus */
- /*----------------------------------------------------------
- | Macro definition below this line
- +----------------------------------------------------------*/
- /** customer defined unicode support:
- * 0: means no unicode support -- extended ascii ISO-8859-1
- * 1: means unicode support -- wide char unicode
- */
- #define MB_UNICODE_SUPPORT 0
- #if ( MB_UNICODE_SUPPORT == 0 )
- /** customer defined text macro -- extended ascii ISO-8859-1 non unicode version */
- #define MB_TEXT(text) text
- #else
- /** customer defined text macro -- unicode version */
- #define MB_TEXT(text) L##text
- #endif // ( MB_UNICODE_SUPPORT == 0 )
- /** customer defined NULL pointer value */
- #ifndef NULL
- #define NULL (0)
- #endif
- /** customer defined invalid memory block type value */
- #define MB_INVALID_MEM_BLOCK 0
- /** customer defined invalid mutex value */
- #define MB_INVALID_MUTEX 0
- /** customer defined invalid semaphore value */
- #define MB_INVALID_SEMAPHORE 0
- /** customer defined invalid socket handle value */
- #define MB_INVALID_SOCKET 0
- /** customer defined invalid http request handle value */
- #define MB_INVALID_HTTP_REQUEST 0
- /** customer defined invalid file handle value */
- #define MB_INVALID_FILE 0
- /** customer defined invalid directory handle value */
- #define MB_INVALID_DIR 0
- /** customer defined invalid surface value */
- #define MB_INVALID_SURFACE 0
- /** customer defined invalid font handle value */
- #define MB_INVALID_FONT 0
- /** customer defined invalid pcm engine handle value */
- #define MB_INVALID_PCM_ENGINE 0
- /** customer defined invalid tid value */
- #define MB_INVALID_TID 0
- /** customer defined invalid url handle */
- #define MB_INVALID_URL_HANDLE 0
- /** customer defined low thread priority */
- #define MB_THREAD_PRIORITY_LOW 0
- /** customer defined normal thread priority */
- #define MB_THREAD_PRIORITY_NORMAL 8
- /** customer defined high thread priority */
- #define MB_THREAD_PRIORITY_HIGH 16
- /** customer defined path separator */
- #define MB_PATH_SEPARATOR MB_TEXT( "/" )
- /*----------------------------------------------------------
- | Type definition below this line
- +----------------------------------------------------------*/
- #if ( MB_UNICODE_SUPPORT == 0 )
- /**< customer defined char type -- extended ascii ISO-8859-1 non unicode version */
- typedef char mb_char_t;
- #else
- /**< customer defined wide char type -- unicode version */
- typedef wchar_t mb_char_t;
- #endif // ( MB_UNICODE_SUPPORT == 0 )
- /** customer defined size type
- * Note - This definition must match the platform-provided size_t */
- typedef unsigned int mb_size_t;
- /** customer defined signed size type */
- typedef long mb_ssize_t;
- /** customer defined memory block type */
- typedef unsigned long mb_mem_block_t;
- /** customer defined mutex type */
- typedef unsigned long mb_mutex_t;
- /** customer defined semaphore type */
- typedef unsigned long mb_semaphore_t;
- /** customer defined socket handle type */
- typedef unsigned long mb_socket_t;
- /** customer defined file handle type */
- typedef unsigned long mb_file_t;
- /** customer defined directory handle type */
- typedef unsigned long mb_dir_t;
- /** customer defined surface type */
- typedef unsigned long mb_surface_t;
- /** customer defined font handle type */
- typedef unsigned long mb_font_t;
- /** customer defined pcm engine handle type */
- typedef unsigned long mb_pcm_engine_t;
- /** customer defined thread id type */
- typedef unsigned long mb_tid_t;
- /** Machblue url handle type */
- typedef unsigned long mb_url_handle_t;
- /** Machblue thread priority type */
- typedef int mb_thread_priority_t;
- /*----------------------------------------------------------
- | Functions definition below this line
- +----------------------------------------------------------*/
- #ifdef __cplusplus
- } /* extern "C" */
- #endif /* __cplusplus */
- #endif /* _MACHBLUE_CUSTOMER_H_ */