1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! hdfs 2.6 adds a new API hdfsFileIsEncrypted
//!
//! The diff between hdfs.h:
//!
//! ```diff
//! 594a595,602
//! >     /**
//! >      * hdfsFileIsEncrypted: determine if a file is encrypted based on its
//! >      * hdfsFileInfo.
//! >      * @return -1 if there was an error (errno will be set), 0 if the file is
//! >      *         not encrypted, 1 if the file is encrypted.
//! >      */
//! >     int hdfsFileIsEncrypted(hdfsFileInfo *hdfsFileInfo);
//! >
//! ```

use std::os::raw::*;

use crate::hdfsFileInfo;

extern "C" {
    pub fn hdfsFileIsEncrypted(hdfsFileInfo: *mut hdfsFileInfo) -> c_int;
}