Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
dvblast
Commits
e625aaee
Commit
e625aaee
authored
Sep 12, 2011
by
Georgi Chorbadzhiyski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comm: Replace CMD_xxx and RET_xxx defines with enums.
parent
f0109a02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
32 deletions
+37
-32
comm.h
comm.h
+37
-32
No files found.
comm.h
View file @
e625aaee
...
@@ -26,39 +26,44 @@
...
@@ -26,39 +26,44 @@
#define COMM_MAX_MSG_CHUNK 65535
#define COMM_MAX_MSG_CHUNK 65535
#define CMD_RELOAD 1
typedef
enum
{
#define CMD_SHUTDOWN 2
CMD_INVALID
=
0
,
#define CMD_FRONTEND_STATUS 3
CMD_RELOAD
=
1
,
#define CMD_MMI_STATUS 4
CMD_SHUTDOWN
=
2
,
#define CMD_MMI_SLOT_STATUS 5
/* arg: slot */
CMD_FRONTEND_STATUS
=
3
,
#define CMD_MMI_OPEN 6
/* arg: slot */
CMD_MMI_STATUS
=
4
,
#define CMD_MMI_CLOSE 7
/* arg: slot */
CMD_MMI_SLOT_STATUS
=
5
,
/* arg: slot */
#define CMD_MMI_RECV 8
/* arg: slot */
CMD_MMI_OPEN
=
6
,
/* arg: slot */
#define CMD_MMI_SEND 9
/* arg: slot, en50221_mmi_object_t */
CMD_MMI_CLOSE
=
7
,
/* arg: slot */
#define CMD_GET_PAT 10
CMD_MMI_RECV
=
8
,
/* arg: slot */
#define CMD_GET_CAT 11
CMD_MMI_SEND
=
9
,
/* arg: slot, en50221_mmi_object_t */
#define CMD_GET_NIT 12
CMD_GET_PAT
=
10
,
#define CMD_GET_SDT 13
CMD_GET_CAT
=
11
,
#define CMD_GET_PMT 14
/* arg: service_id (uint16_t) */
CMD_GET_NIT
=
12
,
#define CMD_GET_PIDS 15
CMD_GET_SDT
=
13
,
#define CMD_GET_PID 16
/* arg: pid (uint16_t) */
CMD_GET_PMT
=
14
,
/* arg: service_id (uint16_t) */
CMD_GET_PIDS
=
15
,
CMD_GET_PID
=
16
,
/* arg: pid (uint16_t) */
}
ctl_cmd_t
;
#define RET_OK 0
typedef
enum
{
#define RET_ERR 1
RET_OK
=
0
,
#define RET_FRONTEND_STATUS 2
RET_ERR
=
1
,
#define RET_MMI_STATUS 3
RET_FRONTEND_STATUS
=
2
,
#define RET_MMI_SLOT_STATUS 4
RET_MMI_STATUS
=
3
,
#define RET_MMI_RECV 5
RET_MMI_SLOT_STATUS
=
4
,
#define RET_MMI_WAIT 6
RET_MMI_RECV
=
5
,
#define RET_NODATA 7
RET_MMI_WAIT
=
6
,
#define RET_PAT 8
RET_NODATA
=
7
,
#define RET_CAT 9
RET_PAT
=
8
,
#define RET_NIT 10
RET_CAT
=
9
,
#define RET_SDT 11
RET_NIT
=
10
,
#define RET_PMT 12
RET_SDT
=
11
,
#define RET_PIDS 13
RET_PMT
=
12
,
#define RET_PID 14
RET_PIDS
=
13
,
#define RET_HUH 255
RET_PID
=
14
,
RET_HUH
=
255
,
}
ctl_cmd_answer_t
;
struct
ret_frontend_status
struct
ret_frontend_status
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment