lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /**
|
| 2 | *
|
| 3 | * @file tools.h
|
| 4 | * @brief
|
| 5 | * This file is part of tools.
|
| 6 | * ¹¤¾ßÊý¾ÝÀàÐͼ°¶ÔÍâ½Ó¿Ú¶¨Òå
|
| 7 | *
|
| 8 | * @details
|
| 9 | * @author Tools Team.
|
| 10 | * @email
|
| 11 | * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
|
| 12 | * @warning
|
| 13 | * @date 2019/02/02
|
| 14 | * @version 1.1
|
| 15 | * @pre
|
| 16 | * @post
|
| 17 | *
|
| 18 | * @par
|
| 19 | * Change History :
|
| 20 | * ---------------------------------------------------------------------------
|
| 21 | * date version author description
|
| 22 | * ---------------------------------------------------------------------------
|
| 23 | * 2012/12/27 1.0 lu.xieji Create file
|
| 24 | * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
|
| 25 | * ---------------------------------------------------------------------------
|
| 26 | *
|
| 27 | *
|
| 28 | */
|
| 29 |
|
| 30 | #ifndef TOOLS_COMM_H
|
| 31 | #define TOOLS_COMM_H
|
| 32 |
|
| 33 | #ifdef __cplusplus
|
| 34 | extern "C"
|
| 35 | {
|
| 36 | #endif
|
| 37 |
|
| 38 |
|
| 39 | // ´óС¶ÔÆë
|
| 40 | #define ALIGNED_SIZE(size, alignment) (((size) + (alignment)) & ~(alignment))
|
| 41 |
|
| 42 | #define ZTOOLS_SUCCESS 0x0
|
| 43 | #define ZTOOLS_FAILURE 0xFFFFFFFF
|
| 44 |
|
| 45 | #define ZCAT_PS_FILTER_LEN 0x5000
|
| 46 | #define ZCAT_PSEXP_FILTER_LEN 0x3000
|
| 47 |
|
| 48 | typedef enum
|
| 49 | {
|
| 50 | SUB_MODULE_TEST = 0,
|
| 51 | SUB_MODULE_LAST = 256
|
| 52 | } SUB_MODULE_TYPE;
|
| 53 |
|
| 54 |
|
| 55 | typedef VOID (*LP_zPS_pack)(BYTE bFreeFg, DWORD dwMsgId, WORD wMsgLen, PBYTE pMsg, PDWORD pOut, PDWORD pOutLen);
|
| 56 | typedef VOID (*LP_zPS_unPack)(DWORD dwMsgId, WORD wMsgLen, PBYTE pMsg, PDWORD pOut, PWORD pOutLen, BYTE * bySendType);
|
| 57 |
|
| 58 | extern LP_zPS_pack lp_zPS_pack;
|
| 59 | extern LP_zPS_unPack lp_zPS_unPack;
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 | #ifdef __cplusplus
|
| 64 | }
|
| 65 | #endif
|
| 66 |
|
| 67 | #endif // TOOLS_COMM_H
|
| 68 |
|