aboutsummaryrefslogtreecommitdiff
path: root/src/user.h
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-10 08:29:58 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-10 08:33:56 +0000
commit776276d5c7e67356a880f3e31076d32cdc1c1882 (patch)
treecbde131f3d46338adee9c67ac0f988295736bdd4 /src/user.h
downloadcoursework-master.tar.gz
publishHEADmaster
Diffstat (limited to 'src/user.h')
-rw-r--r--src/user.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/user.h b/src/user.h
new file mode 100644
index 0000000..d52b763
--- /dev/null
+++ b/src/user.h
@@ -0,0 +1,22 @@
1// user.h
2#ifndef INCLUDED_USER_H
3#define INCLUDED_USER_H
4
5#include <stdint.h>
6
7typedef uint16_t client_id_t;
8
9struct user {
10 union {
11 client_id_t key;
12 client_id_t id;
13 };
14 union {
15 uint32_t value;
16 uint32_t per_capita_income;
17 float normalizer;
18 };
19};
20
21#endif // INCLUDED_USER_H
22// user.h ends here