-- see zlib.h -- */
(file)
| 629 | |
| 630 | /* -- see zlib.h -- */ |
| 631 | int ZEXPORT gzdirect(file) |
| 632 | gzFile file; |
| 633 | { |
| 634 | gz_statep state; |
| 635 | |
| 636 | /* get internal structure */ |
| 637 | if (file == NULL) |
| 638 | return 0; |
| 639 | state.file = file; |
| 640 | |
| 641 | /* if the state is not known, but we can find out, then do so (this is |
| 642 | mainly for right after a gzopen() or gzdopen()) */ |
| 643 | if (state.state->mode == GZ_READ && state.state->how == LOOK && state.state->x.have == 0) |
| 644 | (void)gz_look(state); |
| 645 | |
| 646 | /* return 1 if transparent, 0 if processing a gzip stream */ |
| 647 | return state.state->direct; |
| 648 | } |
| 649 | |
| 650 | /* -- see zlib.h -- */ |
| 651 | int ZEXPORT gzclose_r(file) |