blob: 14cb33d771afa3f953172ebbc90d085b9f778dbe [file] [log] [blame]
Thierry FOURNIER4834bc72015-06-06 19:29:07 +02001#ifndef _TYPES_VARS_H
2#define _TYPES_VARS_H
3
4#include <common/mini-clist.h>
5
6#include <types/sample.h>
7
8enum vars_scope {
9 SCOPE_SESS = 0,
10 SCOPE_TXN,
11 SCOPE_REQ,
12 SCOPE_RES,
13};
14
15struct vars {
16 struct list head;
17 enum vars_scope scope;
18 unsigned int size;
19};
20
21/* This struct describes a variable. */
22struct var_desc {
23 const char *name; /* Contains the normalized variable name. */
24 enum vars_scope scope;
25};
26
27struct var {
28 struct list l; /* Used for chaining vars. */
29 const char *name; /* Contains the variable name. */
Thierry FOURNIER12ba0c22015-08-14 00:02:11 +020030 struct sample_data data; /* data storage. */
Thierry FOURNIER4834bc72015-06-06 19:29:07 +020031};
32
33#endif