source: branches/2.0/drmaa2_utils/drmaa_utils/drmaa_base.h @ 81

Revision 81, 1.6 KB checked in by mmamonski, 12 years ago (diff)

DRMAA 2.0 for PBS compiles

Line 
1/* $Id: drmaa_base.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__DRMAA_BASE_H
21#define __DRMAA_UTILS__DRMAA_BASE_H
22
23#ifdef HAVE_CONFIG_H
24#       include <config.h>
25#endif
26
27#include <drmaa_utils/common.h>
28#include <drmaa_utils/drmaa2.h>
29
30
31struct fsd_drmaa_singletone_s {
32
33        fsd_drmaa_jsession_t *(*new_jsession)(fsd_drmaa_singletone_t *self, const char *contact);
34        fsd_drmaa_rsession_t *(*new_rsession)(fsd_drmaa_singletone_t *self, const char *contact);
35        fsd_drmaa_msession_t *(*new_msession)(fsd_drmaa_singletone_t *self, const char *contact);
36
37        drmaa2_string (*get_drms_name)(void);
38        drmaa2_version (*get_drms_version)(void);
39        drmaa2_string (*get_drmaa_name)(void);
40        drmaa2_version (*get_drmaa_version)(void);
41        drmaa2_bool (*drmaa2_supports)(const drmaa2_capability c);
42};
43
44extern fsd_drmaa_singletone_t _fsd_drmaa_singletone;
45
46#endif /* __DRMAA_UTILS__DRMAA_BASE_H */
Note: See TracBrowser for help on using the repository browser.