diff options
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 | ||
