Priprava Ncurses a vlakna pro UART

This commit is contained in:
2025-03-29 22:45:42 +01:00
parent 3e5f57c18f
commit 816815ff84
7 changed files with 57 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
#ifndef __TUI_H__
#define __TUI_H__
#include <ncurses.h>
#include <stdio.h>
#include <stdlib.h>
#endif
+4
View File
@@ -1,5 +1,7 @@
#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef __USERS_H__
#define __USERS_H__
@@ -14,6 +16,8 @@ typedef struct person
time_t last_timestamp;
uint32_t total;
pthread_mutex_t lock;
} person_t;
typedef struct node