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 regels
1.2 KiB

  1. #ifndef bcftools_PYSAM_H
  2. #define bcftools_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 * bcftools_stderr;
  15. extern FILE * bcftools_stdout;
  16. extern const char * bcftools_stdout_fn;
  17. /*! set pysam standard error to point to file descriptor
  18. Setting the stderr will close the previous stderr.
  19. */
  20. FILE * bcftools_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 * bcftools_set_stdout(int fd);
  25. /*! set pysam standard output to point to filename
  26. */
  27. void bcftools_set_stdout_fn(const char * fn);
  28. /*! close pysam standard error and set to NULL
  29. */
  30. void bcftools_close_stderr(void);
  31. /*! close pysam standard output and set to NULL
  32. */
  33. void bcftools_close_stdout(void);
  34. int bcftools_puts(const char *s);
  35. int bcftools_dispatch(int argc, char *argv[]);
  36. void PYSAM_NORETURN bcftools_exit(int status);
  37. void bcftools_set_optind(int);
  38. extern int bcftools_main(int argc, char *argv[]);
  39. #endif