about summary refs log tree commit diff stats
path: root/dev/c/src/basic/basic.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/c/src/basic/basic.h')
-rw-r--r--dev/c/src/basic/basic.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev/c/src/basic/basic.h b/dev/c/src/basic/basic.h
new file mode 100644
index 0000000..6eef13f
--- /dev/null
+++ b/dev/c/src/basic/basic.h
@@ -0,0 +1,27 @@
+enum operations{deposit, redraw}
+
+union u_account {
+    int id;
+    int value;
+    char *client_name;
+    int *log_head;
+    union u_account *next;
+}
+
+struct s_accounts {
+    int total_accounts;
+    int total_value;
+    union u_account *head_account;
+}
+
+struct s_operation {
+    int time, amount;
+    enum operations op;
+    struct s_operation *next;
+}
+
+struct s_log {
+    int number;
+    struct s_operation *operation;
+    struct s_log *next;
+}