headers: wrap declarations in extern "C". Note: this change is not exhaustive and only touches some headers in //include
Added demo for self-paging.