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
e4648dba
Commit
e4648dba
authored
Mar 02, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: add comments to common-fun.c
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
f302d4a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
common-fun.c
proto-standard/common-fun.c
+11
-1
No files found.
proto-standard/common-fun.c
View file @
e4648dba
...
...
@@ -7,6 +7,7 @@
#include <ppsi/diag.h>
#include "common-fun.h"
/* Called by listening, passive, slave, uncalibrated */
int
st_com_execute_slave
(
struct
pp_instance
*
ppi
,
int
check_delayreq
)
{
int
ret
=
0
;
...
...
@@ -61,7 +62,8 @@ int st_com_check_record_update(struct pp_instance *ppi)
return
0
;
}
void
st_com_add_foreign
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
)
/* Called by this file, basically when an announce is got, all states */
static
void
st_com_add_foreign
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
)
{
int
i
,
j
;
int
found
=
0
;
...
...
@@ -127,6 +129,7 @@ void st_com_add_foreign(struct pp_instance *ppi, unsigned char *buf)
}
/* Called by slave and uncalibrated */
int
st_com_slave_handle_announce
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
,
int
len
)
{
...
...
@@ -158,6 +161,7 @@ int st_com_slave_handle_announce(struct pp_instance *ppi, unsigned char *buf,
return
0
;
}
/* Called by slave and uncalibrated */
int
st_com_slave_handle_sync
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
,
int
len
)
{
...
...
@@ -214,6 +218,7 @@ int st_com_slave_handle_sync(struct pp_instance *ppi, unsigned char *buf,
return
0
;
}
/* Called by slave and uncalibrated */
int
st_com_slave_handle_followup
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
,
int
len
)
{
...
...
@@ -272,6 +277,7 @@ int st_com_slave_handle_followup(struct pp_instance *ppi, unsigned char *buf,
return
0
;
}
/* Called by master, listenting, passive. */
int
st_com_master_handle_announce
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
,
int
len
)
{
...
...
@@ -287,6 +293,10 @@ int st_com_master_handle_announce(struct pp_instance *ppi, unsigned char *buf,
return
0
;
}
/*
* Called by master, listenting, passive.
* FIXME: this must be implemented to support one-step masters
*/
int
st_com_master_handle_sync
(
struct
pp_instance
*
ppi
,
unsigned
char
*
buf
,
int
len
)
{
...
...
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