@@ -23,25 +23,30 @@ from libc.string cimport (
23
23
memcpy,
24
24
)
25
25
26
+
26
27
cdef extern from ' <netinet/in.h>' nogil:
27
28
ctypedef struct sockaddr_storage:
28
29
pass
29
30
31
+
30
32
cdef extern from ' <stdio.h>' nogil:
31
33
ctypedef struct FILE
32
34
cdef FILE * stdout
33
35
36
+
34
37
cdef extern from ' <time.h>' nogil:
35
38
ctypedef long time_t
36
39
double difftime(time_t time1, time_t time2)
37
40
time_t time(time_t * t)
38
41
42
+
39
43
cdef extern from ' <Python.h>' nogil:
40
44
cdef FILE * PyFile_AsFile(object file )
41
45
char * __FILE__
42
46
cdef int __LINE__
43
47
char * __FUNCTION__
44
48
49
+
45
50
cdef extern from ' <pthread.h>' nogil:
46
51
ctypedef struct pthread_mutex_t:
47
52
pass
@@ -52,6 +57,7 @@ cdef extern from '<pthread.h>' nogil:
52
57
ctypedef struct pthread_t:
53
58
pass
54
59
60
+
55
61
cdef extern from * :
56
62
ctypedef struct slurm_job_credential
57
63
ctypedef struct switch_jobinfo
@@ -67,8 +73,12 @@ cdef extern from *:
67
73
ctypedef struct slurm_step_ctx_struct
68
74
ctypedef struct slurm_ctl_conf_t
69
75
70
- # Header definitions combined from slurm.h, slurmdb.h and slurm_errno.h
71
- include " header.pxi"
76
+
77
+ # Header definitions
78
+ include " slurm_version.h.pxi"
79
+ include " slurm_errno.h.pxi"
80
+ include " slurm.h.pxi"
81
+ include " slurmdb.h.pxi"
72
82
73
83
# Any other definitions which are not directly in
74
84
# the header files, but exported in libslurm.so
0 commit comments