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
47880e42
Commit
47880e42
authored
Mar 21, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: add timers handling - not complete
parent
cd1d3c31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
spec-timer.c
arch-spec/spec-timer.c
+57
-0
No files found.
arch-spec/spec-timer.c
0 → 100644
View file @
47880e42
#include <pptp/pptp.h>
static
struct
pp_timer
spec_timers
[
PP_TIMER_ARRAY_SIZE
];
int
spec_timer_init
(
struct
pp_instance
*
ppi
)
{
uint32_t
i
;
for
(
i
=
0
;
i
<
PP_TIMER_ARRAY_SIZE
;
i
++
)
ppi
->
timers
[
i
]
=
&
spec_timers
[
i
];
return
0
;
}
int
spec_timer_start
(
uint32_t
interval
,
struct
pp_timer
*
tm
)
{
//GGDD
return
0
;
}
int
spec_timer_stop
(
struct
pp_timer
*
tm
)
{
tm
->
interval
=
0
;
tm
->
start
=
0
;
return
0
;
}
int
spec_timer_expired
(
struct
pp_timer
*
tm
)
{
//GGDD
return
0
;
}
void
spec_timer_adjust_all
(
struct
pp_instance
*
ppi
,
int32_t
diff
)
{
uint32_t
i
;
for
(
i
=
0
;
i
<
PP_TIMER_ARRAY_SIZE
;
i
++
)
ppi
->
timers
[
i
]
->
start
+=
diff
;
}
int
pp_timer_init
(
struct
pp_instance
*
ppi
)
__attribute__
((
alias
(
"spec_timer_init"
)));
int
pp_timer_start
(
uint32_t
interval
,
struct
pp_timer
*
tm
)
__attribute__
((
alias
(
"spec_timer_start"
)));
int
pp_timer_stop
(
struct
pp_timer
*
tm
)
__attribute__
((
alias
(
"spec_timer_stop"
)));
int
pp_timer_expired
(
struct
pp_timer
*
tm
)
__attribute__
((
alias
(
"spec_timer_expired"
)));
void
pp_timer_adjust_all
(
struct
pp_instance
*
ppi
,
int32_t
diff
)
__attribute__
((
alias
(
"spec_timer_adjust_all"
)));
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