Add declspec-macros
This commit is contained in:
parent
197be17615
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user