dtcp_callbacks.h

来自「1. 8623L平台」· C头文件 代码 · 共 56 行

H
56
字号
/* * * Copyright (c) Sigma Designs, Inc. 2005. All rights reserved. * *//**  @file   dtcp_callbacks.h  @brief  DTCP callbacks suitable for use as HTTP hooks  @author Glen Adams  @date   2005-04-29*/#ifndef __DTCP_CALLBACKS_H__#define __DTCP_CALLBACKS_H__#ifndef ALLOW_OS_CODE#define ALLOW_OS_CODE 1#endif#include "../../rmdef/rmdef.h"#define DTCP_HEADER_SIZE 14#define AES_BLOCK_SIZE 16#define DTCPHOSTLENGTH 32RM_EXTERN_C_BLOCKSTARTRM_LIBRARY_IMPORT_EXPORT extern void *httpDtcpOps;struct dtcp_cookie {	RMascii dtcp_host[DTCPHOSTLENGTH + 1];	RMint32 dtcp_port;	void *dtcp_ake_handle;	void *dtcp_stream_handle;	RMint32 dtcp_emi;	RMbool dtcp_emi_updated;	RMint32 dtcp_inband_flag;	void *dtcp_inband_context;	RMint32 dtcp_inband_state;	void (*dtcp_inband_callback)(struct dtcp_cookie *cookie, RMuint8 *dtcp_key, RMuint8 *dtcp_iv);};struct dtcp_cookie *dtcp_parse_url(RMascii *url);RMint32 dtcp_open_callback(struct dtcp_cookie *cookie);RMint32 dtcp_close_callback(struct dtcp_cookie *cookie);RMint32 dtcp_reopen_callback(struct dtcp_cookie *cookie);RMint32 dtcp_pre_read_callback(struct dtcp_cookie *cookie, RMuint8 *buffer, RMint32 length);RMint32 dtcp_post_read_callback(struct dtcp_cookie *cookie, RMuint8 *buffer, RMint32 length, RMint32 *more_data);RM_EXTERN_C_BLOCKEND#endif /* __DTCP_CALLBACKS_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?