Unify process_alloc() and process_realloc() with PROCESS_ALLOC_MODE_REALLOC bit
[moveable_pool.git] / process_test.h
1 #ifndef _PROCESS_TEST_H
2 #define _PROCESS_TEST_H 1
3
4 #include <stdbool.h>
5
6 #define PROCESS_TEST_TYPE_ALLOC 0
7 #define PROCESS_TEST_TYPE_REALLOC 1
8 #define PROCESS_TEST_TYPE_REALLOC_BASE 2
9 #define PROCESS_TEST_TYPE_RUN 3
10 #define PROCESS_TEST_TYPE_FREE 4
11
12 struct process_test {
13   int type;
14   int process;
15   int old_para_base;
16   int old_para_limit;
17   int para_base;
18   int para_limit;
19   bool success;
20 };
21
22 #endif