()
| 21 | }; |
| 22 | |
| 23 | fn proxy_dict() -> Option<CFDictionary<CFString, CFType>> { |
| 24 | // Py_BEGIN_ALLOW_THREADS |
| 25 | let proxy_dict = unsafe { SCDynamicStoreCopyProxies(core::ptr::null()) }; |
| 26 | // Py_END_ALLOW_THREADS |
| 27 | if proxy_dict.is_null() { |
| 28 | None |
| 29 | } else { |
| 30 | Some(unsafe { CFDictionary::wrap_under_create_rule(proxy_dict) }) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | #[pyfunction] |
| 35 | fn _get_proxy_settings(vm: &VirtualMachine) -> PyResult<Option<PyDictRef>> { |
no test coverage detected