mirror of
https://github.com/simonask/libyaml-safer
synced 2025-02-17 04:48:29 +00:00
Delete get_version APIs
This commit is contained in:
parent
8a8ec2ffa3
commit
4fa84c1ef9
2 changed files with 4 additions and 25 deletions
20
src/api.rs
20
src/api.rs
|
@ -24,26 +24,6 @@ const INPUT_BUFFER_SIZE: usize = INPUT_RAW_BUFFER_SIZE * 3;
|
|||
const OUTPUT_BUFFER_SIZE: usize = 16384;
|
||||
const OUTPUT_RAW_BUFFER_SIZE: usize = OUTPUT_BUFFER_SIZE * 2 + 2;
|
||||
|
||||
/// Get the libyaml version as a string.
|
||||
///
|
||||
/// Returns the pointer to a static string of the form `"X.Y.Z"`, where `X` is
|
||||
/// the major version number, `Y` is a minor version number, and `Z` is the
|
||||
/// patch version number.
|
||||
pub fn yaml_get_version_string() -> *const libc::c_char {
|
||||
b"0.2.5\0" as *const u8 as *const libc::c_char
|
||||
}
|
||||
|
||||
/// Get the libyaml version numbers.
|
||||
pub unsafe fn yaml_get_version(
|
||||
major: *mut libc::c_int,
|
||||
minor: *mut libc::c_int,
|
||||
patch: *mut libc::c_int,
|
||||
) {
|
||||
*major = 0;
|
||||
*minor = 2;
|
||||
*patch = 5;
|
||||
}
|
||||
|
||||
pub(crate) unsafe fn yaml_malloc(size: size_t) -> *mut libc::c_void {
|
||||
malloc(size)
|
||||
}
|
||||
|
|
|
@ -269,11 +269,10 @@ pub use crate::api::{
|
|||
yaml_document_start_event_initialize, yaml_emitter_delete, yaml_emitter_initialize,
|
||||
yaml_emitter_set_break, yaml_emitter_set_canonical, yaml_emitter_set_encoding,
|
||||
yaml_emitter_set_indent, yaml_emitter_set_output, yaml_emitter_set_output_string,
|
||||
yaml_emitter_set_unicode, yaml_emitter_set_width, yaml_event_delete, yaml_get_version,
|
||||
yaml_get_version_string, yaml_mapping_end_event_initialize,
|
||||
yaml_mapping_start_event_initialize, yaml_parser_delete, yaml_parser_initialize,
|
||||
yaml_parser_set_encoding, yaml_parser_set_input, yaml_parser_set_input_string,
|
||||
yaml_scalar_event_initialize, yaml_sequence_end_event_initialize,
|
||||
yaml_emitter_set_unicode, yaml_emitter_set_width, yaml_event_delete,
|
||||
yaml_mapping_end_event_initialize, yaml_mapping_start_event_initialize, yaml_parser_delete,
|
||||
yaml_parser_initialize, yaml_parser_set_encoding, yaml_parser_set_input,
|
||||
yaml_parser_set_input_string, yaml_scalar_event_initialize, yaml_sequence_end_event_initialize,
|
||||
yaml_sequence_start_event_initialize, yaml_stream_end_event_initialize,
|
||||
yaml_stream_start_event_initialize, yaml_token_delete,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue