make compatible with C

This commit is contained in:
Axel Kohlmeyer
2021-10-01 15:24:59 -04:00
parent cf06620538
commit 0cbf70a385

View File

@ -15,8 +15,9 @@
#define LMP_LAMMPSPLUGIN_H
// C style API and data structure required for dynamic loading
#ifdef __cplusplus
extern "C" {
#endif
typedef void *(lammpsplugin_factory1) (void *);
typedef void *(lammpsplugin_factory2) (void *, int, char **);
@ -41,6 +42,9 @@ typedef void (*lammpsplugin_initfunc)(void *, void *, void *);
// to load a plugin; uses C bindings
void lammpsplugin_init(void *, void *, void *);
#ifdef __cplusplus
}
#endif
#endif