cgroup_get_controller_version() was being exported via the libcgroup map, but its prototype wasn't available in libcgroup.h.
Add cgroup_get_controller_version() to libcgroup/groups.h Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com> --- include/libcgroup/groups.h | 10 ++++++++++ src/libcgroup-internal.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/libcgroup/groups.h b/include/libcgroup/groups.h index 0960a7d37a33..c30cbb94031d 100644 --- a/include/libcgroup/groups.h +++ b/include/libcgroup/groups.h @@ -607,6 +607,16 @@ int cgroup_convert_cgroup(struct cgroup * const out_cgroup, const struct cgroup * const in_cgroup, enum cg_version_t in_version); +/** + * Get the cgroup version of a controller. Version is set to CGROUP_UNK + * if the version cannot be determined. + * + * @param controller The controller of interest + * @param version The version of the controller + */ +int cgroup_get_controller_version(const char * const controller, + enum cg_version_t * const version); + /** * @} * @} diff --git a/src/libcgroup-internal.h b/src/libcgroup-internal.h index 864ac80de582..b2dc085c5484 100644 --- a/src/libcgroup-internal.h +++ b/src/libcgroup-internal.h @@ -305,16 +305,6 @@ extern void cgroup_dictionary_iterator_end(void **handle); */ int cg_chmod_path(const char *path, mode_t mode, int owner_is_umask); -/** - * Get the cgroup version of a controller. Version is set to CGROUP_UNK - * if the version cannot be determined. - * - * @param controller The controller of interest - * @param version The version of the controller - */ -int cgroup_get_controller_version(const char * const controller, - enum cg_version_t * const version); - /** * Build the path to the tasks or cgroup.procs file * -- 2.31.1 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel