nss_sys/bindings/prerror.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5pub use crate::*;
6use std::os::raw::c_char;
7
8extern "C" {
9 pub fn PR_GetError() -> PRErrorCode;
10 pub fn PR_GetErrorTextLength() -> PRInt32;
11 pub fn PR_GetErrorText(text: *mut c_char) -> PRInt32;
12}
13
14pub type PRErrorCode = PRInt32;