core: get page size

This commit is contained in:
Wim Taymans 2017-12-01 12:41:48 +01:00
parent ccd19f1e49
commit a8cbffac7f
2 changed files with 4 additions and 0 deletions

View file

@ -460,6 +460,8 @@ struct pw_core *pw_core_new(struct pw_loop *main_loop, struct pw_properties *pro
this->info.props = &properties->dict;
this->info.name = name;
this->sc_pagesize = sysconf(_SC_PAGESIZE);
this->global = pw_core_add_global(this,
NULL,
NULL,

View file

@ -148,6 +148,8 @@ struct pw_core {
struct spa_support support[4]; /**< support for spa plugins */
uint32_t n_support; /**< number of support items */
long sc_pagesize;
struct {
struct spa_graph graph;
} rt;