You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

61 lines
1.2 KiB

  1. #ifndef samtools_PYSAM_H
  2. #define samtools_PYSAM_H
  3. #include <stdio.h>
  4. #ifndef __has_attribute
  5. #define __has_attribute(attribute) 0
  6. #endif
  7. #ifndef PYSAM_NORETURN
  8. #if __has_attribute(__noreturn__) || __GNUC__ >= 3
  9. #define PYSAM_NORETURN __attribute__((__noreturn__))
  10. #else
  11. #define PYSAM_NORETURN
  12. #endif
  13. #endif
  14. extern FILE * samtools_stderr;
  15. extern FILE * samtools_stdout;
  16. extern const char * samtools_stdout_fn;
  17. /*! set pysam standard error to point to file descriptor
  18. Setting the stderr will close the previous stderr.
  19. */
  20. FILE * samtools_set_stderr(int fd);
  21. /*! set pysam standard output to point to file descriptor
  22. Setting the stdout will close the previous stdout.
  23. */
  24. FILE * samtools_set_stdout(int fd);
  25. /*! set pysam standard output to point to filename
  26. */
  27. void samtools_set_stdout_fn(const char * fn);
  28. /*! close pysam standard error and set to NULL
  29. */
  30. void samtools_close_stderr(void);
  31. /*! close pysam standard output and set to NULL
  32. */
  33. void samtools_close_stdout(void);
  34. int samtools_puts(const char *s);
  35. int samtools_dispatch(int argc, char *argv[]);
  36. void PYSAM_NORETURN samtools_exit(int status);
  37. void samtools_set_optind(int);
  38. extern int samtools_main(int argc, char *argv[]);
  39. #endif