diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-15 13:04:01 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-15 13:04:01 +0300 |
| commit | dcebf9c7f954a55350b68d0ead1935612c4e2e05 (patch) | |
| tree | 3eb3e9f6154c6760bcb89a565f8ddc8f8b66cb90 /src/hist_view.h | |
| parent | bd8222e615134c3ec5e7a07b6b1fa97c9bd4a471 (diff) | |
Rename the library to wsap_vtcore
ncurses installs <term.h> and defines struct term. In a file that
includes both headers, an ncurses TERMINAL * and this library's terminal
are silently the same type. The name wsap_vtcore avoids the clash.
The public header is now <wsap_vtcore/wsap_vtcore.h>. Every global
symbol uses the wsap_vtcore_ prefix, every macro uses WSAP_VTCORE_, and
the shared library is libwsap_vtcore.so.0. The default terminal name is
now "wsap_vtcore". The ISA override variable is WSAP_VTCORE_ISA.
No other behavior changes. The amalgamation writes wsap_vtcore.c and
wsap_vtcore.h.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/hist_view.h')
| -rw-r--r-- | src/hist_view.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/hist_view.h b/src/hist_view.h index 61b4e89..165ab0b 100644 --- a/src/hist_view.h +++ b/src/hist_view.h @@ -1,5 +1,5 @@ -#ifndef TERM_HIST_VIEW_H -#define TERM_HIST_VIEW_H +#ifndef WSAP_VTCORE_HIST_VIEW_H +#define WSAP_VTCORE_HIST_VIEW_H #include "hist.h" @@ -30,20 +30,20 @@ struct hist_view { int index_cols; }; -void term_hist_view_free(struct hist_view *v); +void wsap_vtcore_hist_view_free(struct hist_view *v); /* Update the index during snapshot capture. Reads do not change it. */ -bool term_hist_view_sync(struct hist_view *v, const struct hist *h, int cols); -void term_hist_view_refine(struct hist_view *v, struct hist *h, int cols, int rows); -uint64_t term_hist_view_rows(const struct hist_view *v, const struct hist *h, int cols); -bool term_hist_view_find_row(const struct hist_view *v, const struct hist *h, int row, +bool wsap_vtcore_hist_view_sync(struct hist_view *v, const struct hist *h, int cols); +void wsap_vtcore_hist_view_refine(struct hist_view *v, struct hist *h, int cols, int rows); +uint64_t wsap_vtcore_hist_view_rows(const struct hist_view *v, const struct hist *h, int cols); +bool wsap_vtcore_hist_view_find_row(const struct hist_view *v, const struct hist *h, int row, int cols, uint64_t *id, int *seg); /* Read the offset from the anchor at the current width. */ -int term_hist_view_scroll_offset(const struct hist_view *v, const struct hist *h, int cols); -void term_hist_view_scroll(struct hist_view *v, const struct hist *h, int cols, +int wsap_vtcore_hist_view_scroll_offset(const struct hist_view *v, const struct hist *h, int cols); +void wsap_vtcore_hist_view_scroll(struct hist_view *v, const struct hist *h, int cols, struct line_pos screen_top, int lines); -void term_hist_view_scroll_to(struct hist_view *v, const struct hist *h, int cols, +void wsap_vtcore_hist_view_scroll_to(struct hist_view *v, const struct hist *h, int cols, struct line_pos screen_top, int offset); struct hist_view_pos { @@ -53,10 +53,10 @@ struct hist_view_pos { }; /* Clamp an evicted anchor. This does not update the index on the write path. */ -void term_hist_view_note_push(struct hist_view *v, const struct hist *h, int cols); -void term_hist_view_rewrap(struct hist_view *v, const struct hist *h, int cols); +void wsap_vtcore_hist_view_note_push(struct hist_view *v, const struct hist *h, int cols); +void wsap_vtcore_hist_view_rewrap(struct hist_view *v, const struct hist *h, int cols); -bool term_hist_view_row_pos(const struct hist_view *v, const struct hist *h, int cols, +bool wsap_vtcore_hist_view_row_pos(const struct hist_view *v, const struct hist *h, int cols, int screen_rows, struct line_pos screen_top, int y, struct hist_view_pos *pos); |
