From dec2ab515e4bfd0b9ce63bca93b613aacad364c6 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 19 Jan 2020 04:07:25 -0500 Subject: [PATCH] python: update palette256 API wrapper --- doc/man/man3/notcurses_palette.3.md | 2 +- python/src/notcurses/build_notcurses.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/man/man3/notcurses_palette.3.md b/doc/man/man3/notcurses_palette.3.md index 0337cd1de..2661e5a01 100644 --- a/doc/man/man3/notcurses_palette.3.md +++ b/doc/man/man3/notcurses_palette.3.md @@ -25,7 +25,7 @@ typedef struct palette256 { **int palette256_set(palette256* p, int idx, unsigned rgb);** -**int palette256_get(const palette256* p, int idx, int* restrict r, int* restrict g, int* restrict b);** +**int palette256_get_rgb(const palette256* p, int idx, int* restrict r, int* restrict g, int* restrict b);** **void palette256_free(palette256* p);** diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index a4e89b634..e8cb64446 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -231,7 +231,7 @@ palette256* palette256_new(struct notcurses* nc); int palette256_use(struct notcurses* nc, const palette256* p); int palette256_set_rgb(palette256* p, int idx, int r, int g, int b); int palette256_set(palette256* p, int idx, unsigned rgb); -int palette256_get(const palette256* p, int idx, unsigned* r, unsigned* g, unsigned* b); +int palette256_get_rgb(const palette256* p, int idx, unsigned* r, unsigned* g, unsigned* b); void palette256_free(palette256* p); """)