blob: 70125adbc18bd57204649fa654d286912a2737ed [file] [log] [blame] [raw]
/* libprocstat
Copyright 2015-2022 Rivoreo
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#ifndef _PROCSTAT_PRIVATE_H
#define _PROCSTAT_PRIVATE_H
struct procstat_interface {
const char *name;
struct procstat_private_handle *(*open)(struct procstat_handle *);
void (*close)(struct procstat_private_handle *);
int (*get)(struct procstat_private_handle *, pid_t, int, struct procstat *);
int (*get_command_line)(struct procstat_private_handle *, pid_t, char **);
int (*get_argv)(struct procstat_private_handle *, pid_t, int *, char ***);
int (*get_path)(struct procstat_private_handle *, pid_t, char **);
int (*get_mac_label)(struct procstat_private_handle *, pid_t, char **);
void (*walk)(struct procstat_private_handle *, int, int, int (*)(struct procstat_handle *, struct procstat *, void *), void *);
};
#endif