-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmd_router.c
98 lines (79 loc) · 2.24 KB
/
cmd_router.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
* Copyright (c) 2013 Wei-Lun Hsu. All Rights Reserved.
*/
/** @file media_player_err.h
*
* @author Wei-Lun Hsu
* @version 0.1
* @date 2013/08/03
* @license
* @description
*/
#include "cmd_router.h"
#include "media_player_def.h"
//=============================================================================
// Constant Definition
//=============================================================================
//=============================================================================
// Macro Definition
//=============================================================================
//=============================================================================
// Structure Definition
//=============================================================================
typedef struct CMD_ROUTER_T
{
CMDROUTER_HANDLE hCmdrouter;
}CMD_ROUTER;
//=============================================================================
// Global Data Definition
//=============================================================================
//=============================================================================
// Private Function Definition
//=============================================================================
//=============================================================================
// Public Function Definition
//=============================================================================
IMP_ERR
cmdrouter_CreateHandle(
CMDROUTER_HANDLE **ppHCmdrouter,
void *extraData)
{
IMP_ERR result = IMP_ERR_OK;
do{
CMD_ROUTER *pCmdrouter = 0;
if( *ppHCmdrouter != 0 )
{
imp_msg_ex(IMP_MSG_ERR, "error, Exist cmdrouter handle !!");
break;
}
//----------------------
(*ppHCmdrouter) = &pCmdrouter->hCmdrouter;
}while(0);
if( result != IMP_ERR_OK )
{
imp_msg_ex(IMP_MSG_ERR, "err 0x%x !", result);
}
return result;
}
IMP_ERR
cmdrouter_DestroyHandle(
CMDROUTER_HANDLE **ppHCmdrouter,
void *extraData)
{
IMP_ERR result = IMP_ERR_OK;
return result;
}
/*
IMP_ERR
cmdrouter_tamplete(
CMDROUTER_HANDLE *pHCmdrouter,
void *extraData)
{
IMP_ERR result = IMP_ERR_OK;
if( result != IMP_ERR_OK )
{
imp_msg_ex(IMP_MSG_ERR, "err 0x%x !", result);
}
return result;
}
*/