summaryrefslogtreecommitdiff
path: root/src/libvmon/vmon.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2025-01-01 19:06:54 -0800
committerVito Caputo <vcaputo@pengaru.com>2025-01-01 19:32:12 -0800
commitfabb3860947881b572204705d55eb8f59fa2e25a (patch)
tree28bb0047d5ab7d545ba0cc22a3a4df5abb191b6e /src/libvmon/vmon.h
parent707152eeb5d259e4fab41f7c6ed1afea4380968a (diff)
libvmon: public vmon_proc_monitor() shouldn't accept a parent
The public callers of vmon_proc_monitor() shouldn't ever be passing a non-NULL parent as that's a pretty intimate and messy internal aspect of libvmon. So let's remove that altogether from the public function for monitoring a process, and turn existing one supporting parents into a libvmon-private function. Trivial cleanup, there's so much more needed in libvmon since it's the epitome of an organically evolved crusty thing.
Diffstat (limited to 'src/libvmon/vmon.h')
-rw-r--r--src/libvmon/vmon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libvmon/vmon.h b/src/libvmon/vmon.h
index 974d27f..cf9ea09 100644
--- a/src/libvmon/vmon.h
+++ b/src/libvmon/vmon.h
@@ -306,7 +306,7 @@ typedef struct _vmon_t {
int vmon_init(vmon_t *, vmon_flags_t, vmon_sys_wants_t, vmon_proc_wants_t);
void vmon_destroy(vmon_t *);
-vmon_proc_t * vmon_proc_monitor(vmon_t *, vmon_proc_t *, int, vmon_proc_wants_t, void (*)(vmon_t *, void *, vmon_proc_t *, void *), void *);
+vmon_proc_t * vmon_proc_monitor(vmon_t *, int, vmon_proc_wants_t, void (*)(vmon_t *, void *, vmon_proc_t *, void *), void *);
void vmon_proc_unmonitor(vmon_t *, vmon_proc_t *, void (*)(vmon_t *, void *, vmon_proc_t *, void *), void *);
int vmon_sample(vmon_t *);
void vmon_dump_procs(vmon_t *vmon, FILE *out);
© All Rights Reserved