mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Remove public exports of gl_common and libc
This commit is contained in:
@@ -28,7 +28,7 @@ impl GlContext for HeadlessContext {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_proc_address(&self, addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
self.0.get_proc_address(addr)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#![cfg(target_os = "ios")]
|
||||
use libc::c_void;
|
||||
|
||||
use GlAttributes;
|
||||
use CreationError;
|
||||
@@ -33,7 +32,7 @@ impl HeadlessContext {
|
||||
}
|
||||
|
||||
/// See the docs in the crate root file.
|
||||
pub fn get_proc_address(&self, _addr: &str) -> *const c_void {
|
||||
pub fn get_proc_address(&self, _addr: &str) -> *const () {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ impl GlContext for Window {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_proc_address(&self, addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
match self {
|
||||
&Window::X(ref w) => w.get_proc_address(addr),
|
||||
&Window::Wayland(ref w) => w.get_proc_address(addr)
|
||||
|
||||
@@ -7,7 +7,6 @@ use GlAttributes;
|
||||
use GlContext;
|
||||
use PixelFormat;
|
||||
use PixelFormatRequirements;
|
||||
use libc;
|
||||
|
||||
use api::osmesa::{self, OsMesaContext};
|
||||
|
||||
@@ -45,7 +44,7 @@ impl GlContext for HeadlessContext {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_proc_address(&self, addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
self.0.get_proc_address(addr)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ pub use api::win32;
|
||||
pub use api::win32::{MonitorId, get_available_monitors, get_primary_monitor};
|
||||
pub use api::win32::{WindowProxy, PollEventsIterator, WaitEventsIterator};
|
||||
|
||||
use libc;
|
||||
|
||||
use Api;
|
||||
use ContextError;
|
||||
use CreationError;
|
||||
@@ -134,7 +132,7 @@ impl GlContext for HeadlessContext {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_proc_address(&self, addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
match self {
|
||||
&HeadlessContext::HiddenWindow(ref ctxt) => ctxt.get_proc_address(addr),
|
||||
&HeadlessContext::EglPbuffer(ref ctxt) => ctxt.get_proc_address(addr),
|
||||
|
||||
Reference in New Issue
Block a user