aboutsummaryrefslogtreecommitdiff
path: root/src/user.h
blob: d52b7632ec0e9861e14c7584b60649da5d57e98f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// user.h
#ifndef INCLUDED_USER_H
#define INCLUDED_USER_H

#include <stdint.h>

typedef uint16_t client_id_t;

struct user {
  union {
    client_id_t key;
    client_id_t id;
  };
  union {
    uint32_t value;
    uint32_t per_capita_income;
    float    normalizer;
  };
};

#endif // INCLUDED_USER_H
// user.h ends here