blob: 1902c422c38ca1abe246636f7c66e579007d59eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
// Queues and trees for code life cycle
#include "kpl/queue.h"
typedef enum : int8_t {
KPL_CONFIG_CODE_QUEUE_POW2_MIN = 4,
KPL_CONFIG_CODE_QUEUE_POW2_DEFAULT = 7,
KPL_CONFIG_CODE_QUEUE_POW2_MAX = 10,
} kpl_config_code_queue_pow;
typedef struct {
int8_t queue_pow2;
} kpl_config_code;
// TODO namespace tree
// TODO module tree
typedef struct {
kpl_config_code *config_code;
kpl_ring_queue code_queue;
} kpl_code;
|