aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-02-15 18:02:45 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-02-15 18:02:45 -0500
commit6ab5be5cf5f8ce444167be57ab0ab23e4e3086c0 (patch)
tree7ef8c5a00d8f455ed2352fe056bcf552715d6bb4 /common.h
parentff9b8e5a609364f51d1ae54fbc210ffdc76b27b4 (diff)
downloadmstat-6ab5be5cf5f8ce444167be57ab0ab23e4e3086c0.tar.gz
Implement mstat_check_argument_(int,double,str) functions
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common.h b/common.h
index 703c3a4..2e23179 100644
--- a/common.h
+++ b/common.h
@@ -78,7 +78,7 @@ FILE *mstat_open(const char *filename);
int mstat_rewind(FILE *fp);
ssize_t mstat_get_value_smaps(char *data);
char *mstat_get_key_smaps(char *data, const char *key);
-int mstat_read_smaps(struct mstat_record_t *p, FILE *fp);
+void mstat_read_smaps(struct mstat_record_t *p, FILE *fp);
int mstat_attach(struct mstat_record_t *p, pid_t pid);
int mstat_write_header(FILE *fp);
int mstat_write(FILE *fp, struct mstat_record_t *p);
@@ -86,5 +86,8 @@ int mstat_iter(FILE *fp, struct mstat_record_t *p);
void mstat_get_mmax(const double a[], size_t size, double *min, double *max);
double mstat_difftimespec(struct timespec end, struct timespec start);
int mstat_find_program(const char *name, char *where);
+void mstat_check_argument_str(char **x, char *arg, int i);
+void mstat_check_argument_int(char **x, char *arg, int i);
+void mstat_check_argument_double(char **x, char *arg, int i);
#endif //MSTAT_COMMON_H