Debian Codegraph @

samtools/samtools.pysam.h

raw symbols SCIP
1 #ifndef samtools_PYSAM_H
2 #define samtools_PYSAM_H
3
4 #include <stdio.h>
5
6 #ifndef __has_attribute
7 #define __has_attribute(attribute) 0
8 #endif
9 #ifndef PYSAM_NORETURN
10 #if __has_attribute(__noreturn__) || __GNUC__ >= 3
11 #define PYSAM_NORETURN __attribute__((__noreturn__))
12 #else
13 #define PYSAM_NORETURN
14 #endif
15 #endif
16
17 extern FILE * samtools_stderr;
18
19 extern FILE * samtools_stdout;
20
21 extern const char * samtools_stdout_fn;
22
23 /*! set pysam standard error to point to file descriptor
24
25 Setting the stderr will close the previous stderr.
26 */
27 FILE * samtools_set_stderr(int fd);
28
29 /*! set pysam standard output to point to file descriptor
30
31 Setting the stdout will close the previous stdout.
32 */
33 FILE * samtools_set_stdout(int fd);
34
35 /*! set pysam standard output to point to filename
36
37 */
38 void samtools_set_stdout_fn(const char * fn);
39
40 /*! close pysam standard error and set to NULL
41
42 */
43 void samtools_close_stderr(void);
44
45 /*! close pysam standard output and set to NULL
46
47 */
48 void samtools_close_stdout(void);
49
50 int samtools_puts(const char *s);
51
52 int samtools_dispatch(int argc, char *argv[]);
53
54 void PYSAM_NORETURN samtools_exit(int status);
55
56 extern int samtools_main(int argc, char *argv[]);
57
58 /* Define these only in samtools/bcftools C source, not Cython code. */
59 #if !(defined CYTHON_ABI || defined CYTHON_HEX_VERSION)
60
61 /*! Several non-static function names are used in both samtools and bcftools.
62 Both libcsamtools.so and libcbcftools.so are loaded simultaneously, leading
63 to collisions and wrong functions being called. #define these names so the
64 actual symbol names include distinct prefixes to avoid collisions.
65 */
66 #define main_consensus samtools_main_consensus
67 #define main_reheader samtools_main_reheader
68 #define bam_smpl_init samtools_bam_smpl_init
69 #define bam_smpl_destroy samtools_bam_smpl_destroy
70 #define read_file_list samtools_read_file_list
71
72 /*! A non-static error() function name is used in bcftools, which collides
73 with glibc's error() function and leads to the wrong function being called
74 on some platforms. #define this name with a prefix to avoid this collision.
75 */
76 #define error samtools_error
77
78 #endif
79
80 #endif