library: privatize two with <pids> select/fill changes
After simplifying that select/fill interface, there is no longer a need for public 'alloc' & 'dealloc' stacks functions. There is now only one instance of stacks as an input parameter found in procps_pids_stacks_sort(). But sorting 'empty' stacks serves no possible purpose. So this commit retains both functions, since they will still be needed, but designates them private (static). Additionally, with their demise we will eliminate that pids_stacks structure from the header file, internally using what always was the true 'stacks_extent' struct. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
12
proc/pids.h
12
proc/pids.h
@@ -178,10 +178,6 @@ struct pids_stack {
|
||||
struct pids_result *head;
|
||||
};
|
||||
|
||||
struct pids_stacks {
|
||||
struct pids_stack **stacks;
|
||||
};
|
||||
|
||||
struct pids_counts {
|
||||
int total;
|
||||
int running, sleeping, stopped, zombied;
|
||||
@@ -234,14 +230,6 @@ struct pids_reap *procps_pids_select (
|
||||
int maxthese,
|
||||
enum pids_fill_type which);
|
||||
|
||||
struct pids_stacks *procps_pids_stacks_alloc (
|
||||
struct procps_pidsinfo *info,
|
||||
int maxstacks);
|
||||
|
||||
int procps_pids_stacks_dealloc (
|
||||
struct procps_pidsinfo *info,
|
||||
struct pids_stacks **these);
|
||||
|
||||
struct pids_stack **procps_pids_stacks_sort (
|
||||
struct procps_pidsinfo *info,
|
||||
struct pids_stack *stacks[],
|
||||
|
||||
Reference in New Issue
Block a user