This commit is contained in:
stmctommyau 2023-09-26 23:58:24 +08:00
parent cc33fd3e2c
commit 298c32576a
No known key found for this signature in database
GPG Key ID: 87B1991E1277F054

11
utils.h
View File

@ -120,7 +120,16 @@ bool item_inputer(char * varname,INPUT_TYPE type,void * item,bool empty_allowed)
return true;
}
void lister(void * db,struct Map* map, int row,char * lister_name,char * SortItems[],int NoSortItems,void (*page_printer)(void*,int,int,struct Map*) , struct Map* (*sorter)(void *,int),void * (*showitem)(void *,int)){
void lister(
void * db,
struct Map* map,
int row,
char * lister_name,
char * SortItems[],
int NoSortItems,
void (*page_printer)(void*,int,int,struct Map*),
struct Map* (*sorter)(void *,int),void * (*showitem)(void *,int))
{
int choice = -1;
int page = 0;
int page_size = SIZE_OF_PAGE;