diff options
| author | 2026-11-10 08:29:58 +0000 | |
|---|---|---|
| committer | 2026-11-10 08:33:56 +0000 | |
| commit | 776276d5c7e67356a880f3e31076d32cdc1c1882 (patch) | |
| tree | cbde131f3d46338adee9c67ac0f988295736bdd4 /src/user.h | |
| download | coursework-master.tar.gz | |
Diffstat (limited to 'src/user.h')
| -rw-r--r-- | src/user.h | 22 |
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 | |||
| 7 | typedef uint16_t client_id_t; | ||
| 8 | |||
| 9 | struct 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 | ||
