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
7b448676
Commit
7b448676
authored
Apr 02, 2013
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
instance of struct pp_runtime_opts moved to pp_globals
Signed-off-by:
Aurelio Colosimo
<
aurelio@aureliocolosimo.it
>
parent
e8c6d64c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
pp-instance.h
include/ppsi/pp-instance.h
+3
-1
ppsi.h
include/ppsi/ppsi.h
+4
-4
No files found.
include/ppsi/pp-instance.h
View file @
7b448676
...
...
@@ -132,7 +132,6 @@ struct pp_instance {
int
next_state
,
next_delay
,
is_new_state
;
/* set by state processing */
void
*
arch_data
;
/* if arch needs it */
void
*
ext_data
;
/* if protocol ext needs it */
struct
pp_runtime_opts
*
rt_opts
;
unsigned
long
flags
;
/* ppi-specific flags (diag mainly) */
/* Pointer to global instance owning this pp_instance*/
...
...
@@ -190,6 +189,9 @@ struct pp_globals {
struct
pp_servo
*
servo
;
/* Real time options */
struct
pp_runtime_opts
*
rt_opts
;
/* Data sets */
DSDefault
*
defaultDS
;
/* page 65 */
DSCurrent
*
currentDS
;
/* page 67 */
...
...
include/ppsi/ppsi.h
View file @
7b448676
...
...
@@ -26,14 +26,14 @@ extern int pp_vsprintf(char *buf, const char *, va_list)
/* We use data sets a lot, so have these helpers */
static
inline
struct
pp_
runtime_opts
*
OPT
S
(
struct
pp_instance
*
ppi
)
static
inline
struct
pp_
globals
*
GLB
S
(
struct
pp_instance
*
ppi
)
{
return
ppi
->
rt_opt
s
;
return
ppi
->
glb
s
;
}
static
inline
struct
pp_
globals
*
GLB
S
(
struct
pp_instance
*
ppi
)
static
inline
struct
pp_
runtime_opts
*
OPT
S
(
struct
pp_instance
*
ppi
)
{
return
ppi
->
glb
s
;
return
GLBS
(
ppi
)
->
rt_opt
s
;
}
static
inline
struct
DSDefault
*
DSDEF
(
struct
pp_instance
*
ppi
)
...
...
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