panelreel: add tablet curry accessors

This commit is contained in:
nick black 2019-12-15 05:22:12 -05:00
parent bfda5a53d6
commit f374682134
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 11 additions and 0 deletions

View File

@ -1430,6 +1430,9 @@ API struct tablet* panelreel_prev(struct panelreel* pr);
// underlying WINDOW. Returns non-zero on failure.
API int panelreel_destroy(struct panelreel* pr);
API void* tablet_userptr(struct tablet* t);
API const void* tablet_userptr_const(const struct tablet* t);
#define PREFIXSTRLEN 7 // Does not include a '\0' (xxx.xxU)
#define IPREFIXSTRLEN 8 // Does not include a '\0' (xxxx.xxU)
#define BPREFIXSTRLEN 9 // Does not include a '\0' (xxxx.xxUi), i == prefix

View File

@ -740,6 +740,14 @@ int panelreel_destroy(panelreel* preel){
return ret;
}
void* tablet_userptr(tablet* t){
return t->curry;
}
const void* tablet_userptr_const(const tablet* t){
return t->curry;
}
int panelreel_tabletcount(const panelreel* preel){
return preel->tabletcount;
}