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:
2025-05-15 23:19:35 +02:00
parent 2662415ed5
commit 7bc938aa69
6 changed files with 320 additions and 31 deletions
+1 -1
View File
@@ -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
+4
View File
@@ -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
View File
@@ -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.