4a852b4d6b
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 12m57s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 13m4s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 11m18s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m12s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 13m51s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 13m59s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 10m45s
Build Packages / build:rpm (rocky8) (push) Successful in 12m29s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 12m2s
Build Packages / Generate python client (push) Successful in 24s
Build Packages / XDS test (durin plugin) (push) Successful in 9m50s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky9) (push) Successful in 14m15s
Build Packages / Build documentation (push) Successful in 1m6s
Build Packages / DIALS test (push) Successful in 13m10s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 6m45s
Build Packages / XDS test (neggia plugin) (push) Successful in 5m58s
Build Packages / Unit tests (push) Successful in 1h20m42s
This is an UNSTABLE release. The release has significant modifications and bug fixes, if things go wrong, it is better to revert to 1.0.0-rc.132. * jfjoch_broker: Add better locking for detector object - should help, when detector initialization takes too long * jfjoch_writer: Enable writing single, integrated HDF5 file with both data and metadata * XDS plugin: Add generation of Jungfraujoch plugin for XDS * CI: Add tests with XDS and DIALS (`xia2.ssx`) Reviewed-on: #43
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
// Based on Durin plugin code from Diamond Light Source Ltd. and Global Phasing (BSD-3 license)
|
|
|
|
/*
|
|
* External library interface for XDS.
|
|
* Ref: https://wiki.uni-konstanz.de/xds/index.php/LIB
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if defined(_WIN32)
|
|
#if defined(jfjoch_xds_plugin_EXPORTS)
|
|
#define XDS_PLUGIN_API __declspec(dllexport)
|
|
#else
|
|
#define XDS_PLUGIN_API __declspec(dllimport)
|
|
#endif
|
|
#elif defined(__GNUC__) || defined(__clang__)
|
|
#define XDS_PLUGIN_API __attribute__((visibility("default")))
|
|
#else
|
|
#define XDS_PLUGIN_API
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define VERSION_MAJOR 0
|
|
#define VERSION_MINOR 0
|
|
#define VERSION_PATCH 0
|
|
#define VERSION_TIMESTAMP -1 /* good enough for Dectris apparantely */
|
|
|
|
XDS_PLUGIN_API void plugin_open(const char *filename, int info[1024], int *error_flag);
|
|
|
|
XDS_PLUGIN_API void plugin_get_header(int *nx, int *ny, int *nbytes, float *qx, float *qy,
|
|
int *number_of_frames, int info[1024], int *error_flag);
|
|
|
|
XDS_PLUGIN_API void plugin_get_data(int *frame_number, int *nx, int *ny, int *data_array,
|
|
int info[1024], int *error_flag);
|
|
|
|
XDS_PLUGIN_API void plugin_close(int *error_flag);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|