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.
provider.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2016 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 
21 /*
22  * provider.h
23  *
24  * Created on: 15 Sep 2015
25  * Author: tyrrells
26  */
27 
28 #ifndef PROVIDER_H_
29 #define PROVIDER_H_
30 
32 #include "typedefs.h"
33 
34 #include "jansson.h"
35 
36 
37 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
42 
49 GRASSROOTS_SERVICE_API const char *GetProviderName (const json_t * const data_p);
50 
51 
58 GRASSROOTS_SERVICE_API const char *GetProviderURI (const json_t * const data_p);
59 
60 
67 GRASSROOTS_SERVICE_API const char *GetProviderDescription (const json_t * const data_p);
68 
69 
76 GRASSROOTS_SERVICE_API const char *GetProviderLogo (const json_t * const data_p);
77 
78 
79 
88 GRASSROOTS_SERVICE_API json_t *GetProviderDetails (const json_t *root_json_p);
89 
90 
99 GRASSROOTS_SERVICE_API bool SetProviderType (json_t *provider_p);
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 
106 #endif /* PROVIDER_H_ */
grassroots_service_library.h
GRASSROOTS_SERVICE_API
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
SetProviderType
bool SetProviderType(json_t *provider_p)
Ensure that the correct json-ld datatype is set for a given JSON object representing a Provider.
typedefs.h
GetProviderLogo
const char * GetProviderLogo(const json_t *const data_p)
Get the URL of the logo of the Provider from a given JSON configuration fragment.
GetProviderDetails
json_t * GetProviderDetails(const json_t *root_json_p)
Get the JSON object containing the Provider details.
GetProviderDescription
const char * GetProviderDescription(const json_t *const data_p)
Get the description of the Provider from a given JSON configuration fragment.
GetProviderURI
const char * GetProviderURI(const json_t *const data_p)
Get the URI of the Provider from a given JSON configuration fragment.
GetProviderName
const char * GetProviderName(const json_t *const data_p)
Get the name of the Provider from a given JSON configuration fragment.