Compare commits
2 Commits
197be17615
...
4a3d313deb
Author | SHA1 | Date | |
---|---|---|---|
4a3d313deb | |||
ce930f1931 |
@ -4,6 +4,16 @@
|
||||
#include <time.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef CALCULATE_LIBRARY_EXPORTS
|
||||
#define CALCULATE_LIBRARY_API __declspec(dllexport)
|
||||
#else
|
||||
#define CALCULATE_LIBRARY_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define CALCULATE_LIBRARY_API
|
||||
#endif
|
||||
|
||||
class Configuration;
|
||||
|
||||
typedef Configuration parking_tariff_t;
|
||||
@ -20,11 +30,11 @@ struct price_t {
|
||||
double vat;
|
||||
};
|
||||
|
||||
bool init_tariff(parking_tariff_t **tariff, char const *config_file);
|
||||
void free_tariff(parking_tariff_t *tariff);
|
||||
int get_zone_nr();
|
||||
bool CALCULATE_LIBRARY_API init_tariff(parking_tariff_t **tariff, char const *config_file);
|
||||
void CALCULATE_LIBRARY_API free_tariff(parking_tariff_t *tariff);
|
||||
int CALCULATE_LIBRARY_API get_zone_nr();
|
||||
|
||||
bool compute_price_for_parking_ticket(parking_tariff_t *tariff,
|
||||
bool CALCULATE_LIBRARY_API compute_price_for_parking_ticket(parking_tariff_t *tariff,
|
||||
time_t start_parking_time,
|
||||
time_t end_parking_time,
|
||||
struct price_t *price);
|
||||
|
@ -8,6 +8,9 @@ INCLUDEPATH += $$_PRO_FILE_PWD_/include
|
||||
INCLUDEPATH += $$_PRO_FILE_PWD_/include/mobilisis
|
||||
INCLUDEPATH += $$_PRO_FILE_PWD_/include/rapidjson
|
||||
|
||||
win32 {
|
||||
CONFIG+=-DCALCULATE_LIBRARY_EXPORTS
|
||||
}
|
||||
|
||||
SOURCES += \
|
||||
src/calculator_functions.cpp \
|
||||
|
Loading…
x
Reference in New Issue
Block a user