diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
commit | 042e43247f396a9000fead59d9bff87bf12806d6 (patch) | |
tree | e902784464cbe9ce3c5114d513b016523e7e4b29 /src/work.h | |
parent | 170b8a92434233241c990c3e9432786de3262bcd (diff) |
Completely revamp the grab source code
Some of the (many) few changes are:
- Multithreading for significantly faster performance
- The -p/--predicate flag
- Byte offsets as the default
- No customizable colors (maybe this will come back later)
- Newer edition of mlib (formerly librune)
Diffstat (limited to 'src/work.h')
-rw-r--r-- | src/work.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/work.h b/src/work.h new file mode 100644 index 0000000..644a244 --- /dev/null +++ b/src/work.h @@ -0,0 +1,16 @@ +#ifndef GRAB_WORK_H +#define GRAB_WORK_H + +#include <pcre2.h> + +typedef struct { + char c; + pcre2_code *re; +#if DEBUG + bool free_me; +#endif +} op_t; + +void process_file(const char *filename, unsigned char **buf); + +#endif /* !GRAB_WORK_H */ |