Skip to content

Commit

Permalink
Update to libyang 3.7.8
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Jan 25, 2025
1 parent 9d5021f commit 70c4b2f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion libyang3-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {
pregen_bindings.push(env::var("CARGO_MANIFEST_DIR").unwrap());
pregen_bindings.push("pre-generated-bindings");
pregen_bindings
.push("libyang3-526e3ffd1e93ca5874675b48f4027de6150ce92f.rs");
.push("libyang3-03e294d83b610f89e8ba7b2156a80dc0ad534443.rs");

std::fs::copy(&pregen_bindings, &out_file)
.expect("Unable to copy pre-generated libyang3 bindings");
Expand Down
2 changes: 1 addition & 1 deletion libyang3-sys/libyang
Submodule libyang updated 49 files
+0 −39 .github/workflows/codeql.yml
+4 −4 CMakeLists.txt
+1 −1 CMakeModules/UseCompat.cmake
+30 −0 SECURITY.md
+9 −5 src/diff.c
+7 −11 src/hash_table.c
+3 −2 src/hash_table.h
+37 −20 src/log.c
+5 −5 src/ly_common.h
+39 −8 src/parser_common.c
+30 −22 src/parser_data.h
+20 −3 src/parser_internal.h
+10 −11 src/parser_json.c
+8 −16 src/parser_lyb.c
+10 −11 src/parser_xml.c
+4 −2 src/path.c
+1 −1 src/plugins_exts.c
+6 −24 src/plugins_types.c
+31 −2 src/plugins_types/node_instanceid.c
+3 −0 src/plugins_types/union.c
+13 −4 src/printer_lyb.c
+0 −2 src/schema_compile.c
+3 −3 src/schema_compile_node.c
+1 −1 src/schema_compile_node.h
+34 −42 src/tree_data.c
+31 −0 src/tree_data.h
+117 −30 src/tree_data_common.c
+67 −10 src/tree_data_internal.h
+225 −128 src/tree_data_new.c
+7 −5 src/tree_data_sorted.c
+2 −2 src/tree_schema_common.c
+309 −71 src/validation.c
+67 −1 src/validation.h
+30 −9 src/xpath.c
+1 −1 src/xpath.h
+5 −4 tests/tool_i.tcl
+26 −4 tests/utests/basic/test_xpath.c
+8 −0 tests/utests/data/test_new.c
+11 −10 tests/utests/data/test_tree_data_sorted.c
+47 −0 tests/utests/data/test_validation.c
+1 −1 tests/yanglint/CMakeLists.txt
+12 −7 tests/yanglint/interactive/completion.test
+2 −1 tools/lint/CMakeLists.txt
+90 −25 tools/lint/completion.c
+750 −374 tools/lint/linenoise/linenoise.c
+44 −13 tools/lint/linenoise/linenoise.h
+464 −0 tools/lint/linenoise/utf8.c
+55 −0 tools/lint/linenoise/utf8.h
+3 −0 tools/lint/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ pub const LYD_VALIDATE_OPERATIONAL: u32 = 8;
pub const LYD_VALIDATE_NO_DEFAULTS: u32 = 16;
pub const LYD_VALIDATE_NOT_FINAL: u32 = 32;
pub const LYD_VALIDATE_OPTS_MASK: u32 = 65535;
pub const LYPLG_EXT_API_VERSION: u32 = 6;
pub const LYPLG_EXT_API_VERSION: u32 = 8;
pub const LY_STMT_NODE_MASK: u32 = 65535;
pub const LYS_COMPILE_GROUPING: u32 = 1;
pub const LYS_COMPILE_DISABLED: u32 = 2;
Expand Down Expand Up @@ -26322,6 +26322,13 @@ extern "C" {
value: *const ::std::os::raw::c_char,
) -> LY_ERR::Type;
}
extern "C" {
pub fn lydict_dup(
ctx: *const ly_ctx,
value: *const ::std::os::raw::c_char,
str_p: *mut *const ::std::os::raw::c_char,
) -> LY_ERR::Type;
}
pub mod LY_IN_TYPE {
pub type Type = ::std::os::raw::c_int;
pub const LY_IN_ERROR: Type = -1;
Expand Down Expand Up @@ -26768,7 +26775,7 @@ impl Default for lysp_stmt {
#[derive(Debug, Copy, Clone)]
pub struct lysp_ext_substmt {
pub stmt: ly_stmt::Type,
pub storage: u64,
pub storage_p: *mut *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_lysp_ext_substmt() {
Expand Down Expand Up @@ -26796,13 +26803,15 @@ fn bindgen_test_layout_lysp_ext_substmt() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).storage) as usize - ptr as usize },
unsafe {
::std::ptr::addr_of!((*ptr).storage_p) as usize - ptr as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lysp_ext_substmt),
"::",
stringify!(storage)
stringify!(storage_p)
)
);
}
Expand Down Expand Up @@ -26831,6 +26840,7 @@ pub struct lysp_ext_instance {
pub substmts: *mut lysp_ext_substmt,
pub parsed: *mut ::std::os::raw::c_void,
pub child: *mut lysp_stmt,
pub exts: *mut lysp_ext_instance,
}
#[test]
fn bindgen_test_layout_lysp_ext_instance() {
Expand All @@ -26839,7 +26849,7 @@ fn bindgen_test_layout_lysp_ext_instance() {
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lysp_ext_instance>(),
104usize,
112usize,
concat!("Size of: ", stringify!(lysp_ext_instance))
);
assert_eq!(
Expand Down Expand Up @@ -26988,6 +26998,16 @@ fn bindgen_test_layout_lysp_ext_instance() {
stringify!(child)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).exts) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(lysp_ext_instance),
"::",
stringify!(exts)
)
);
}
impl Default for lysp_ext_instance {
fn default() -> Self {
Expand All @@ -27002,7 +27022,7 @@ impl Default for lysp_ext_instance {
#[derive(Debug, Copy, Clone)]
pub struct lysc_ext_substmt {
pub stmt: ly_stmt::Type,
pub storage: u64,
pub storage_p: *mut *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_lysc_ext_substmt() {
Expand Down Expand Up @@ -27030,13 +27050,15 @@ fn bindgen_test_layout_lysc_ext_substmt() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).storage) as usize - ptr as usize },
unsafe {
::std::ptr::addr_of!((*ptr).storage_p) as usize - ptr as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(lysc_ext_substmt),
"::",
stringify!(storage)
stringify!(storage_p)
)
);
}
Expand Down

0 comments on commit 70c4b2f

Please sign in to comment.