This repository has been archived on 2026-05-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LightTAM/include/users.h
T

39 lines
656 B
C

#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef __USERS_H__
#define __USERS_H__
typedef struct person
{
uint16_t uuid;
char *name;
char *surname;
uint32_t department;
time_t last_time_event;
uint32_t total;
pthread_mutex_t lock;
} person_t;
typedef struct node
{
person_t user;
struct node *next;
} node_t;
uint16_t generateUUID(node_t * _head);
uint16_t searchUUIDByName(node_t * _head);
node_t * searchPersonByUUID(node_t * _head);
void addPersonToList(node_t * _head, char * _name, char * _surname, uint32_t _department);
void addTimeEvent(node_t * _person);
#endif