diff options
Diffstat (limited to 'src/administration.hpp')
| -rw-r--r-- | src/administration.hpp | 45 |
1 files changed, 45 insertions, 0 deletions
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 <string.h> +#include <stdlib.h> + +#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 |
