From fabb3860947881b572204705d55eb8f59fa2e25a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 1 Jan 2025 19:06:54 -0800 Subject: 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. --- src/libvmon/vmon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libvmon/vmon.h') 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); -- cgit v1.2.3