Commit 63df7dcf authored by Aurelio Colosimo's avatar Aurelio Colosimo

include/ppsi/ppsi.h defined GDSDEF macro

GDSDEF macro returns the defaultDS field of struct pp_globals. Actually,
it is the same pointer returned by DSDEF, since the default dataset is unique.
The DSDEF macro is not removed both to preserve commit history and to increase
readability (we do not take ppg pointer around and DSDEF(ppi) is shorter
than GDSDEF(GLOBS(ppi))).
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent 538f10ef
......@@ -41,9 +41,14 @@ static inline struct pp_runtime_opts *OPTS(struct pp_instance *ppi)
return GOPTS(GLBS(ppi));
}
static inline struct DSDefault *GDSDEF(struct pp_globals *ppg)
{
return ppg->defaultDS;
}
static inline struct DSDefault *DSDEF(struct pp_instance *ppi)
{
return GLBS(ppi)->defaultDS;
return GDSDEF(GLBS(ppi));
}
static inline struct DSCurrent *DSCUR(struct pp_instance *ppi)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment