diff --git a/include/sigar_private.h b/include/sigar_private.h index ee207618..e1ec1744 100644 --- a/include/sigar_private.h +++ b/include/sigar_private.h @@ -176,6 +176,8 @@ int sigar_proc_list_grow(sigar_proc_list_t *proclist); sigar_proc_list_grow(proclist); \ } +int sigar_proc_args_create(sigar_proc_args_t *proclist); + int sigar_proc_args_grow(sigar_proc_args_t *procargs); #define SIGAR_PROC_ARGS_GROW(procargs) \ diff --git a/src/sigar.c b/src/sigar.c index 0ddcb101..621fb719 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -537,7 +537,7 @@ SIGAR_DECLARE(int) sigar_proc_list_get(sigar_t *sigar, return sigar_os_proc_list_get(sigar, proclist); } -static int sigar_proc_args_create(sigar_proc_args_t *procargs) +int sigar_proc_args_create(sigar_proc_args_t *procargs) { procargs->number = 0; procargs->size = SIGAR_PROC_ARGS_MAX;