diff options
Diffstat (limited to 'include/administration.hpp')
| -rw-r--r-- | include/administration.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/administration.hpp b/include/administration.hpp index 2d6d621..51e72d8 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -489,9 +489,9 @@ namespace administration { // Setup functions. // ======================= - void create_empty(char* save_file); - void create_default(char* save_file); - void create_from_file(char* save_file); + void create_empty(const char* save_file); + void create_default(const char* save_file); + void create_from_file(const char* save_file); void destroy(); void sort_data(); @@ -519,11 +519,11 @@ namespace administration { // Other functions. // ======================= - char* get_file_path(); + const char* get_file_path(); s32 get_next_id(); s32 get_next_sequence_number(); - char* get_currency_symbol_for_currency(char* code); - char* get_default_currency(); + const char* get_currency_symbol_for_currency(const char* code); + const char* get_default_currency(); time_t get_default_invoice_expire_duration(); ai_service get_active_ai_service(); ai_service get_ai_service(ai_provider provider); @@ -563,7 +563,7 @@ namespace administration { a_err project_remove(project data); void project_cancel(project data); a_err project_is_valid(project data); - char* project_get_status_string(project data); + const char* project_get_status_string(project data); u32 project_get_all(project* buffer); u32 project_get_partial_list(u32 page_index, u32 page_size, project* buffer); a_err project_get_by_id(project* buffer, char* id); @@ -610,7 +610,7 @@ namespace administration { void invoice_destroy(invoice* invoice); a_err invoice_is_valid(invoice* invoice); bool invoice_has_intra_community_services(invoice* invoice); - char* invoice_get_status_string(invoice* invoice); + const char* invoice_get_status_string(invoice* invoice); u32 invoice_get_partial_list_outgoing(u32 page_index, u32 page_size, invoice* buffer); u32 invoice_get_partial_list_incomming(u32 page_index, u32 page_size, invoice* buffer); u32 invoice_get_all(invoice* buffer); @@ -635,7 +635,7 @@ namespace administration { // Activity functions. // =================== a_err activity_import(activity ac); - a_err activity_add(char* user, char* ref_id, char* message); + a_err activity_add(const char* user, const char* ref_id, const char* message); u32 activity_get_all_for_object(activity* buffer, char* ref_id); u32 activity_count(); a_err activity_get_by_index(u32 index, activity* buffer); |
