avtransport_action.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 108 行
H
108 行
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description: Handling for AVTransport action requests.
*
* Author: Eric Knudstrup
* Created: Thu Oct 13 16:07:08 2005
*
*******************************************************************/
#ifndef AVTRANSPORT_ACTION_H
#define AVTRANSPORT_ACTION_H
typedef struct {
int InstanceID;
char *CurrentURI;
char *CurrentURIMetaData;
} SetAVTransportURI_in_t;
typedef struct {
int InstanceID;
char *NextURI;
char *NextURIMetaData;
} SetNextAVTransportURI_in_t;
typedef struct {
int InstanceID;
char *Unit;
char *Target;
} Seek_in_t;
typedef int (*Previous_cb_t)(int InstanceID,
char **errorDescription);
typedef int (*Next_cb_t)(int InstanceID,
char **errorDescription);
typedef int (*Play_cb_t)(int InstanceID,
char **errorDescription);
typedef int (*Pause_cb_t)(int InstanceID,
char **errorDescription);
typedef int (*Stop_cb_t)(int InstanceID,
char **errorDescription);
typedef int (*SetAVTransportURI_cb_t)(SetAVTransportURI_in_t *in_data,
char **errorDescription);
typedef int (*SetNextAVTransportURI_cb_t)(SetNextAVTransportURI_in_t *in_data,
char **errorDescription);
typedef int (*Seek_cb_t)(Seek_in_t *in_data, char **errorDescription);
/*;emacs generated header for file AVTransport_action.c. Global function declarations only. */
/**
* Initialize action and event handling for th UPnP AVTransport service.
*/
extern void
AVTransportInit(void);
/**
* Set the callback for the UPnP AVT Previous action.
*/
extern void
UPnP_AVT_register_Previous_action_cb(Previous_cb_t callback);
/**
* Set the callback for the UPnP AVT Next action.
*/
extern void
UPnP_AVT_register_Next_action_cb(Next_cb_t callback);
/**
* Set the callback for the UPnP AVT Seek action.
*/
extern void
UPnP_AVT_register_Seek_action_cb(Seek_cb_t callback);
/**
* Set the callback for the UPnP AVT Play action.
*/
extern void
UPnP_AVT_register_Play_action_cb(Play_cb_t callback);
/**
* Set the callback for the UPnP AVT Pause action.
*/
extern void
UPnP_AVT_register_Pause_action_cb(Pause_cb_t callback);
/**
* Set the callback for the UPnP AVT Stop action.
*/
extern void
UPnP_AVT_register_Stop_action_cb(Stop_cb_t callback);
/**
* Set the callback for the UPnP AVT SetNextAVTransportURI action.
*/
extern void
UPnP_AVT_register_SetNextAVTransportURI_action_cb(SetNextAVTransportURI_cb_t callback);
/**
* Set the callback for the UPnP AVT SetAVTransportURI action.
*/
extern void
UPnP_AVT_register_SetAVTransportURI_action_cb(SetAVTransportURI_cb_t callback);
/*;end emacs generated header for file AVTransport_action.c. Global function declarations only. */
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?