Skip to content
Snippets Groups Projects
Commit 9a2c83d9 authored by Marko Mijalkovic's avatar Marko Mijalkovic Committed by Paul Sajna
Browse files

Declare all extern blocks as `extern "C"`

parent 91beafea
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ pub struct Atrac3BufferInfo {
pub ui_read_position_second_buf: u32,
}
extern {
extern "C" {
pub fn sceAtracGetAtracID(ui_codec_type: u32) -> i32;
pub fn sceAtracSetDataAndGetID(
buf: *mut c_void,
......
extern {
extern "C" {
pub fn sceVideocodecOpen(
buffer: *mut u32,
type_: i32,
......@@ -25,7 +25,7 @@ pub enum AudioCodec {
Aac = 0x00001003,
}
extern {
extern "C" {
pub fn sceAudiocodecCheckNeedMem(
buffer: *mut u32,
type_: i32,
......
......@@ -5,7 +5,7 @@ pub const VOL_UP: i32 = 0x10;
pub const VOL_DOWN: i32 = 0x20;
pub const HOLD: i32 = 0x80;
extern {
extern "C" {
pub fn sceHprmPeekCurrentKey(key: *mut i32) -> i32;
pub fn sceHprmPeekLatch(latch: *mut [u32;4]) -> i32;
pub fn sceHprmReadLatch(latch: *mut [u32;4]) -> i32;
......
use super::c_void;
extern {
extern "C" {
pub fn sceJpegInitMJpeg() -> i32;
pub fn sceJpegFinishMJpeg() -> i32;
pub fn sceJpegCreateMJpeg(width: i32, height: i32) -> i32;
......
......@@ -17,7 +17,7 @@ pub struct SceMp3InitArg {
#[repr(transparent)]
pub struct Handle(pub i32);
extern {
extern "C" {
pub fn sceMp3ReserveMp3Handle(args: *mut SceMp3InitArg) -> i32;
pub fn sceMp3ReleaseMp3Handle(handle: Handle) -> i32;
pub fn sceMp3InitResource() -> i32;
......
use super::c_void;
extern {
extern "C" {
pub fn sceNandSetWriteProtect(protect_flag: i32) -> i32;
pub fn sceNandLock(write_flag: i32) -> i32;
pub fn sceNandUnlock();
......
......@@ -4,6 +4,6 @@ pub struct OpenPSID {
pub data: [u8; 16usize],
}
extern {
extern "C" {
pub fn sceOpenPSIDGetOpenPSID(openpsid: *mut OpenPSID) -> i32;
}
......@@ -26,7 +26,7 @@ pub enum KeyType {
Bytes = 4,
}
extern {
extern "C" {
pub fn sceRegOpenRegistry(
reg: *mut Key,
mode: i32,
......
......@@ -6,6 +6,6 @@ pub struct SircsData {
pub dev: u16,
}
extern {
extern "C" {
pub fn sceSircsSend(sd: *mut SircsData, count: i32) -> i32;
}
......@@ -22,7 +22,7 @@ pub const UMD_INITING: i32 = 0x08;
pub const UMD_INITED: i32 = 0x10;
pub const UMD_READY: i32 = 0x20;
extern {
extern "C" {
pub fn sceUmdCheckMedium() -> i32;
pub fn sceUmdGetDiscInfo(info: *mut UmdInfo) -> i32;
pub fn sceUmdActivate(unit: i32, drive: *const u8) -> i32;
......
......@@ -14,7 +14,7 @@ pub const ESTABLISHED: i32 = 0x002;
pub const USB_CAM_FLIP: i32 = 1;
pub const USB_CAM_MIRROR: i32 = 0x100;
extern {
extern "C" {
pub fn sceUsbStart(
driver_name: *const u8,
size: i32,
......@@ -196,7 +196,7 @@ pub enum UsbCamEvLevel {
Neg2_0,
}
extern {
extern "C" {
pub fn sceUsbCamSetupStill(param: *mut UsbCamSetupStillParam) -> i32;
pub fn sceUsbCamSetupStillEx(param: *mut UsbCamSetupStillExParam) -> i32;
pub fn sceUsbCamStillInputBlocking(buf: *mut u8, size: usize) -> i32;
......@@ -247,7 +247,7 @@ extern {
pub fn sceUsbCamGetLensDirection() -> i32;
}
extern {
extern "C" {
pub fn sceUsbstorBootRegisterNotify(event_flag: SceUid) -> i32;
pub fn sceUsbstorBootUnregisterNotify(event_flag: u32) -> i32;
pub fn sceUsbstorBootSetCapacity(size: u32) -> i32;
......
extern {
extern "C" {
pub fn sceWlanDevIsPowerOn() -> i32;
pub fn sceWlanGetSwitchState() -> i32;
pub fn sceWlanGetEtherAddr(ether_addr: *mut u8) -> i32;
}
extern {
extern "C" {
pub fn sceWlanDevAttach() -> i32;
pub fn sceWlanDevDetach() -> i32;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment