From 853bbb3752a5fa2f58ef456ffb6e3a552e13cb11 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Aug 2025 19:22:36 +0200 Subject: initial commit --- src/administration.hpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/administration.hpp (limited to 'src/administration.hpp') diff --git a/src/administration.hpp b/src/administration.hpp new file mode 100644 index 0000000..9bf790c --- /dev/null +++ b/src/administration.hpp @@ -0,0 +1,45 @@ +#pragma once + +#include +#include + +#include "config.hpp" +#include "simclist.h" + +typedef struct +{ + char id[16]; + char name[64]; + char address1[128]; + char address2[128]; + char taxid[32]; + char businessid[32]; + char email[64]; + char phone_number[16]; + char bank_account[32]; +} contact; + +typedef struct +{ + contact company_info; + s32 next_id; + char path[4096]; + char program_version[10]; + char country_code[2]; + list_t contacts; + // projects + // invoices + char ai_service[16]; + char ai_key[32]; + char email_service[16]; + char email_key[32]; +} administration; + +extern administration g_administration; + +void init_administration_obj(); +void destroy_administration_obj(); + +void remove_contact(int index); +bool create_contact(contact data); +bool update_contact(contact data); \ No newline at end of file -- cgit v1.2.3-70-g09d2