Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
plots_cache.h
Go to the documentation of this file.
1
/*
2
* plots_cache.h
3
*
4
* Created on: 28 Jun 2022
5
* Author: billy
6
*/
7
8
#ifndef SERVICES_FIELD_TRIALS_INCLUDE_PLOTS_CACHE_H_
9
#define SERVICES_FIELD_TRIALS_INCLUDE_PLOTS_CACHE_H_
10
11
#include "jansson.h"
12
13
14
#include "
dfw_field_trial_service_data.h
"
15
#include "
dfw_field_trial_service_library.h
"
16
17
18
typedef
struct
19
{
20
json_t *
pc_grid_cache_p
;
21
22
json_t *
pc_index_cache_p
;
23
}
PlotsCache
;
24
25
26
27
#ifdef __cplusplus
28
extern
"C"
29
{
30
#endif
31
32
33
34
DFW_FIELD_TRIAL_SERVICE_LOCAL
PlotsCache
*
AllocatePlotsCache
(
void
);
35
36
DFW_FIELD_TRIAL_SERVICE_LOCAL
void
FreePlotsCache
(
PlotsCache
*plots_cache_p);
37
38
DFW_FIELD_TRIAL_SERVICE_LOCAL
bool
CheckPlotRequirements
(
PlotsCache
*plots_cache_p,
const
json_t *table_row_json_p,
const
size_t
row_index,
ServiceJob
*job_p, int32 *row_p, int32 *column_p, int32 *index_p, int32 *rack_p);
39
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
/* SERVICES_FIELD_TRIALS_INCLUDE_PLOTS_CACHE_H_ */
PlotsCache::pc_index_cache_p
json_t * pc_index_cache_p
Definition:
plots_cache.h:22
ServiceJob
A datatype to represent a running task.
Definition:
service_job.h:72
AllocatePlotsCache
PlotsCache * AllocatePlotsCache(void)
dfw_field_trial_service_library.h
DFW_FIELD_TRIAL_SERVICE_LOCAL
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition:
dfw_field_trial_service_library.h:43
PlotsCache::pc_grid_cache_p
json_t * pc_grid_cache_p
Definition:
plots_cache.h:20
PlotsCache
Definition:
plots_cache.h:18
CheckPlotRequirements
bool CheckPlotRequirements(PlotsCache *plots_cache_p, const json_t *table_row_json_p, const size_t row_index, ServiceJob *job_p, int32 *row_p, int32 *column_p, int32 *index_p, int32 *rack_p)
dfw_field_trial_service_data.h
FreePlotsCache
void FreePlotsCache(PlotsCache *plots_cache_p)
services
field-trials
include
plots_cache.h
Generated on Mon Feb 26 2024 17:00:10 for Grassroots Infrastructure by
1.8.16