From 75f9922f6d3c1e5bbbe7b90ca170392cc0f5efbc Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 21 Oct 2018 16:23:23 +0300 Subject: Refactor io utils, add *-address-rw tools Namespace io_ stuff into mem_io_ to be less likely to collision with anything else. Add io-stream utility for working with streams instead of direct buffers. Add address-rw tools for simple memory read/write, where regions aren't needed. --- src/cli/cli.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/cli/cli.h (limited to 'src/cli/cli.h') diff --git a/src/cli/cli.h b/src/cli/cli.h new file mode 100644 index 0000000..6262304 --- /dev/null +++ b/src/cli/cli.h @@ -0,0 +1,12 @@ +#pragma once + +#include +#include // pid_t + +struct mem_io; + +int +proc_address_rw(int argc, const char *argv[], bool (*)(struct mem_io*, const pid_t)); + +int +proc_region_rw(int argc, const char *argv[], bool (*)(struct mem_io*, const pid_t)); -- cgit v1.2.3-70-g09d2