Enhance user management: update CSV data, refactor UUID search function, and implement person listing and search functionalities in the TUI.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
#define TRUE 1
|
||||
#define TRUE !0
|
||||
#define FALSE 0
|
||||
#define BYTE uint8_t
|
||||
#define MIN_X_TERMINAL_SIZE 50
|
||||
|
||||
@@ -11,4 +11,8 @@ void uartDialog(char *uart_adress, int terminal_x, int terminal_y);
|
||||
|
||||
void mainMenu(list_t * person_list, int terminal_x, int terminal_y);
|
||||
|
||||
void personListing(list_t * person_list, int terminal_x, int terminal_y);
|
||||
|
||||
void personSearch(list_t * person_list, int terminal_x, int terminal_y);
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -59,7 +59,7 @@ uint16_t generateUUID(list_t *_list);
|
||||
* @param _surname Pointer to a string containing the user's surname.
|
||||
* @return Pointer to the UUID of the user if found, or 0 if no match is found.
|
||||
*/
|
||||
uint16_t *searchUUIDByName(list_t *_list, char *_name, char *_surname);
|
||||
uint16_t searchUUIDByName(list_t *_list, char *_name, char *_surname, uint16_t * _uuids_found);
|
||||
|
||||
/**
|
||||
* @brief Searches for a person in a linked list by their UUID.
|
||||
|
||||
Reference in New Issue
Block a user