projects
/
tabix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.2.3
[tabix.git]
/
bgzf.h
diff --git
a/bgzf.h
b/bgzf.h
index f544a6791ff1dff8340212d859632d22063c55b6..70f497e819442adc843f66c4023012fade6005e8 100644
(file)
--- a/
bgzf.h
+++ b/
bgzf.h
@@
-62,6
+62,13
@@
typedef struct {
extern "C" {
#endif
extern "C" {
#endif
+/*
+ * Checks the magic string of the file. Returns 1
+ * for bgzipped files, -1 on errors and 0 for files
+ * without the bgzip magic string.
+ */
+int is_bgzipped(const char *path);
+
/*
* Open an existing file descriptor for reading or writing.
* Mode must be either "r" or "w".
/*
* Open an existing file descriptor for reading or writing.
* Mode must be either "r" or "w".