diff options
| author | Braulio Rivas <brauliorivas@FreeBSD.org> | 2025-11-03 20:14:09 +0000 |
|---|---|---|
| committer | Alfonso S. Siciliano <asiciliano@FreeBSD.org> | 2025-11-03 20:14:09 +0000 |
| commit | 5a70558d32b9680c10ab579c7491652e0838cee4 (patch) | |
| tree | f7d70fcdbc604287f039ae1df30f1f7c419f3dfc /lib/bsddialog.h | |
| parent | 653f765f05b8c7e3908ae92e9bf61522a50cefc9 (diff) | |
contrib/bsddialog: import 1.1vendor/bsddialog/1.1vendor/bsddialog
Add: slider dialog.
Imported to enable testing and to complete the geomman(8) utility.
Developed as part of the "Full Disk Administration Tool for FreeBSD"
project, Braulio Rivas (brauliorivas@), Google Summer of Code 2025.
Sponsored by: Google LLC (GSoC 2025)
Diffstat (limited to 'lib/bsddialog.h')
| -rw-r--r-- | lib/bsddialog.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bsddialog.h b/lib/bsddialog.h index fc59071c6fa0..4b387d993363 100644 --- a/lib/bsddialog.h +++ b/lib/bsddialog.h @@ -30,7 +30,7 @@ #include <stdbool.h> -#define LIBBSDDIALOG_VERSION "1.0.5" +#define LIBBSDDIALOG_VERSION "1.1" /* Return values */ #define BSDDIALOG_ERROR -1 @@ -245,6 +245,12 @@ bsddialog_rangebox(struct bsddialog_conf *conf, const char *text, int rows, int cols, int min, int max, int *value); int +bsddialog_slider(struct bsddialog_conf *conf, const char *text, int rows, + int cols, const char *unit, unsigned long length, unsigned long *start, + unsigned long *end, bool resize, unsigned int nblocks, + unsigned long blocks[][2]); + +int bsddialog_textbox(struct bsddialog_conf *conf, const char *file, int rows, int cols); |
