2024-03-04 16:31:14 +01:00
|
|
|
#ifndef CALCULATOR_C_INTERFACE_LIB_H_INCLUDED
|
|
|
|
#define CALCULATOR_C_INTERFACE_LIB_H_INCLUDED
|
|
|
|
|
|
|
|
#include "calculator_c_interface_lib_global.h"
|
2024-03-11 12:14:28 +01:00
|
|
|
#include "tariff_calculator.h"
|
|
|
|
|
|
|
|
typedef TariffCalculator *TariffCalculatorHandle;
|
2024-03-04 16:31:14 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-03-11 14:27:33 +01:00
|
|
|
TariffCalculatorHandle NewTariffCalculator(void) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
|
|
|
void DeleteTariffCalculator(TariffCalculatorHandle handle) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
|
|
|
|
2024-03-13 13:17:02 +01:00
|
|
|
// libgit2
|
2024-03-11 14:27:33 +01:00
|
|
|
int InitGitLibrary(void) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
|
|
|
int ShutdownGitLibrary(void) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
|
|
|
int CloneRepository(char const *url, char const *local_path) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
2024-03-13 13:17:02 +01:00
|
|
|
int CheckoutLocalBranch(char const *local_path, char const *branch) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
2024-03-13 16:09:12 +01:00
|
|
|
int CommitFile(char const *local_path, char const *branch_name, char const *file_name, char const *commit_message) CALCULATOR_C_INTERFACE_LIB_EXPORT;
|
2024-03-04 16:31:14 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2024-03-11 12:14:28 +01:00
|
|
|
|
2024-03-04 16:31:14 +01:00
|
|
|
#endif // CALCULATOR_C_INTERFACE_LIB_H_INCLUDED
|