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.
search_service_data.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2018 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 /*
17  * search_service_data.h
18  *
19  * Created on: 24 Sep 2020
20  * Author: billy
21  */
22 
23 #ifndef SEARCH_SERVICE_DATA_H
24 #define SEARCH_SERVICE_DATA_H
25 
26 
27 
28 #include "service.h"
29 #include "search_service_library.h"
30 
31 
32 typedef struct SearchServiceData
33 {
35  const char *ssd_ckan_url_s;
36  const json_t *ssd_ckan_filters_p;
37  const char *ssd_ckan_type_s;
41 
42 
43 #ifdef __cplusplus
44 extern "C"
45 {
46 #endif
47 
48 
49 
51 
53 
55 
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 
62 #endif /* SEARCH_SERVICE_DATA_H */
service.h
SEARCH_SERVICE_LOCAL
#define SEARCH_SERVICE_LOCAL
Definition: search_service_library.h:43
search_service_library.h
FreeSearchServiceData
SEARCH_SERVICE_LOCAL void FreeSearchServiceData(SearchServiceData *data_p)
SearchServiceData::ssd_ckan_url_s
const char * ssd_ckan_url_s
Definition: search_service_data.h:35
SearchServiceData
Definition: search_service_data.h:32
SearchServiceData::ssd_ckan_type_s
const char * ssd_ckan_type_s
Definition: search_service_data.h:37
SearchServiceData::ssd_ckan_filters_p
const json_t * ssd_ckan_filters_p
Definition: search_service_data.h:36
ConfigureSearchServiceData
SEARCH_SERVICE_LOCAL bool ConfigureSearchServiceData(SearchServiceData *data_p)
SearchServiceData::ssd_base_data
ServiceData ssd_base_data
Definition: search_service_data.h:34
SearchServiceData::ssd_ckan_result_icon_s
const char * ssd_ckan_result_icon_s
Definition: search_service_data.h:39
AllocateSearchServiceData
SEARCH_SERVICE_LOCAL SearchServiceData * AllocateSearchServiceData(void)
ServiceData
A datatype for holding the configuration data for a Service.
Definition: service.h:126
SearchServiceData::ssd_ckan_type_description_s
const char * ssd_ckan_type_description_s
Definition: search_service_data.h:38