Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
3bf6b264
Commit
3bf6b264
authored
Jul 03, 2013
by
Poul-Henning Kamp
Committed by
Alessandro Rubini
Jul 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the typedef we already have also in the struct, to make sure things
stay in sync.
parent
1dae227b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
ppsi.h
include/ppsi/ppsi.h
+4
-6
No files found.
include/ppsi/ppsi.h
View file @
3bf6b264
...
...
@@ -308,19 +308,17 @@ extern void div2_TimeInternal(TimeInternal *r);
* The state machine itself is an array of these structures.
*/
/* Use a typedef, to avoid long prototypes */
typedef
int
pp_action
(
struct
pp_instance
*
ppi
,
uint8_t
*
packet
,
int
plen
);
struct
pp_state_table_item
{
int
state
;
char
*
name
;
int
(
*
f1
)(
struct
pp_instance
*
ppi
,
uint8_t
*
packet
,
int
plen
)
;
pp_action
*
f1
;
};
extern
struct
pp_state_table_item
pp_state_table
[];
/* 0-terminated */
/* Use a typedef, to avoid long prototypes */
typedef
int
pp_action
(
struct
pp_instance
*
ppi
,
uint8_t
*
packet
,
int
plen
);
/* Standard state-machine functions */
extern
pp_action
pp_initializing
,
pp_faulty
,
pp_disabled
,
pp_listening
,
pp_pre_master
,
pp_master
,
pp_passive
,
pp_uncalibrated
,
...
...
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