mapgd
0.4
A program for the Maximum-likelihood analysis of population genomic data.
Main Page
Related Pages
Modules
Data Structures
Files
File List
All
Data Structures
Functions
Variables
Friends
Groups
Pages
mapgd_0.4
python_api
mapgdapi.h
1
#ifndef MAPGDAPI_H
2
#define MAPGDAI_H
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
7
/* Header file for spammodule */
8
9
/* C API functions */
10
#define MAPGD_System_NUM 0
11
#define MAPGD_System_RETURN int
12
#define MAPGD_System_PROTO (const char *command)
13
14
/* Total number of C API pointers */
15
#define MAPGD_API_pointers 1
16
17
18
#ifdef MAPGD_MODULE
19
/* This section is used when compiling spammodule.c */
20
21
static
PySpam_System_RETURN PySpam_System PySpam_System_PROTO;
22
23
#else
24
/* This section is used in modules that use spammodule's API */
25
26
static
void
**PyMAPGD_API;
27
28
#define PySpam_System \
29
(*(PySpam_System_RETURN (*)PySpam_System_PROTO) PySpam_API[PySpam_System_NUM])
30
31
/* Return -1 on error, 0 on success.
32
* PyCapsule_Import will set an exception if there's an error.
33
*/
34
static
int
35
import_mapgd(
void
)
36
{
37
PySpam_API = (
void
**)PyCapsule_Import(
"spam._C_API"
, 0);
38
return
(PySpam_API != NULL) ? 0 : -1;
39
}
40
41
#endif
42
43
#ifdef __cplusplus
44
}
45
#endif
46
47
#endif
/* !defined(Py_SPAMMODULE_H) */
Generated on Mon Oct 1 2018 13:55:20 for mapgd by
1.8.6