| 1 |
#ifndef FFI_PLATYPUS_BUNDLE_H |
| 2 |
#define FFI_PLATYPUS_BUNDLE_H |
| 3 |
|
| 4 |
#include "ffi_platypus_config.h" |
| 5 |
|
| 6 |
#ifdef HAVE_STDDEF_H |
| 7 |
#include <stddef.h> |
| 8 |
#endif |
| 9 |
#ifdef HAVE_STDINT_H |
| 10 |
#include <stdint.h> |
| 11 |
#endif |
| 12 |
#ifdef HAVE_STDLIB_H |
| 13 |
#include <stdlib.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
typedef struct { |
| 17 |
void (*set_str) (const char *name, const char *value); |
| 18 |
void (*set_sint) (const char *name, int64_t value ); |
| 19 |
void (*set_uint) (const char *name, uint64_t value ); |
| 20 |
void (*set_double) (const char *name, double value ); |
| 21 |
} ffi_platypus_constant_t; |
| 22 |
|
| 23 |
#ifdef _MSC_VER |
| 24 |
#define EXPORT __declspec(dllexport) |
| 25 |
#else |
| 26 |
#define EXPORT |
| 27 |
#endif |
| 28 |
|
| 29 |
EXPORT void ffi_pl_bundle_init(const char *, int, void **); |
| 30 |
EXPORT void ffi_pl_bundle_constant(const char *, ffi_platypus_constant_t *); |
| 31 |
EXPORT void ffi_pl_bundle_fini(const char *); |
| 32 |
|
| 33 |
#endif |