libc_extra/android_linux/net/if_/
ifconf.rs

1// This file is part of libc-extra. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT. No part of libc-extra, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2016-2018 The developers of libc-extra. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT.
3
4
5#[repr(C)]
6#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct ifconf
8{
9	pub ifc_len: c_int,
10	pub ifc_ifcu: Union_Unnamed4,
11}
12
13impl Default for ifconf
14{
15	fn default() -> Self
16	{
17		unsafe { zeroed() }
18	}
19}
20
21#[repr(C)]
22#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
23pub struct Union_Unnamed4
24{
25	pub _bindgen_data_: [u64; 1],
26}
27
28impl Union_Unnamed4
29{
30	pub unsafe fn ifcu_buf(&mut self) -> *mut *mut c_void
31	{
32		let raw: *mut u8 = transmute(&self._bindgen_data_);
33		transmute(raw.offset(0))
34	}
35	
36	pub unsafe fn ifcu_req(&mut self) -> *mut *mut ifreq
37	{
38		let raw: *mut u8 = transmute(&self._bindgen_data_);
39		transmute(raw.offset(0))
40	}
41}
42
43impl Default for Union_Unnamed4
44{
45	fn default() -> Self
46	{
47		unsafe { zeroed() }
48	}
49}