ncdirect_flush: struct ncdirect is const

This commit is contained in:
nick black 2020-08-23 01:00:00 -04:00
parent 4ebf8f748c
commit 32d352173b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,9 @@
This document attempts to list user-visible changes and any major internal
rearrangements of Notcurses.
* 1.6.17 (not yet released)
* `ncdirect_flush()` now takes a `const struct ncdirect*`.
* 1.6.16 (2020-08-22)
* `cell_simple_p()` has been removed. It is no longer a useful concept for
user code, and its presence is indicative of a likely error.

View File

@ -37,7 +37,7 @@ API unsigned ncdirect_palette_size(const struct ncdirect* nc);
API int ncdirect_putstr(struct ncdirect* nc, uint64_t channels, const char* utf8);
// Force a flush. Returns 0 on success, -1 on failure.
API int ncdirect_flush(struct ncdirect* nc);
API int ncdirect_flush(const struct ncdirect* nc);
static inline int
ncdirect_bg_rgb(struct ncdirect* nc, unsigned r, unsigned g, unsigned b){

View File

@ -427,6 +427,7 @@ int ncdirect_cursor_up(struct ncdirect* nc, int num);
int ncdirect_cursor_left(struct ncdirect* nc, int num);
int ncdirect_cursor_right(struct ncdirect* nc, int num);
int ncdirect_cursor_down(struct ncdirect* nc, int num);
int ncdirect_flush(const struct ncdirect* nc);
int ncdirect_hline_interp(struct ncdirect* n, const char* egc, int len, uint64_t h1, uint64_t h2);
int ncdirect_vline_interp(struct ncdirect* n, const char* egc, int len, uint64_t h1, uint64_t h2);
int ncdirect_box(struct ncdirect* n, uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr, const wchar_t* wchars, int ylen, int xlen, unsigned ctlword);