diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-06-13 13:31:54 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-06-13 13:31:54 +0200 |
commit | 2f9e8eae28057d8c17373227f4bc375847f0cbd1 (patch) | |
tree | d75302d21ee584ce3bc3a3cbd5ae1f4147929def /src/data.h | |
parent | f73ad5abc1e952175b669f7b2192596cb4559abf (diff) |
agent-at: Improve comments
Change-Id: Ica1479c4ccac93ff153c0e0bf79a3eab6ae882f9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/data.h')
-rw-r--r-- | src/data.h | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -31,11 +31,24 @@ typedef struct data_key data_key_t; typedef struct data_value data_value_t; +enum data_keyidx { + KeyIdx_Client, + KeyIdx_Session, + KeyIdx_User, + KeyIdx_Permission, + KeyIdx_Count +}; + struct data_key { - const char *client; - const char *session; - const char *user; - const char *permission; + union { + struct { + const char *client; + const char *session; + const char *user; + const char *permission; + }; + const char *keys[KeyIdx_Count]; + }; }; struct data_value { |