diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/burneye/src/conf/tmp/element.h | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/burneye/src/conf/tmp/element.h')
| -rw-r--r-- | other/burneye/src/conf/tmp/element.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/other/burneye/src/conf/tmp/element.h b/other/burneye/src/conf/tmp/element.h new file mode 100644 index 0000000..36b9a23 --- /dev/null +++ b/other/burneye/src/conf/tmp/element.h | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | /* fornax - distributed network | ||
| 2 | * | ||
| 3 | * by team teso | ||
| 4 | * | ||
| 5 | * scripting element includes | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef FNX_ELEMENT_H | ||
| 9 | #define FNX_ELEMENT_H | ||
| 10 | |||
| 11 | |||
| 12 | #define ELEM_TYPE_CALL 1 | ||
| 13 | #define ELEM_TYPE_BRANCH 2 | ||
| 14 | #define ELEM_TYPE_SET 3 | ||
| 15 | |||
| 16 | typedef struct { | ||
| 17 | int type; | ||
| 18 | void * data; | ||
| 19 | } element; | ||
| 20 | |||
| 21 | |||
| 22 | /* elem_list_free | ||
| 23 | * | ||
| 24 | * free a list of elements pointed to by `el' | ||
| 25 | * | ||
| 26 | * return in any case | ||
| 27 | */ | ||
| 28 | |||
| 29 | void elem_list_free (element **el); | ||
| 30 | |||
| 31 | |||
| 32 | /* elem_add | ||
| 33 | * | ||
| 34 | * add element pointed to by `e' to the element list pointed to by `el'. if the | ||
| 35 | * element list is empty, create a new one | ||
| 36 | * | ||
| 37 | * return a pointer to the modified/created element list | ||
| 38 | */ | ||
| 39 | |||
| 40 | element ** elem_add (element **el, element *e); | ||
| 41 | |||
| 42 | |||
| 43 | /* elem_create | ||
| 44 | * | ||
| 45 | * element constructor. create a new element structure | ||
| 46 | * | ||
| 47 | * return a pointer to the new structure | ||
| 48 | */ | ||
| 49 | |||
| 50 | element * elem_create (void); | ||
| 51 | |||
| 52 | |||
| 53 | /* elem_free | ||
| 54 | * | ||
| 55 | * free the whole element pointed to by `e' | ||
| 56 | * | ||
| 57 | * return in any case | ||
| 58 | */ | ||
| 59 | |||
| 60 | void elem_free (element *e); | ||
| 61 | |||
| 62 | |||
| 63 | /* elem_set_type | ||
| 64 | * | ||
| 65 | * set element type `type' for element pointed to by `e' | ||
| 66 | * | ||
| 67 | * return pointer to structure | ||
| 68 | */ | ||
| 69 | |||
| 70 | element * elem_set_type (element *e, int type); | ||
| 71 | |||
| 72 | |||
| 73 | /* elem_set_data | ||
| 74 | * | ||
| 75 | * set element data to `data' for element pointed to by `e' | ||
| 76 | * | ||
| 77 | * return pointer to structure | ||
| 78 | */ | ||
| 79 | |||
| 80 | element * elem_set_data (element *e, void *data); | ||
| 81 | |||
| 82 | |||
| 83 | #endif | ||
| 84 | |||
| 85 | |||
