diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-07-19 14:51:05 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-07-29 16:35:30 -0400 |
commit | 7013a7b15f642e9233ba78ac9188ff01d2ebd4fb (patch) | |
tree | b2777f851dc0bc040d7dee026af22a4748bbc85f /klippy/chelper/stepcompress.h | |
parent | fbfa31a3c3bc948ac26494244d74dee21fe11b12 (diff) | |
download | kutter-7013a7b15f642e9233ba78ac9188ff01d2ebd4fb.tar.gz kutter-7013a7b15f642e9233ba78ac9188ff01d2ebd4fb.tar.xz kutter-7013a7b15f642e9233ba78ac9188ff01d2ebd4fb.zip |
stepcompress: Support extracting stepcompress history
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/stepcompress.h')
-rw-r--r-- | klippy/chelper/stepcompress.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/klippy/chelper/stepcompress.h b/klippy/chelper/stepcompress.h index 4c708541..d10cccf9 100644 --- a/klippy/chelper/stepcompress.h +++ b/klippy/chelper/stepcompress.h @@ -5,6 +5,12 @@ #define ERROR_RET -989898989 +struct pull_history_steps { + uint64_t first_clock, last_clock; + int64_t start_position; + int step_count, interval, add; +}; + struct stepcompress *stepcompress_alloc(uint32_t oid); void stepcompress_fill(struct stepcompress *sc, uint32_t max_error , uint32_t invert_sdir, int32_t queue_step_msgtag @@ -21,6 +27,9 @@ int stepcompress_set_last_position(struct stepcompress *sc int64_t stepcompress_find_past_position(struct stepcompress *sc , uint64_t clock); int stepcompress_queue_msg(struct stepcompress *sc, uint32_t *data, int len); +int stepcompress_extract_old(struct stepcompress *sc + , struct pull_history_steps *p, int max + , uint64_t start_clock, uint64_t end_clock); struct serialqueue; struct steppersync *steppersync_alloc( |