60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
/**
|
|
* @file main.h
|
|
* @brief Main header file for the application.
|
|
*
|
|
* This header includes all necessary standard and project-specific headers,
|
|
* defines basic macros and types, and declares the main entry point of the program.
|
|
*
|
|
* Included headers:
|
|
* - Standard C libraries (stdio, stdlib, stdint, time, unistd, pthread, ncurses, fcntl, errno, termios, string, signal)
|
|
* - Project-specific modules (utils, logger, users, tui, rfid_handler, file_handler)
|
|
*
|
|
* Macros:
|
|
* - TRUE, FALSE: Boolean values for logic operations.
|
|
* - BYTE: Unsigned 8-bit integer type alias.
|
|
* - MIN_X_TERMINAL_SIZE, MIN_Y_TERMINAL_SIZE: Minimum terminal dimensions for UI.
|
|
*
|
|
* Function Declarations:
|
|
* - int main(int argc, char const **argv): Program entry point.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
#include <pthread.h>
|
|
#include <ncurses.h>
|
|
#include <pthread.h>
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <errno.h>
|
|
#include <termios.h>
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
|
|
|
|
#ifndef __MAIN_H__
|
|
#define __MAIN_H__
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
#ifndef BYTE
|
|
#define BYTE uint8_t
|
|
#endif
|
|
|
|
#define MIN_X_TERMINAL_SIZE 50
|
|
#define MIN_Y_TERMINAL_SIZE 20
|
|
|
|
#define JOURNAL_FILENAME "lighttam_journal"
|
|
|
|
int main(int argc, char const **argv);
|
|
|
|
#endif |