summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/administration.hpp2
-rw-r--r--include/administration_writer.hpp2
-rw-r--r--include/countries.hpp12
-rw-r--r--include/importer.hpp4
4 files changed, 10 insertions, 10 deletions
diff --git a/include/administration.hpp b/include/administration.hpp
index c099318..31044f5 100644
--- a/include/administration.hpp
+++ b/include/administration.hpp
@@ -489,7 +489,7 @@ namespace administration {
// Tax functions.
// =======================
- tax_line* get_tax_line_from_report(tax_report* quarter, char* category);
+ tax_line* get_tax_line_from_report(tax_report* quarter, const char* category);
void create_tax_statement(tax_statement* statement);
// Other functions.
diff --git a/include/administration_writer.hpp b/include/administration_writer.hpp
index e1a651e..5c5ced2 100644
--- a/include/administration_writer.hpp
+++ b/include/administration_writer.hpp
@@ -35,7 +35,7 @@ namespace administration_writer {
bool start_new();
// Individual entity writing.
- bool delete_entry(char* id);
+ bool delete_entry(const char* id);
bool save_project_blocking(project project);
bool save_cost_center_blocking(cost_center cost);
bool save_tax_rate_blocking(tax_rate rate);
diff --git a/include/countries.hpp b/include/countries.hpp
index 5364eff..7a15a32 100644
--- a/include/countries.hpp
+++ b/include/countries.hpp
@@ -20,7 +20,7 @@
typedef struct
{
- char* country_code;
+ const char* country_code;
bool is_EU;
bool enabled; // true = can be used as operating country.
@@ -37,16 +37,16 @@ typedef struct
namespace country {
s32 get_count();
- char* get_code_by_index(s32 index);
+ const char* get_code_by_index(s32 index);
time_t get_default_invoice_expire_duration(char* country_code);
- bool is_EU(char* country_code);
- bool is_enabled(char* country_code);
- bool tax_is_implemented(char* country_code);
+ bool is_EU(const char* country_code);
+ bool is_enabled(const char* country_code);
+ bool tax_is_implemented(const char* country_code);
void fill_tax_report_with_categories(char* country_code, tax_report* report);
bool add_billing_item_to_tax_report(char* country_code, tax_report* report, invoice* inv, billing_item* item);
float calculate_tax_report_final(char* country_code, tax_report* report);
time_t get_invoice_date_to_use_for_tax_report(char* country_code, invoice* inv);
- u32 get_available_tax_rates(char* country_code, tax_rate* buffer, u32 buffer_size);
+ u32 get_available_tax_rates(const char* country_code, tax_rate* buffer, u32 buffer_size);
} \ No newline at end of file
diff --git a/include/importer.hpp b/include/importer.hpp
index a27ed8e..1d97c12 100644
--- a/include/importer.hpp
+++ b/include/importer.hpp
@@ -66,8 +66,8 @@ namespace importer {
char* provider_name;
char* default_model;
bool (*upload_file)(char* file_path, char* file_id, size_t file_id_len);
- bool (*query_with_file)(char* query, size_t query_length, char* file_id, char** response);
- bool (*batch_query_with_file)(char** queries, size_t query_count, char* file_id, invoice* buffer, batch_query_response_handler response_handler);
+ bool (*query_with_file)(const char* query, size_t query_length, char* file_id, char** response);
+ bool (*batch_query_with_file)(const char** queries, size_t query_count, char* file_id, invoice* buffer, batch_query_response_handler response_handler);
bool (*get_available_models)(model_list_request* buffer);
} ai_provider_impl;