#ifndef CALCULATOR_C_INTERFACE_LIB_H_INCLUDED #define CALCULATOR_C_INTERFACE_LIB_H_INCLUDED #include "calculator_c_interface_lib_global.h" #include "tariff_calculator.h" typedef TariffCalculator *TariffCalculatorHandle; #ifdef __cplusplus extern "C" { #endif TariffCalculatorHandle NewTariffCalculator(void) CALCULATOR_C_INTERFACE_LIB_EXPORT; void DeleteTariffCalculator(TariffCalculatorHandle handle) CALCULATOR_C_INTERFACE_LIB_EXPORT; // libgit2 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; int CheckoutLocalBranch(char const *local_path, char const *branch) CALCULATOR_C_INTERFACE_LIB_EXPORT; int CommitFile(char const *local_path, char const *branch_name, char const *file_name, char const *commit_message) CALCULATOR_C_INTERFACE_LIB_EXPORT; #ifdef __cplusplus } #endif #endif // CALCULATOR_C_INTERFACE_LIB_H_INCLUDED