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.
blast_service_api.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 
20 /*
21  * blast_service_api.h
22  *
23  * Created on: 6 May 2015
24  * Author: tyrrells
25  */
26 
27 #ifndef BLAST_SERVICE_API_H_
28 #define BLAST_SERVICE_API_H_
29 
30 #include "service.h"
31 #include "library.h"
32 /*
33 ** Now we use the generic helper definitions above to define LIB_API and LIB_LOCAL.
34 ** LIB_API is used for the public API symbols. It either DLL imports or DLL exports
35 ** (or does nothing for static build)
36 ** LIB_LOCAL is used for non-api symbols.
37 */
38 
39 #ifdef SHARED_LIBRARY /* defined if LIB is compiled as a DLL */
40  #ifdef BLAST_LIBRARY_EXPORTS /* defined if we are building the LIB DLL (instead of using it) */
41  #define BLAST_SERVICE_API LIB_HELPER_SYMBOL_EXPORT
42  #else
43  #define BLAST_SERVICE_API LIB_HELPER_SYMBOL_IMPORT
44  #endif /* #ifdef BLAST_LIBRARY_EXPORTS */
45  #define BLAST_SERVICE_LOCAL LIB_HELPER_SYMBOL_LOCAL
46 #else /* SHARED_LIBRARY is not defined: this means LIB is a static lib. */
47  #define BLAST_SERVICE_API
48  #define BLAST_SERVICE_LOCAL
49 #endif /* #ifdef SHARED_LIBRARY */
50 
51 #endif /* BLAST_SERVICE_API_H_ */
service.h
library.h