aboutsummaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/millepede/mille_c_wrap.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-04-24 14:49:53 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:04 +0200
commitc8fb149760f7a8ef4e018f22e79bcb48e1e3c444 (patch)
treebd026b2ff0a14186efd26af3a2ff23d2b71b5baa /subprojects/packagefiles/millepede/mille_c_wrap.h
parent01f6f6ec756a435c0187154627e3a8900bcd3e11 (diff)
Add C wrapper for Mille
Diffstat (limited to 'subprojects/packagefiles/millepede/mille_c_wrap.h')
-rw-r--r--subprojects/packagefiles/millepede/mille_c_wrap.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/subprojects/packagefiles/millepede/mille_c_wrap.h b/subprojects/packagefiles/millepede/mille_c_wrap.h
new file mode 100644
index 00000000..1f0fc841
--- /dev/null
+++ b/subprojects/packagefiles/millepede/mille_c_wrap.h
@@ -0,0 +1,30 @@
+#ifdef __cplusplus
+extern "C" {
+#else
+typedef void *Mille;
+#endif
+
+
+extern Mille *mille_new(const char *outFileName,
+ int asBinary,
+ int writeZero);
+
+extern void mille_add_measurement(Mille *m,
+ int NLC, const float *derLc,
+ int NGL, const float *derGl,
+ const int *label, float rMeas, float sigma);
+
+extern void mille_add_special(Mille *m,
+ int nSpecial,
+ const float *floatings,
+ const int *integers);
+
+extern void mille_delete_last_record(Mille *m);
+
+extern void mille_write_record(Mille *m);
+
+extern void mille_free(Mille *m);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif