Commit 538f10ef authored by Aurelio Colosimo's avatar Aurelio Colosimo

include/ppsi/ppsi.h defined GOPTS macro

GOPTS macro returns the rt_opts field of struct pp_globals. Actually,
in the current implementation it is the same pointer returned by OPTS, since
each pp_instance has no "local" rt_opt, but points to the global one.
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent f5eb4084
......@@ -31,9 +31,14 @@ static inline struct pp_globals *GLBS(struct pp_instance *ppi)
return ppi->glbs;
}
static inline struct pp_runtime_opts *GOPTS(struct pp_globals *ppg)
{
return ppg->rt_opts;
}
static inline struct pp_runtime_opts *OPTS(struct pp_instance *ppi)
{
return GLBS(ppi)->rt_opts;
return GOPTS(GLBS(ppi));
}
static inline struct DSDefault *DSDEF(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