[77] | 1 | /* $Id: common.h 13 2011-04-20 15:41:43Z mmamonski $ */ |
---|
| 2 | /* |
---|
| 3 | * PSNC DRMAA 2.0 utilities library |
---|
| 4 | * Copyright (C) 2012 Poznan Supercomputing and Networking Center |
---|
| 5 | * |
---|
| 6 | * This program is free software: you can redistribute it and/or modify |
---|
| 7 | * it under the terms of the GNU General Public License as published by |
---|
| 8 | * the Free Software Foundation, either version 3 of the License, or |
---|
| 9 | * (at your option) any later version. |
---|
| 10 | * |
---|
| 11 | * This program is distributed in the hope that it will be useful, |
---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | * GNU General Public License for more details. |
---|
| 15 | * |
---|
| 16 | * You should have received a copy of the GNU General Public License |
---|
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 18 | */ |
---|
| 19 | |
---|
| 20 | #ifndef __DRMAA_UTILS__COMMON_H |
---|
| 21 | #define __DRMAA_UTILS__COMMON_H |
---|
| 22 | |
---|
| 23 | #ifdef HAVE_CONFIG_H |
---|
| 24 | # include <config.h> |
---|
| 25 | #endif |
---|
| 26 | |
---|
| 27 | #include <drmaa_utils/compat.h> |
---|
| 28 | #include <drmaa_utils/exception.h> |
---|
| 29 | #include <drmaa_utils/logging.h> |
---|
| 30 | #include <drmaa_utils/xmalloc.h> |
---|
[81] | 31 | #include <drmaa_utils/drmaa2.h> |
---|
[77] | 32 | |
---|
[81] | 33 | |
---|
[77] | 34 | #define FSD_SAFE_STR(str) ( str != NULL ? str : "(null)" ) |
---|
| 35 | |
---|
| 36 | /* configuration */ |
---|
| 37 | typedef struct fsd_conf_option_s fsd_conf_option_t; |
---|
| 38 | typedef struct fsd_conf_dict_s fsd_conf_dict_t; |
---|
| 39 | |
---|
| 40 | /* iterator */ |
---|
| 41 | typedef struct fsd_iter_s fsd_iter_t; |
---|
| 42 | |
---|
| 43 | /* template type */ |
---|
| 44 | typedef struct fsd_attribute_s fsd_attribute_t; |
---|
| 45 | typedef struct fsd_template_s fsd_template_t; |
---|
| 46 | |
---|
| 47 | /* DRMAA structures */ |
---|
| 48 | typedef struct fsd_drmaa_singletone_s fsd_drmaa_singletone_t; |
---|
[81] | 49 | typedef struct fsd_drmaa_jsession_s fsd_drmaa_jsession_t; |
---|
| 50 | typedef struct fsd_drmaa_rsession_s fsd_drmaa_rsession_t; |
---|
| 51 | typedef struct fsd_drmaa_msession_s fsd_drmaa_msession_t; |
---|
| 52 | |
---|
[77] | 53 | typedef struct fsd_job_set_s fsd_job_set_t; |
---|
| 54 | typedef struct fsd_job_s fsd_job_t; |
---|
| 55 | typedef struct fsd_expand_drmaa_ph_s fsd_expand_drmaa_ph_t; |
---|
| 56 | |
---|
| 57 | #endif /* __DRMAA_UTILS__COMMON_H */ |
---|
| 58 | |
---|