فهرست منبع

core: mem - set xstatus_filter api field

Daniel-Constantin Mierla 1 سال پیش
والد
کامیت
e4f2cde596
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      src/core/mem/pkg.c
  2. 1 0
      src/core/mem/shm.c

+ 1 - 0
src/core/mem/pkg.c

@@ -51,6 +51,7 @@ int pkg_init_api(sr_pkg_api_t *ap)
 	_pkg_root.xrealloc = ap->xrealloc;
 	_pkg_root.xrealloc = ap->xrealloc;
 	_pkg_root.xreallocxf = ap->xreallocxf;
 	_pkg_root.xreallocxf = ap->xreallocxf;
 	_pkg_root.xstatus = ap->xstatus;
 	_pkg_root.xstatus = ap->xstatus;
+	_shm_root.xstatus_filter = ap->xstatus_filter;
 	_pkg_root.xinfo = ap->xinfo;
 	_pkg_root.xinfo = ap->xinfo;
 	_pkg_root.xreport = ap->xreport;
 	_pkg_root.xreport = ap->xreport;
 	_pkg_root.xavailable = ap->xavailable;
 	_pkg_root.xavailable = ap->xavailable;

+ 1 - 0
src/core/mem/shm.c

@@ -242,6 +242,7 @@ int shm_init_api(sr_shm_api_t *ap)
 	_shm_root.xreallocxf = ap->xreallocxf;
 	_shm_root.xreallocxf = ap->xreallocxf;
 	_shm_root.xresize = ap->xresize;
 	_shm_root.xresize = ap->xresize;
 	_shm_root.xstatus = ap->xstatus;
 	_shm_root.xstatus = ap->xstatus;
+	_shm_root.xstatus_filter = ap->xstatus_filter;
 	_shm_root.xinfo = ap->xinfo;
 	_shm_root.xinfo = ap->xinfo;
 	_shm_root.xreport = ap->xreport;
 	_shm_root.xreport = ap->xreport;
 	_shm_root.xavailable = ap->xavailable;
 	_shm_root.xavailable = ap->xavailable;