File tree Expand file tree Collapse file tree 12 files changed +16
-16
lines changed Expand file tree Collapse file tree 12 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub struct Atrac3BufferInfo {
13
13
pub ui_read_position_second_buf : u32 ,
14
14
}
15
15
16
- extern {
16
+ extern "C" {
17
17
pub fn sceAtracGetAtracID ( ui_codec_type : u32 ) -> i32 ;
18
18
pub fn sceAtracSetDataAndGetID (
19
19
buf : * mut c_void ,
Original file line number Diff line number Diff line change 1
- extern {
1
+ extern "C" {
2
2
pub fn sceVideocodecOpen (
3
3
buffer : * mut u32 ,
4
4
type_ : i32 ,
@@ -25,7 +25,7 @@ pub enum AudioCodec {
25
25
Aac = 0x00001003 ,
26
26
}
27
27
28
- extern {
28
+ extern "C" {
29
29
pub fn sceAudiocodecCheckNeedMem (
30
30
buffer : * mut u32 ,
31
31
type_ : i32 ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub const VOL_UP: i32 = 0x10;
5
5
pub const VOL_DOWN : i32 = 0x20 ;
6
6
pub const HOLD : i32 = 0x80 ;
7
7
8
- extern {
8
+ extern "C" {
9
9
pub fn sceHprmPeekCurrentKey ( key : * mut i32 ) -> i32 ;
10
10
pub fn sceHprmPeekLatch ( latch : * mut [ u32 ; 4 ] ) -> i32 ;
11
11
pub fn sceHprmReadLatch ( latch : * mut [ u32 ; 4 ] ) -> i32 ;
Original file line number Diff line number Diff line change 1
1
use super :: c_void;
2
- extern {
2
+ extern "C" {
3
3
pub fn sceJpegInitMJpeg ( ) -> i32 ;
4
4
pub fn sceJpegFinishMJpeg ( ) -> i32 ;
5
5
pub fn sceJpegCreateMJpeg ( width : i32 , height : i32 ) -> i32 ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub struct SceMp3InitArg {
17
17
#[ repr( transparent) ]
18
18
pub struct Handle ( pub i32 ) ;
19
19
20
- extern {
20
+ extern "C" {
21
21
pub fn sceMp3ReserveMp3Handle ( args : * mut SceMp3InitArg ) -> i32 ;
22
22
pub fn sceMp3ReleaseMp3Handle ( handle : Handle ) -> i32 ;
23
23
pub fn sceMp3InitResource ( ) -> i32 ;
Original file line number Diff line number Diff line change 1
1
use super :: c_void;
2
- extern {
2
+ extern "C" {
3
3
pub fn sceNandSetWriteProtect ( protect_flag : i32 ) -> i32 ;
4
4
pub fn sceNandLock ( write_flag : i32 ) -> i32 ;
5
5
pub fn sceNandUnlock ( ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ pub struct OpenPSID {
4
4
pub data : [ u8 ; 16usize ] ,
5
5
}
6
6
7
- extern {
7
+ extern "C" {
8
8
pub fn sceOpenPSIDGetOpenPSID ( openpsid : * mut OpenPSID ) -> i32 ;
9
9
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub enum KeyType {
26
26
Bytes = 4 ,
27
27
}
28
28
29
- extern {
29
+ extern "C" {
30
30
pub fn sceRegOpenRegistry (
31
31
reg : * mut Key ,
32
32
mode : i32 ,
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ pub struct SircsData {
6
6
pub dev : u16 ,
7
7
}
8
8
9
- extern {
9
+ extern "C" {
10
10
pub fn sceSircsSend ( sd : * mut SircsData , count : i32 ) -> i32 ;
11
11
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub const UMD_INITING: i32 = 0x08;
22
22
pub const UMD_INITED : i32 = 0x10 ;
23
23
pub const UMD_READY : i32 = 0x20 ;
24
24
25
- extern {
25
+ extern "C" {
26
26
pub fn sceUmdCheckMedium ( ) -> i32 ;
27
27
pub fn sceUmdGetDiscInfo ( info : * mut UmdInfo ) -> i32 ;
28
28
pub fn sceUmdActivate ( unit : i32 , drive : * const u8 ) -> i32 ;
You can’t perform that action at this time.
0 commit comments