pub const _PSPTYPES_H_: ::std::os::raw::c_uint = 1;
pub const __have_longlong64: ::std::os::raw::c_uint = 1;
pub const __have_long64: ::std::os::raw::c_uint = 1;
pub const __int8_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_least8_t_defined: ::std::os::raw::c_uint = 1;
pub const __int16_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_least16_t_defined: ::std::os::raw::c_uint = 1;
pub const __int32_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_least32_t_defined: ::std::os::raw::c_uint = 1;
pub const __int64_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_least64_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_fast8_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_fast16_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_fast32_t_defined: ::std::os::raw::c_uint = 1;
pub const __int_fast64_t_defined: ::std::os::raw::c_uint = 1;
pub const INT8_MIN: ::std::os::raw::c_int = -128;
pub const INT8_MAX: ::std::os::raw::c_uint = 127;
pub const UINT8_MAX: ::std::os::raw::c_uint = 255;
pub const INT_LEAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_LEAST8_MAX: ::std::os::raw::c_uint = 127;
pub const UINT_LEAST8_MAX: ::std::os::raw::c_uint = 255;
pub const INT16_MIN: ::std::os::raw::c_int = -32768;
pub const INT16_MAX: ::std::os::raw::c_uint = 32767;
pub const UINT16_MAX: ::std::os::raw::c_uint = 65535;
pub const INT_LEAST16_MIN: ::std::os::raw::c_int = -32768;
pub const INT_LEAST16_MAX: ::std::os::raw::c_uint = 32767;
pub const UINT_LEAST16_MAX: ::std::os::raw::c_uint = 65535;
pub const INT32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const UINT32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT_LEAST32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT_LEAST32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const UINT_LEAST32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT64_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT64_MAX: ::std::os::raw::c_int = -1;
pub const INT_LEAST64_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_LEAST64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT_LEAST64_MAX: ::std::os::raw::c_int = -1;
pub const INT_FAST64_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_FAST64_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT_FAST64_MAX: ::std::os::raw::c_int = -1;
pub const WINT_MIN: ::std::os::raw::c_uint = 0;
pub const PSP_O_RDONLY: ::std::os::raw::c_uint = 1;
pub const PSP_O_WRONLY: ::std::os::raw::c_uint = 2;
pub const PSP_O_RDWR: ::std::os::raw::c_uint = 3;
pub const PSP_O_NBLOCK: ::std::os::raw::c_uint = 4;
pub const PSP_O_DIROPEN: ::std::os::raw::c_uint = 8;
pub const PSP_O_APPEND: ::std::os::raw::c_uint = 256;
pub const PSP_O_CREAT: ::std::os::raw::c_uint = 512;
pub const PSP_O_TRUNC: ::std::os::raw::c_uint = 1024;
pub const PSP_O_EXCL: ::std::os::raw::c_uint = 2048;
pub const PSP_O_NOWAIT: ::std::os::raw::c_uint = 32768;
pub const PSP_SEEK_SET: ::std::os::raw::c_uint = 0;
pub const PSP_SEEK_CUR: ::std::os::raw::c_uint = 1;
pub const PSP_SEEK_END: ::std::os::raw::c_uint = 2;
pub const PSP_MEMORY_PARTITION_KERNEL: ::std::os::raw::c_uint = 1;
pub const PSP_MEMORY_PARTITION_USER: ::std::os::raw::c_uint = 2;
pub const __NEWLIB_H__: ::std::os::raw::c_uint = 1;
pub const _NEWLIB_VERSION: &'static [u8; 7usize] = b"1.20.0\x00";
pub const _WANT_IO_LONG_LONG: ::std::os::raw::c_uint = 1;
pub const _MB_CAPABLE: ::std::os::raw::c_uint = 1;
pub const _MB_LEN_MAX: ::std::os::raw::c_uint = 8;
pub const _ICONV_ENABLED: ::std::os::raw::c_uint = 1;
pub const HAVE_INITFINI_ARRAY: ::std::os::raw::c_uint = 1;
pub const _ATEXIT_DYNAMIC_ALLOC: ::std::os::raw::c_uint = 1;
pub const _HAVE_LONG_DOUBLE: ::std::os::raw::c_uint = 1;
pub const _LDBL_EQ_DBL: ::std::os::raw::c_uint = 1;
pub const __RAND_MAX: ::std::os::raw::c_uint = 2147483647;
pub const ___int8_t_defined: ::std::os::raw::c_uint = 1;
pub const ___int16_t_defined: ::std::os::raw::c_uint = 1;
pub const ___int_least16_t_defined: ::std::os::raw::c_uint = 1;
pub const ___int32_t_defined: ::std::os::raw::c_uint = 1;
pub const ___int_least32_t_defined: ::std::os::raw::c_uint = 1;
pub const ___int64_t_defined: ::std::os::raw::c_uint = 1;
pub const NBBY: ::std::os::raw::c_uint = 8;
pub const FD_SETSIZE: ::std::os::raw::c_uint = 64;
pub const ITIMER_REAL: ::std::os::raw::c_uint = 0;
pub const ITIMER_VIRTUAL: ::std::os::raw::c_uint = 1;
pub const ITIMER_PROF: ::std::os::raw::c_uint = 2;
pub const PSP_ATRAC_ERROR_PARAM_FAIL: ::std::os::raw::c_uint = 2153971713;
pub const PSP_ATRAC_ERROR_API_FAIL: ::std::os::raw::c_uint = 2153971714;
pub const PSP_ATRAC_ERROR_NO_ATRACID: ::std::os::raw::c_uint = 2153971715;
pub const PSP_ATRAC_ERROR_BAD_CODECTYPE: ::std::os::raw::c_uint = 2153971716;
pub const PSP_ATRAC_ERROR_BAD_ATRACID: ::std::os::raw::c_uint = 2153971717;
pub const PSP_ATRAC_ERROR_UNKNOWN_FORMAT: ::std::os::raw::c_uint = 2153971718;
pub const PSP_ATRAC_ERROR_UNMATCH_FORMAT: ::std::os::raw::c_uint = 2153971719;
pub const PSP_ATRAC_ERROR_BAD_DATA: ::std::os::raw::c_uint = 2153971720;
pub const PSP_ATRAC_ERROR_ALLDATA_IS_ONMEMORY: ::std::os::raw::c_uint =
2153971721;
pub const PSP_ATRAC_ERROR_UNSET_DATA: ::std::os::raw::c_uint = 2153971728;
pub const PSP_ATRAC_ERROR_READSIZE_IS_TOO_SMALL: ::std::os::raw::c_uint =
2153971729;
pub const PSP_ATRAC_ERROR_NEED_SECOND_BUFFER: ::std::os::raw::c_uint =
2153971730;
pub const PSP_ATRAC_ERROR_READSIZE_OVER_BUFFER: ::std::os::raw::c_uint =
2153971731;
pub const PSP_ATRAC_ERROR_NOT_4BYTE_ALIGNMENT: ::std::os::raw::c_uint =
2153971732;
pub const PSP_ATRAC_ERROR_BAD_SAMPLE: ::std::os::raw::c_uint = 2153971733;
pub const PSP_ATRAC_ERROR_WRITEBYTE_FIRST_BUFFER: ::std::os::raw::c_uint =
2153971734;
pub const PSP_ATRAC_ERROR_WRITEBYTE_SECOND_BUFFER: ::std::os::raw::c_uint =
2153971735;
pub const PSP_ATRAC_ERROR_ADD_DATA_IS_TOO_BIG: ::std::os::raw::c_uint =
2153971736;
pub const PSP_ATRAC_ERROR_UNSET_PARAM: ::std::os::raw::c_uint = 2153971745;
pub const PSP_ATRAC_ERROR_NONEED_SECOND_BUFFER: ::std::os::raw::c_uint =
2153971746;
pub const PSP_ATRAC_ERROR_NODATA_IN_BUFFER: ::std::os::raw::c_uint =
2153971747;
pub const PSP_ATRAC_ERROR_ALLDATA_WAS_DECODED: ::std::os::raw::c_uint =
2153971748;
pub const PSP_ATRAC_AT3PLUS: ::std::os::raw::c_uint = 4096;
pub const PSP_ATRAC_AT3: ::std::os::raw::c_uint = 4097;
pub const PSP_ATRAC_ALLDATA_IS_ON_MEMORY: ::std::os::raw::c_int = -1;
pub const PSP_ATRAC_NONLOOP_STREAM_DATA_IS_ON_MEMORY: ::std::os::raw::c_int =
-2;
pub const PSP_ATRAC_LOOP_STREAM_DATA_IS_ON_MEMORY: ::std::os::raw::c_int = -3;
pub const PSP_CODEC_AT3PLUS: ::std::os::raw::c_uint = 4096;
pub const PSP_CODEC_AT3: ::std::os::raw::c_uint = 4097;
pub const PSP_CODEC_MP3: ::std::os::raw::c_uint = 4098;
pub const PSP_CODEC_AAC: ::std::os::raw::c_uint = 4099;
pub const PSP_AUDIO_VOLUME_MAX: ::std::os::raw::c_uint = 32768;
pub const PSP_AUDIO_CHANNEL_MAX: ::std::os::raw::c_uint = 8;
pub const PSP_AUDIO_NEXT_CHANNEL: ::std::os::raw::c_int = -1;
pub const PSP_AUDIO_SAMPLE_MIN: ::std::os::raw::c_uint = 64;
pub const PSP_AUDIO_SAMPLE_MAX: ::std::os::raw::c_uint = 65472;
pub const PSP_NUM_AUDIO_CHANNELS: ::std::os::raw::c_uint = 4;
pub const PSP_NUM_AUDIO_SAMPLES: ::std::os::raw::c_uint = 1024;
pub const PSP_VOLUME_MAX: ::std::os::raw::c_uint = 32768;
pub const PSP_FPU_RM_MASK: ::std::os::raw::c_uint = 3;
pub const PSP_FPU_FLAGS_POS: ::std::os::raw::c_uint = 2;
pub const PSP_FPU_ENABLE_POS: ::std::os::raw::c_uint = 7;
pub const PSP_FPU_CAUSE_POS: ::std::os::raw::c_uint = 12;
pub const PSP_FPU_CC0_POS: ::std::os::raw::c_uint = 23;
pub const PSP_FPU_FS_POS: ::std::os::raw::c_uint = 24;
pub const PSP_FPU_CC17_POS: ::std::os::raw::c_uint = 25;
pub const PSP_FPU_FLAGS_MASK: ::std::os::raw::c_uint = 124;
pub const PSP_FPU_ENABLE_MASK: ::std::os::raw::c_uint = 3968;
pub const PSP_FPU_CAUSE_MASK: ::std::os::raw::c_uint = 258048;
pub const PSP_FPU_CC0_MASK: ::std::os::raw::c_uint = 8388608;
pub const PSP_FPU_FS_MASK: ::std::os::raw::c_uint = 16777216;
pub const PSP_FPU_CC17_MASK: ::std::os::raw::c_uint = 4261412864;
pub const GU_PI: f64 = 3.141593;
pub const GU_FALSE: ::std::os::raw::c_uint = 0;
pub const GU_TRUE: ::std::os::raw::c_uint = 1;
pub const GU_POINTS: ::std::os::raw::c_uint = 0;
pub const GU_LINES: ::std::os::raw::c_uint = 1;
pub const GU_LINE_STRIP: ::std::os::raw::c_uint = 2;
pub const GU_TRIANGLES: ::std::os::raw::c_uint = 3;
pub const GU_TRIANGLE_STRIP: ::std::os::raw::c_uint = 4;
pub const GU_TRIANGLE_FAN: ::std::os::raw::c_uint = 5;
pub const GU_SPRITES: ::std::os::raw::c_uint = 6;
pub const GU_ALPHA_TEST: ::std::os::raw::c_uint = 0;
pub const GU_DEPTH_TEST: ::std::os::raw::c_uint = 1;
pub const GU_SCISSOR_TEST: ::std::os::raw::c_uint = 2;
pub const GU_STENCIL_TEST: ::std::os::raw::c_uint = 3;
pub const GU_BLEND: ::std::os::raw::c_uint = 4;
pub const GU_CULL_FACE: ::std::os::raw::c_uint = 5;
pub const GU_DITHER: ::std::os::raw::c_uint = 6;
pub const GU_FOG: ::std::os::raw::c_uint = 7;
pub const GU_CLIP_PLANES: ::std::os::raw::c_uint = 8;
pub const GU_TEXTURE_2D: ::std::os::raw::c_uint = 9;
pub const GU_LIGHTING: ::std::os::raw::c_uint = 10;
pub const GU_LIGHT0: ::std::os::raw::c_uint = 11;
pub const GU_LIGHT1: ::std::os::raw::c_uint = 12;
pub const GU_LIGHT2: ::std::os::raw::c_uint = 13;
pub const GU_LIGHT3: ::std::os::raw::c_uint = 14;
pub const GU_LINE_SMOOTH: ::std::os::raw::c_uint = 15;
pub const GU_PATCH_CULL_FACE: ::std::os::raw::c_uint = 16;
pub const GU_COLOR_TEST: ::std::os::raw::c_uint = 17;
pub const GU_COLOR_LOGIC_OP: ::std::os::raw::c_uint = 18;
pub const GU_FACE_NORMAL_REVERSE: ::std::os::raw::c_uint = 19;
pub const GU_PATCH_FACE: ::std::os::raw::c_uint = 20;
pub const GU_FRAGMENT_2X: ::std::os::raw::c_uint = 21;
pub const GU_PROJECTION: ::std::os::raw::c_uint = 0;
pub const GU_VIEW: ::std::os::raw::c_uint = 1;
pub const GU_MODEL: ::std::os::raw::c_uint = 2;
pub const GU_TEXTURE: ::std::os::raw::c_uint = 3;
pub const GU_PSM_5650: ::std::os::raw::c_uint = 0;
pub const GU_PSM_5551: ::std::os::raw::c_uint = 1;
pub const GU_PSM_4444: ::std::os::raw::c_uint = 2;
pub const GU_PSM_8888: ::std::os::raw::c_uint = 3;
pub const GU_PSM_T4: ::std::os::raw::c_uint = 4;
pub const GU_PSM_T8: ::std::os::raw::c_uint = 5;
pub const GU_PSM_T16: ::std::os::raw::c_uint = 6;
pub const GU_PSM_T32: ::std::os::raw::c_uint = 7;
pub const GU_PSM_DXT1: ::std::os::raw::c_uint = 8;
pub const GU_PSM_DXT3: ::std::os::raw::c_uint = 9;
pub const GU_PSM_DXT5: ::std::os::raw::c_uint = 10;
pub const GU_FILL_FILL: ::std::os::raw::c_uint = 0;
pub const GU_OPEN_FILL: ::std::os::raw::c_uint = 1;
pub const GU_FILL_OPEN: ::std::os::raw::c_uint = 2;
pub const GU_OPEN_OPEN: ::std::os::raw::c_uint = 3;
pub const GU_FLAT: ::std::os::raw::c_uint = 0;
pub const GU_SMOOTH: ::std::os::raw::c_uint = 1;
pub const GU_CLEAR: ::std::os::raw::c_uint = 0;
pub const GU_AND: ::std::os::raw::c_uint = 1;
pub const GU_AND_REVERSE: ::std::os::raw::c_uint = 2;
pub const GU_COPY: ::std::os::raw::c_uint = 3;
pub const GU_AND_INVERTED: ::std::os::raw::c_uint = 4;
pub const GU_NOOP: ::std::os::raw::c_uint = 5;
pub const GU_XOR: ::std::os::raw::c_uint = 6;
pub const GU_OR: ::std::os::raw::c_uint = 7;
pub const GU_NOR: ::std::os::raw::c_uint = 8;
pub const GU_EQUIV: ::std::os::raw::c_uint = 9;
pub const GU_INVERTED: ::std::os::raw::c_uint = 10;
pub const GU_OR_REVERSE: ::std::os::raw::c_uint = 11;
pub const GU_COPY_INVERTED: ::std::os::raw::c_uint = 12;
pub const GU_OR_INVERTED: ::std::os::raw::c_uint = 13;
pub const GU_NAND: ::std::os::raw::c_uint = 14;
pub const GU_SET: ::std::os::raw::c_uint = 15;
pub const GU_NEAREST: ::std::os::raw::c_uint = 0;
pub const GU_LINEAR: ::std::os::raw::c_uint = 1;
pub const GU_NEAREST_MIPMAP_NEAREST: ::std::os::raw::c_uint = 4;
pub const GU_LINEAR_MIPMAP_NEAREST: ::std::os::raw::c_uint = 5;
pub const GU_NEAREST_MIPMAP_LINEAR: ::std::os::raw::c_uint = 6;
pub const GU_LINEAR_MIPMAP_LINEAR: ::std::os::raw::c_uint = 7;
pub const GU_TEXTURE_COORDS: ::std::os::raw::c_uint = 0;
pub const GU_TEXTURE_MATRIX: ::std::os::raw::c_uint = 1;
pub const GU_ENVIRONMENT_MAP: ::std::os::raw::c_uint = 2;
pub const GU_TEXTURE_AUTO: ::std::os::raw::c_uint = 0;
pub const GU_TEXTURE_CONST: ::std::os::raw::c_uint = 1;
pub const GU_TEXTURE_SLOPE: ::std::os::raw::c_uint = 2;
pub const GU_POSITION: ::std::os::raw::c_uint = 0;
pub const GU_UV: ::std::os::raw::c_uint = 1;
pub const GU_NORMALIZED_NORMAL: ::std::os::raw::c_uint = 2;
pub const GU_NORMAL: ::std::os::raw::c_uint = 3;
pub const GU_REPEAT: ::std::os::raw::c_uint = 0;
pub const GU_CLAMP: ::std::os::raw::c_uint = 1;
pub const GU_CW: ::std::os::raw::c_uint = 0;
pub const GU_CCW: ::std::os::raw::c_uint = 1;
pub const GU_NEVER: ::std::os::raw::c_uint = 0;
pub const GU_ALWAYS: ::std::os::raw::c_uint = 1;
pub const GU_EQUAL: ::std::os::raw::c_uint = 2;
pub const GU_NOTEQUAL: ::std::os::raw::c_uint = 3;
pub const GU_LESS: ::std::os::raw::c_uint = 4;
pub const GU_LEQUAL: ::std::os::raw::c_uint = 5;
pub const GU_GREATER: ::std::os::raw::c_uint = 6;
pub const GU_GEQUAL: ::std::os::raw::c_uint = 7;
pub const GU_COLOR_BUFFER_BIT: ::std::os::raw::c_uint = 1;
pub const GU_STENCIL_BUFFER_BIT: ::std::os::raw::c_uint = 2;
pub const GU_DEPTH_BUFFER_BIT: ::std::os::raw::c_uint = 4;
pub const GU_FAST_CLEAR_BIT: ::std::os::raw::c_uint = 16;
pub const GU_TFX_MODULATE: ::std::os::raw::c_uint = 0;
pub const GU_TFX_DECAL: ::std::os::raw::c_uint = 1;
pub const GU_TFX_BLEND: ::std::os::raw::c_uint = 2;
pub const GU_TFX_REPLACE: ::std::os::raw::c_uint = 3;
pub const GU_TFX_ADD: ::std::os::raw::c_uint = 4;
pub const GU_TCC_RGB: ::std::os::raw::c_uint = 0;
pub const GU_TCC_RGBA: ::std::os::raw::c_uint = 1;
pub const GU_ADD: ::std::os::raw::c_uint = 0;
pub const GU_SUBTRACT: ::std::os::raw::c_uint = 1;
pub const GU_REVERSE_SUBTRACT: ::std::os::raw::c_uint = 2;
pub const GU_MIN: ::std::os::raw::c_uint = 3;
pub const GU_MAX: ::std::os::raw::c_uint = 4;
pub const GU_ABS: ::std::os::raw::c_uint = 5;
pub const GU_SRC_COLOR: ::std::os::raw::c_uint = 0;
pub const GU_ONE_MINUS_SRC_COLOR: ::std::os::raw::c_uint = 1;
pub const GU_SRC_ALPHA: ::std::os::raw::c_uint = 2;
pub const GU_ONE_MINUS_SRC_ALPHA: ::std::os::raw::c_uint = 3;
pub const GU_DST_COLOR: ::std::os::raw::c_uint = 0;
pub const GU_ONE_MINUS_DST_COLOR: ::std::os::raw::c_uint = 1;
pub const GU_DST_ALPHA: ::std::os::raw::c_uint = 4;
pub const GU_ONE_MINUS_DST_ALPHA: ::std::os::raw::c_uint = 5;
pub const GU_FIX: ::std::os::raw::c_uint = 10;
pub const GU_KEEP: ::std::os::raw::c_uint = 0;
pub const GU_ZERO: ::std::os::raw::c_uint = 1;
pub const GU_REPLACE: ::std::os::raw::c_uint = 2;
pub const GU_INVERT: ::std::os::raw::c_uint = 3;
pub const GU_INCR: ::std::os::raw::c_uint = 4;
pub const GU_DECR: ::std::os::raw::c_uint = 5;
pub const GU_AMBIENT: ::std::os::raw::c_uint = 1;
pub const GU_DIFFUSE: ::std::os::raw::c_uint = 2;
pub const GU_SPECULAR: ::std::os::raw::c_uint = 4;
pub const GU_AMBIENT_AND_DIFFUSE: ::std::os::raw::c_uint = 3;
pub const GU_DIFFUSE_AND_SPECULAR: ::std::os::raw::c_uint = 6;
pub const GU_UNKNOWN_LIGHT_COMPONENT: ::std::os::raw::c_uint = 8;
pub const GU_SINGLE_COLOR: ::std::os::raw::c_uint = 0;
pub const GU_SEPARATE_SPECULAR_COLOR: ::std::os::raw::c_uint = 1;
pub const GU_DIRECTIONAL: ::std::os::raw::c_uint = 0;
pub const GU_POINTLIGHT: ::std::os::raw::c_uint = 1;
pub const GU_SPOTLIGHT: ::std::os::raw::c_uint = 2;
pub const GU_DIRECT: ::std::os::raw::c_uint = 0;
pub const GU_CALL: ::std::os::raw::c_uint = 1;
pub const GU_SEND: ::std::os::raw::c_uint = 2;
pub const GU_TAIL: ::std::os::raw::c_uint = 0;
pub const GU_HEAD: ::std::os::raw::c_uint = 1;
pub const GU_SYNC_FINISH: ::std::os::raw::c_uint = 0;
pub const GU_SYNC_SIGNAL: ::std::os::raw::c_uint = 1;
pub const GU_SYNC_DONE: ::std::os::raw::c_uint = 2;
pub const GU_SYNC_LIST: ::std::os::raw::c_uint = 3;
pub const GU_SYNC_SEND: ::std::os::raw::c_uint = 4;
pub const GU_SYNC_WAIT: ::std::os::raw::c_uint = 0;
pub const GU_SYNC_NOWAIT: ::std::os::raw::c_uint = 1;
pub const GU_SYNC_WHAT_DONE: ::std::os::raw::c_uint = 0;
pub const GU_SYNC_WHAT_QUEUED: ::std::os::raw::c_uint = 1;
pub const GU_SYNC_WHAT_DRAW: ::std::os::raw::c_uint = 2;
pub const GU_SYNC_WHAT_STALL: ::std::os::raw::c_uint = 3;
pub const GU_SYNC_WHAT_CANCEL: ::std::os::raw::c_uint = 4;
pub const GU_CALLBACK_SIGNAL: ::std::os::raw::c_uint = 1;
pub const GU_CALLBACK_FINISH: ::std::os::raw::c_uint = 4;
pub const GU_BEHAVIOR_SUSPEND: ::std::os::raw::c_uint = 1;
pub const GU_BEHAVIOR_CONTINUE: ::std::os::raw::c_uint = 2;
pub const PSP_IMPOSE_MAIN_VOLUME: ::std::os::raw::c_uint = 1;
pub const PSP_IMPOSE_BACKLIGHT_BRIGHTNESS: ::std::os::raw::c_uint = 2;
pub const PSP_IMPOSE_EQUALIZER_MODE: ::std::os::raw::c_uint = 4;
pub const PSP_IMPOSE_MUTE: ::std::os::raw::c_uint = 8;
pub const PSP_IMPOSE_AVLS: ::std::os::raw::c_uint = 16;
pub const PSP_IMPOSE_TIME_FORMAT: ::std::os::raw::c_uint = 32;
pub const PSP_IMPOSE_DATE_FORMAT: ::std::os::raw::c_uint = 64;
pub const PSP_IMPOSE_LANGUAGE: ::std::os::raw::c_uint = 128;
pub const PSP_IMPOSE_BACKLIGHT_OFF_INTERVAL: ::std::os::raw::c_uint = 512;
pub const PSP_IMPOSE_SOUND_REDUCTION: ::std::os::raw::c_uint = 1024;
pub const PSP_IMPOSE_UMD_POPUP_ENABLED: ::std::os::raw::c_uint = 1;
pub const PSP_IMPOSE_UMD_POPUP_DISABLED: ::std::os::raw::c_uint = 0;
pub const SCE_MPEG_AVC_FORMAT_DEFAULT: ::std::os::raw::c_int = -1;
pub const SCE_MPEG_AVC_FORMAT_5650: ::std::os::raw::c_uint = 0;
pub const SCE_MPEG_AVC_FORMAT_5551: ::std::os::raw::c_uint = 1;
pub const SCE_MPEG_AVC_FORMAT_4444: ::std::os::raw::c_uint = 2;
pub const SCE_MPEG_AVC_FORMAT_8888: ::std::os::raw::c_uint = 3;
pub const MS_CB_EVENT_INSERTED: ::std::os::raw::c_uint = 1;
pub const MS_CB_EVENT_EJECTED: ::std::os::raw::c_uint = 2;
pub const PSP_NET_APCTL_STATE_DISCONNECTED: ::std::os::raw::c_uint = 0;
pub const PSP_NET_APCTL_STATE_SCANNING: ::std::os::raw::c_uint = 1;
pub const PSP_NET_APCTL_STATE_JOINING: ::std::os::raw::c_uint = 2;
pub const PSP_NET_APCTL_STATE_GETTING_IP: ::std::os::raw::c_uint = 3;
pub const PSP_NET_APCTL_STATE_GOT_IP: ::std::os::raw::c_uint = 4;
pub const PSP_NET_APCTL_STATE_EAP_AUTH: ::std::os::raw::c_uint = 5;
pub const PSP_NET_APCTL_STATE_KEY_EXCHANGE: ::std::os::raw::c_uint = 6;
pub const PSP_NET_APCTL_EVENT_CONNECT_REQUEST: ::std::os::raw::c_uint = 0;
pub const PSP_NET_APCTL_EVENT_SCAN_REQUEST: ::std::os::raw::c_uint = 1;
pub const PSP_NET_APCTL_EVENT_SCAN_COMPLETE: ::std::os::raw::c_uint = 2;
pub const PSP_NET_APCTL_EVENT_ESTABLISHED: ::std::os::raw::c_uint = 3;
pub const PSP_NET_APCTL_EVENT_GET_IP: ::std::os::raw::c_uint = 4;
pub const PSP_NET_APCTL_EVENT_DISCONNECT_REQUEST: ::std::os::raw::c_uint = 5;
pub const PSP_NET_APCTL_EVENT_ERROR: ::std::os::raw::c_uint = 6;
pub const PSP_NET_APCTL_EVENT_INFO: ::std::os::raw::c_uint = 7;
pub const PSP_NET_APCTL_EVENT_EAP_AUTH: ::std::os::raw::c_uint = 8;
pub const PSP_NET_APCTL_EVENT_KEY_EXCHANGE: ::std::os::raw::c_uint = 9;
pub const PSP_NET_APCTL_EVENT_RECONNECT: ::std::os::raw::c_uint = 10;
pub const PSP_NET_APCTL_INFO_PROFILE_NAME: ::std::os::raw::c_uint = 0;
pub const PSP_NET_APCTL_INFO_BSSID: ::std::os::raw::c_uint = 1;
pub const PSP_NET_APCTL_INFO_SSID: ::std::os::raw::c_uint = 2;
pub const PSP_NET_APCTL_INFO_SSID_LENGTH: ::std::os::raw::c_uint = 3;
pub const PSP_NET_APCTL_INFO_SECURITY_TYPE: ::std::os::raw::c_uint = 4;
pub const PSP_NET_APCTL_INFO_STRENGTH: ::std::os::raw::c_uint = 5;
pub const PSP_NET_APCTL_INFO_CHANNEL: ::std::os::raw::c_uint = 6;
pub const PSP_NET_APCTL_INFO_POWER_SAVE: ::std::os::raw::c_uint = 7;
pub const PSP_NET_APCTL_INFO_IP: ::std::os::raw::c_uint = 8;
pub const PSP_NET_APCTL_INFO_SUBNETMASK: ::std::os::raw::c_uint = 9;
pub const PSP_NET_APCTL_INFO_GATEWAY: ::std::os::raw::c_uint = 10;
pub const PSP_NET_APCTL_INFO_PRIMDNS: ::std::os::raw::c_uint = 11;
pub const PSP_NET_APCTL_INFO_SECDNS: ::std::os::raw::c_uint = 12;
pub const PSP_NET_APCTL_INFO_USE_PROXY: ::std::os::raw::c_uint = 13;
pub const PSP_NET_APCTL_INFO_PROXY_URL: ::std::os::raw::c_uint = 14;
pub const PSP_NET_APCTL_INFO_PROXY_PORT: ::std::os::raw::c_uint = 15;
pub const PSP_NET_APCTL_INFO_8021_EAP_TYPE: ::std::os::raw::c_uint = 16;
pub const PSP_NET_APCTL_INFO_START_BROWSER: ::std::os::raw::c_uint = 17;
pub const PSP_NET_APCTL_INFO_WIFISP: ::std::os::raw::c_uint = 18;
pub const PSP_NET_APCTL_INFO_SECURITY_TYPE_NONE: ::std::os::raw::c_uint = 0;
pub const PSP_NET_APCTL_INFO_SECURITY_TYPE_WEP: ::std::os::raw::c_uint = 1;
pub const PSP_NET_APCTL_INFO_SECURITY_TYPE_WPA: ::std::os::raw::c_uint = 2;
pub const SOCK_STREAM: ::std::os::raw::c_uint = 1;
pub const SOCK_DGRAM: ::std::os::raw::c_uint = 2;
pub const SOCK_RAW: ::std::os::raw::c_uint = 3;
pub const SOCK_RDM: ::std::os::raw::c_uint = 4;
pub const SOCK_SEQPACKET: ::std::os::raw::c_uint = 5;
pub const SO_DEBUG: ::std::os::raw::c_uint = 1;
pub const SO_ACCEPTCONN: ::std::os::raw::c_uint = 2;
pub const SO_REUSEADDR: ::std::os::raw::c_uint = 4;
pub const SO_KEEPALIVE: ::std::os::raw::c_uint = 8;
pub const SO_DONTROUTE: ::std::os::raw::c_uint = 16;
pub const SO_BROADCAST: ::std::os::raw::c_uint = 32;
pub const SO_USELOOPBACK: ::std::os::raw::c_uint = 64;
pub const SO_LINGER: ::std::os::raw::c_uint = 128;
pub const SO_OOBINLINE: ::std::os::raw::c_uint = 256;
pub const SO_REUSEPORT: ::std::os::raw::c_uint = 512;
pub const SO_TIMESTAMP: ::std::os::raw::c_uint = 1024;
pub const SO_SNDBUF: ::std::os::raw::c_uint = 4097;
pub const SO_RCVBUF: ::std::os::raw::c_uint = 4098;
pub const SO_SNDLOWAT: ::std::os::raw::c_uint = 4099;
pub const SO_RCVLOWAT: ::std::os::raw::c_uint = 4100;
pub const SO_SNDTIMEO: ::std::os::raw::c_uint = 4101;
pub const SO_RCVTIMEO: ::std::os::raw::c_uint = 4102;
pub const SO_ERROR: ::std::os::raw::c_uint = 4103;
pub const SO_TYPE: ::std::os::raw::c_uint = 4104;
pub const SO_OVERFLOWED: ::std::os::raw::c_uint = 4105;
pub const SO_NONBLOCK: ::std::os::raw::c_uint = 4105;
pub const SOL_SOCKET: ::std::os::raw::c_uint = 65535;
pub const AF_UNSPEC: ::std::os::raw::c_uint = 0;
pub const AF_LOCAL: ::std::os::raw::c_uint = 1;
pub const AF_UNIX: ::std::os::raw::c_uint = 1;
pub const AF_INET: ::std::os::raw::c_uint = 2;
pub const AF_IMPLINK: ::std::os::raw::c_uint = 3;
pub const AF_PUP: ::std::os::raw::c_uint = 4;
pub const AF_CHAOS: ::std::os::raw::c_uint = 5;
pub const AF_NS: ::std::os::raw::c_uint = 6;
pub const AF_ISO: ::std::os::raw::c_uint = 7;
pub const AF_OSI: ::std::os::raw::c_uint = 7;
pub const AF_ECMA: ::std::os::raw::c_uint = 8;
pub const AF_DATAKIT: ::std::os::raw::c_uint = 9;
pub const AF_CCITT: ::std::os::raw::c_uint = 10;
pub const AF_SNA: ::std::os::raw::c_uint = 11;
pub const AF_DECnet: ::std::os::raw::c_uint = 12;
pub const AF_DLI: ::std::os::raw::c_uint = 13;
pub const AF_LAT: ::std::os::raw::c_uint = 14;
pub const AF_HYLINK: ::std::os::raw::c_uint = 15;
pub const AF_APPLETALK: ::std::os::raw::c_uint = 16;
pub const AF_ROUTE: ::std::os::raw::c_uint = 17;
pub const AF_LINK: ::std::os::raw::c_uint = 18;
pub const AF_COIP: ::std::os::raw::c_uint = 20;
pub const AF_CNT: ::std::os::raw::c_uint = 21;
pub const AF_IPX: ::std::os::raw::c_uint = 23;
pub const AF_INET6: ::std::os::raw::c_uint = 24;
pub const AF_ISDN: ::std::os::raw::c_uint = 26;
pub const AF_E164: ::std::os::raw::c_uint = 26;
pub const AF_NATM: ::std::os::raw::c_uint = 27;
pub const AF_ARP: ::std::os::raw::c_uint = 28;
pub const AF_MAX: ::std::os::raw::c_uint = 31;
pub const PF_UNSPEC: ::std::os::raw::c_uint = 0;
pub const PF_LOCAL: ::std::os::raw::c_uint = 1;
pub const PF_UNIX: ::std::os::raw::c_uint = 1;
pub const PF_INET: ::std::os::raw::c_uint = 2;
pub const PF_IMPLINK: ::std::os::raw::c_uint = 3;
pub const PF_PUP: ::std::os::raw::c_uint = 4;
pub const PF_CHAOS: ::std::os::raw::c_uint = 5;
pub const PF_NS: ::std::os::raw::c_uint = 6;
pub const PF_ISO: ::std::os::raw::c_uint = 7;
pub const PF_OSI: ::std::os::raw::c_uint = 7;
pub const PF_ECMA: ::std::os::raw::c_uint = 8;
pub const PF_DATAKIT: ::std::os::raw::c_uint = 9;
pub const PF_CCITT: ::std::os::raw::c_uint = 10;
pub const PF_SNA: ::std::os::raw::c_uint = 11;
pub const PF_DECnet: ::std::os::raw::c_uint = 12;
pub const PF_DLI: ::std::os::raw::c_uint = 13;
pub const PF_LAT: ::std::os::raw::c_uint = 14;
pub const PF_HYLINK: ::std::os::raw::c_uint = 15;
pub const PF_APPLETALK: ::std::os::raw::c_uint = 16;
pub const PF_ROUTE: ::std::os::raw::c_uint = 17;
pub const PF_LINK: ::std::os::raw::c_uint = 18;
pub const PF_COIP: ::std::os::raw::c_uint = 20;
pub const PF_CNT: ::std::os::raw::c_uint = 21;
pub const PF_INET6: ::std::os::raw::c_uint = 24;
pub const PF_IPX: ::std::os::raw::c_uint = 23;
pub const PF_ISDN: ::std::os::raw::c_uint = 26;
pub const PF_E164: ::std::os::raw::c_uint = 26;
pub const PF_NATM: ::std::os::raw::c_uint = 27;
pub const PF_ARP: ::std::os::raw::c_uint = 28;
pub const PF_MAX: ::std::os::raw::c_uint = 31;
pub const MSG_OOB: ::std::os::raw::c_uint = 1;
pub const MSG_PEEK: ::std::os::raw::c_uint = 2;
pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4;
pub const MSG_EOR: ::std::os::raw::c_uint = 8;
pub const MSG_TRUNC: ::std::os::raw::c_uint = 16;
pub const MSG_CTRUNC: ::std::os::raw::c_uint = 32;
pub const MSG_WAITALL: ::std::os::raw::c_uint = 64;
pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 128;
pub const MSG_BCAST: ::std::os::raw::c_uint = 256;
pub const MSG_MCAST: ::std::os::raw::c_uint = 512;
pub const SHUT_RD: ::std::os::raw::c_uint = 0;
pub const SHUT_WR: ::std::os::raw::c_uint = 1;
pub const SHUT_RDWR: ::std::os::raw::c_uint = 2;
pub const IPPROTO_IP: ::std::os::raw::c_uint = 0;
pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0;
pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1;
pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2;
pub const IPPROTO_GGP: ::std::os::raw::c_uint = 3;
pub const IPPROTO_IPV4: ::std::os::raw::c_uint = 4;
pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4;
pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6;
pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8;
pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12;
pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17;
pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22;
pub const IPPROTO_TP: ::std::os::raw::c_uint = 29;
pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41;
pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43;
pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44;
pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46;
pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47;
pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50;
pub const IPPROTO_AH: ::std::os::raw::c_uint = 51;
pub const IPPROTO_MOBILE: ::std::os::raw::c_uint = 55;
pub const IPPROTO_IPV6_ICMP: ::std::os::raw::c_uint = 58;
pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58;
pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59;
pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60;
pub const IPPROTO_EON: ::std::os::raw::c_uint = 80;
pub const IPPROTO_ETHERIP: ::std::os::raw::c_uint = 97;
pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98;
pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103;
pub const IPPROTO_IPCOMP: ::std::os::raw::c_uint = 108;
pub const IPPROTO_VRRP: ::std::os::raw::c_uint = 112;
pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255;
pub const IPPROTO_MAX: ::std::os::raw::c_uint = 256;
pub const IPPROTO_DONE: ::std::os::raw::c_uint = 257;
pub const CTL_IPPROTO_IPSEC: ::std::os::raw::c_uint = 258;
pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024;
pub const IPPORT_ANONMIN: ::std::os::raw::c_uint = 49152;
pub const IPPORT_ANONMAX: ::std::os::raw::c_uint = 65535;
pub const IPPORT_RESERVEDMIN: ::std::os::raw::c_uint = 600;
pub const IPPORT_RESERVEDMAX: ::std::os::raw::c_uint = 1023;
pub const IN_CLASSA_NSHIFT: ::std::os::raw::c_uint = 24;
pub const IN_CLASSA_MAX: ::std::os::raw::c_uint = 128;
pub const IN_CLASSB_NSHIFT: ::std::os::raw::c_uint = 16;
pub const IN_CLASSB_MAX: ::std::os::raw::c_uint = 65536;
pub const IN_CLASSC_NSHIFT: ::std::os::raw::c_uint = 8;
pub const IN_CLASSD_NSHIFT: ::std::os::raw::c_uint = 28;
pub const IN_LOOPBACKNET: ::std::os::raw::c_uint = 127;
pub const INET_ADDRSTRLEN: ::std::os::raw::c_uint = 16;
pub const IP_OPTIONS: ::std::os::raw::c_uint = 1;
pub const IP_HDRINCL: ::std::os::raw::c_uint = 2;
pub const IP_TOS: ::std::os::raw::c_uint = 3;
pub const IP_TTL: ::std::os::raw::c_uint = 4;
pub const IP_RECVOPTS: ::std::os::raw::c_uint = 5;
pub const IP_RECVRETOPTS: ::std::os::raw::c_uint = 6;
pub const IP_RECVDSTADDR: ::std::os::raw::c_uint = 7;
pub const IP_RETOPTS: ::std::os::raw::c_uint = 8;
pub const IP_MULTICAST_IF: ::std::os::raw::c_uint = 9;
pub const IP_MULTICAST_TTL: ::std::os::raw::c_uint = 10;
pub const IP_MULTICAST_LOOP: ::std::os::raw::c_uint = 11;
pub const IP_ADD_MEMBERSHIP: ::std::os::raw::c_uint = 12;
pub const IP_DROP_MEMBERSHIP: ::std::os::raw::c_uint = 13;
pub const IP_PORTRANGE: ::std::os::raw::c_uint = 19;
pub const IP_RECVIF: ::std::os::raw::c_uint = 20;
pub const IP_ERRORMTU: ::std::os::raw::c_uint = 21;
pub const IP_IPSEC_POLICY: ::std::os::raw::c_uint = 22;
pub const IP_DEFAULT_MULTICAST_TTL: ::std::os::raw::c_uint = 1;
pub const IP_DEFAULT_MULTICAST_LOOP: ::std::os::raw::c_uint = 1;
pub const IP_MAX_MEMBERSHIPS: ::std::os::raw::c_uint = 20;
pub const IP_PORTRANGE_DEFAULT: ::std::os::raw::c_uint = 0;
pub const IP_PORTRANGE_HIGH: ::std::os::raw::c_uint = 1;
pub const IP_PORTRANGE_LOW: ::std::os::raw::c_uint = 2;
pub const PSP_POWER_CB_POWER_SWITCH: ::std::os::raw::c_uint = 2147483648;
pub const PSP_POWER_CB_HOLD_SWITCH: ::std::os::raw::c_uint = 1073741824;
pub const PSP_POWER_CB_STANDBY: ::std::os::raw::c_uint = 524288;
pub const PSP_POWER_CB_RESUME_COMPLETE: ::std::os::raw::c_uint = 262144;
pub const PSP_POWER_CB_RESUMING: ::std::os::raw::c_uint = 131072;
pub const PSP_POWER_CB_SUSPENDING: ::std::os::raw::c_uint = 65536;
pub const PSP_POWER_CB_AC_POWER: ::std::os::raw::c_uint = 4096;
pub const PSP_POWER_CB_BATTERY_LOW: ::std::os::raw::c_uint = 256;
pub const PSP_POWER_CB_BATTERY_EXIST: ::std::os::raw::c_uint = 128;
pub const PSP_POWER_CB_BATTPOWER: ::std::os::raw::c_uint = 127;
pub const PSP_POWER_TICK_ALL: ::std::os::raw::c_uint = 0;
pub const PSP_POWER_TICK_SUSPEND: ::std::os::raw::c_uint = 1;
pub const PSP_POWER_TICK_DISPLAY: ::std::os::raw::c_uint = 6;
pub const SYSTEM_REGISTRY: &'static [u8; 8usize] = b"/system\x00";
pub const REG_KEYNAME_SIZE: ::std::os::raw::c_uint = 27;
pub const __GNUC_VA_LIST: ::std::os::raw::c_uint = 1;
pub const SCE_LED_POWER: ::std::os::raw::c_uint = 1;
pub const LED_ON: ::std::os::raw::c_uint = 1;
pub const LED_OFF: ::std::os::raw::c_uint = 0;
pub const PSP_USBACC_DRIVERNAME: &'static [u8; 17usize] =
b"USBAccBaseDriver\x00";
pub const PSP_USBCAM_PID: ::std::os::raw::c_uint = 642;
pub const PSP_USBCAM_DRIVERNAME: &'static [u8; 13usize] = b"USBCamDriver\x00";
pub const PSP_USBCAMMIC_DRIVERNAME: &'static [u8; 16usize] =
b"USBCamMicDriver\x00";
pub const PSP_USBBUS_DRIVERNAME: &'static [u8; 13usize] = b"USBBusDriver\x00";
pub const PSP_USB_ACTIVATED: ::std::os::raw::c_uint = 512;
pub const PSP_USB_CABLE_CONNECTED: ::std::os::raw::c_uint = 32;
pub const PSP_USB_CONNECTION_ESTABLISHED: ::std::os::raw::c_uint = 2;
pub const PSP_USBSTOR_DRIVERNAME: &'static [u8; 15usize] =
b"USBStor_Driver\x00";
pub const PSP_NETPARAM_NAME: ::std::os::raw::c_uint = 0;
pub const PSP_NETPARAM_SSID: ::std::os::raw::c_uint = 1;
pub const PSP_NETPARAM_SECURE: ::std::os::raw::c_uint = 2;
pub const PSP_NETPARAM_WEPKEY: ::std::os::raw::c_uint = 3;
pub const PSP_NETPARAM_IS_STATIC_IP: ::std::os::raw::c_uint = 4;
pub const PSP_NETPARAM_IP: ::std::os::raw::c_uint = 5;
pub const PSP_NETPARAM_NETMASK: ::std::os::raw::c_uint = 6;
pub const PSP_NETPARAM_ROUTE: ::std::os::raw::c_uint = 7;
pub const PSP_NETPARAM_MANUAL_DNS: ::std::os::raw::c_uint = 8;
pub const PSP_NETPARAM_PRIMARYDNS: ::std::os::raw::c_uint = 9;
pub const PSP_NETPARAM_SECONDARYDNS: ::std::os::raw::c_uint = 10;
pub const PSP_NETPARAM_PROXY_USER: ::std::os::raw::c_uint = 11;
pub const PSP_NETPARAM_PROXY_PASS: ::std::os::raw::c_uint = 12;
pub const PSP_NETPARAM_USE_PROXY: ::std::os::raw::c_uint = 13;
pub const PSP_NETPARAM_PROXY_SERVER: ::std::os::raw::c_uint = 14;
pub const PSP_NETPARAM_PROXY_PORT: ::std::os::raw::c_uint = 15;
pub const PSP_NETPARAM_UNKNOWN1: ::std::os::raw::c_uint = 16;
pub const PSP_NETPARAM_UNKNOWN2: ::std::os::raw::c_uint = 17;
pub const PSP_NETPARAM_ERROR_BAD_NETCONF: ::std::os::raw::c_uint = 2148599297;
pub const PSP_NETPARAM_ERROR_BAD_PARAM: ::std::os::raw::c_uint = 2148599300;
pub const PSP_SYSTEMPARAM_ID_STRING_NICKNAME: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL: ::std::os::raw::c_uint = 2;
pub const PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE: ::std::os::raw::c_uint = 3;
pub const PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT: ::std::os::raw::c_uint = 4;
pub const PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT: ::std::os::raw::c_uint = 5;
pub const PSP_SYSTEMPARAM_ID_INT_TIMEZONE: ::std::os::raw::c_uint = 6;
pub const PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS: ::std::os::raw::c_uint = 7;
pub const PSP_SYSTEMPARAM_ID_INT_LANGUAGE: ::std::os::raw::c_uint = 8;
pub const PSP_SYSTEMPARAM_ID_INT_UNKNOWN: ::std::os::raw::c_uint = 9;
pub const PSP_SYSTEMPARAM_RETVAL_OK: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_RETVAL_FAIL: ::std::os::raw::c_uint = 2148598019;
pub const PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_ADHOC_CHANNEL_1: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_ADHOC_CHANNEL_6: ::std::os::raw::c_uint = 6;
pub const PSP_SYSTEMPARAM_ADHOC_CHANNEL_11: ::std::os::raw::c_uint = 11;
pub const PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_WLAN_POWERSAVE_ON: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_DATE_FORMAT_MMDDYYYY: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_DATE_FORMAT_DDMMYYYY: ::std::os::raw::c_uint = 2;
pub const PSP_SYSTEMPARAM_TIME_FORMAT_24HR: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_TIME_FORMAT_12HR: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_STD: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_SAVING: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_LANGUAGE_JAPANESE: ::std::os::raw::c_uint = 0;
pub const PSP_SYSTEMPARAM_LANGUAGE_ENGLISH: ::std::os::raw::c_uint = 1;
pub const PSP_SYSTEMPARAM_LANGUAGE_FRENCH: ::std::os::raw::c_uint = 2;
pub const PSP_SYSTEMPARAM_LANGUAGE_SPANISH: ::std::os::raw::c_uint = 3;
pub const PSP_SYSTEMPARAM_LANGUAGE_GERMAN: ::std::os::raw::c_uint = 4;
pub const PSP_SYSTEMPARAM_LANGUAGE_ITALIAN: ::std::os::raw::c_uint = 5;
pub const PSP_SYSTEMPARAM_LANGUAGE_DUTCH: ::std::os::raw::c_uint = 6;
pub const PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE: ::std::os::raw::c_uint = 7;
pub const PSP_SYSTEMPARAM_LANGUAGE_RUSSIAN: ::std::os::raw::c_uint = 8;
pub const PSP_SYSTEMPARAM_LANGUAGE_KOREAN: ::std::os::raw::c_uint = 9;
pub const PSP_SYSTEMPARAM_LANGUAGE_CHINESE_TRADITIONAL: ::std::os::raw::c_uint
=
10;
pub const PSP_SYSTEMPARAM_LANGUAGE_CHINESE_SIMPLIFIED: ::std::os::raw::c_uint
=
11;
pub const PSP_NET_MODULE_COMMON: ::std::os::raw::c_uint = 1;
pub const PSP_NET_MODULE_ADHOC: ::std::os::raw::c_uint = 2;
pub const PSP_NET_MODULE_INET: ::std::os::raw::c_uint = 3;
pub const PSP_NET_MODULE_PARSEURI: ::std::os::raw::c_uint = 4;
pub const PSP_NET_MODULE_PARSEHTTP: ::std::os::raw::c_uint = 5;
pub const PSP_NET_MODULE_HTTP: ::std::os::raw::c_uint = 6;
pub const PSP_NET_MODULE_SSL: ::std::os::raw::c_uint = 7;
pub const PSP_AV_MODULE_AVCODEC: ::std::os::raw::c_uint = 0;
pub const PSP_AV_MODULE_SASCORE: ::std::os::raw::c_uint = 1;
pub const PSP_AV_MODULE_ATRAC3PLUS: ::std::os::raw::c_uint = 2;
pub const PSP_AV_MODULE_MPEGBASE: ::std::os::raw::c_uint = 3;
pub const PSP_AV_MODULE_MP3: ::std::os::raw::c_uint = 4;
pub const PSP_AV_MODULE_VAUDIO: ::std::os::raw::c_uint = 5;
pub const PSP_AV_MODULE_AAC: ::std::os::raw::c_uint = 6;
pub const PSP_AV_MODULE_G729: ::std::os::raw::c_uint = 7;
pub const PSP_USB_MODULE_PSPCM: ::std::os::raw::c_uint = 1;
pub const PSP_USB_MODULE_ACC: ::std::os::raw::c_uint = 2;
pub const PSP_USB_MODULE_MIC: ::std::os::raw::c_uint = 3;
pub const PSP_USB_MODULE_CAM: ::std::os::raw::c_uint = 4;
pub const PSP_USB_MODULE_GPS: ::std::os::raw::c_uint = 5;
pub const PSP_MODULE_NET_COMMON: ::std::os::raw::c_uint = 256;
pub const PSP_MODULE_NET_ADHOC: ::std::os::raw::c_uint = 257;
pub const PSP_MODULE_NET_INET: ::std::os::raw::c_uint = 258;
pub const PSP_MODULE_NET_PARSEURI: ::std::os::raw::c_uint = 259;
pub const PSP_MODULE_NET_PARSEHTTP: ::std::os::raw::c_uint = 260;
pub const PSP_MODULE_NET_HTTP: ::std::os::raw::c_uint = 261;
pub const PSP_MODULE_NET_SSL: ::std::os::raw::c_uint = 262;
pub const PSP_MODULE_USB_PSPCM: ::std::os::raw::c_uint = 512;
pub const PSP_MODULE_USB_MIC: ::std::os::raw::c_uint = 513;
pub const PSP_MODULE_USB_CAM: ::std::os::raw::c_uint = 514;
pub const PSP_MODULE_USB_GPS: ::std::os::raw::c_uint = 515;
pub const PSP_MODULE_AV_AVCODEC: ::std::os::raw::c_uint = 768;
pub const PSP_MODULE_AV_SASCORE: ::std::os::raw::c_uint = 769;
pub const PSP_MODULE_AV_ATRAC3PLUS: ::std::os::raw::c_uint = 770;
pub const PSP_MODULE_AV_MPEGBASE: ::std::os::raw::c_uint = 771;
pub const PSP_MODULE_AV_MP3: ::std::os::raw::c_uint = 772;
pub const PSP_MODULE_AV_VAUDIO: ::std::os::raw::c_uint = 773;
pub const PSP_MODULE_AV_AAC: ::std::os::raw::c_uint = 774;
pub const PSP_MODULE_AV_G729: ::std::os::raw::c_uint = 775;
pub const PSP_MODULE_NP_COMMON: ::std::os::raw::c_uint = 1024;
pub const PSP_MODULE_NP_SERVICE: ::std::os::raw::c_uint = 1025;
pub const PSP_MODULE_NP_MATCHING2: ::std::os::raw::c_uint = 1026;
pub const PSP_MODULE_NP_DRM: ::std::os::raw::c_uint = 1280;
pub const PSP_MODULE_IRDA: ::std::os::raw::c_uint = 1536;
pub const PSP_UTILITY_ACCEPT_CIRCLE: ::std::os::raw::c_uint = 0;
pub const PSP_UTILITY_ACCEPT_CROSS: ::std::os::raw::c_uint = 1;
pub const VMAT0: ::std::os::raw::c_uint = 1;
pub const VMAT1: ::std::os::raw::c_uint = 2;
pub const VMAT2: ::std::os::raw::c_uint = 4;
pub const VMAT3: ::std::os::raw::c_uint = 8;
pub const VMAT4: ::std::os::raw::c_uint = 16;
pub const VMAT5: ::std::os::raw::c_uint = 32;
pub const VMAT6: ::std::os::raw::c_uint = 64;
pub const VMAT7: ::std::os::raw::c_uint = 128;
pub type int_least8_t = ::std::os::raw::c_schar;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type int_least16_t = i16;
pub type uint_least16_t = u16;
pub type int_least32_t = i32;
pub type uint_least32_t = u32;
pub type int_least64_t = i64;
pub type uint_least64_t = u64;
pub type int_fast8_t = ::std::os::raw::c_int;
pub type uint_fast8_t = ::std::os::raw::c_uint;
pub type int_fast16_t = ::std::os::raw::c_int;
pub type uint_fast16_t = ::std::os::raw::c_uint;
pub type int_fast32_t = ::std::os::raw::c_int;
pub type uint_fast32_t = ::std::os::raw::c_uint;
pub type int_fast64_t = int_least64_t;
pub type uint_fast64_t = uint_least64_t;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub type s8 = i8;
pub type s16 = i16;
pub type s32 = i32;
pub type s64 = i64;
pub type vu8 = u8;
pub type vu16 = u16;
pub type vu32 = u32;
pub type vu64 = u64;
pub type vs8 = i8;
pub type vs16 = i16;
pub type vs32 = i32;
pub type vs64 = i64;
pub type SceUChar8 = ::std::os::raw::c_uchar;
pub type SceUShort16 = u16;
pub type SceUInt32 = u32;
pub type SceUInt64 = u64;
pub type SceULong64 = u64;
pub type SceChar8 = ::std::os::raw::c_char;
pub type SceShort16 = i16;
pub type SceInt32 = i32;
pub type SceInt64 = i64;
pub type SceLong64 = i64;
pub type SceFloat = f32;
pub type SceFloat32 = f32;
pub type SceWChar16 = ::std::os::raw::c_ushort;
pub type SceWChar32 = ::std::os::raw::c_uint;
pub type SceBool = ::std::os::raw::c_int;
pub type SceVoid = ::std::os::raw::c_void;
pub type ScePVoid = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspSRect {
pub x: ::std::os::raw::c_short,
pub y: ::std::os::raw::c_short,
pub w: ::std::os::raw::c_short,
pub h: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout_ScePspSRect() {
assert_eq!(::std::mem::size_of::<ScePspSRect>() , 8usize , concat ! (
"Size of: " , stringify ! ( ScePspSRect ) ));
assert_eq! (::std::mem::align_of::<ScePspSRect>() , 2usize , concat ! (
"Alignment of " , stringify ! ( ScePspSRect ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSRect ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSRect ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSRect ) ) . y as * const _ as usize
} , 2usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSRect ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSRect ) ) . w as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSRect ) , "::" ,
stringify ! ( w ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSRect ) ) . h as * const _ as usize
} , 6usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSRect ) , "::" ,
stringify ! ( h ) ));
}
impl Clone for ScePspSRect {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIRect {
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
pub w: ::std::os::raw::c_int,
pub h: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_ScePspIRect() {
assert_eq!(::std::mem::size_of::<ScePspIRect>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspIRect ) ));
assert_eq! (::std::mem::align_of::<ScePspIRect>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIRect ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIRect ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIRect ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIRect ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIRect ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIRect ) ) . w as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIRect ) , "::" ,
stringify ! ( w ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIRect ) ) . h as * const _ as usize
} , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIRect ) , "::" ,
stringify ! ( h ) ));
}
impl Clone for ScePspIRect {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspL64Rect {
pub x: SceLong64,
pub y: SceLong64,
pub w: SceLong64,
pub h: SceLong64,
}
#[test]
fn bindgen_test_layout_ScePspL64Rect() {
assert_eq!(::std::mem::size_of::<ScePspL64Rect>() , 32usize , concat ! (
"Size of: " , stringify ! ( ScePspL64Rect ) ));
assert_eq! (::std::mem::align_of::<ScePspL64Rect>() , 8usize , concat ! (
"Alignment of " , stringify ! ( ScePspL64Rect ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Rect ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Rect ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Rect ) ) . y as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Rect ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Rect ) ) . w as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Rect ) , "::"
, stringify ! ( w ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Rect ) ) . h as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Rect ) , "::"
, stringify ! ( h ) ));
}
impl Clone for ScePspL64Rect {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFRect {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}
#[test]
fn bindgen_test_layout_ScePspFRect() {
assert_eq!(::std::mem::size_of::<ScePspFRect>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspFRect ) ));
assert_eq! (::std::mem::align_of::<ScePspFRect>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFRect ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFRect ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFRect ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFRect ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFRect ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFRect ) ) . w as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFRect ) , "::" ,
stringify ! ( w ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFRect ) ) . h as * const _ as usize
} , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFRect ) , "::" ,
stringify ! ( h ) ));
}
impl Clone for ScePspFRect {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspSVector2 {
pub x: ::std::os::raw::c_short,
pub y: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout_ScePspSVector2() {
assert_eq!(::std::mem::size_of::<ScePspSVector2>() , 4usize , concat ! (
"Size of: " , stringify ! ( ScePspSVector2 ) ));
assert_eq! (::std::mem::align_of::<ScePspSVector2>() , 2usize , concat ! (
"Alignment of " , stringify ! ( ScePspSVector2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector2 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector2 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector2 ) ) . y as * const _ as
usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector2 ) , "::"
, stringify ! ( y ) ));
}
impl Clone for ScePspSVector2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIVector2 {
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_ScePspIVector2() {
assert_eq!(::std::mem::size_of::<ScePspIVector2>() , 8usize , concat ! (
"Size of: " , stringify ! ( ScePspIVector2 ) ));
assert_eq! (::std::mem::align_of::<ScePspIVector2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIVector2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector2 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector2 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector2 ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector2 ) , "::"
, stringify ! ( y ) ));
}
impl Clone for ScePspIVector2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspL64Vector2 {
pub x: SceLong64,
pub y: SceLong64,
}
#[test]
fn bindgen_test_layout_ScePspL64Vector2() {
assert_eq!(::std::mem::size_of::<ScePspL64Vector2>() , 16usize , concat !
( "Size of: " , stringify ! ( ScePspL64Vector2 ) ));
assert_eq! (::std::mem::align_of::<ScePspL64Vector2>() , 8usize , concat !
( "Alignment of " , stringify ! ( ScePspL64Vector2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector2 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector2 ) ,
"::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector2 ) ) . y as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector2 ) ,
"::" , stringify ! ( y ) ));
}
impl Clone for ScePspL64Vector2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFVector2 {
pub x: f32,
pub y: f32,
}
#[test]
fn bindgen_test_layout_ScePspFVector2() {
assert_eq!(::std::mem::size_of::<ScePspFVector2>() , 8usize , concat ! (
"Size of: " , stringify ! ( ScePspFVector2 ) ));
assert_eq! (::std::mem::align_of::<ScePspFVector2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFVector2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector2 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector2 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector2 ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector2 ) , "::"
, stringify ! ( y ) ));
}
impl Clone for ScePspFVector2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspVector2 {
pub fv: ScePspFVector2,
pub iv: ScePspIVector2,
pub f: [f32; 2usize],
pub i: [::std::os::raw::c_int; 2usize],
_bindgen_union_align: [u32; 2usize],
}
#[test]
fn bindgen_test_layout_ScePspVector2() {
assert_eq!(::std::mem::size_of::<ScePspVector2>() , 8usize , concat ! (
"Size of: " , stringify ! ( ScePspVector2 ) ));
assert_eq! (::std::mem::align_of::<ScePspVector2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspVector2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector2 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector2 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector2 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector2 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector2 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector2 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector2 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector2 ) , "::"
, stringify ! ( i ) ));
}
impl Clone for ScePspVector2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspSVector3 {
pub x: ::std::os::raw::c_short,
pub y: ::std::os::raw::c_short,
pub z: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout_ScePspSVector3() {
assert_eq!(::std::mem::size_of::<ScePspSVector3>() , 6usize , concat ! (
"Size of: " , stringify ! ( ScePspSVector3 ) ));
assert_eq! (::std::mem::align_of::<ScePspSVector3>() , 2usize , concat ! (
"Alignment of " , stringify ! ( ScePspSVector3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector3 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector3 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector3 ) ) . y as * const _ as
usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector3 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector3 ) ) . z as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector3 ) , "::"
, stringify ! ( z ) ));
}
impl Clone for ScePspSVector3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIVector3 {
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
pub z: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_ScePspIVector3() {
assert_eq!(::std::mem::size_of::<ScePspIVector3>() , 12usize , concat ! (
"Size of: " , stringify ! ( ScePspIVector3 ) ));
assert_eq! (::std::mem::align_of::<ScePspIVector3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIVector3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector3 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector3 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector3 ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector3 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector3 ) ) . z as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector3 ) , "::"
, stringify ! ( z ) ));
}
impl Clone for ScePspIVector3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspL64Vector3 {
pub x: SceLong64,
pub y: SceLong64,
pub z: SceLong64,
}
#[test]
fn bindgen_test_layout_ScePspL64Vector3() {
assert_eq!(::std::mem::size_of::<ScePspL64Vector3>() , 24usize , concat !
( "Size of: " , stringify ! ( ScePspL64Vector3 ) ));
assert_eq! (::std::mem::align_of::<ScePspL64Vector3>() , 8usize , concat !
( "Alignment of " , stringify ! ( ScePspL64Vector3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector3 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector3 ) ,
"::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector3 ) ) . y as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector3 ) ,
"::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector3 ) ) . z as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector3 ) ,
"::" , stringify ! ( z ) ));
}
impl Clone for ScePspL64Vector3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFVector3 {
pub x: f32,
pub y: f32,
pub z: f32,
}
#[test]
fn bindgen_test_layout_ScePspFVector3() {
assert_eq!(::std::mem::size_of::<ScePspFVector3>() , 12usize , concat ! (
"Size of: " , stringify ! ( ScePspFVector3 ) ));
assert_eq! (::std::mem::align_of::<ScePspFVector3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFVector3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector3 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector3 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector3 ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector3 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector3 ) ) . z as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector3 ) , "::"
, stringify ! ( z ) ));
}
impl Clone for ScePspFVector3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspVector3 {
pub fv: ScePspFVector3,
pub iv: ScePspIVector3,
pub f: [f32; 3usize],
pub i: [::std::os::raw::c_int; 3usize],
_bindgen_union_align: [u32; 3usize],
}
#[test]
fn bindgen_test_layout_ScePspVector3() {
assert_eq!(::std::mem::size_of::<ScePspVector3>() , 12usize , concat ! (
"Size of: " , stringify ! ( ScePspVector3 ) ));
assert_eq! (::std::mem::align_of::<ScePspVector3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspVector3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector3 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector3 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector3 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector3 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector3 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector3 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector3 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector3 ) , "::"
, stringify ! ( i ) ));
}
impl Clone for ScePspVector3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspSVector4 {
pub x: ::std::os::raw::c_short,
pub y: ::std::os::raw::c_short,
pub z: ::std::os::raw::c_short,
pub w: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout_ScePspSVector4() {
assert_eq!(::std::mem::size_of::<ScePspSVector4>() , 8usize , concat ! (
"Size of: " , stringify ! ( ScePspSVector4 ) ));
assert_eq! (::std::mem::align_of::<ScePspSVector4>() , 2usize , concat ! (
"Alignment of " , stringify ! ( ScePspSVector4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector4 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector4 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector4 ) ) . y as * const _ as
usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector4 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector4 ) ) . z as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector4 ) , "::"
, stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspSVector4 ) ) . w as * const _ as
usize } , 6usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspSVector4 ) , "::"
, stringify ! ( w ) ));
}
impl Clone for ScePspSVector4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIVector4 {
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
pub z: ::std::os::raw::c_int,
pub w: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_ScePspIVector4() {
assert_eq!(::std::mem::size_of::<ScePspIVector4>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspIVector4 ) ));
assert_eq! (::std::mem::align_of::<ScePspIVector4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIVector4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector4 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector4 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector4 ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector4 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector4 ) ) . z as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector4 ) , "::"
, stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIVector4 ) ) . w as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIVector4 ) , "::"
, stringify ! ( w ) ));
}
impl Clone for ScePspIVector4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspL64Vector4 {
pub x: SceLong64,
pub y: SceLong64,
pub z: SceLong64,
pub w: SceLong64,
}
#[test]
fn bindgen_test_layout_ScePspL64Vector4() {
assert_eq!(::std::mem::size_of::<ScePspL64Vector4>() , 32usize , concat !
( "Size of: " , stringify ! ( ScePspL64Vector4 ) ));
assert_eq! (::std::mem::align_of::<ScePspL64Vector4>() , 8usize , concat !
( "Alignment of " , stringify ! ( ScePspL64Vector4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector4 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector4 ) ,
"::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector4 ) ) . y as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector4 ) ,
"::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector4 ) ) . z as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector4 ) ,
"::" , stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspL64Vector4 ) ) . w as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspL64Vector4 ) ,
"::" , stringify ! ( w ) ));
}
impl Clone for ScePspL64Vector4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFVector4 {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test]
fn bindgen_test_layout_ScePspFVector4() {
assert_eq!(::std::mem::size_of::<ScePspFVector4>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspFVector4 ) ));
assert_eq! (::std::mem::align_of::<ScePspFVector4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFVector4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4 ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4 ) ) . z as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4 ) , "::"
, stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4 ) ) . w as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4 ) , "::"
, stringify ! ( w ) ));
}
impl Clone for ScePspFVector4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFVector4Unaligned {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test]
fn bindgen_test_layout_ScePspFVector4Unaligned() {
assert_eq!(::std::mem::size_of::<ScePspFVector4Unaligned>() , 16usize ,
concat ! (
"Size of: " , stringify ! ( ScePspFVector4Unaligned ) ));
assert_eq! (::std::mem::align_of::<ScePspFVector4Unaligned>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( ScePspFVector4Unaligned ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4Unaligned ) ) . x as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4Unaligned
) , "::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4Unaligned ) ) . y as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4Unaligned
) , "::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4Unaligned ) ) . z as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4Unaligned
) , "::" , stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFVector4Unaligned ) ) . w as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFVector4Unaligned
) , "::" , stringify ! ( w ) ));
}
impl Clone for ScePspFVector4Unaligned {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspVector4 {
pub fv: ScePspFVector4,
pub iv: ScePspIVector4,
pub f: [f32; 4usize],
pub i: [::std::os::raw::c_int; 4usize],
_bindgen_union_align: [u8; 16usize],
}
#[test]
fn bindgen_test_layout_ScePspVector4() {
assert_eq!(::std::mem::size_of::<ScePspVector4>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspVector4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector4 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector4 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector4 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector4 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector4 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector4 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspVector4 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspVector4 ) , "::"
, stringify ! ( i ) ));
}
impl Clone for ScePspVector4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIMatrix2 {
pub x: ScePspIVector2,
pub y: ScePspIVector2,
}
#[test]
fn bindgen_test_layout_ScePspIMatrix2() {
assert_eq!(::std::mem::size_of::<ScePspIMatrix2>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspIMatrix2 ) ));
assert_eq! (::std::mem::align_of::<ScePspIMatrix2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIMatrix2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix2 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix2 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix2 ) ) . y as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix2 ) , "::"
, stringify ! ( y ) ));
}
impl Clone for ScePspIMatrix2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFMatrix2 {
pub x: ScePspFVector2,
pub y: ScePspFVector2,
}
#[test]
fn bindgen_test_layout_ScePspFMatrix2() {
assert_eq!(::std::mem::size_of::<ScePspFMatrix2>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspFMatrix2 ) ));
assert_eq! (::std::mem::align_of::<ScePspFMatrix2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFMatrix2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix2 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix2 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix2 ) ) . y as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix2 ) , "::"
, stringify ! ( y ) ));
}
impl Clone for ScePspFMatrix2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspMatrix2 {
pub fm: ScePspFMatrix2,
pub im: ScePspIMatrix2,
pub fv: [ScePspFVector2; 2usize],
pub iv: [ScePspIVector2; 2usize],
pub v: [ScePspVector2; 2usize],
pub f: [[f32; 2usize]; 2usize],
pub i: [[::std::os::raw::c_int; 2usize]; 2usize],
_bindgen_union_align: [u32; 4usize],
}
#[test]
fn bindgen_test_layout_ScePspMatrix2() {
assert_eq!(::std::mem::size_of::<ScePspMatrix2>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspMatrix2 ) ));
assert_eq! (::std::mem::align_of::<ScePspMatrix2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspMatrix2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . fm as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( fm ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . im as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( im ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . v as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( v ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix2 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix2 ) , "::"
, stringify ! ( i ) ));
}
impl Clone for ScePspMatrix2 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIMatrix3 {
pub x: ScePspIVector3,
pub y: ScePspIVector3,
pub z: ScePspIVector3,
}
#[test]
fn bindgen_test_layout_ScePspIMatrix3() {
assert_eq!(::std::mem::size_of::<ScePspIMatrix3>() , 36usize , concat ! (
"Size of: " , stringify ! ( ScePspIMatrix3 ) ));
assert_eq! (::std::mem::align_of::<ScePspIMatrix3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIMatrix3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix3 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix3 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix3 ) ) . y as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix3 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix3 ) ) . z as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix3 ) , "::"
, stringify ! ( z ) ));
}
impl Clone for ScePspIMatrix3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFMatrix3 {
pub x: ScePspFVector3,
pub y: ScePspFVector3,
pub z: ScePspFVector3,
}
#[test]
fn bindgen_test_layout_ScePspFMatrix3() {
assert_eq!(::std::mem::size_of::<ScePspFMatrix3>() , 36usize , concat ! (
"Size of: " , stringify ! ( ScePspFMatrix3 ) ));
assert_eq! (::std::mem::align_of::<ScePspFMatrix3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFMatrix3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix3 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix3 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix3 ) ) . y as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix3 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix3 ) ) . z as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix3 ) , "::"
, stringify ! ( z ) ));
}
impl Clone for ScePspFMatrix3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspMatrix3 {
pub fm: ScePspFMatrix3,
pub im: ScePspIMatrix3,
pub fv: [ScePspFVector3; 3usize],
pub iv: [ScePspIVector3; 3usize],
pub v: [ScePspVector3; 3usize],
pub f: [[f32; 3usize]; 3usize],
pub i: [[::std::os::raw::c_int; 3usize]; 3usize],
_bindgen_union_align: [u32; 9usize],
}
#[test]
fn bindgen_test_layout_ScePspMatrix3() {
assert_eq!(::std::mem::size_of::<ScePspMatrix3>() , 36usize , concat ! (
"Size of: " , stringify ! ( ScePspMatrix3 ) ));
assert_eq! (::std::mem::align_of::<ScePspMatrix3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspMatrix3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . fm as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( fm ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . im as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( im ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . v as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( v ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix3 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix3 ) , "::"
, stringify ! ( i ) ));
}
impl Clone for ScePspMatrix3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIMatrix4 {
pub x: ScePspIVector4,
pub y: ScePspIVector4,
pub z: ScePspIVector4,
pub w: ScePspIVector4,
}
#[test]
fn bindgen_test_layout_ScePspIMatrix4() {
assert_eq!(::std::mem::size_of::<ScePspIMatrix4>() , 64usize , concat ! (
"Size of: " , stringify ! ( ScePspIMatrix4 ) ));
assert_eq! (::std::mem::align_of::<ScePspIMatrix4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspIMatrix4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4 ) ) . y as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4 ) ) . z as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4 ) , "::"
, stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4 ) ) . w as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4 ) , "::"
, stringify ! ( w ) ));
}
impl Clone for ScePspIMatrix4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspIMatrix4Unaligned {
pub x: ScePspIVector4,
pub y: ScePspIVector4,
pub z: ScePspIVector4,
pub w: ScePspIVector4,
}
#[test]
fn bindgen_test_layout_ScePspIMatrix4Unaligned() {
assert_eq!(::std::mem::size_of::<ScePspIMatrix4Unaligned>() , 64usize ,
concat ! (
"Size of: " , stringify ! ( ScePspIMatrix4Unaligned ) ));
assert_eq! (::std::mem::align_of::<ScePspIMatrix4Unaligned>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( ScePspIMatrix4Unaligned ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4Unaligned ) ) . x as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4Unaligned
) , "::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4Unaligned ) ) . y as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4Unaligned
) , "::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4Unaligned ) ) . z as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4Unaligned
) , "::" , stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspIMatrix4Unaligned ) ) . w as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspIMatrix4Unaligned
) , "::" , stringify ! ( w ) ));
}
impl Clone for ScePspIMatrix4Unaligned {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFMatrix4 {
pub x: ScePspFVector4,
pub y: ScePspFVector4,
pub z: ScePspFVector4,
pub w: ScePspFVector4,
}
#[test]
fn bindgen_test_layout_ScePspFMatrix4() {
assert_eq!(::std::mem::size_of::<ScePspFMatrix4>() , 64usize , concat ! (
"Size of: " , stringify ! ( ScePspFMatrix4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4 ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4 ) , "::"
, stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4 ) ) . y as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4 ) , "::"
, stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4 ) ) . z as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4 ) , "::"
, stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4 ) ) . w as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4 ) , "::"
, stringify ! ( w ) ));
}
impl Clone for ScePspFMatrix4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFMatrix4Unaligned {
pub x: ScePspFVector4,
pub y: ScePspFVector4,
pub z: ScePspFVector4,
pub w: ScePspFVector4,
}
#[test]
fn bindgen_test_layout_ScePspFMatrix4Unaligned() {
assert_eq!(::std::mem::size_of::<ScePspFMatrix4Unaligned>() , 64usize ,
concat ! (
"Size of: " , stringify ! ( ScePspFMatrix4Unaligned ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4Unaligned ) ) . x as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4Unaligned
) , "::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4Unaligned ) ) . y as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4Unaligned
) , "::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4Unaligned ) ) . z as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4Unaligned
) , "::" , stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFMatrix4Unaligned ) ) . w as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFMatrix4Unaligned
) , "::" , stringify ! ( w ) ));
}
impl Clone for ScePspFMatrix4Unaligned {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspMatrix4 {
pub fm: ScePspFMatrix4,
pub im: ScePspIMatrix4,
pub fv: [ScePspFVector4; 4usize],
pub iv: [ScePspIVector4; 4usize],
pub v: [ScePspVector4; 4usize],
pub f: [[f32; 4usize]; 4usize],
pub i: [[::std::os::raw::c_int; 4usize]; 4usize],
_bindgen_union_align: [u8; 64usize],
}
#[test]
fn bindgen_test_layout_ScePspMatrix4() {
assert_eq!(::std::mem::size_of::<ScePspMatrix4>() , 64usize , concat ! (
"Size of: " , stringify ! ( ScePspMatrix4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . fm as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( fm ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . im as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( im ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . v as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( v ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspMatrix4 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspMatrix4 ) , "::"
, stringify ! ( i ) ));
}
impl Clone for ScePspMatrix4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFQuaternion {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test]
fn bindgen_test_layout_ScePspFQuaternion() {
assert_eq!(::std::mem::size_of::<ScePspFQuaternion>() , 16usize , concat !
( "Size of: " , stringify ! ( ScePspFQuaternion ) ));
assert_eq! (::std::mem::align_of::<ScePspFQuaternion>() , 4usize , concat
! ( "Alignment of " , stringify ! ( ScePspFQuaternion ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternion ) ) . x as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFQuaternion ) ,
"::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternion ) ) . y as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFQuaternion ) ,
"::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternion ) ) . z as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFQuaternion ) ,
"::" , stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternion ) ) . w as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFQuaternion ) ,
"::" , stringify ! ( w ) ));
}
impl Clone for ScePspFQuaternion {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFQuaternionUnaligned {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test]
fn bindgen_test_layout_ScePspFQuaternionUnaligned() {
assert_eq!(::std::mem::size_of::<ScePspFQuaternionUnaligned>() , 16usize ,
concat ! (
"Size of: " , stringify ! ( ScePspFQuaternionUnaligned ) ));
assert_eq! (::std::mem::align_of::<ScePspFQuaternionUnaligned>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( ScePspFQuaternionUnaligned )
));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternionUnaligned ) ) . x as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
ScePspFQuaternionUnaligned ) , "::" , stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternionUnaligned ) ) . y as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
ScePspFQuaternionUnaligned ) , "::" , stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternionUnaligned ) ) . z as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
ScePspFQuaternionUnaligned ) , "::" , stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFQuaternionUnaligned ) ) . w as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
ScePspFQuaternionUnaligned ) , "::" , stringify ! ( w ) ));
}
impl Clone for ScePspFQuaternionUnaligned {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFColor {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}
#[test]
fn bindgen_test_layout_ScePspFColor() {
assert_eq!(::std::mem::size_of::<ScePspFColor>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspFColor ) ));
assert_eq! (::std::mem::align_of::<ScePspFColor>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspFColor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColor ) ) . r as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColor ) , "::" ,
stringify ! ( r ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColor ) ) . g as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColor ) , "::" ,
stringify ! ( g ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColor ) ) . b as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColor ) , "::" ,
stringify ! ( b ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColor ) ) . a as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColor ) , "::" ,
stringify ! ( a ) ));
}
impl Clone for ScePspFColor {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspFColorUnaligned {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}
#[test]
fn bindgen_test_layout_ScePspFColorUnaligned() {
assert_eq!(::std::mem::size_of::<ScePspFColorUnaligned>() , 16usize ,
concat ! ( "Size of: " , stringify ! ( ScePspFColorUnaligned )
));
assert_eq! (::std::mem::align_of::<ScePspFColorUnaligned>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( ScePspFColorUnaligned ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColorUnaligned ) ) . r as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColorUnaligned )
, "::" , stringify ! ( r ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColorUnaligned ) ) . g as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColorUnaligned )
, "::" , stringify ! ( g ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColorUnaligned ) ) . b as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColorUnaligned )
, "::" , stringify ! ( b ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspFColorUnaligned ) ) . a as * const
_ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspFColorUnaligned )
, "::" , stringify ! ( a ) ));
}
impl Clone for ScePspFColorUnaligned {
fn clone(&self) -> Self { *self }
}
pub type ScePspRGBA8888 = ::std::os::raw::c_uint;
pub type ScePspRGBA4444 = ::std::os::raw::c_ushort;
pub type ScePspRGBA5551 = ::std::os::raw::c_ushort;
pub type ScePspRGB565 = ::std::os::raw::c_ushort;
#[repr(C)]
#[derive(Copy)]
pub union ScePspUnion32 {
pub ui: ::std::os::raw::c_uint,
pub i: ::std::os::raw::c_int,
pub us: [::std::os::raw::c_ushort; 2usize],
pub s: [::std::os::raw::c_short; 2usize],
pub uc: [::std::os::raw::c_uchar; 4usize],
pub c: [::std::os::raw::c_char; 4usize],
pub f: f32,
pub rgba8888: ScePspRGBA8888,
pub rgba4444: [ScePspRGBA4444; 2usize],
pub rgba5551: [ScePspRGBA5551; 2usize],
pub rgb565: [ScePspRGB565; 2usize],
_bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_ScePspUnion32() {
assert_eq!(::std::mem::size_of::<ScePspUnion32>() , 4usize , concat ! (
"Size of: " , stringify ! ( ScePspUnion32 ) ));
assert_eq! (::std::mem::align_of::<ScePspUnion32>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspUnion32 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . ui as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( ui ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( i ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . us as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( us ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . s as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( s ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . uc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( uc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . c as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( c ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . rgba8888 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( rgba8888 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . rgba4444 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( rgba4444 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . rgba5551 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( rgba5551 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion32 ) ) . rgb565 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion32 ) , "::"
, stringify ! ( rgb565 ) ));
}
impl Clone for ScePspUnion32 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspUnion64 {
pub ul: SceULong64,
pub l: SceLong64,
pub ui: [::std::os::raw::c_uint; 2usize],
pub i: [::std::os::raw::c_int; 2usize],
pub us: [::std::os::raw::c_ushort; 4usize],
pub s: [::std::os::raw::c_short; 4usize],
pub uc: [::std::os::raw::c_uchar; 8usize],
pub c: [::std::os::raw::c_char; 8usize],
pub f: [f32; 2usize],
pub sr: ScePspSRect,
pub sv: ScePspSVector4,
pub rgba8888: [ScePspRGBA8888; 2usize],
pub rgba4444: [ScePspRGBA4444; 4usize],
pub rgba5551: [ScePspRGBA5551; 4usize],
pub rgb565: [ScePspRGB565; 4usize],
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_ScePspUnion64() {
assert_eq!(::std::mem::size_of::<ScePspUnion64>() , 8usize , concat ! (
"Size of: " , stringify ! ( ScePspUnion64 ) ));
assert_eq! (::std::mem::align_of::<ScePspUnion64>() , 8usize , concat ! (
"Alignment of " , stringify ! ( ScePspUnion64 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . ul as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( ul ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . l as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( l ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . ui as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( ui ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( i ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . us as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( us ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . s as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( s ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . uc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( uc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . c as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( c ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . sr as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( sr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . sv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( sv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . rgba8888 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( rgba8888 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . rgba4444 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( rgba4444 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . rgba5551 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( rgba5551 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion64 ) ) . rgb565 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion64 ) , "::"
, stringify ! ( rgb565 ) ));
}
impl Clone for ScePspUnion64 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub union ScePspUnion128 {
pub ul: [SceULong64; 2usize],
pub l: [SceLong64; 2usize],
pub ui: [::std::os::raw::c_uint; 4usize],
pub i: [::std::os::raw::c_int; 4usize],
pub us: [::std::os::raw::c_ushort; 8usize],
pub s: [::std::os::raw::c_short; 8usize],
pub uc: [::std::os::raw::c_uchar; 16usize],
pub c: [::std::os::raw::c_char; 16usize],
pub f: [f32; 4usize],
pub fr: ScePspFRect,
pub ir: ScePspIRect,
pub fv: ScePspFVector4,
pub iv: ScePspIVector4,
pub fq: ScePspFQuaternion,
pub fc: ScePspFColor,
pub rgba8888: [ScePspRGBA8888; 4usize],
pub rgba4444: [ScePspRGBA4444; 8usize],
pub rgba5551: [ScePspRGBA5551; 8usize],
pub rgb565: [ScePspRGB565; 8usize],
_bindgen_union_align: [u8; 16usize],
}
#[test]
fn bindgen_test_layout_ScePspUnion128() {
assert_eq!(::std::mem::size_of::<ScePspUnion128>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspUnion128 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . ul as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( ul ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . l as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( l ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . ui as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( ui ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . i as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( i ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . us as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( us ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . s as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( s ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . uc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( uc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . c as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( c ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . f as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( f ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . fr as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( fr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . ir as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( ir ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . fv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( fv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . iv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( iv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . fq as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( fq ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . fc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( fc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . rgba8888 as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( rgba8888 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . rgba4444 as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( rgba4444 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . rgba5551 as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( rgba5551 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspUnion128 ) ) . rgb565 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspUnion128 ) , "::"
, stringify ! ( rgb565 ) ));
}
impl Clone for ScePspUnion128 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ScePspDateTime {
pub year: ::std::os::raw::c_ushort,
pub month: ::std::os::raw::c_ushort,
pub day: ::std::os::raw::c_ushort,
pub hour: ::std::os::raw::c_ushort,
pub minute: ::std::os::raw::c_ushort,
pub second: ::std::os::raw::c_ushort,
pub microsecond: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_ScePspDateTime() {
assert_eq!(::std::mem::size_of::<ScePspDateTime>() , 16usize , concat ! (
"Size of: " , stringify ! ( ScePspDateTime ) ));
assert_eq! (::std::mem::align_of::<ScePspDateTime>() , 4usize , concat ! (
"Alignment of " , stringify ! ( ScePspDateTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . year as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( year ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . month as * const _
as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( month ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . day as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( day ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . hour as * const _ as
usize } , 6usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( hour ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . minute as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( minute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . second as * const _
as usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( second ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ScePspDateTime ) ) . microsecond as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ScePspDateTime ) , "::"
, stringify ! ( microsecond ) ));
}
impl Clone for ScePspDateTime {
fn clone(&self) -> Self { *self }
}
pub type SceUID = ::std::os::raw::c_int;
pub type SceSize = ::std::os::raw::c_uint;
pub type SceSSize = ::std::os::raw::c_int;
pub type SceUChar = ::std::os::raw::c_uchar;
pub type SceUInt = ::std::os::raw::c_uint;
pub type SceMode = ::std::os::raw::c_int;
pub type SceOff = SceInt64;
pub type SceIores = SceInt64;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum IOAccessModes {
FIO_S_IFMT = 61440,
FIO_S_IFLNK = 16384,
FIO_S_IFDIR = 4096,
FIO_S_IFREG = 8192,
FIO_S_ISUID = 2048,
FIO_S_ISGID = 1024,
FIO_S_ISVTX = 512,
FIO_S_IRWXU = 448,
FIO_S_IRUSR = 256,
FIO_S_IWUSR = 128,
FIO_S_IXUSR = 64,
FIO_S_IRWXG = 56,
FIO_S_IRGRP = 32,
FIO_S_IWGRP = 16,
FIO_S_IXGRP = 8,
FIO_S_IRWXO = 7,
FIO_S_IROTH = 4,
FIO_S_IWOTH = 2,
FIO_S_IXOTH = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum IOFileModes {
FIO_SO_IFMT = 56,
FIO_SO_IFLNK = 8,
FIO_SO_IFDIR = 16,
FIO_SO_IFREG = 32,
FIO_SO_IROTH = 4,
FIO_SO_IWOTH = 2,
FIO_SO_IXOTH = 1,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceIoStat {
pub st_mode: SceMode,
pub st_attr: ::std::os::raw::c_uint,
pub st_size: SceOff,
pub st_ctime: ScePspDateTime,
pub st_atime: ScePspDateTime,
pub st_mtime: ScePspDateTime,
pub st_private: [::std::os::raw::c_uint; 6usize],
}
#[test]
fn bindgen_test_layout_SceIoStat() {
assert_eq!(::std::mem::size_of::<SceIoStat>() , 88usize , concat ! (
"Size of: " , stringify ! ( SceIoStat ) ));
assert_eq! (::std::mem::align_of::<SceIoStat>() , 8usize , concat ! (
"Alignment of " , stringify ! ( SceIoStat ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_mode as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_attr as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_size as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_ctime as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_ctime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_atime as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_atime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_mtime as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_mtime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoStat ) ) . st_private as * const _
as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoStat ) , "::" ,
stringify ! ( st_private ) ));
}
impl Clone for SceIoStat {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct SceIoDirent {
pub d_stat: SceIoStat,
pub d_name: [::std::os::raw::c_char; 256usize],
pub d_private: *mut ::std::os::raw::c_void,
pub dummy: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceIoDirent() {
assert_eq!(::std::mem::size_of::<SceIoDirent>() , 360usize , concat ! (
"Size of: " , stringify ! ( SceIoDirent ) ));
assert_eq! (::std::mem::align_of::<SceIoDirent>() , 8usize , concat ! (
"Alignment of " , stringify ! ( SceIoDirent ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoDirent ) ) . d_stat as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoDirent ) , "::" ,
stringify ! ( d_stat ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoDirent ) ) . d_name as * const _ as
usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoDirent ) , "::" ,
stringify ! ( d_name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoDirent ) ) . d_private as * const _
as usize } , 344usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoDirent ) , "::" ,
stringify ! ( d_private ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceIoDirent ) ) . dummy as * const _ as
usize } , 352usize , concat ! (
"Alignment of field: " , stringify ! ( SceIoDirent ) , "::" ,
stringify ! ( dummy ) ));
}
impl Clone for SceIoDirent {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum IoAssignPerms { IOASSIGN_RDWR = 0, IOASSIGN_RDONLY = 1, }
extern "C" {
pub fn sceIoOpen(file: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int, mode: SceMode) -> SceUID;
}
extern "C" {
pub fn sceIoOpenAsync(file: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int, mode: SceMode)
-> SceUID;
}
extern "C" {
pub fn sceIoClose(fd: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoCloseAsync(fd: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoRead(fd: SceUID, data: *mut ::std::os::raw::c_void,
size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoReadAsync(fd: SceUID, data: *mut ::std::os::raw::c_void,
size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoWrite(fd: SceUID, data: *const ::std::os::raw::c_void,
size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoWriteAsync(fd: SceUID, data: *const ::std::os::raw::c_void,
size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoLseek(fd: SceUID, offset: SceOff,
whence: ::std::os::raw::c_int) -> SceOff;
}
extern "C" {
pub fn sceIoLseekAsync(fd: SceUID, offset: SceOff,
whence: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoLseek32(fd: SceUID, offset: ::std::os::raw::c_int,
whence: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoLseek32Async(fd: SceUID, offset: ::std::os::raw::c_int,
whence: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoRemove(file: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoMkdir(dir: *const ::std::os::raw::c_char, mode: SceMode)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoRmdir(path: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoChdir(path: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoRename(oldname: *const ::std::os::raw::c_char,
newname: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoDopen(dirname: *const ::std::os::raw::c_char) -> SceUID;
}
extern "C" {
pub fn sceIoDread(fd: SceUID, dir: *mut SceIoDirent)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoDclose(fd: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoDevctl(dev: *const ::std::os::raw::c_char,
cmd: ::std::os::raw::c_uint,
indata: *mut ::std::os::raw::c_void,
inlen: ::std::os::raw::c_int,
outdata: *mut ::std::os::raw::c_void,
outlen: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoAssign(dev1: *const ::std::os::raw::c_char,
dev2: *const ::std::os::raw::c_char,
dev3: *const ::std::os::raw::c_char,
mode: ::std::os::raw::c_int,
unk1: *mut ::std::os::raw::c_void,
unk2: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoUnassign(dev: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoGetstat(file: *const ::std::os::raw::c_char,
stat: *mut SceIoStat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoChstat(file: *const ::std::os::raw::c_char,
stat: *mut SceIoStat, bits: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoIoctl(fd: SceUID, cmd: ::std::os::raw::c_uint,
indata: *mut ::std::os::raw::c_void,
inlen: ::std::os::raw::c_int,
outdata: *mut ::std::os::raw::c_void,
outlen: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoIoctlAsync(fd: SceUID, cmd: ::std::os::raw::c_uint,
indata: *mut ::std::os::raw::c_void,
inlen: ::std::os::raw::c_int,
outdata: *mut ::std::os::raw::c_void,
outlen: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoSync(device: *const ::std::os::raw::c_char,
unk: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoWaitAsync(fd: SceUID, res: *mut SceInt64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoWaitAsyncCB(fd: SceUID, res: *mut SceInt64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoPollAsync(fd: SceUID, res: *mut SceInt64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoGetAsyncStat(fd: SceUID, poll: ::std::os::raw::c_int,
res: *mut SceInt64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoCancel(fd: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoGetDevType(fd: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoChangeAsyncPriority(fd: SceUID, pri: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoSetAsyncCallback(fd: SceUID, cb: SceUID,
argp: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelRegisterExitCallback(cbid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelExitGame();
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelLoadExecParam {
pub size: SceSize,
pub args: SceSize,
pub argp: *mut ::std::os::raw::c_void,
pub key: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_SceKernelLoadExecParam() {
assert_eq!(::std::mem::size_of::<SceKernelLoadExecParam>() , 24usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelLoadExecParam )
));
assert_eq! (::std::mem::align_of::<SceKernelLoadExecParam>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelLoadExecParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLoadExecParam
) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecParam ) ) . args as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLoadExecParam
) , "::" , stringify ! ( args ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecParam ) ) . argp as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLoadExecParam
) , "::" , stringify ! ( argp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecParam ) ) . key as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLoadExecParam
) , "::" , stringify ! ( key ) ));
}
impl Clone for SceKernelLoadExecParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelLoadExec(file: *const ::std::os::raw::c_char,
param: *mut SceKernelLoadExecParam)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _scemoduleinfo {
pub modattribute: ::std::os::raw::c_ushort,
pub modversion: [::std::os::raw::c_uchar; 2usize],
pub modname: [::std::os::raw::c_char; 27usize],
pub terminal: ::std::os::raw::c_char,
pub gp_value: *mut ::std::os::raw::c_void,
pub ent_top: *mut ::std::os::raw::c_void,
pub ent_end: *mut ::std::os::raw::c_void,
pub stub_top: *mut ::std::os::raw::c_void,
pub stub_end: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__scemoduleinfo() {
assert_eq!(::std::mem::size_of::<_scemoduleinfo>() , 72usize , concat ! (
"Size of: " , stringify ! ( _scemoduleinfo ) ));
assert_eq! (::std::mem::align_of::<_scemoduleinfo>() , 8usize , concat ! (
"Alignment of " , stringify ! ( _scemoduleinfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . modattribute as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( modattribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . modversion as *
const _ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( modversion ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . modname as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( modname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . terminal as * const
_ as usize } , 31usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( terminal ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . gp_value as * const
_ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( gp_value ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . ent_top as * const _
as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( ent_top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . ent_end as * const _
as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( ent_end ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . stub_top as * const
_ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( stub_top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _scemoduleinfo ) ) . stub_end as * const
_ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( _scemoduleinfo ) , "::"
, stringify ! ( stub_end ) ));
}
impl Clone for _scemoduleinfo {
fn clone(&self) -> Self { *self }
}
pub type _sceModuleInfo = _scemoduleinfo;
pub type SceModuleInfo = _sceModuleInfo;
extern "C" {
#[link_name = "_gp"]
pub static mut _gp: [::std::os::raw::c_char; 0usize];
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspModuleInfoAttr {
PSP_MODULE_USER = 0,
PSP_MODULE_NO_STOP = 1,
PSP_MODULE_SINGLE_LOAD = 2,
PSP_MODULE_SINGLE_START = 4,
PSP_MODULE_KERNEL = 4096,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelLMOption {
pub size: SceSize,
pub mpidtext: SceUID,
pub mpiddata: SceUID,
pub flags: ::std::os::raw::c_uint,
pub position: ::std::os::raw::c_char,
pub access: ::std::os::raw::c_char,
pub creserved: [::std::os::raw::c_char; 2usize],
}
#[test]
fn bindgen_test_layout_SceKernelLMOption() {
assert_eq!(::std::mem::size_of::<SceKernelLMOption>() , 20usize , concat !
( "Size of: " , stringify ! ( SceKernelLMOption ) ));
assert_eq! (::std::mem::align_of::<SceKernelLMOption>() , 4usize , concat
! ( "Alignment of " , stringify ! ( SceKernelLMOption ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . mpidtext as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( mpidtext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . mpiddata as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( mpiddata ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . flags as * const
_ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( flags ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . position as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( position ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . access as * const
_ as usize } , 17usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( access ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLMOption ) ) . creserved as *
const _ as usize } , 18usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelLMOption ) ,
"::" , stringify ! ( creserved ) ));
}
impl Clone for SceKernelLMOption {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelSMOption {
pub size: SceSize,
pub mpidstack: SceUID,
pub stacksize: SceSize,
pub priority: ::std::os::raw::c_int,
pub attribute: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_SceKernelSMOption() {
assert_eq!(::std::mem::size_of::<SceKernelSMOption>() , 20usize , concat !
( "Size of: " , stringify ! ( SceKernelSMOption ) ));
assert_eq! (::std::mem::align_of::<SceKernelSMOption>() , 4usize , concat
! ( "Alignment of " , stringify ! ( SceKernelSMOption ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSMOption ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSMOption ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSMOption ) ) . mpidstack as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSMOption ) ,
"::" , stringify ! ( mpidstack ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSMOption ) ) . stacksize as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSMOption ) ,
"::" , stringify ! ( stacksize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSMOption ) ) . priority as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSMOption ) ,
"::" , stringify ! ( priority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSMOption ) ) . attribute as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSMOption ) ,
"::" , stringify ! ( attribute ) ));
}
impl Clone for SceKernelSMOption {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelLoadModule(path: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
option: *mut SceKernelLMOption) -> SceUID;
}
extern "C" {
pub fn sceKernelLoadModuleMs(path: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
option: *mut SceKernelLMOption) -> SceUID;
}
extern "C" {
pub fn sceKernelLoadModuleByID(fid: SceUID, flags: ::std::os::raw::c_int,
option: *mut SceKernelLMOption) -> SceUID;
}
extern "C" {
pub fn sceKernelLoadModuleBufferUsbWlan(bufsize: SceSize,
buf: *mut ::std::os::raw::c_void,
flags: ::std::os::raw::c_int,
option: *mut SceKernelLMOption)
-> SceUID;
}
extern "C" {
pub fn sceKernelStartModule(modid: SceUID, argsize: SceSize,
argp: *mut ::std::os::raw::c_void,
status: *mut ::std::os::raw::c_int,
option: *mut SceKernelSMOption)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelStopModule(modid: SceUID, argsize: SceSize,
argp: *mut ::std::os::raw::c_void,
status: *mut ::std::os::raw::c_int,
option: *mut SceKernelSMOption)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUnloadModule(modid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSelfStopUnloadModule(unknown: ::std::os::raw::c_int,
argsize: SceSize,
argp: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelStopUnloadSelfModule(argsize: SceSize,
argp: *mut ::std::os::raw::c_void,
status: *mut ::std::os::raw::c_int,
option: *mut SceKernelSMOption)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelModuleInfo {
pub size: SceSize,
pub nsegment: ::std::os::raw::c_char,
pub reserved: [::std::os::raw::c_char; 3usize],
pub segmentaddr: [::std::os::raw::c_int; 4usize],
pub segmentsize: [::std::os::raw::c_int; 4usize],
pub entry_addr: ::std::os::raw::c_uint,
pub gp_value: ::std::os::raw::c_uint,
pub text_addr: ::std::os::raw::c_uint,
pub text_size: ::std::os::raw::c_uint,
pub data_size: ::std::os::raw::c_uint,
pub bss_size: ::std::os::raw::c_uint,
pub attribute: ::std::os::raw::c_ushort,
pub version: [::std::os::raw::c_uchar; 2usize],
pub name: [::std::os::raw::c_char; 28usize],
}
#[test]
fn bindgen_test_layout_SceKernelModuleInfo() {
assert_eq!(::std::mem::size_of::<SceKernelModuleInfo>() , 96usize , concat
! ( "Size of: " , stringify ! ( SceKernelModuleInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelModuleInfo>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelModuleInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . size as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . nsegment as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( nsegment ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . reserved as *
const _ as usize } , 5usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( reserved ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . segmentaddr as
* const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( segmentaddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . segmentsize as
* const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( segmentsize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . entry_addr as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( entry_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . gp_value as *
const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( gp_value ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . text_addr as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( text_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . text_size as *
const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( text_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . data_size as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( data_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . bss_size as *
const _ as usize } , 60usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( bss_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . attribute as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( attribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . version as *
const _ as usize } , 66usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( version ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelModuleInfo ) ) . name as * const
_ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelModuleInfo ) ,
"::" , stringify ! ( name ) ));
}
impl Clone for SceKernelModuleInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelQueryModuleInfo(modid: SceUID,
info: *mut SceKernelModuleInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetModuleIdList(readbuf: *mut SceUID,
readbufsize: ::std::os::raw::c_int,
idcount: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspSysMemBlockTypes {
PSP_SMEM_Low = 0,
PSP_SMEM_High = 1,
PSP_SMEM_Addr = 2,
}
pub type SceKernelSysMemAlloc_t = ::std::os::raw::c_int;
extern "C" {
pub fn sceKernelAllocPartitionMemory(partitionid: SceUID,
name: *const ::std::os::raw::c_char,
type_: ::std::os::raw::c_int,
size: SceSize,
addr: *mut ::std::os::raw::c_void)
-> SceUID;
}
extern "C" {
pub fn sceKernelFreePartitionMemory(blockid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetBlockHeadAddr(blockid: SceUID)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceKernelTotalFreeMemSize() -> SceSize;
}
extern "C" {
pub fn sceKernelMaxFreeMemSize() -> SceSize;
}
extern "C" {
pub fn sceKernelDevkitVersion() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSetCompiledSdkVersion(version: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetCompiledSdkVersion() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugScreenInit();
}
extern "C" {
pub fn pspDebugScreenInitEx(vram_base: *mut ::std::os::raw::c_void,
mode: ::std::os::raw::c_int,
setup: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugScreenPrintf(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn pspDebugScreenKprintf(format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn pspDebugScreenEnableBackColor(enable: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugScreenSetBackColor(color: u32);
}
extern "C" {
pub fn pspDebugScreenSetTextColor(color: u32);
}
extern "C" {
pub fn pspDebugScreenSetColorMode(mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugScreenPutChar(x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int, color: u32,
ch: u8);
}
extern "C" {
pub fn pspDebugScreenSetXY(x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugScreenSetOffset(offset: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugScreenSetBase(base: *mut u32);
}
extern "C" {
pub fn pspDebugScreenGetX() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugScreenGetY() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugScreenClear();
}
extern "C" {
pub fn pspDebugScreenPrintData(buff: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugScreenPuts(str: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugGetStackTrace(results: *mut ::std::os::raw::c_uint,
max: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugScreenClearLineEnable();
}
extern "C" {
pub fn pspDebugScreenClearLineDisable();
}
#[repr(C)]
#[derive(Copy)]
pub struct _PspDebugRegBlock {
pub frame: [u32; 6usize],
pub r: [u32; 32usize],
pub status: u32,
pub lo: u32,
pub hi: u32,
pub badvaddr: u32,
pub cause: u32,
pub epc: u32,
pub fpr: [f32; 32usize],
pub fsr: u32,
pub fir: u32,
pub frame_ptr: u32,
pub unused: u32,
pub index: u32,
pub random: u32,
pub entrylo0: u32,
pub entrylo1: u32,
pub context: u32,
pub pagemask: u32,
pub wired: u32,
pub cop0_7: u32,
pub cop0_8: u32,
pub cop0_9: u32,
pub entryhi: u32,
pub cop0_11: u32,
pub cop0_12: u32,
pub cop0_13: u32,
pub cop0_14: u32,
pub prid: u32,
pub padding: [u32; 100usize],
}
#[test]
fn bindgen_test_layout__PspDebugRegBlock() {
assert_eq!(::std::mem::size_of::<_PspDebugRegBlock>() , 784usize , concat
! ( "Size of: " , stringify ! ( _PspDebugRegBlock ) ));
assert_eq! (::std::mem::align_of::<_PspDebugRegBlock>() , 4usize , concat
! ( "Alignment of " , stringify ! ( _PspDebugRegBlock ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . frame as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( frame ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . r as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( r ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . status as * const
_ as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( status ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . lo as * const _
as usize } , 156usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( lo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . hi as * const _
as usize } , 160usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( hi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . badvaddr as *
const _ as usize } , 164usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( badvaddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cause as * const
_ as usize } , 168usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cause ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . epc as * const _
as usize } , 172usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( epc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . fpr as * const _
as usize } , 176usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( fpr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . fsr as * const _
as usize } , 304usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( fsr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . fir as * const _
as usize } , 308usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( fir ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . frame_ptr as *
const _ as usize } , 312usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( frame_ptr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . unused as * const
_ as usize } , 316usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( unused ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . index as * const
_ as usize } , 320usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( index ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . random as * const
_ as usize } , 324usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( random ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . entrylo0 as *
const _ as usize } , 328usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( entrylo0 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . entrylo1 as *
const _ as usize } , 332usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( entrylo1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . context as *
const _ as usize } , 336usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( context ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . pagemask as *
const _ as usize } , 340usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( pagemask ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . wired as * const
_ as usize } , 344usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( wired ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_7 as * const
_ as usize } , 348usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_7 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_8 as * const
_ as usize } , 352usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_8 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_9 as * const
_ as usize } , 356usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_9 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . entryhi as *
const _ as usize } , 360usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( entryhi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_11 as *
const _ as usize } , 364usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_11 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_12 as *
const _ as usize } , 368usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_12 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_13 as *
const _ as usize } , 372usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_13 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . cop0_14 as *
const _ as usize } , 376usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( cop0_14 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . prid as * const _
as usize } , 380usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( prid ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugRegBlock ) ) . padding as *
const _ as usize } , 384usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugRegBlock ) ,
"::" , stringify ! ( padding ) ));
}
impl Clone for _PspDebugRegBlock {
fn clone(&self) -> Self { *self }
}
pub type PspDebugRegBlock = _PspDebugRegBlock;
pub type PspDebugErrorHandler =
::std::option::Option<unsafe extern "C" fn(regs: *mut PspDebugRegBlock)>;
extern "C" {
pub fn pspDebugInstallErrorHandler(handler: PspDebugErrorHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugDumpException(regs: *mut PspDebugRegBlock);
}
pub type PspDebugKprintfHandler =
::std::option::Option<unsafe extern "C" fn(format:
*const ::std::os::raw::c_char,
args: *mut u32)
-> ::std::os::raw::c_int>;
extern "C" {
pub fn pspDebugInstallKprintfHandler(handler: PspDebugKprintfHandler)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _PspDebugStackTrace {
pub call_addr: u32,
pub func_addr: u32,
}
#[test]
fn bindgen_test_layout__PspDebugStackTrace() {
assert_eq!(::std::mem::size_of::<_PspDebugStackTrace>() , 8usize , concat
! ( "Size of: " , stringify ! ( _PspDebugStackTrace ) ));
assert_eq! (::std::mem::align_of::<_PspDebugStackTrace>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( _PspDebugStackTrace ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugStackTrace ) ) . call_addr as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugStackTrace ) ,
"::" , stringify ! ( call_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugStackTrace ) ) . func_addr as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugStackTrace ) ,
"::" , stringify ! ( func_addr ) ));
}
impl Clone for _PspDebugStackTrace {
fn clone(&self) -> Self { *self }
}
pub type PspDebugStackTrace = _PspDebugStackTrace;
extern "C" {
pub fn pspDebugGetStackTrace2(regs: *mut PspDebugRegBlock,
trace: *mut PspDebugStackTrace,
max: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _PspDebugProfilerRegs {
pub enable: u32,
pub systemck: u32,
pub cpuck: u32,
pub internal: u32,
pub memory: u32,
pub copz: u32,
pub vfpu: u32,
pub sleep: u32,
pub bus_access: u32,
pub uncached_load: u32,
pub uncached_store: u32,
pub cached_load: u32,
pub cached_store: u32,
pub i_miss: u32,
pub d_miss: u32,
pub d_writeback: u32,
pub cop0_inst: u32,
pub fpu_inst: u32,
pub vfpu_inst: u32,
pub local_bus: u32,
}
#[test]
fn bindgen_test_layout__PspDebugProfilerRegs() {
assert_eq!(::std::mem::size_of::<_PspDebugProfilerRegs>() , 80usize ,
concat ! ( "Size of: " , stringify ! ( _PspDebugProfilerRegs )
));
assert_eq! (::std::mem::align_of::<_PspDebugProfilerRegs>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( _PspDebugProfilerRegs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . enable as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( enable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . systemck as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( systemck ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . cpuck as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( cpuck ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . internal as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( internal ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . memory as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( memory ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . copz as *
const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( copz ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . vfpu as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( vfpu ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . sleep as *
const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( sleep ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . bus_access as
* const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( bus_access ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . uncached_load
as * const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( uncached_load ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) .
uncached_store as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( uncached_store ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . cached_load
as * const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( cached_load ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . cached_store
as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( cached_store ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . i_miss as *
const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( i_miss ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . d_miss as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( d_miss ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . d_writeback
as * const _ as usize } , 60usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( d_writeback ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . cop0_inst as
* const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( cop0_inst ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . fpu_inst as *
const _ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( fpu_inst ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . vfpu_inst as
* const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( vfpu_inst ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspDebugProfilerRegs ) ) . local_bus as
* const _ as usize } , 76usize , concat ! (
"Alignment of field: " , stringify ! ( _PspDebugProfilerRegs )
, "::" , stringify ! ( local_bus ) ));
}
impl Clone for _PspDebugProfilerRegs {
fn clone(&self) -> Self { *self }
}
pub type PspDebugProfilerRegs = _PspDebugProfilerRegs;
extern "C" {
pub fn pspDebugProfilerEnable();
}
extern "C" {
pub fn pspDebugProfilerDisable();
}
extern "C" {
pub fn pspDebugProfilerClear();
}
extern "C" {
pub fn pspDebugProfilerGetRegs(regs: *mut PspDebugProfilerRegs);
}
extern "C" {
pub fn pspDebugProfilerPrint();
}
pub type PspDebugPrintHandler =
::std::option::Option<unsafe extern "C" fn(data:
*const ::std::os::raw::c_char,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int>;
pub type PspDebugInputHandler =
::std::option::Option<unsafe extern "C" fn(data:
*mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int>;
extern "C" {
pub fn pspDebugInstallStdinHandler(handler: PspDebugInputHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugInstallStdoutHandler(handler: PspDebugPrintHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugInstallStderrHandler(handler: PspDebugPrintHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugSioPutchar(ch: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugSioGetchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugSioPuts(str: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn pspDebugSioPutData(data: *const ::std::os::raw::c_char,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugSioPutText(data: *const ::std::os::raw::c_char,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspDebugSioInit();
}
extern "C" {
pub fn pspDebugSioSetBaud(baud: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugEnablePutchar();
}
extern "C" {
pub fn pspDebugSioInstallKprintf();
}
extern "C" {
pub fn pspDebugGdbStubInit();
}
extern "C" {
pub fn pspDebugBreakpoint();
}
extern "C" {
pub fn pspDebugSioEnableKprintf();
}
extern "C" {
pub fn pspDebugSioDisableKprintf();
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelSysClock {
pub low: SceUInt32,
pub hi: SceUInt32,
}
#[test]
fn bindgen_test_layout_SceKernelSysClock() {
assert_eq!(::std::mem::size_of::<SceKernelSysClock>() , 8usize , concat !
( "Size of: " , stringify ! ( SceKernelSysClock ) ));
assert_eq! (::std::mem::align_of::<SceKernelSysClock>() , 4usize , concat
! ( "Alignment of " , stringify ! ( SceKernelSysClock ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSysClock ) ) . low as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSysClock ) ,
"::" , stringify ! ( low ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSysClock ) ) . hi as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSysClock ) ,
"::" , stringify ! ( hi ) ));
}
impl Clone for SceKernelSysClock {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspThreadAttributes {
PSP_THREAD_ATTR_VFPU = 16384,
PSP_THREAD_ATTR_USER = 2147483648,
PSP_THREAD_ATTR_USBWLAN = 2684354560,
PSP_THREAD_ATTR_VSH = 3221225472,
PSP_THREAD_ATTR_SCRATCH_SRAM = 32768,
PSP_THREAD_ATTR_NO_FILLSTACK = 1048576,
PSP_THREAD_ATTR_CLEAR_STACK = 2097152,
}
pub type SceKernelThreadEntry =
::std::option::Option<unsafe extern "C" fn(args: SceSize,
argp:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelThreadOptParam {
pub size: SceSize,
pub stackMpid: SceUID,
}
#[test]
fn bindgen_test_layout_SceKernelThreadOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelThreadOptParam>() , 8usize ,
concat ! (
"Size of: " , stringify ! ( SceKernelThreadOptParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelThreadOptParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelThreadOptParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadOptParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadOptParam
) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadOptParam ) ) . stackMpid
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadOptParam
) , "::" , stringify ! ( stackMpid ) ));
}
impl Clone for SceKernelThreadOptParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelThreadInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub status: ::std::os::raw::c_int,
pub entry: SceKernelThreadEntry,
pub stack: *mut ::std::os::raw::c_void,
pub stackSize: ::std::os::raw::c_int,
pub gpReg: *mut ::std::os::raw::c_void,
pub initPriority: ::std::os::raw::c_int,
pub currentPriority: ::std::os::raw::c_int,
pub waitType: ::std::os::raw::c_int,
pub waitId: SceUID,
pub wakeupCount: ::std::os::raw::c_int,
pub exitStatus: ::std::os::raw::c_int,
pub runClocks: SceKernelSysClock,
pub intrPreemptCount: SceUInt,
pub threadPreemptCount: SceUInt,
pub releaseCount: SceUInt,
}
#[test]
fn bindgen_test_layout_SceKernelThreadInfo() {
assert_eq!(::std::mem::size_of::<SceKernelThreadInfo>() , 128usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelThreadInfo )
));
assert_eq! (::std::mem::align_of::<SceKernelThreadInfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelThreadInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . size as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . name as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . attr as * const
_ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . status as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( status ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . entry as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( entry ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . stack as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( stack ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . stackSize as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( stackSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . gpReg as *
const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( gpReg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . initPriority as
* const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( initPriority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . currentPriority
as * const _ as usize } , 84usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( currentPriority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . waitType as *
const _ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( waitType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . waitId as *
const _ as usize } , 92usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( waitId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . wakeupCount as
* const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( wakeupCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . exitStatus as *
const _ as usize } , 100usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( exitStatus ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . runClocks as *
const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( runClocks ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) .
intrPreemptCount as * const _ as usize } , 112usize , concat !
(
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( intrPreemptCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) .
threadPreemptCount as * const _ as usize } , 116usize , concat
! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( threadPreemptCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadInfo ) ) . releaseCount as
* const _ as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadInfo ) ,
"::" , stringify ! ( releaseCount ) ));
}
impl Clone for SceKernelThreadInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelThreadRunStatus {
pub size: SceSize,
pub status: ::std::os::raw::c_int,
pub currentPriority: ::std::os::raw::c_int,
pub waitType: ::std::os::raw::c_int,
pub waitId: ::std::os::raw::c_int,
pub wakeupCount: ::std::os::raw::c_int,
pub runClocks: SceKernelSysClock,
pub intrPreemptCount: SceUInt,
pub threadPreemptCount: SceUInt,
pub releaseCount: SceUInt,
}
#[test]
fn bindgen_test_layout_SceKernelThreadRunStatus() {
assert_eq!(::std::mem::size_of::<SceKernelThreadRunStatus>() , 44usize ,
concat ! (
"Size of: " , stringify ! ( SceKernelThreadRunStatus ) ));
assert_eq! (::std::mem::align_of::<SceKernelThreadRunStatus>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelThreadRunStatus ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) . status as
* const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( status ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) .
currentPriority as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! (
currentPriority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) . waitType
as * const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( waitType )
));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) . waitId as
* const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( waitId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) .
wakeupCount as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( wakeupCount
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) . runClocks
as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( runClocks )
));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) .
intrPreemptCount as * const _ as usize } , 32usize , concat !
(
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! (
intrPreemptCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) .
threadPreemptCount as * const _ as usize } , 36usize , concat
! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! (
threadPreemptCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadRunStatus ) ) .
releaseCount as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadRunStatus ) , "::" , stringify ! ( releaseCount
) ));
}
impl Clone for SceKernelThreadRunStatus {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspThreadStatus {
PSP_THREAD_RUNNING = 1,
PSP_THREAD_READY = 2,
PSP_THREAD_WAITING = 4,
PSP_THREAD_SUSPEND = 8,
PSP_THREAD_STOPPED = 16,
PSP_THREAD_KILLED = 32,
}
extern "C" {
pub fn sceKernelCreateThread(name: *const ::std::os::raw::c_char,
entry: SceKernelThreadEntry,
initPriority: ::std::os::raw::c_int,
stackSize: ::std::os::raw::c_int,
attr: SceUInt,
option: *mut SceKernelThreadOptParam)
-> SceUID;
}
extern "C" {
pub fn sceKernelDeleteThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelStartThread(thid: SceUID, arglen: SceSize,
argp: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelExitThread(status: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelExitDeleteThread(status: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelTerminateThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelTerminateDeleteThread(thid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSuspendDispatchThread() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelResumeDispatchThread(state: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSleepThread() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSleepThreadCB() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWakeupThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelWakeupThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSuspendThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelResumeThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWaitThreadEnd(thid: SceUID, timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWaitThreadEndCB(thid: SceUID, timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDelayThread(delay: SceUInt) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDelayThreadCB(delay: SceUInt) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDelaySysClockThread(delay: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDelaySysClockThreadCB(delay: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelChangeCurrentThreadAttr(unknown: ::std::os::raw::c_int,
attr: SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelChangeThreadPriority(thid: SceUID,
priority: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelRotateThreadReadyQueue(priority: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReleaseWaitThread(thid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetThreadId() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetThreadCurrentPriority() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetThreadExitStatus(thid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCheckThreadStack() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetThreadStackFreeSize(thid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferThreadStatus(thid: SceUID,
info: *mut SceKernelThreadInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferThreadRunStatus(thid: SceUID,
status:
*mut SceKernelThreadRunStatus)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelSemaOptParam {
pub size: SceSize,
}
#[test]
fn bindgen_test_layout_SceKernelSemaOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelSemaOptParam>() , 4usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelSemaOptParam )
));
assert_eq! (::std::mem::align_of::<SceKernelSemaOptParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelSemaOptParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaOptParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaOptParam )
, "::" , stringify ! ( size ) ));
}
impl Clone for SceKernelSemaOptParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelSemaInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub initCount: ::std::os::raw::c_int,
pub currentCount: ::std::os::raw::c_int,
pub maxCount: ::std::os::raw::c_int,
pub numWaitThreads: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceKernelSemaInfo() {
assert_eq!(::std::mem::size_of::<SceKernelSemaInfo>() , 56usize , concat !
( "Size of: " , stringify ! ( SceKernelSemaInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelSemaInfo>() , 4usize , concat
! ( "Alignment of " , stringify ! ( SceKernelSemaInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . name as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . attr as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . initCount as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( initCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . currentCount as *
const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( currentCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . maxCount as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( maxCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSemaInfo ) ) . numWaitThreads as
* const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSemaInfo ) ,
"::" , stringify ! ( numWaitThreads ) ));
}
impl Clone for SceKernelSemaInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelCreateSema(name: *const ::std::os::raw::c_char,
attr: SceUInt, initVal: ::std::os::raw::c_int,
maxVal: ::std::os::raw::c_int,
option: *mut SceKernelSemaOptParam) -> SceUID;
}
extern "C" {
pub fn sceKernelDeleteSema(semaid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSignalSema(semaid: SceUID, signal: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWaitSema(semaid: SceUID, signal: ::std::os::raw::c_int,
timeout: *mut SceUInt) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWaitSemaCB(semaid: SceUID, signal: ::std::os::raw::c_int,
timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelPollSema(semaid: SceUID, signal: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferSemaStatus(semaid: SceUID,
info: *mut SceKernelSemaInfo)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelEventFlagInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub initPattern: SceUInt,
pub currentPattern: SceUInt,
pub numWaitThreads: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceKernelEventFlagInfo() {
assert_eq!(::std::mem::size_of::<SceKernelEventFlagInfo>() , 52usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelEventFlagInfo )
));
assert_eq! (::std::mem::align_of::<SceKernelEventFlagInfo>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelEventFlagInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagInfo ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelEventFlagInfo
) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagInfo ) ) . name as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelEventFlagInfo
) , "::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagInfo ) ) . attr as *
const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelEventFlagInfo
) , "::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagInfo ) ) . initPattern
as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelEventFlagInfo
) , "::" , stringify ! ( initPattern ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagInfo ) ) .
currentPattern as * const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelEventFlagInfo
) , "::" , stringify ! ( currentPattern ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagInfo ) ) .
numWaitThreads as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelEventFlagInfo
) , "::" , stringify ! ( numWaitThreads ) ));
}
impl Clone for SceKernelEventFlagInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelEventFlagOptParam {
pub size: SceSize,
}
#[test]
fn bindgen_test_layout_SceKernelEventFlagOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelEventFlagOptParam>() , 4usize ,
concat ! (
"Size of: " , stringify ! ( SceKernelEventFlagOptParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelEventFlagOptParam>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( SceKernelEventFlagOptParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelEventFlagOptParam ) ) . size as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelEventFlagOptParam ) , "::" , stringify ! ( size ) ));
}
impl Clone for SceKernelEventFlagOptParam {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspEventFlagAttributes { PSP_EVENT_WAITMULTIPLE = 512, }
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspEventFlagWaitTypes {
PSP_EVENT_WAITAND = 0,
PSP_EVENT_WAITOR = 1,
PSP_EVENT_WAITCLEAR = 32,
}
extern "C" {
pub fn sceKernelCreateEventFlag(name: *const ::std::os::raw::c_char,
attr: ::std::os::raw::c_int,
bits: ::std::os::raw::c_int,
opt: *mut SceKernelEventFlagOptParam)
-> SceUID;
}
extern "C" {
pub fn sceKernelSetEventFlag(evid: SceUID, bits: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelClearEventFlag(evid: SceUID, bits: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelPollEventFlag(evid: ::std::os::raw::c_int, bits: u32,
wait: u32, outBits: *mut u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWaitEventFlag(evid: ::std::os::raw::c_int, bits: u32,
wait: u32, outBits: *mut u32,
timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelWaitEventFlagCB(evid: ::std::os::raw::c_int, bits: u32,
wait: u32, outBits: *mut u32,
timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDeleteEventFlag(evid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferEventFlagStatus(event: SceUID,
status: *mut SceKernelEventFlagInfo)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelMbxOptParam {
pub size: SceSize,
}
#[test]
fn bindgen_test_layout_SceKernelMbxOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelMbxOptParam>() , 4usize , concat
! ( "Size of: " , stringify ! ( SceKernelMbxOptParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelMbxOptParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelMbxOptParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxOptParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxOptParam )
, "::" , stringify ! ( size ) ));
}
impl Clone for SceKernelMbxOptParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelMbxInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub numWaitThreads: ::std::os::raw::c_int,
pub numMessages: ::std::os::raw::c_int,
pub firstMessage: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_SceKernelMbxInfo() {
assert_eq!(::std::mem::size_of::<SceKernelMbxInfo>() , 56usize , concat !
( "Size of: " , stringify ! ( SceKernelMbxInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelMbxInfo>() , 8usize , concat !
( "Alignment of " , stringify ! ( SceKernelMbxInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxInfo ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxInfo ) ) . name as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxInfo ) ) . attr as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxInfo ) ,
"::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxInfo ) ) . numWaitThreads as
* const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxInfo ) ,
"::" , stringify ! ( numWaitThreads ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxInfo ) ) . numMessages as *
const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxInfo ) ,
"::" , stringify ! ( numMessages ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMbxInfo ) ) . firstMessage as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMbxInfo ) ,
"::" , stringify ! ( firstMessage ) ));
}
impl Clone for SceKernelMbxInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelMsgPacket {
pub next: *mut SceKernelMsgPacket,
pub msgPriority: SceUChar,
pub dummy: [SceUChar; 3usize],
}
#[test]
fn bindgen_test_layout_SceKernelMsgPacket() {
assert_eq!(::std::mem::size_of::<SceKernelMsgPacket>() , 16usize , concat
! ( "Size of: " , stringify ! ( SceKernelMsgPacket ) ));
assert_eq! (::std::mem::align_of::<SceKernelMsgPacket>() , 8usize , concat
! ( "Alignment of " , stringify ! ( SceKernelMsgPacket ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMsgPacket ) ) . next as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMsgPacket ) ,
"::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMsgPacket ) ) . msgPriority as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMsgPacket ) ,
"::" , stringify ! ( msgPriority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMsgPacket ) ) . dummy as * const
_ as usize } , 9usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMsgPacket ) ,
"::" , stringify ! ( dummy ) ));
}
impl Clone for SceKernelMsgPacket {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelCreateMbx(name: *const ::std::os::raw::c_char,
attr: SceUInt,
option: *mut SceKernelMbxOptParam) -> SceUID;
}
extern "C" {
pub fn sceKernelDeleteMbx(mbxid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSendMbx(mbxid: SceUID,
message: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReceiveMbx(mbxid: SceUID,
pmessage: *mut *mut ::std::os::raw::c_void,
timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReceiveMbxCB(mbxid: SceUID,
pmessage: *mut *mut ::std::os::raw::c_void,
timeout: *mut SceUInt)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelPollMbx(mbxid: SceUID,
pmessage: *mut *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelReceiveMbx(mbxid: SceUID,
pnum: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferMbxStatus(mbxid: SceUID, info: *mut SceKernelMbxInfo)
-> ::std::os::raw::c_int;
}
pub type SceKernelAlarmHandler =
::std::option::Option<unsafe extern "C" fn(common:
*mut ::std::os::raw::c_void)
-> SceUInt>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelAlarmInfo {
pub size: SceSize,
pub schedule: SceKernelSysClock,
pub handler: SceKernelAlarmHandler,
pub common: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_SceKernelAlarmInfo() {
assert_eq!(::std::mem::size_of::<SceKernelAlarmInfo>() , 32usize , concat
! ( "Size of: " , stringify ! ( SceKernelAlarmInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelAlarmInfo>() , 8usize , concat
! ( "Alignment of " , stringify ! ( SceKernelAlarmInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelAlarmInfo ) ) . size as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelAlarmInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelAlarmInfo ) ) . schedule as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelAlarmInfo ) ,
"::" , stringify ! ( schedule ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelAlarmInfo ) ) . handler as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelAlarmInfo ) ,
"::" , stringify ! ( handler ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelAlarmInfo ) ) . common as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelAlarmInfo ) ,
"::" , stringify ! ( common ) ));
}
impl Clone for SceKernelAlarmInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelSetAlarm(clock: SceUInt, handler: SceKernelAlarmHandler,
common: *mut ::std::os::raw::c_void) -> SceUID;
}
extern "C" {
pub fn sceKernelSetSysClockAlarm(clock: *mut SceKernelSysClock,
handler: SceKernelAlarmHandler,
common: *mut ::std::os::raw::c_void)
-> SceUID;
}
extern "C" {
pub fn sceKernelCancelAlarm(alarmid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferAlarmStatus(alarmid: SceUID,
info: *mut SceKernelAlarmInfo)
-> ::std::os::raw::c_int;
}
pub type SceKernelCallbackFunction =
::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelCallbackInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub threadId: SceUID,
pub callback: SceKernelCallbackFunction,
pub common: *mut ::std::os::raw::c_void,
pub notifyCount: ::std::os::raw::c_int,
pub notifyArg: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceKernelCallbackInfo() {
assert_eq!(::std::mem::size_of::<SceKernelCallbackInfo>() , 64usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelCallbackInfo )
));
assert_eq! (::std::mem::align_of::<SceKernelCallbackInfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelCallbackInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . name as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . threadId as *
const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( threadId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . callback as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( callback ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . common as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( common ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . notifyCount
as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( notifyCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelCallbackInfo ) ) . notifyArg as
* const _ as usize } , 60usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelCallbackInfo )
, "::" , stringify ! ( notifyArg ) ));
}
impl Clone for SceKernelCallbackInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelCreateCallback(name: *const ::std::os::raw::c_char,
func: SceKernelCallbackFunction,
arg: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferCallbackStatus(cb: SceUID,
status: *mut SceKernelCallbackInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDeleteCallback(cb: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelNotifyCallback(cb: SceUID, arg2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelCallback(cb: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetCallbackCount(cb: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCheckCallback() -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SceKernelIdListType {
SCE_KERNEL_TMID_Thread = 1,
SCE_KERNEL_TMID_Semaphore = 2,
SCE_KERNEL_TMID_EventFlag = 3,
SCE_KERNEL_TMID_Mbox = 4,
SCE_KERNEL_TMID_Vpl = 5,
SCE_KERNEL_TMID_Fpl = 6,
SCE_KERNEL_TMID_Mpipe = 7,
SCE_KERNEL_TMID_Callback = 8,
SCE_KERNEL_TMID_ThreadEventHandler = 9,
SCE_KERNEL_TMID_Alarm = 10,
SCE_KERNEL_TMID_VTimer = 11,
SCE_KERNEL_TMID_SleepThread = 64,
SCE_KERNEL_TMID_DelayThread = 65,
SCE_KERNEL_TMID_SuspendThread = 66,
SCE_KERNEL_TMID_DormantThread = 67,
}
extern "C" {
pub fn sceKernelGetThreadmanIdList(type_: SceKernelIdListType,
readbuf: *mut SceUID,
readbufsize: ::std::os::raw::c_int,
idcount: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelSystemStatus {
pub size: SceSize,
pub status: SceUInt,
pub idleClocks: SceKernelSysClock,
pub comesOutOfIdleCount: SceUInt,
pub threadSwitchCount: SceUInt,
pub vfpuSwitchCount: SceUInt,
}
#[test]
fn bindgen_test_layout_SceKernelSystemStatus() {
assert_eq!(::std::mem::size_of::<SceKernelSystemStatus>() , 28usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelSystemStatus )
));
assert_eq! (::std::mem::align_of::<SceKernelSystemStatus>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelSystemStatus ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSystemStatus ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSystemStatus )
, "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSystemStatus ) ) . status as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSystemStatus )
, "::" , stringify ! ( status ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSystemStatus ) ) . idleClocks as
* const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSystemStatus )
, "::" , stringify ! ( idleClocks ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSystemStatus ) ) .
comesOutOfIdleCount as * const _ as usize } , 16usize , concat
! (
"Alignment of field: " , stringify ! ( SceKernelSystemStatus )
, "::" , stringify ! ( comesOutOfIdleCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSystemStatus ) ) .
threadSwitchCount as * const _ as usize } , 20usize , concat !
(
"Alignment of field: " , stringify ! ( SceKernelSystemStatus )
, "::" , stringify ! ( threadSwitchCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelSystemStatus ) ) .
vfpuSwitchCount as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelSystemStatus )
, "::" , stringify ! ( vfpuSwitchCount ) ));
}
impl Clone for SceKernelSystemStatus {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelReferSystemStatus(status: *mut SceKernelSystemStatus)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCreateMsgPipe(name: *const ::std::os::raw::c_char,
part: ::std::os::raw::c_int,
attr: ::std::os::raw::c_int,
unk1: *mut ::std::os::raw::c_void,
opt: *mut ::std::os::raw::c_void) -> SceUID;
}
extern "C" {
pub fn sceKernelDeleteMsgPipe(uid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSendMsgPipe(uid: SceUID,
message: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int,
unk2: *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSendMsgPipeCB(uid: SceUID,
message: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int,
unk2: *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelTrySendMsgPipe(uid: SceUID,
message: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int,
unk2: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReceiveMsgPipe(uid: SceUID,
message: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int,
unk2: *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReceiveMsgPipeCB(uid: SceUID,
message: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int,
unk2: *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelTryReceiveMsgPipe(uid: SceUID,
message: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int,
unk2: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelMsgPipe(uid: SceUID,
psend: *mut ::std::os::raw::c_int,
precv: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelMppInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub bufSize: ::std::os::raw::c_int,
pub freeSize: ::std::os::raw::c_int,
pub numSendWaitThreads: ::std::os::raw::c_int,
pub numReceiveWaitThreads: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceKernelMppInfo() {
assert_eq!(::std::mem::size_of::<SceKernelMppInfo>() , 56usize , concat !
( "Size of: " , stringify ! ( SceKernelMppInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelMppInfo>() , 4usize , concat !
( "Alignment of " , stringify ! ( SceKernelMppInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) . name as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) . attr as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) . bufSize as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( bufSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) . freeSize as *
const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( freeSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) . numSendWaitThreads
as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( numSendWaitThreads ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelMppInfo ) ) .
numReceiveWaitThreads as * const _ as usize } , 52usize ,
concat ! (
"Alignment of field: " , stringify ! ( SceKernelMppInfo ) ,
"::" , stringify ! ( numReceiveWaitThreads ) ));
}
impl Clone for SceKernelMppInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelReferMsgPipeStatus(uid: SceUID,
info: *mut SceKernelMppInfo)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelVplOptParam {
pub size: SceSize,
}
#[test]
fn bindgen_test_layout_SceKernelVplOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelVplOptParam>() , 4usize , concat
! ( "Size of: " , stringify ! ( SceKernelVplOptParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelVplOptParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelVplOptParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplOptParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplOptParam )
, "::" , stringify ! ( size ) ));
}
impl Clone for SceKernelVplOptParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelCreateVpl(name: *const ::std::os::raw::c_char,
part: ::std::os::raw::c_int,
attr: ::std::os::raw::c_int,
size: ::std::os::raw::c_uint,
opt: *mut SceKernelVplOptParam) -> SceUID;
}
extern "C" {
pub fn sceKernelDeleteVpl(uid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelAllocateVpl(uid: SceUID, size: ::std::os::raw::c_uint,
data: *mut *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelAllocateVplCB(uid: SceUID, size: ::std::os::raw::c_uint,
data: *mut *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelTryAllocateVpl(uid: SceUID, size: ::std::os::raw::c_uint,
data: *mut *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelFreeVpl(uid: SceUID, data: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelVpl(uid: SceUID, pnum: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelVplInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub poolSize: ::std::os::raw::c_int,
pub freeSize: ::std::os::raw::c_int,
pub numWaitThreads: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceKernelVplInfo() {
assert_eq!(::std::mem::size_of::<SceKernelVplInfo>() , 52usize , concat !
( "Size of: " , stringify ! ( SceKernelVplInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelVplInfo>() , 4usize , concat !
( "Alignment of " , stringify ! ( SceKernelVplInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplInfo ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplInfo ) ) . name as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplInfo ) ) . attr as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplInfo ) ,
"::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplInfo ) ) . poolSize as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplInfo ) ,
"::" , stringify ! ( poolSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplInfo ) ) . freeSize as *
const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplInfo ) ,
"::" , stringify ! ( freeSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVplInfo ) ) . numWaitThreads as
* const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVplInfo ) ,
"::" , stringify ! ( numWaitThreads ) ));
}
impl Clone for SceKernelVplInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelReferVplStatus(uid: SceUID, info: *mut SceKernelVplInfo)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelFplOptParam {
pub size: SceSize,
}
#[test]
fn bindgen_test_layout_SceKernelFplOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelFplOptParam>() , 4usize , concat
! ( "Size of: " , stringify ! ( SceKernelFplOptParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelFplOptParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelFplOptParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplOptParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplOptParam )
, "::" , stringify ! ( size ) ));
}
impl Clone for SceKernelFplOptParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelCreateFpl(name: *const ::std::os::raw::c_char,
part: ::std::os::raw::c_int,
attr: ::std::os::raw::c_int,
size: ::std::os::raw::c_uint,
blocks: ::std::os::raw::c_uint,
opt: *mut SceKernelFplOptParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDeleteFpl(uid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelAllocateFpl(uid: SceUID,
data: *mut *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelAllocateFplCB(uid: SceUID,
data: *mut *mut ::std::os::raw::c_void,
timeout: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelTryAllocateFpl(uid: SceUID,
data: *mut *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelFreeFpl(uid: SceUID, data: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelFpl(uid: SceUID, pnum: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelFplInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub blockSize: ::std::os::raw::c_int,
pub numBlocks: ::std::os::raw::c_int,
pub freeBlocks: ::std::os::raw::c_int,
pub numWaitThreads: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceKernelFplInfo() {
assert_eq!(::std::mem::size_of::<SceKernelFplInfo>() , 56usize , concat !
( "Size of: " , stringify ! ( SceKernelFplInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelFplInfo>() , 4usize , concat !
( "Alignment of " , stringify ! ( SceKernelFplInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . name as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . attr as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . blockSize as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( blockSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . numBlocks as *
const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( numBlocks ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . freeBlocks as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( freeBlocks ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelFplInfo ) ) . numWaitThreads as
* const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelFplInfo ) ,
"::" , stringify ! ( numWaitThreads ) ));
}
impl Clone for SceKernelFplInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelReferFplStatus(uid: SceUID, info: *mut SceKernelFplInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sceKernelReturnFromTimerHandler();
}
extern "C" {
pub fn _sceKernelReturnFromCallback();
}
extern "C" {
pub fn sceKernelUSec2SysClock(usec: ::std::os::raw::c_uint,
clock: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUSec2SysClockWide(usec: ::std::os::raw::c_uint)
-> SceInt64;
}
extern "C" {
pub fn sceKernelSysClock2USec(clock: *mut SceKernelSysClock,
low: *mut ::std::os::raw::c_uint,
high: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSysClock2USecWide(clock: SceInt64,
low: *mut ::std::os::raw::c_uint,
high: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetSystemTime(time: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetSystemTimeWide() -> SceInt64;
}
extern "C" {
pub fn sceKernelGetSystemTimeLow() -> ::std::os::raw::c_uint;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelVTimerOptParam {
pub size: SceSize,
}
#[test]
fn bindgen_test_layout_SceKernelVTimerOptParam() {
assert_eq!(::std::mem::size_of::<SceKernelVTimerOptParam>() , 4usize ,
concat ! (
"Size of: " , stringify ! ( SceKernelVTimerOptParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelVTimerOptParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelVTimerOptParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerOptParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerOptParam
) , "::" , stringify ! ( size ) ));
}
impl Clone for SceKernelVTimerOptParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelCreateVTimer(name: *const ::std::os::raw::c_char,
opt: *mut SceKernelVTimerOptParam) -> SceUID;
}
extern "C" {
pub fn sceKernelDeleteVTimer(uid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetVTimerBase(uid: SceUID, base: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetVTimerBaseWide(uid: SceUID) -> SceInt64;
}
extern "C" {
pub fn sceKernelGetVTimerTime(uid: SceUID, time: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetVTimerTimeWide(uid: SceUID) -> SceInt64;
}
extern "C" {
pub fn sceKernelSetVTimerTime(uid: SceUID, time: *mut SceKernelSysClock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSetVTimerTimeWide(uid: SceUID, time: SceInt64)
-> SceInt64;
}
extern "C" {
pub fn sceKernelStartVTimer(uid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelStopVTimer(uid: SceUID) -> ::std::os::raw::c_int;
}
pub type SceKernelVTimerHandler =
::std::option::Option<unsafe extern "C" fn(uid: SceUID,
arg1: *mut SceKernelSysClock,
arg2: *mut SceKernelSysClock,
arg3:
*mut ::std::os::raw::c_void)
-> SceUInt>;
pub type SceKernelVTimerHandlerWide =
::std::option::Option<unsafe extern "C" fn(uid: SceUID, arg1: SceInt64,
arg2: SceInt64,
arg3:
*mut ::std::os::raw::c_void)
-> SceUInt>;
extern "C" {
pub fn sceKernelSetVTimerHandler(uid: SceUID,
time: *mut SceKernelSysClock,
handler: SceKernelVTimerHandler,
common: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelSetVTimerHandlerWide(uid: SceUID, time: SceInt64,
handler: SceKernelVTimerHandlerWide,
common: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCancelVTimerHandler(uid: SceUID) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelVTimerInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub active: ::std::os::raw::c_int,
pub base: SceKernelSysClock,
pub current: SceKernelSysClock,
pub schedule: SceKernelSysClock,
pub handler: SceKernelVTimerHandler,
pub common: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_SceKernelVTimerInfo() {
assert_eq!(::std::mem::size_of::<SceKernelVTimerInfo>() , 80usize , concat
! ( "Size of: " , stringify ! ( SceKernelVTimerInfo ) ));
assert_eq! (::std::mem::align_of::<SceKernelVTimerInfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelVTimerInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . size as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . name as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . active as *
const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( active ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . base as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . current as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( current ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . schedule as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( schedule ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . handler as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( handler ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelVTimerInfo ) ) . common as *
const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelVTimerInfo ) ,
"::" , stringify ! ( common ) ));
}
impl Clone for SceKernelVTimerInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelReferVTimerStatus(uid: SceUID,
info: *mut SceKernelVTimerInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sceKernelExitThread();
}
extern "C" {
pub fn sceKernelGetThreadmanIdType(uid: SceUID) -> SceKernelIdListType;
}
pub type SceKernelThreadEventHandler =
::std::option::Option<unsafe extern "C" fn(mask: ::std::os::raw::c_int,
thid: SceUID,
common:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelThreadEventHandlerInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub threadId: SceUID,
pub mask: ::std::os::raw::c_int,
pub handler: SceKernelThreadEventHandler,
pub common: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_SceKernelThreadEventHandlerInfo() {
assert_eq!(::std::mem::size_of::<SceKernelThreadEventHandlerInfo>() ,
64usize , concat ! (
"Size of: " , stringify ! ( SceKernelThreadEventHandlerInfo )
));
assert_eq! (::std::mem::align_of::<SceKernelThreadEventHandlerInfo>() ,
8usize , concat ! (
"Alignment of " , stringify ! (
SceKernelThreadEventHandlerInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadEventHandlerInfo ) ) .
size as * const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadEventHandlerInfo ) , "::" , stringify ! ( size
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadEventHandlerInfo ) ) .
name as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadEventHandlerInfo ) , "::" , stringify ! ( name
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadEventHandlerInfo ) ) .
threadId as * const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadEventHandlerInfo ) , "::" , stringify ! (
threadId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadEventHandlerInfo ) ) .
mask as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadEventHandlerInfo ) , "::" , stringify ! ( mask
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadEventHandlerInfo ) ) .
handler as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadEventHandlerInfo ) , "::" , stringify ! (
handler ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadEventHandlerInfo ) ) .
common as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelThreadEventHandlerInfo ) , "::" , stringify ! (
common ) ));
}
impl Clone for SceKernelThreadEventHandlerInfo {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ThreadEventIds {
THREADEVENT_ALL = 4294967295,
THREADEVENT_KERN = 4294967288,
THREADEVENT_USER = 4294967280,
THREADEVENT_CURRENT = 0,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ThreadEvents {
THREAD_CREATE = 1,
THREAD_START = 2,
THREAD_EXIT = 4,
THREAD_DELETE = 8,
}
extern "C" {
pub fn sceKernelRegisterThreadEventHandler(name:
*const ::std::os::raw::c_char,
threadID: SceUID,
mask: ::std::os::raw::c_int,
handler:
SceKernelThreadEventHandler,
common:
*mut ::std::os::raw::c_void)
-> SceUID;
}
extern "C" {
pub fn sceKernelReleaseThreadEventHandler(uid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferThreadEventHandlerStatus(uid: SceUID,
info:
*mut SceKernelThreadEventHandlerInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferThreadProfiler() -> *mut PspDebugProfilerRegs;
}
extern "C" {
pub fn sceKernelReferGlobalProfiler() -> *mut PspDebugProfilerRegs;
}
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type _LOCK_T = ::std::os::raw::c_int;
pub type _LOCK_RECURSIVE_T = ::std::os::raw::c_int;
pub type _off_t = ::std::os::raw::c_long;
pub type __dev_t = ::std::os::raw::c_short;
pub type __uid_t = ::std::os::raw::c_ushort;
pub type __gid_t = ::std::os::raw::c_ushort;
pub type _off64_t = ::std::os::raw::c_longlong;
pub type _fpos_t = ::std::os::raw::c_long;
pub type _ssize_t = ::std::os::raw::c_int;
pub type wint_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy)]
pub struct _mbstate_t {
pub __count: ::std::os::raw::c_int,
pub __value: _mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy)]
pub union _mbstate_t__bindgen_ty_1 {
pub __wch: wint_t,
pub __wchb: [::std::os::raw::c_uchar; 4usize],
_bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout__mbstate_t__bindgen_ty_1() {
assert_eq!(::std::mem::size_of::<_mbstate_t__bindgen_ty_1>() , 4usize ,
concat ! (
"Size of: " , stringify ! ( _mbstate_t__bindgen_ty_1 ) ));
assert_eq! (::std::mem::align_of::<_mbstate_t__bindgen_ty_1>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( _mbstate_t__bindgen_ty_1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _mbstate_t__bindgen_ty_1 ) ) . __wch as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wch ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _mbstate_t__bindgen_ty_1 ) ) . __wchb as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wchb ) ));
}
impl Clone for _mbstate_t__bindgen_ty_1 {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout__mbstate_t() {
assert_eq!(::std::mem::size_of::<_mbstate_t>() , 8usize , concat ! (
"Size of: " , stringify ! ( _mbstate_t ) ));
assert_eq! (::std::mem::align_of::<_mbstate_t>() , 4usize , concat ! (
"Alignment of " , stringify ! ( _mbstate_t ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _mbstate_t ) ) . __count as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _mbstate_t ) , "::" ,
stringify ! ( __count ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _mbstate_t ) ) . __value as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _mbstate_t ) , "::" ,
stringify ! ( __value ) ));
}
impl Clone for _mbstate_t {
fn clone(&self) -> Self { *self }
}
pub type _flock_t = _LOCK_RECURSIVE_T;
pub type _iconv_t = *mut ::std::os::raw::c_void;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct max_align_t {
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
pub __bindgen_padding_0: u64,
pub __clang_max_align_nonce2: f64,
}
#[test]
fn bindgen_test_layout_max_align_t() {
assert_eq!(::std::mem::size_of::<max_align_t>() , 32usize , concat ! (
"Size of: " , stringify ! ( max_align_t ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const max_align_t ) ) .
__clang_max_align_nonce1 as * const _ as usize } , 0usize ,
concat ! (
"Alignment of field: " , stringify ! ( max_align_t ) , "::" ,
stringify ! ( __clang_max_align_nonce1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const max_align_t ) ) .
__clang_max_align_nonce2 as * const _ as usize } , 16usize ,
concat ! (
"Alignment of field: " , stringify ! ( max_align_t ) , "::" ,
stringify ! ( __clang_max_align_nonce2 ) ));
}
impl Clone for max_align_t {
fn clone(&self) -> Self { *self }
}
pub type __off_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
pub type __loff_t = ::std::os::raw::c_longlong;
pub type u_char = ::std::os::raw::c_uchar;
pub type u_short = ::std::os::raw::c_ushort;
pub type u_int = ::std::os::raw::c_uint;
pub type u_long = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type ulong = ::std::os::raw::c_ulong;
pub type clock_t = ::std::os::raw::c_ulong;
pub type time_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct timespec {
pub tv_sec: time_t,
pub tv_nsec: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_timespec() {
assert_eq!(::std::mem::size_of::<timespec>() , 16usize , concat ! (
"Size of: " , stringify ! ( timespec ) ));
assert_eq! (::std::mem::align_of::<timespec>() , 8usize , concat ! (
"Alignment of " , stringify ! ( timespec ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const timespec ) ) . tv_sec as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( timespec ) , "::" ,
stringify ! ( tv_sec ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const timespec ) ) . tv_nsec as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( timespec ) , "::" ,
stringify ! ( tv_nsec ) ));
}
impl Clone for timespec {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct itimerspec {
pub it_interval: timespec,
pub it_value: timespec,
}
#[test]
fn bindgen_test_layout_itimerspec() {
assert_eq!(::std::mem::size_of::<itimerspec>() , 32usize , concat ! (
"Size of: " , stringify ! ( itimerspec ) ));
assert_eq! (::std::mem::align_of::<itimerspec>() , 8usize , concat ! (
"Alignment of " , stringify ! ( itimerspec ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const itimerspec ) ) . it_interval as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( itimerspec ) , "::" ,
stringify ! ( it_interval ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const itimerspec ) ) . it_value as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( itimerspec ) , "::" ,
stringify ! ( it_value ) ));
}
impl Clone for itimerspec {
fn clone(&self) -> Self { *self }
}
pub type daddr_t = ::std::os::raw::c_long;
pub type caddr_t = *mut ::std::os::raw::c_char;
pub type ino_t = ::std::os::raw::c_ushort;
pub type off_t = _off_t;
pub type dev_t = __dev_t;
pub type uid_t = __uid_t;
pub type gid_t = __gid_t;
pub type pid_t = ::std::os::raw::c_int;
pub type key_t = ::std::os::raw::c_long;
pub type mode_t = ::std::os::raw::c_uint;
pub type nlink_t = ::std::os::raw::c_ushort;
pub type fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _types_fd_set {
pub fds_bits: [fd_mask; 1usize],
}
#[test]
fn bindgen_test_layout__types_fd_set() {
assert_eq!(::std::mem::size_of::<_types_fd_set>() , 8usize , concat ! (
"Size of: " , stringify ! ( _types_fd_set ) ));
assert_eq! (::std::mem::align_of::<_types_fd_set>() , 8usize , concat ! (
"Alignment of " , stringify ! ( _types_fd_set ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _types_fd_set ) ) . fds_bits as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _types_fd_set ) , "::"
, stringify ! ( fds_bits ) ));
}
impl Clone for _types_fd_set {
fn clone(&self) -> Self { *self }
}
pub type clockid_t = ::std::os::raw::c_ulong;
pub type timer_t = ::std::os::raw::c_ulong;
pub type useconds_t = ::std::os::raw::c_ulong;
pub type suseconds_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct timeval {
pub tv_sec: time_t,
pub tv_usec: suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
assert_eq!(::std::mem::size_of::<timeval>() , 16usize , concat ! (
"Size of: " , stringify ! ( timeval ) ));
assert_eq! (::std::mem::align_of::<timeval>() , 8usize , concat ! (
"Alignment of " , stringify ! ( timeval ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const timeval ) ) . tv_sec as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( timeval ) , "::" ,
stringify ! ( tv_sec ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const timeval ) ) . tv_usec as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( timeval ) , "::" ,
stringify ! ( tv_usec ) ));
}
impl Clone for timeval {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct timezone {
pub tz_minuteswest: ::std::os::raw::c_int,
pub tz_dsttime: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_timezone() {
assert_eq!(::std::mem::size_of::<timezone>() , 8usize , concat ! (
"Size of: " , stringify ! ( timezone ) ));
assert_eq! (::std::mem::align_of::<timezone>() , 4usize , concat ! (
"Alignment of " , stringify ! ( timezone ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const timezone ) ) . tz_minuteswest as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( timezone ) , "::" ,
stringify ! ( tz_minuteswest ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const timezone ) ) . tz_dsttime as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( timezone ) , "::" ,
stringify ! ( tz_dsttime ) ));
}
impl Clone for timezone {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct itimerval {
pub it_interval: timeval,
pub it_value: timeval,
}
#[test]
fn bindgen_test_layout_itimerval() {
assert_eq!(::std::mem::size_of::<itimerval>() , 32usize , concat ! (
"Size of: " , stringify ! ( itimerval ) ));
assert_eq! (::std::mem::align_of::<itimerval>() , 8usize , concat ! (
"Alignment of " , stringify ! ( itimerval ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const itimerval ) ) . it_interval as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( itimerval ) , "::" ,
stringify ! ( it_interval ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const itimerval ) ) . it_value as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( itimerval ) , "::" ,
stringify ! ( it_value ) ));
}
impl Clone for itimerval {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn gettimeofday(__p: *mut timeval, __tz: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn settimeofday(arg1: *const timeval, arg2: *const timezone)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn utimes(__path: *const ::std::os::raw::c_char,
__tvp: *const timeval) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getitimer(__which: ::std::os::raw::c_int, __value: *mut itimerval)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn setitimer(__which: ::std::os::raw::c_int,
__value: *const itimerval, __ovalue: *mut itimerval)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLibcTime(t: *mut time_t) -> time_t;
}
extern "C" {
pub fn sceKernelLibcClock() -> clock_t;
}
extern "C" {
pub fn sceKernelLibcGettimeofday(tp: *mut timeval, tzp: *mut timezone)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDcacheWritebackAll();
}
extern "C" {
pub fn sceKernelDcacheWritebackInvalidateAll();
}
extern "C" {
pub fn sceKernelDcacheWritebackRange(p: *const ::std::os::raw::c_void,
size: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceKernelDcacheWritebackInvalidateRange(p:
*const ::std::os::raw::c_void,
size:
::std::os::raw::c_uint);
}
extern "C" {
pub fn sceKernelDcacheInvalidateRange(p: *const ::std::os::raw::c_void,
size: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceKernelIcacheInvalidateAll();
}
extern "C" {
pub fn sceKernelIcacheInvalidateRange(p: *const ::std::os::raw::c_void,
size: ::std::os::raw::c_uint);
}
#[repr(C)]
#[derive(Copy)]
pub struct _SceKernelUtilsMt19937Context {
pub count: ::std::os::raw::c_uint,
pub state: [::std::os::raw::c_uint; 624usize],
}
#[test]
fn bindgen_test_layout__SceKernelUtilsMt19937Context() {
assert_eq!(::std::mem::size_of::<_SceKernelUtilsMt19937Context>() ,
2500usize , concat ! (
"Size of: " , stringify ! ( _SceKernelUtilsMt19937Context ) ));
assert_eq! (::std::mem::align_of::<_SceKernelUtilsMt19937Context>() ,
4usize , concat ! (
"Alignment of " , stringify ! ( _SceKernelUtilsMt19937Context
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMt19937Context ) ) . count
as * const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMt19937Context ) , "::" , stringify ! ( count )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMt19937Context ) ) . state
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMt19937Context ) , "::" , stringify ! ( state )
));
}
impl Clone for _SceKernelUtilsMt19937Context {
fn clone(&self) -> Self { *self }
}
pub type SceKernelUtilsMt19937Context = _SceKernelUtilsMt19937Context;
extern "C" {
pub fn sceKernelUtilsMt19937Init(ctx: *mut SceKernelUtilsMt19937Context,
seed: u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsMt19937UInt(ctx: *mut SceKernelUtilsMt19937Context)
-> u32;
}
#[repr(C)]
#[derive(Copy)]
pub struct _SceKernelUtilsMd5Context {
pub h: [::std::os::raw::c_uint; 4usize],
pub pad: ::std::os::raw::c_uint,
pub usRemains: SceUShort16,
pub usComputed: SceUShort16,
pub ullTotalLen: SceULong64,
pub buf: [::std::os::raw::c_uchar; 64usize],
}
#[test]
fn bindgen_test_layout__SceKernelUtilsMd5Context() {
assert_eq!(::std::mem::size_of::<_SceKernelUtilsMd5Context>() , 96usize ,
concat ! (
"Size of: " , stringify ! ( _SceKernelUtilsMd5Context ) ));
assert_eq! (::std::mem::align_of::<_SceKernelUtilsMd5Context>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( _SceKernelUtilsMd5Context )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMd5Context ) ) . h as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMd5Context ) , "::" , stringify ! ( h ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMd5Context ) ) . pad as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMd5Context ) , "::" , stringify ! ( pad ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMd5Context ) ) . usRemains
as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMd5Context ) , "::" , stringify ! ( usRemains )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMd5Context ) ) .
usComputed as * const _ as usize } , 22usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMd5Context ) , "::" , stringify ! ( usComputed
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMd5Context ) ) .
ullTotalLen as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMd5Context ) , "::" , stringify ! ( ullTotalLen
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsMd5Context ) ) . buf as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsMd5Context ) , "::" , stringify ! ( buf ) ));
}
impl Clone for _SceKernelUtilsMd5Context {
fn clone(&self) -> Self { *self }
}
pub type SceKernelUtilsMd5Context = _SceKernelUtilsMd5Context;
extern "C" {
pub fn sceKernelUtilsMd5Digest(data: *mut u8, size: u32, digest: *mut u8)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsMd5BlockInit(ctx: *mut SceKernelUtilsMd5Context)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsMd5BlockUpdate(ctx: *mut SceKernelUtilsMd5Context,
data: *mut u8, size: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsMd5BlockResult(ctx: *mut SceKernelUtilsMd5Context,
digest: *mut u8)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct _SceKernelUtilsSha1Context {
pub h: [::std::os::raw::c_uint; 5usize],
pub usRemains: SceUShort16,
pub usComputed: SceUShort16,
pub ullTotalLen: SceULong64,
pub buf: [::std::os::raw::c_uchar; 64usize],
}
#[test]
fn bindgen_test_layout__SceKernelUtilsSha1Context() {
assert_eq!(::std::mem::size_of::<_SceKernelUtilsSha1Context>() , 96usize ,
concat ! (
"Size of: " , stringify ! ( _SceKernelUtilsSha1Context ) ));
assert_eq! (::std::mem::align_of::<_SceKernelUtilsSha1Context>() , 8usize
, concat ! (
"Alignment of " , stringify ! ( _SceKernelUtilsSha1Context )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsSha1Context ) ) . h as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsSha1Context ) , "::" , stringify ! ( h ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsSha1Context ) ) .
usRemains as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsSha1Context ) , "::" , stringify ! ( usRemains
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsSha1Context ) ) .
usComputed as * const _ as usize } , 22usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsSha1Context ) , "::" , stringify ! ( usComputed
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsSha1Context ) ) .
ullTotalLen as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsSha1Context ) , "::" , stringify ! (
ullTotalLen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceKernelUtilsSha1Context ) ) . buf as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
_SceKernelUtilsSha1Context ) , "::" , stringify ! ( buf ) ));
}
impl Clone for _SceKernelUtilsSha1Context {
fn clone(&self) -> Self { *self }
}
pub type SceKernelUtilsSha1Context = _SceKernelUtilsSha1Context;
extern "C" {
pub fn sceKernelUtilsSha1Digest(data: *mut u8, size: u32, digest: *mut u8)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsSha1BlockInit(ctx: *mut SceKernelUtilsSha1Context)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsSha1BlockUpdate(ctx: *mut SceKernelUtilsSha1Context,
data: *mut u8, size: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUtilsSha1BlockResult(ctx: *mut SceKernelUtilsSha1Context,
digest: *mut u8)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspKernelErrorCodes {
SCE_KERNEL_ERROR_OK = 0,
SCE_KERNEL_ERROR_ERROR = 2147614721,
SCE_KERNEL_ERROR_NOTIMP = 2147614722,
SCE_KERNEL_ERROR_ILLEGAL_EXPCODE = 2147614770,
SCE_KERNEL_ERROR_EXPHANDLER_NOUSE = 2147614771,
SCE_KERNEL_ERROR_EXPHANDLER_USED = 2147614772,
SCE_KERNEL_ERROR_SYCALLTABLE_NOUSED = 2147614773,
SCE_KERNEL_ERROR_SYCALLTABLE_USED = 2147614774,
SCE_KERNEL_ERROR_ILLEGAL_SYSCALLTABLE = 2147614775,
SCE_KERNEL_ERROR_ILLEGAL_PRIMARY_SYSCALL_NUMBER = 2147614776,
SCE_KERNEL_ERROR_PRIMARY_SYSCALL_NUMBER_INUSE = 2147614777,
SCE_KERNEL_ERROR_ILLEGAL_CONTEXT = 2147614820,
SCE_KERNEL_ERROR_ILLEGAL_INTRCODE = 2147614821,
SCE_KERNEL_ERROR_CPUDI = 2147614822,
SCE_KERNEL_ERROR_FOUND_HANDLER = 2147614823,
SCE_KERNEL_ERROR_NOTFOUND_HANDLER = 2147614824,
SCE_KERNEL_ERROR_ILLEGAL_INTRLEVEL = 2147614825,
SCE_KERNEL_ERROR_ILLEGAL_ADDRESS = 2147614826,
SCE_KERNEL_ERROR_ILLEGAL_INTRPARAM = 2147614827,
SCE_KERNEL_ERROR_ILLEGAL_STACK_ADDRESS = 2147614828,
SCE_KERNEL_ERROR_ALREADY_STACK_SET = 2147614829,
SCE_KERNEL_ERROR_NO_TIMER = 2147614870,
SCE_KERNEL_ERROR_ILLEGAL_TIMERID = 2147614871,
SCE_KERNEL_ERROR_ILLEGAL_SOURCE = 2147614872,
SCE_KERNEL_ERROR_ILLEGAL_PRESCALE = 2147614873,
SCE_KERNEL_ERROR_TIMER_BUSY = 2147614874,
SCE_KERNEL_ERROR_TIMER_NOT_SETUP = 2147614875,
SCE_KERNEL_ERROR_TIMER_NOT_INUSE = 2147614876,
SCE_KERNEL_ERROR_UNIT_USED = 2147614880,
SCE_KERNEL_ERROR_UNIT_NOUSE = 2147614881,
SCE_KERNEL_ERROR_NO_ROMDIR = 2147614882,
SCE_KERNEL_ERROR_IDTYPE_EXIST = 2147614920,
SCE_KERNEL_ERROR_IDTYPE_NOT_EXIST = 2147614921,
SCE_KERNEL_ERROR_IDTYPE_NOT_EMPTY = 2147614922,
SCE_KERNEL_ERROR_UNKNOWN_UID = 2147614923,
SCE_KERNEL_ERROR_UNMATCH_UID_TYPE = 2147614924,
SCE_KERNEL_ERROR_ID_NOT_EXIST = 2147614925,
SCE_KERNEL_ERROR_NOT_FOUND_UIDFUNC = 2147614926,
SCE_KERNEL_ERROR_UID_ALREADY_HOLDER = 2147614927,
SCE_KERNEL_ERROR_UID_NOT_HOLDER = 2147614928,
SCE_KERNEL_ERROR_ILLEGAL_PERM = 2147614929,
SCE_KERNEL_ERROR_ILLEGAL_ARGUMENT = 2147614930,
SCE_KERNEL_ERROR_ILLEGAL_ADDR = 2147614931,
SCE_KERNEL_ERROR_OUT_OF_RANGE = 2147614932,
SCE_KERNEL_ERROR_MEM_RANGE_OVERLAP = 2147614933,
SCE_KERNEL_ERROR_ILLEGAL_PARTITION = 2147614934,
SCE_KERNEL_ERROR_PARTITION_INUSE = 2147614935,
SCE_KERNEL_ERROR_ILLEGAL_MEMBLOCKTYPE = 2147614936,
SCE_KERNEL_ERROR_MEMBLOCK_ALLOC_FAILED = 2147614937,
SCE_KERNEL_ERROR_MEMBLOCK_RESIZE_LOCKED = 2147614938,
SCE_KERNEL_ERROR_MEMBLOCK_RESIZE_FAILED = 2147614939,
SCE_KERNEL_ERROR_HEAPBLOCK_ALLOC_FAILED = 2147614940,
SCE_KERNEL_ERROR_HEAP_ALLOC_FAILED = 2147614941,
SCE_KERNEL_ERROR_ILLEGAL_CHUNK_ID = 2147614942,
SCE_KERNEL_ERROR_NOCHUNK = 2147614943,
SCE_KERNEL_ERROR_NO_FREECHUNK = 2147614944,
SCE_KERNEL_ERROR_LINKERR = 2147615020,
SCE_KERNEL_ERROR_ILLEGAL_OBJECT = 2147615021,
SCE_KERNEL_ERROR_UNKNOWN_MODULE = 2147615022,
SCE_KERNEL_ERROR_NOFILE = 2147615023,
SCE_KERNEL_ERROR_FILEERR = 2147615024,
SCE_KERNEL_ERROR_MEMINUSE = 2147615025,
SCE_KERNEL_ERROR_PARTITION_MISMATCH = 2147615026,
SCE_KERNEL_ERROR_ALREADY_STARTED = 2147615027,
SCE_KERNEL_ERROR_NOT_STARTED = 2147615028,
SCE_KERNEL_ERROR_ALREADY_STOPPED = 2147615029,
SCE_KERNEL_ERROR_CAN_NOT_STOP = 2147615030,
SCE_KERNEL_ERROR_NOT_STOPPED = 2147615031,
SCE_KERNEL_ERROR_NOT_REMOVABLE = 2147615032,
SCE_KERNEL_ERROR_EXCLUSIVE_LOAD = 2147615033,
SCE_KERNEL_ERROR_LIBRARY_NOT_YET_LINKED = 2147615034,
SCE_KERNEL_ERROR_LIBRARY_FOUND = 2147615035,
SCE_KERNEL_ERROR_LIBRARY_NOTFOUND = 2147615036,
SCE_KERNEL_ERROR_ILLEGAL_LIBRARY = 2147615037,
SCE_KERNEL_ERROR_LIBRARY_INUSE = 2147615038,
SCE_KERNEL_ERROR_ALREADY_STOPPING = 2147615039,
SCE_KERNEL_ERROR_ILLEGAL_OFFSET = 2147615040,
SCE_KERNEL_ERROR_ILLEGAL_POSITION = 2147615041,
SCE_KERNEL_ERROR_ILLEGAL_ACCESS = 2147615042,
SCE_KERNEL_ERROR_MODULE_MGR_BUSY = 2147615043,
SCE_KERNEL_ERROR_ILLEGAL_FLAG = 2147615044,
SCE_KERNEL_ERROR_CANNOT_GET_MODULELIST = 2147615045,
SCE_KERNEL_ERROR_PROHIBIT_LOADMODULE_DEVICE = 2147615046,
SCE_KERNEL_ERROR_PROHIBIT_LOADEXEC_DEVICE = 2147615047,
SCE_KERNEL_ERROR_UNSUPPORTED_PRX_TYPE = 2147615048,
SCE_KERNEL_ERROR_ILLEGAL_PERM_CALL = 2147615049,
SCE_KERNEL_ERROR_CANNOT_GET_MODULE_INFORMATION = 2147615050,
SCE_KERNEL_ERROR_ILLEGAL_LOADEXEC_BUFFER = 2147615051,
SCE_KERNEL_ERROR_ILLEGAL_LOADEXEC_FILENAME = 2147615052,
SCE_KERNEL_ERROR_NO_EXIT_CALLBACK = 2147615053,
SCE_KERNEL_ERROR_NO_MEMORY = 2147615120,
SCE_KERNEL_ERROR_ILLEGAL_ATTR = 2147615121,
SCE_KERNEL_ERROR_ILLEGAL_ENTRY = 2147615122,
SCE_KERNEL_ERROR_ILLEGAL_PRIORITY = 2147615123,
SCE_KERNEL_ERROR_ILLEGAL_STACK_SIZE = 2147615124,
SCE_KERNEL_ERROR_ILLEGAL_MODE = 2147615125,
SCE_KERNEL_ERROR_ILLEGAL_MASK = 2147615126,
SCE_KERNEL_ERROR_ILLEGAL_THID = 2147615127,
SCE_KERNEL_ERROR_UNKNOWN_THID = 2147615128,
SCE_KERNEL_ERROR_UNKNOWN_SEMID = 2147615129,
SCE_KERNEL_ERROR_UNKNOWN_EVFID = 2147615130,
SCE_KERNEL_ERROR_UNKNOWN_MBXID = 2147615131,
SCE_KERNEL_ERROR_UNKNOWN_VPLID = 2147615132,
SCE_KERNEL_ERROR_UNKNOWN_FPLID = 2147615133,
SCE_KERNEL_ERROR_UNKNOWN_MPPID = 2147615134,
SCE_KERNEL_ERROR_UNKNOWN_ALMID = 2147615135,
SCE_KERNEL_ERROR_UNKNOWN_TEID = 2147615136,
SCE_KERNEL_ERROR_UNKNOWN_CBID = 2147615137,
SCE_KERNEL_ERROR_DORMANT = 2147615138,
SCE_KERNEL_ERROR_SUSPEND = 2147615139,
SCE_KERNEL_ERROR_NOT_DORMANT = 2147615140,
SCE_KERNEL_ERROR_NOT_SUSPEND = 2147615141,
SCE_KERNEL_ERROR_NOT_WAIT = 2147615142,
SCE_KERNEL_ERROR_CAN_NOT_WAIT = 2147615143,
SCE_KERNEL_ERROR_WAIT_TIMEOUT = 2147615144,
SCE_KERNEL_ERROR_WAIT_CANCEL = 2147615145,
SCE_KERNEL_ERROR_RELEASE_WAIT = 2147615146,
SCE_KERNEL_ERROR_NOTIFY_CALLBACK = 2147615147,
SCE_KERNEL_ERROR_THREAD_TERMINATED = 2147615148,
SCE_KERNEL_ERROR_SEMA_ZERO = 2147615149,
SCE_KERNEL_ERROR_SEMA_OVF = 2147615150,
SCE_KERNEL_ERROR_EVF_COND = 2147615151,
SCE_KERNEL_ERROR_EVF_MULTI = 2147615152,
SCE_KERNEL_ERROR_EVF_ILPAT = 2147615153,
SCE_KERNEL_ERROR_MBOX_NOMSG = 2147615154,
SCE_KERNEL_ERROR_MPP_FULL = 2147615155,
SCE_KERNEL_ERROR_MPP_EMPTY = 2147615156,
SCE_KERNEL_ERROR_WAIT_DELETE = 2147615157,
SCE_KERNEL_ERROR_ILLEGAL_MEMBLOCK = 2147615158,
SCE_KERNEL_ERROR_ILLEGAL_MEMSIZE = 2147615159,
SCE_KERNEL_ERROR_ILLEGAL_SPADADDR = 2147615160,
SCE_KERNEL_ERROR_SPAD_INUSE = 2147615161,
SCE_KERNEL_ERROR_SPAD_NOT_INUSE = 2147615162,
SCE_KERNEL_ERROR_ILLEGAL_TYPE = 2147615163,
SCE_KERNEL_ERROR_ILLEGAL_SIZE = 2147615164,
SCE_KERNEL_ERROR_ILLEGAL_COUNT = 2147615165,
SCE_KERNEL_ERROR_UNKNOWN_VTID = 2147615166,
SCE_KERNEL_ERROR_ILLEGAL_VTID = 2147615167,
SCE_KERNEL_ERROR_ILLEGAL_KTLSID = 2147615168,
SCE_KERNEL_ERROR_KTLS_FULL = 2147615169,
SCE_KERNEL_ERROR_KTLS_BUSY = 2147615170,
SCE_KERNEL_ERROR_PM_INVALID_PRIORITY = 2147615320,
SCE_KERNEL_ERROR_PM_INVALID_DEVNAME = 2147615321,
SCE_KERNEL_ERROR_PM_UNKNOWN_DEVNAME = 2147615322,
SCE_KERNEL_ERROR_PM_PMINFO_REGISTERED = 2147615323,
SCE_KERNEL_ERROR_PM_PMINFO_UNREGISTERED = 2147615324,
SCE_KERNEL_ERROR_PM_INVALID_MAJOR_STATE = 2147615325,
SCE_KERNEL_ERROR_PM_INVALID_REQUEST = 2147615326,
SCE_KERNEL_ERROR_PM_UNKNOWN_REQUEST = 2147615327,
SCE_KERNEL_ERROR_PM_INVALID_UNIT = 2147615328,
SCE_KERNEL_ERROR_PM_CANNOT_CANCEL = 2147615329,
SCE_KERNEL_ERROR_PM_INVALID_PMINFO = 2147615330,
SCE_KERNEL_ERROR_PM_INVALID_ARGUMENT = 2147615331,
SCE_KERNEL_ERROR_PM_ALREADY_TARGET_PWRSTATE = 2147615332,
SCE_KERNEL_ERROR_PM_CHANGE_PWRSTATE_FAILED = 2147615333,
SCE_KERNEL_ERROR_PM_CANNOT_CHANGE_DEVPWR_STATE = 2147615334,
SCE_KERNEL_ERROR_PM_NO_SUPPORT_DEVPWR_STATE = 2147615335,
SCE_KERNEL_ERROR_DMAC_REQUEST_FAILED = 2147615420,
SCE_KERNEL_ERROR_DMAC_REQUEST_DENIED = 2147615421,
SCE_KERNEL_ERROR_DMAC_OP_QUEUED = 2147615422,
SCE_KERNEL_ERROR_DMAC_OP_NOT_QUEUED = 2147615423,
SCE_KERNEL_ERROR_DMAC_OP_RUNNING = 2147615424,
SCE_KERNEL_ERROR_DMAC_OP_NOT_ASSIGNED = 2147615425,
SCE_KERNEL_ERROR_DMAC_OP_TIMEOUT = 2147615426,
SCE_KERNEL_ERROR_DMAC_OP_FREED = 2147615427,
SCE_KERNEL_ERROR_DMAC_OP_USED = 2147615428,
SCE_KERNEL_ERROR_DMAC_OP_EMPTY = 2147615429,
SCE_KERNEL_ERROR_DMAC_OP_ABORTED = 2147615430,
SCE_KERNEL_ERROR_DMAC_OP_ERROR = 2147615431,
SCE_KERNEL_ERROR_DMAC_CHANNEL_RESERVED = 2147615432,
SCE_KERNEL_ERROR_DMAC_CHANNEL_EXCLUDED = 2147615433,
SCE_KERNEL_ERROR_DMAC_PRIVILEGE_ADDRESS = 2147615434,
SCE_KERNEL_ERROR_DMAC_NO_ENOUGHSPACE = 2147615435,
SCE_KERNEL_ERROR_DMAC_CHANNEL_NOT_ASSIGNED = 2147615436,
SCE_KERNEL_ERROR_DMAC_CHILD_OPERATION = 2147615437,
SCE_KERNEL_ERROR_DMAC_TOO_MUCH_SIZE = 2147615438,
SCE_KERNEL_ERROR_DMAC_INVALID_ARGUMENT = 2147615439,
SCE_KERNEL_ERROR_MFILE = 2147615520,
SCE_KERNEL_ERROR_NODEV = 2147615521,
SCE_KERNEL_ERROR_XDEV = 2147615522,
SCE_KERNEL_ERROR_BADF = 2147615523,
SCE_KERNEL_ERROR_INVAL = 2147615524,
SCE_KERNEL_ERROR_UNSUP = 2147615525,
SCE_KERNEL_ERROR_ALIAS_USED = 2147615526,
SCE_KERNEL_ERROR_CANNOT_MOUNT = 2147615527,
SCE_KERNEL_ERROR_DRIVER_DELETED = 2147615528,
SCE_KERNEL_ERROR_ASYNC_BUSY = 2147615529,
SCE_KERNEL_ERROR_NOASYNC = 2147615530,
SCE_KERNEL_ERROR_REGDEV = 2147615531,
SCE_KERNEL_ERROR_NOCWD = 2147615532,
SCE_KERNEL_ERROR_NAMETOOLONG = 2147615533,
SCE_KERNEL_ERROR_NXIO = 2147615720,
SCE_KERNEL_ERROR_IO = 2147615721,
SCE_KERNEL_ERROR_NOMEM = 2147615722,
SCE_KERNEL_ERROR_STDIO_NOT_OPENED = 2147615723,
SCE_KERNEL_ERROR_CACHE_ALIGNMENT = 2147615820,
SCE_KERNEL_ERROR_ERRORMAX = 2147615821,
}
extern "C" {
pub fn sceKernelStdin() -> SceUID;
}
extern "C" {
pub fn sceKernelStdout() -> SceUID;
}
extern "C" {
pub fn sceKernelStderr() -> SceUID;
}
extern "C" {
#[link_name = "PspInterruptNames"]
pub static mut PspInterruptNames:
[*const ::std::os::raw::c_char; 67usize];
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspInterrupts {
PSP_GPIO_INT = 4,
PSP_ATA_INT = 5,
PSP_UMD_INT = 6,
PSP_MSCM0_INT = 7,
PSP_WLAN_INT = 8,
PSP_AUDIO_INT = 10,
PSP_I2C_INT = 12,
PSP_SIRCS_INT = 14,
PSP_SYSTIMER0_INT = 15,
PSP_SYSTIMER1_INT = 16,
PSP_SYSTIMER2_INT = 17,
PSP_SYSTIMER3_INT = 18,
PSP_THREAD0_INT = 19,
PSP_NAND_INT = 20,
PSP_DMACPLUS_INT = 21,
PSP_DMA0_INT = 22,
PSP_DMA1_INT = 23,
PSP_MEMLMD_INT = 24,
PSP_GE_INT = 25,
PSP_VBLANK_INT = 30,
PSP_MECODEC_INT = 31,
PSP_HPREMOTE_INT = 36,
PSP_MSCM1_INT = 60,
PSP_MSCM2_INT = 61,
PSP_THREAD1_INT = 65,
PSP_INTERRUPT_INT = 66,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspSubInterrupts {
PSP_GPIO_SUBINT = 4,
PSP_ATA_SUBINT = 5,
PSP_UMD_SUBINT = 6,
PSP_DMACPLUS_SUBINT = 21,
PSP_GE_SUBINT = 25,
PSP_DISPLAY_SUBINT = 30,
}
extern "C" {
pub fn sceKernelCpuSuspendIntr() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sceKernelCpuResumeIntr(flags: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceKernelCpuResumeIntrWithSync(flags: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceKernelIsCpuIntrSuspended(flags: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelIsCpuIntrEnable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelRegisterSubIntrHandler(intno: ::std::os::raw::c_int,
no: ::std::os::raw::c_int,
handler:
*mut ::std::os::raw::c_void,
arg: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReleaseSubIntrHandler(intno: ::std::os::raw::c_int,
no: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelEnableSubIntr(intno: ::std::os::raw::c_int,
no: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDisableSubIntr(intno: ::std::os::raw::c_int,
no: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct tag_IntrHandlerOptionParam {
pub size: ::std::os::raw::c_int,
pub entry: u32,
pub common: u32,
pub gp: u32,
pub intr_code: u16,
pub sub_count: u16,
pub intr_level: u16,
pub enabled: u16,
pub calls: u32,
pub field_1C: u32,
pub total_clock_lo: u32,
pub total_clock_hi: u32,
pub min_clock_lo: u32,
pub min_clock_hi: u32,
pub max_clock_lo: u32,
pub max_clock_hi: u32,
}
#[test]
fn bindgen_test_layout_tag_IntrHandlerOptionParam() {
assert_eq!(::std::mem::size_of::<tag_IntrHandlerOptionParam>() , 56usize ,
concat ! (
"Size of: " , stringify ! ( tag_IntrHandlerOptionParam ) ));
assert_eq! (::std::mem::align_of::<tag_IntrHandlerOptionParam>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( tag_IntrHandlerOptionParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . size as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . entry as
* const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( entry )
));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . common
as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( common )
));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . gp as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( gp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
intr_code as * const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( intr_code
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
sub_count as * const _ as usize } , 18usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( sub_count
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
intr_level as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( intr_level
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . enabled
as * const _ as usize } , 22usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( enabled )
));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . calls as
* const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( calls )
));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) . field_1C
as * const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! ( field_1C )
));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
total_clock_lo as * const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! (
total_clock_lo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
total_clock_hi as * const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! (
total_clock_hi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
min_clock_lo as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! (
min_clock_lo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
min_clock_hi as * const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! (
min_clock_hi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
max_clock_lo as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! (
max_clock_lo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const tag_IntrHandlerOptionParam ) ) .
max_clock_hi as * const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! (
tag_IntrHandlerOptionParam ) , "::" , stringify ! (
max_clock_hi ) ));
}
impl Clone for tag_IntrHandlerOptionParam {
fn clone(&self) -> Self { *self }
}
pub type PspIntrHandlerOptionParam = tag_IntrHandlerOptionParam;
extern "C" {
pub fn QueryIntrHandlerInfo(intr_code: SceUID, sub_intr_code: SceUID,
data: *mut PspIntrHandlerOptionParam)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspIoDrv {
pub name: *const ::std::os::raw::c_char,
pub dev_type: u32,
pub unk2: u32,
pub name2: *const ::std::os::raw::c_char,
pub funcs: *mut PspIoDrvFuncs,
}
#[test]
fn bindgen_test_layout_PspIoDrv() {
assert_eq!(::std::mem::size_of::<PspIoDrv>() , 32usize , concat ! (
"Size of: " , stringify ! ( PspIoDrv ) ));
assert_eq! (::std::mem::align_of::<PspIoDrv>() , 8usize , concat ! (
"Alignment of " , stringify ! ( PspIoDrv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrv ) ) . name as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrv ) , "::" ,
stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrv ) ) . dev_type as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrv ) , "::" ,
stringify ! ( dev_type ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrv ) ) . unk2 as * const _ as usize
} , 12usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrv ) , "::" ,
stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrv ) ) . name2 as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrv ) , "::" ,
stringify ! ( name2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrv ) ) . funcs as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrv ) , "::" ,
stringify ! ( funcs ) ));
}
impl Clone for PspIoDrv {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspIoDrvArg {
pub drv: *mut PspIoDrv,
pub arg: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_PspIoDrvArg() {
assert_eq!(::std::mem::size_of::<PspIoDrvArg>() , 16usize , concat ! (
"Size of: " , stringify ! ( PspIoDrvArg ) ));
assert_eq! (::std::mem::align_of::<PspIoDrvArg>() , 8usize , concat ! (
"Alignment of " , stringify ! ( PspIoDrvArg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvArg ) ) . drv as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvArg ) , "::" ,
stringify ! ( drv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvArg ) ) . arg as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvArg ) , "::" ,
stringify ! ( arg ) ));
}
impl Clone for PspIoDrvArg {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspIoDrvFileArg {
pub unk1: u32,
pub fs_num: u32,
pub drv: *mut PspIoDrvArg,
pub unk2: u32,
pub arg: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_PspIoDrvFileArg() {
assert_eq!(::std::mem::size_of::<PspIoDrvFileArg>() , 32usize , concat ! (
"Size of: " , stringify ! ( PspIoDrvFileArg ) ));
assert_eq! (::std::mem::align_of::<PspIoDrvFileArg>() , 8usize , concat !
( "Alignment of " , stringify ! ( PspIoDrvFileArg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFileArg ) ) . unk1 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFileArg ) ,
"::" , stringify ! ( unk1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFileArg ) ) . fs_num as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFileArg ) ,
"::" , stringify ! ( fs_num ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFileArg ) ) . drv as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFileArg ) ,
"::" , stringify ! ( drv ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFileArg ) ) . unk2 as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFileArg ) ,
"::" , stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFileArg ) ) . arg as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFileArg ) ,
"::" , stringify ! ( arg ) ));
}
impl Clone for PspIoDrvFileArg {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspIoDrvFuncs {
pub IoInit: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvArg)
-> ::std::os::raw::c_int>,
pub IoExit: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvArg)
-> ::std::os::raw::c_int>,
pub IoOpen: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
file:
*mut ::std::os::raw::c_char,
flags:
::std::os::raw::c_int,
mode: SceMode)
-> ::std::os::raw::c_int>,
pub IoClose: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg)
-> ::std::os::raw::c_int>,
pub IoRead: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
data:
*mut ::std::os::raw::c_char,
len:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub IoWrite: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
data:
*const ::std::os::raw::c_char,
len:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub IoLseek: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
ofs: SceOff,
whence:
::std::os::raw::c_int)
-> SceOff>,
pub IoIoctl: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
cmd:
::std::os::raw::c_uint,
indata:
*mut ::std::os::raw::c_void,
inlen:
::std::os::raw::c_int,
outdata:
*mut ::std::os::raw::c_void,
outlen:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub IoRemove: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
name:
*const ::std::os::raw::c_char)
-> ::std::os::raw::c_int>,
pub IoMkdir: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
name:
*const ::std::os::raw::c_char,
mode: SceMode)
-> ::std::os::raw::c_int>,
pub IoRmdir: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
name:
*const ::std::os::raw::c_char)
-> ::std::os::raw::c_int>,
pub IoDopen: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
dirname:
*const ::std::os::raw::c_char)
-> ::std::os::raw::c_int>,
pub IoDclose: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg)
-> ::std::os::raw::c_int>,
pub IoDread: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
dir:
*mut SceIoDirent)
-> ::std::os::raw::c_int>,
pub IoGetstat: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
file:
*const ::std::os::raw::c_char,
stat:
*mut SceIoStat)
-> ::std::os::raw::c_int>,
pub IoChstat: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
file:
*const ::std::os::raw::c_char,
stat:
*mut SceIoStat,
bits:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub IoRename: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
oldname:
*const ::std::os::raw::c_char,
newname:
*const ::std::os::raw::c_char)
-> ::std::os::raw::c_int>,
pub IoChdir: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
dir:
*const ::std::os::raw::c_char)
-> ::std::os::raw::c_int>,
pub IoMount: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg)
-> ::std::os::raw::c_int>,
pub IoUmount: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg)
-> ::std::os::raw::c_int>,
pub IoDevctl: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg,
devname:
*const ::std::os::raw::c_char,
cmd:
::std::os::raw::c_uint,
indata:
*mut ::std::os::raw::c_void,
inlen:
::std::os::raw::c_int,
outdata:
*mut ::std::os::raw::c_void,
outlen:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub IoUnk21: ::std::option::Option<unsafe extern "C" fn(arg:
*mut PspIoDrvFileArg)
-> ::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout_PspIoDrvFuncs() {
assert_eq!(::std::mem::size_of::<PspIoDrvFuncs>() , 176usize , concat ! (
"Size of: " , stringify ! ( PspIoDrvFuncs ) ));
assert_eq! (::std::mem::align_of::<PspIoDrvFuncs>() , 8usize , concat ! (
"Alignment of " , stringify ! ( PspIoDrvFuncs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoInit as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoInit ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoExit as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoExit ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoOpen as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoOpen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoClose as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoClose ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoRead as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoRead ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoWrite as * const _
as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoWrite ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoLseek as * const _
as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoLseek ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoIoctl as * const _
as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoIoctl ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoRemove as * const _
as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoRemove ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoMkdir as * const _
as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoMkdir ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoRmdir as * const _
as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoRmdir ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoDopen as * const _
as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoDopen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoDclose as * const _
as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoDclose ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoDread as * const _
as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoDread ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoGetstat as * const
_ as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoGetstat ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoChstat as * const _
as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoChstat ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoRename as * const _
as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoRename ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoChdir as * const _
as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoChdir ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoMount as * const _
as usize } , 144usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoMount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoUmount as * const _
as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoUmount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoDevctl as * const _
as usize } , 160usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoDevctl ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspIoDrvFuncs ) ) . IoUnk21 as * const _
as usize } , 168usize , concat ! (
"Alignment of field: " , stringify ! ( PspIoDrvFuncs ) , "::"
, stringify ! ( IoUnk21 ) ));
}
impl Clone for PspIoDrvFuncs {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceIoAddDrv(drv: *mut PspIoDrv) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoDelDrv(drv_name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoReopen(file: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int, mode: SceMode,
fd: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoGetThreadCwd(uid: SceUID, dir: *mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIoChangeThreadCwd(uid: SceUID, dir: *mut ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct SceModule {
pub next: *mut SceModule,
pub attribute: ::std::os::raw::c_ushort,
pub version: [::std::os::raw::c_uchar; 2usize],
pub modname: [::std::os::raw::c_char; 27usize],
pub terminal: ::std::os::raw::c_char,
pub unknown1: ::std::os::raw::c_uint,
pub unknown2: ::std::os::raw::c_uint,
pub modid: SceUID,
pub unknown3: [::std::os::raw::c_uint; 4usize],
pub ent_top: *mut ::std::os::raw::c_void,
pub ent_size: ::std::os::raw::c_uint,
pub stub_top: *mut ::std::os::raw::c_void,
pub stub_size: ::std::os::raw::c_uint,
pub unknown4: [::std::os::raw::c_uint; 4usize],
pub entry_addr: ::std::os::raw::c_uint,
pub gp_value: ::std::os::raw::c_uint,
pub text_addr: ::std::os::raw::c_uint,
pub text_size: ::std::os::raw::c_uint,
pub data_size: ::std::os::raw::c_uint,
pub bss_size: ::std::os::raw::c_uint,
pub nsegment: ::std::os::raw::c_uint,
pub segmentaddr: [::std::os::raw::c_uint; 4usize],
pub segmentsize: [::std::os::raw::c_uint; 4usize],
}
#[test]
fn bindgen_test_layout_SceModule() {
assert_eq!(::std::mem::size_of::<SceModule>() , 168usize , concat ! (
"Size of: " , stringify ! ( SceModule ) ));
assert_eq! (::std::mem::align_of::<SceModule>() , 1usize , concat ! (
"Alignment of " , stringify ! ( SceModule ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . next as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . attribute as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( attribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . version as * const _ as
usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( version ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . modname as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( modname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . terminal as * const _ as
usize } , 39usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( terminal ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . unknown1 as * const _ as
usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( unknown1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . unknown2 as * const _ as
usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( unknown2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . modid as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( modid ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . unknown3 as * const _ as
usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( unknown3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . ent_top as * const _ as
usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( ent_top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . ent_size as * const _ as
usize } , 76usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( ent_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . stub_top as * const _ as
usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( stub_top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . stub_size as * const _ as
usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( stub_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . unknown4 as * const _ as
usize } , 92usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( unknown4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . entry_addr as * const _
as usize } , 108usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( entry_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . gp_value as * const _ as
usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( gp_value ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . text_addr as * const _ as
usize } , 116usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( text_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . text_size as * const _ as
usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( text_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . data_size as * const _ as
usize } , 124usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( data_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . bss_size as * const _ as
usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( bss_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . nsegment as * const _ as
usize } , 132usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( nsegment ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . segmentaddr as * const _
as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( segmentaddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceModule ) ) . segmentsize as * const _
as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( SceModule ) , "::" ,
stringify ! ( segmentsize ) ));
}
impl Clone for SceModule {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceLibraryEntryTable {
pub libname: *const ::std::os::raw::c_char,
pub version: [::std::os::raw::c_uchar; 2usize],
pub attribute: ::std::os::raw::c_ushort,
pub len: ::std::os::raw::c_uchar,
pub vstubcount: ::std::os::raw::c_uchar,
pub stubcount: ::std::os::raw::c_ushort,
pub entrytable: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_SceLibraryEntryTable() {
assert_eq!(::std::mem::size_of::<SceLibraryEntryTable>() , 24usize ,
concat ! ( "Size of: " , stringify ! ( SceLibraryEntryTable )
));
assert_eq! (::std::mem::align_of::<SceLibraryEntryTable>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceLibraryEntryTable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . libname as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( libname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . version as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( version ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . attribute as *
const _ as usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( attribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . len as * const
_ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( len ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . vstubcount as
* const _ as usize } , 13usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( vstubcount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . stubcount as *
const _ as usize } , 14usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( stubcount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryEntryTable ) ) . entrytable as
* const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryEntryTable )
, "::" , stringify ! ( entrytable ) ));
}
impl Clone for SceLibraryEntryTable {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceLibraryStubTable {
pub libname: *const ::std::os::raw::c_char,
pub version: [::std::os::raw::c_uchar; 2usize],
pub attribute: ::std::os::raw::c_ushort,
pub len: ::std::os::raw::c_uchar,
pub vstubcount: ::std::os::raw::c_uchar,
pub stubcount: ::std::os::raw::c_ushort,
pub nidtable: *mut ::std::os::raw::c_uint,
pub stubtable: *mut ::std::os::raw::c_void,
pub vstubtable: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_SceLibraryStubTable() {
assert_eq!(::std::mem::size_of::<SceLibraryStubTable>() , 40usize , concat
! ( "Size of: " , stringify ! ( SceLibraryStubTable ) ));
assert_eq! (::std::mem::align_of::<SceLibraryStubTable>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceLibraryStubTable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . libname as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( libname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . version as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( version ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . attribute as *
const _ as usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( attribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . len as * const
_ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( len ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . vstubcount as *
const _ as usize } , 13usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( vstubcount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . stubcount as *
const _ as usize } , 14usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( stubcount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . nidtable as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( nidtable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . stubtable as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( stubtable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceLibraryStubTable ) ) . vstubtable as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( SceLibraryStubTable ) ,
"::" , stringify ! ( vstubtable ) ));
}
impl Clone for SceLibraryStubTable {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelFindModuleByName(modname: *const ::std::os::raw::c_char)
-> *mut SceModule;
}
extern "C" {
pub fn sceKernelFindModuleByAddress(addr: ::std::os::raw::c_uint)
-> *mut SceModule;
}
extern "C" {
pub fn sceKernelFindModuleByUID(modid: SceUID) -> *mut SceModule;
}
extern "C" {
pub fn sceKernelModuleCount() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelIcacheClearAll();
}
extern "C" {
pub fn sceKernelStdoutReopen(file: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int, mode: SceMode)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelStderrReopen(file: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int, mode: SceMode)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn fdprintf(fd: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysregMeResetEnable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysregMeResetDisable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysregVmeResetEnable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysregVmeResetDisable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysregMeBusClockEnable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysregMeBusClockDisable() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconGetTachyonVersion(version: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
pub type PspDebugPutChar =
::std::option::Option<unsafe extern "C" fn(args:
*mut ::std::os::raw::c_ushort,
ch: ::std::os::raw::c_uint)>;
extern "C" {
pub fn sceKernelRegisterDebugPutchar(func: PspDebugPutChar);
}
extern "C" {
pub fn sceKernelGetDebugPutchar() -> PspDebugPutChar;
}
extern "C" {
pub fn Kprintf(format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn sceKernelRegisterIntrHandler(intno: ::std::os::raw::c_int,
no: ::std::os::raw::c_int,
handler: *mut ::std::os::raw::c_void,
arg1: *mut ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReleaseIntrHandler(intno: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelEnableIntr(intno: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDisableIntr(intno: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelIsIntrContext() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetModuleList(readbufsize: ::std::os::raw::c_int,
readbuf: *mut SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLoadModuleBuffer(buf: *mut ::std::os::raw::c_void,
bufsize: SceSize,
flags: ::std::os::raw::c_int,
option: *mut SceKernelLMOption)
-> SceUID;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspBufferInfo {
pub pucWritePositionFirstBuf: *mut u8,
pub uiWritableByteFirstBuf: u32,
pub uiMinWriteByteFirstBuf: u32,
pub uiReadPositionFirstBuf: u32,
pub pucWritePositionSecondBuf: *mut u8,
pub uiWritableByteSecondBuf: u32,
pub uiMinWriteByteSecondBuf: u32,
pub uiReadPositionSecondBuf: u32,
}
#[test]
fn bindgen_test_layout_PspBufferInfo() {
assert_eq!(::std::mem::size_of::<PspBufferInfo>() , 48usize , concat ! (
"Size of: " , stringify ! ( PspBufferInfo ) ));
assert_eq! (::std::mem::align_of::<PspBufferInfo>() , 8usize , concat ! (
"Alignment of " , stringify ! ( PspBufferInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
pucWritePositionFirstBuf as * const _ as usize } , 0usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( pucWritePositionFirstBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
uiWritableByteFirstBuf as * const _ as usize } , 8usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( uiWritableByteFirstBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
uiMinWriteByteFirstBuf as * const _ as usize } , 12usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( uiMinWriteByteFirstBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
uiReadPositionFirstBuf as * const _ as usize } , 16usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( uiReadPositionFirstBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
pucWritePositionSecondBuf as * const _ as usize } , 24usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( pucWritePositionSecondBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
uiWritableByteSecondBuf as * const _ as usize } , 32usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( uiWritableByteSecondBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
uiMinWriteByteSecondBuf as * const _ as usize } , 36usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( uiMinWriteByteSecondBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspBufferInfo ) ) .
uiReadPositionSecondBuf as * const _ as usize } , 40usize ,
concat ! (
"Alignment of field: " , stringify ! ( PspBufferInfo ) , "::"
, stringify ! ( uiReadPositionSecondBuf ) ));
}
impl Clone for PspBufferInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceAtracGetAtracID(uiCodecType: uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracSetDataAndGetID(buf: *mut ::std::os::raw::c_void,
bufsize: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracDecodeData(atracID: ::std::os::raw::c_int,
outSamples: *mut u16,
outN: *mut ::std::os::raw::c_int,
outEnd: *mut ::std::os::raw::c_int,
outRemainFrame: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetRemainFrame(atracID: ::std::os::raw::c_int,
outRemainFrame: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetStreamDataInfo(atracID: ::std::os::raw::c_int,
writePointer: *mut *mut u8,
availableBytes: *mut u32,
readOffset: *mut u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracAddStreamData(atracID: ::std::os::raw::c_int,
bytesToAdd: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetBitrate(atracID: ::std::os::raw::c_int,
outBitrate: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracSetLoopNum(atracID: ::std::os::raw::c_int,
nloops: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracReleaseAtracID(atracID: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetNextSample(atracID: ::std::os::raw::c_int,
outN: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetMaxSample(atracID: ::std::os::raw::c_int,
outMax: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetBufferInfoForReseting(atracID: ::std::os::raw::c_int,
uiSample: u32,
pBufferInfo: *mut PspBufferInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetChannel(atracID: ::std::os::raw::c_int,
puiChannel: *mut u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetInternalErrorInfo(atracID: ::std::os::raw::c_int,
piResult: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetLoopStatus(atracID: ::std::os::raw::c_int,
piLoopNum: *mut ::std::os::raw::c_int,
puiLoopStatus: *mut u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetNextDecodePosition(atracID: ::std::os::raw::c_int,
puiSamplePosition: *mut u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetSecondBufferInfo(atracID: ::std::os::raw::c_int,
puiPosition: *mut u32,
puiDataByte: *mut u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracGetSoundSample(atracID: ::std::os::raw::c_int,
piEndSample: *mut ::std::os::raw::c_int,
piLoopStartSample:
*mut ::std::os::raw::c_int,
piLoopEndSample: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracResetPlayPosition(atracID: ::std::os::raw::c_int,
uiSample: u32, uiWriteByteFirstBuf: u32,
uiWriteByteSecondBuf: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracSetData(atracID: ::std::os::raw::c_int,
pucBufferAddr: *mut u8, uiBufferByte: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracSetHalfwayBuffer(atracID: ::std::os::raw::c_int,
pucBufferAddr: *mut u8, uiReadByte: u32,
uiBufferByte: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracSetHalfwayBufferAndGetID(pucBufferAddr: *mut u8,
uiReadByte: u32,
uiBufferByte: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAtracSetSecondBuffer(atracID: ::std::os::raw::c_int,
pucSecondBufferAddr: *mut u8,
uiSecondBufferByte: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudiocodecCheckNeedMem(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudiocodecInit(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudiocodecDecode(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudiocodecGetEDRAM(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudiocodecReleaseEDRAM(Buffer: *mut ::std::os::raw::c_ulong)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspAudioFormats {
PSP_AUDIO_FORMAT_STEREO = 0,
PSP_AUDIO_FORMAT_MONO = 16,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspAudioInputParams {
pub unknown1: ::std::os::raw::c_int,
pub gain: ::std::os::raw::c_int,
pub unknown2: ::std::os::raw::c_int,
pub unknown3: ::std::os::raw::c_int,
pub unknown4: ::std::os::raw::c_int,
pub unknown5: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pspAudioInputParams() {
assert_eq!(::std::mem::size_of::<pspAudioInputParams>() , 24usize , concat
! ( "Size of: " , stringify ! ( pspAudioInputParams ) ));
assert_eq! (::std::mem::align_of::<pspAudioInputParams>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( pspAudioInputParams ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAudioInputParams ) ) . unknown1 as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspAudioInputParams ) ,
"::" , stringify ! ( unknown1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAudioInputParams ) ) . gain as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( pspAudioInputParams ) ,
"::" , stringify ! ( gain ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAudioInputParams ) ) . unknown2 as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pspAudioInputParams ) ,
"::" , stringify ! ( unknown2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAudioInputParams ) ) . unknown3 as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( pspAudioInputParams ) ,
"::" , stringify ! ( unknown3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAudioInputParams ) ) . unknown4 as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( pspAudioInputParams ) ,
"::" , stringify ! ( unknown4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAudioInputParams ) ) . unknown5 as *
const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( pspAudioInputParams ) ,
"::" , stringify ! ( unknown5 ) ));
}
impl Clone for pspAudioInputParams {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceAudioChReserve(channel: ::std::os::raw::c_int,
samplecount: ::std::os::raw::c_int,
format: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioChRelease(channel: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutput(channel: ::std::os::raw::c_int,
vol: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutputBlocking(channel: ::std::os::raw::c_int,
vol: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutputPanned(channel: ::std::os::raw::c_int,
leftvol: ::std::os::raw::c_int,
rightvol: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutputPannedBlocking(channel: ::std::os::raw::c_int,
leftvol: ::std::os::raw::c_int,
rightvol: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioGetChannelRestLen(channel: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioGetChannelRestLength(channel: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioSetChannelDataLen(channel: ::std::os::raw::c_int,
samplecount: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioChangeChannelConfig(channel: ::std::os::raw::c_int,
format: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioChangeChannelVolume(channel: ::std::os::raw::c_int,
leftvol: ::std::os::raw::c_int,
rightvol: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutput2Reserve(samplecount: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutput2Release() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutput2ChangeLength(samplecount: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutput2OutputBlocking(vol: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioOutput2GetRestSample() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioSRCChReserve(samplecount: ::std::os::raw::c_int,
freq: ::std::os::raw::c_int,
channels: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioSRCChRelease() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioSRCOutputBlocking(vol: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioInputInit(unknown1: ::std::os::raw::c_int,
gain: ::std::os::raw::c_int,
unknown2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioInputInitEx(params: *mut pspAudioInputParams)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioInputBlocking(samplecount: ::std::os::raw::c_int,
freq: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioInput(samplecount: ::std::os::raw::c_int,
freq: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioGetInputLength() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioWaitInputEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioPollInputEnd() -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspAudioFrequencies {
PSP_AUDIO_FREQ_44K = 44100,
PSP_AUDIO_FREQ_48K = 48000,
}
extern "C" {
pub fn sceAudioSetFrequency(frequency: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
pub type pspAudioCallback_t =
::std::option::Option<unsafe extern "C" fn(buf:
*mut ::std::os::raw::c_void,
reqn: ::std::os::raw::c_uint,
pdata:
*mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct psp_audio_channelinfo {
pub threadhandle: ::std::os::raw::c_int,
pub handle: ::std::os::raw::c_int,
pub volumeleft: ::std::os::raw::c_int,
pub volumeright: ::std::os::raw::c_int,
pub callback: pspAudioCallback_t,
pub pdata: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_psp_audio_channelinfo() {
assert_eq!(::std::mem::size_of::<psp_audio_channelinfo>() , 32usize ,
concat ! ( "Size of: " , stringify ! ( psp_audio_channelinfo )
));
assert_eq! (::std::mem::align_of::<psp_audio_channelinfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( psp_audio_channelinfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const psp_audio_channelinfo ) ) . threadhandle
as * const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( psp_audio_channelinfo )
, "::" , stringify ! ( threadhandle ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const psp_audio_channelinfo ) ) . handle as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( psp_audio_channelinfo )
, "::" , stringify ! ( handle ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const psp_audio_channelinfo ) ) . volumeleft as
* const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( psp_audio_channelinfo )
, "::" , stringify ! ( volumeleft ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const psp_audio_channelinfo ) ) . volumeright
as * const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( psp_audio_channelinfo )
, "::" , stringify ! ( volumeright ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const psp_audio_channelinfo ) ) . callback as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( psp_audio_channelinfo )
, "::" , stringify ! ( callback ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const psp_audio_channelinfo ) ) . pdata as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( psp_audio_channelinfo )
, "::" , stringify ! ( pdata ) ));
}
impl Clone for psp_audio_channelinfo {
fn clone(&self) -> Self { *self }
}
pub type pspAudioThreadfunc_t =
::std::option::Option<unsafe extern "C" fn(args: ::std::os::raw::c_int,
argp:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
extern "C" {
pub fn pspAudioInit() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspAudioEndPre();
}
extern "C" {
pub fn pspAudioEnd();
}
extern "C" {
pub fn pspAudioSetVolume(channel: ::std::os::raw::c_int,
left: ::std::os::raw::c_int,
right: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspAudioChannelThreadCallback(channel: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void,
reqn: ::std::os::raw::c_uint);
}
extern "C" {
pub fn pspAudioSetChannelCallback(channel: ::std::os::raw::c_int,
callback: pspAudioCallback_t,
pdata: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn pspAudioOutBlocking(channel: ::std::os::raw::c_uint,
vol1: ::std::os::raw::c_uint,
vol2: ::std::os::raw::c_uint,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioRoutingSetMode(mode: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceAudioRoutingGetMode() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _pspChnnlsvContext1 {
pub mode: ::std::os::raw::c_int,
pub buffer1: [::std::os::raw::c_char; 16usize],
pub buffer2: [::std::os::raw::c_char; 16usize],
pub unknown: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__pspChnnlsvContext1() {
assert_eq!(::std::mem::size_of::<_pspChnnlsvContext1>() , 40usize , concat
! ( "Size of: " , stringify ! ( _pspChnnlsvContext1 ) ));
assert_eq! (::std::mem::align_of::<_pspChnnlsvContext1>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( _pspChnnlsvContext1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspChnnlsvContext1 ) ) . mode as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _pspChnnlsvContext1 ) ,
"::" , stringify ! ( mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspChnnlsvContext1 ) ) . buffer1 as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _pspChnnlsvContext1 ) ,
"::" , stringify ! ( buffer1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspChnnlsvContext1 ) ) . buffer2 as *
const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( _pspChnnlsvContext1 ) ,
"::" , stringify ! ( buffer2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspChnnlsvContext1 ) ) . unknown as *
const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( _pspChnnlsvContext1 ) ,
"::" , stringify ! ( unknown ) ));
}
impl Clone for _pspChnnlsvContext1 {
fn clone(&self) -> Self { *self }
}
pub type pspChnnlsvContext1 = _pspChnnlsvContext1;
#[repr(C)]
#[derive(Copy)]
pub struct _pspChnnlsvContext2 {
pub unknown: [::std::os::raw::c_char; 256usize],
}
#[test]
fn bindgen_test_layout__pspChnnlsvContext2() {
assert_eq!(::std::mem::size_of::<_pspChnnlsvContext2>() , 256usize ,
concat ! ( "Size of: " , stringify ! ( _pspChnnlsvContext2 )
));
assert_eq! (::std::mem::align_of::<_pspChnnlsvContext2>() , 1usize ,
concat ! (
"Alignment of " , stringify ! ( _pspChnnlsvContext2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspChnnlsvContext2 ) ) . unknown as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _pspChnnlsvContext2 ) ,
"::" , stringify ! ( unknown ) ));
}
impl Clone for _pspChnnlsvContext2 {
fn clone(&self) -> Self { *self }
}
pub type pspChnnlsvContext2 = _pspChnnlsvContext2;
extern "C" {
pub fn sceChnnlsv_E7833020(ctx: *mut pspChnnlsvContext1,
mode: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceChnnlsv_F21A1FCA(ctx: *mut pspChnnlsvContext1,
data: *mut ::std::os::raw::c_uchar,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceChnnlsv_C4C494F8(ctx: *mut pspChnnlsvContext1,
hash: *mut ::std::os::raw::c_uchar,
cryptkey: *mut ::std::os::raw::c_uchar)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceChnnlsv_ABFDFC8B(ctx: *mut pspChnnlsvContext2,
mode1: ::std::os::raw::c_int,
mode2: ::std::os::raw::c_int,
hashkey: *mut ::std::os::raw::c_uchar,
cipherkey: *mut ::std::os::raw::c_uchar)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceChnnlsv_850A7FA1(ctx: *mut pspChnnlsvContext2,
data: *mut ::std::os::raw::c_uchar,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceChnnlsv_21BE78B4(ctx: *mut pspChnnlsvContext2)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspCtrlButtons {
PSP_CTRL_SELECT = 1,
PSP_CTRL_START = 8,
PSP_CTRL_UP = 16,
PSP_CTRL_RIGHT = 32,
PSP_CTRL_DOWN = 64,
PSP_CTRL_LEFT = 128,
PSP_CTRL_LTRIGGER = 256,
PSP_CTRL_RTRIGGER = 512,
PSP_CTRL_TRIANGLE = 4096,
PSP_CTRL_CIRCLE = 8192,
PSP_CTRL_CROSS = 16384,
PSP_CTRL_SQUARE = 32768,
PSP_CTRL_HOME = 65536,
PSP_CTRL_HOLD = 131072,
PSP_CTRL_NOTE = 8388608,
PSP_CTRL_SCREEN = 4194304,
PSP_CTRL_VOLUP = 1048576,
PSP_CTRL_VOLDOWN = 2097152,
PSP_CTRL_WLAN_UP = 262144,
PSP_CTRL_REMOTE = 524288,
PSP_CTRL_DISC = 16777216,
PSP_CTRL_MS = 33554432,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspCtrlMode { PSP_CTRL_MODE_DIGITAL = 0, PSP_CTRL_MODE_ANALOG = 1, }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceCtrlData {
pub TimeStamp: ::std::os::raw::c_uint,
pub Buttons: ::std::os::raw::c_uint,
pub Lx: ::std::os::raw::c_uchar,
pub Ly: ::std::os::raw::c_uchar,
pub Rsrv: [::std::os::raw::c_uchar; 6usize],
}
#[test]
fn bindgen_test_layout_SceCtrlData() {
assert_eq!(::std::mem::size_of::<SceCtrlData>() , 16usize , concat ! (
"Size of: " , stringify ! ( SceCtrlData ) ));
assert_eq! (::std::mem::align_of::<SceCtrlData>() , 4usize , concat ! (
"Alignment of " , stringify ! ( SceCtrlData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlData ) ) . TimeStamp as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlData ) , "::" ,
stringify ! ( TimeStamp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlData ) ) . Buttons as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlData ) , "::" ,
stringify ! ( Buttons ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlData ) ) . Lx as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlData ) , "::" ,
stringify ! ( Lx ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlData ) ) . Ly as * const _ as
usize } , 9usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlData ) , "::" ,
stringify ! ( Ly ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlData ) ) . Rsrv as * const _ as
usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlData ) , "::" ,
stringify ! ( Rsrv ) ));
}
impl Clone for SceCtrlData {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceCtrlLatch {
pub uiMake: ::std::os::raw::c_uint,
pub uiBreak: ::std::os::raw::c_uint,
pub uiPress: ::std::os::raw::c_uint,
pub uiRelease: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_SceCtrlLatch() {
assert_eq!(::std::mem::size_of::<SceCtrlLatch>() , 16usize , concat ! (
"Size of: " , stringify ! ( SceCtrlLatch ) ));
assert_eq! (::std::mem::align_of::<SceCtrlLatch>() , 4usize , concat ! (
"Alignment of " , stringify ! ( SceCtrlLatch ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlLatch ) ) . uiMake as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlLatch ) , "::" ,
stringify ! ( uiMake ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlLatch ) ) . uiBreak as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlLatch ) , "::" ,
stringify ! ( uiBreak ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlLatch ) ) . uiPress as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlLatch ) , "::" ,
stringify ! ( uiPress ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceCtrlLatch ) ) . uiRelease as * const _
as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceCtrlLatch ) , "::" ,
stringify ! ( uiRelease ) ));
}
impl Clone for SceCtrlLatch {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceCtrlSetSamplingCycle(cycle: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlGetSamplingCycle(pcycle: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlSetSamplingMode(mode: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlGetSamplingMode(pmode: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlPeekBufferPositive(pad_data: *mut SceCtrlData,
count: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlPeekBufferNegative(pad_data: *mut SceCtrlData,
count: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlReadBufferPositive(pad_data: *mut SceCtrlData,
count: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlReadBufferNegative(pad_data: *mut SceCtrlData,
count: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlPeekLatch(latch_data: *mut SceCtrlLatch)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlReadLatch(latch_data: *mut SceCtrlLatch)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlSetIdleCancelThreshold(idlereset: ::std::os::raw::c_int,
idleback: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrlGetIdleCancelThreshold(idlerest: *mut ::std::os::raw::c_int,
idleback: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrl_driver_7CA723DC(mask: ::std::os::raw::c_uint,
type_: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceCtrl_driver_5E77BC8A(mask: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceCtrl_driver_5C56C779(no: ::std::os::raw::c_int,
mask: ::std::os::raw::c_uint,
cb:
::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int,
arg2:
::std::os::raw::c_int,
arg3:
*mut ::std::os::raw::c_void)>,
arg: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
pub const PspDebugKbSettings_PSP_DEBUG_KB_OFFSET_X: PspDebugKbSettings =
PspDebugKbSettings::PSP_DEBUG_KB_BOX_X;
pub const PspDebugKbSettings_PSP_DEBUG_KB_NUM_ROWS: PspDebugKbSettings =
PspDebugKbSettings::PSP_DEBUG_KB_OFFSET_Y;
pub const PspDebugKbSettings_PSP_DEBUG_KB_COMMAND_ROW: PspDebugKbSettings =
PspDebugKbSettings::PSP_DEBUG_KB_OFFSET_Y;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspDebugKbSettings {
PSP_DEBUG_KB_MAXLEN = 40,
PSP_DEBUG_KB_BOX_X = 6,
PSP_DEBUG_KB_BOX_Y = 8,
PSP_DEBUG_KB_CHAR_COLOUR = 4294967295,
PSP_DEBUG_KB_BACK_COLOUR = 4278190080,
PSP_DEBUG_KB_CHAR_HIGHLIGHT = 4278255360,
PSP_DEBUG_KB_BACK_HIGHLIGHT = 4279242768,
PSP_DEBUG_KB_OFFSET_Y = 4,
PSP_DEBUG_KB_SPACING_X = 3,
PSP_DEBUG_KB_SPACING_Y = 2,
PSP_DEBUG_KB_NUM_CHARS = 13,
PSP_DEBUG_KB_BOX_WIDTH = 51,
PSP_DEBUG_KB_BOX_HEIGHT = 14,
PSP_DEBUG_KB_NUM_COMMANDS = 5,
}
extern "C" {
pub fn pspDebugKbShift(shiftState: *mut ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugKbDrawKey(row: ::std::os::raw::c_int,
col: ::std::os::raw::c_int,
highlight: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspDebugKbDrawString(str: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn pspDebugKbClearBox();
}
extern "C" {
pub fn pspDebugKbDrawBox();
}
extern "C" {
pub fn pspDebugKbInit(str: *mut ::std::os::raw::c_char);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspDisplayPixelFormats {
PSP_DISPLAY_PIXEL_FORMAT_565 = 0,
PSP_DISPLAY_PIXEL_FORMAT_5551 = 1,
PSP_DISPLAY_PIXEL_FORMAT_4444 = 2,
PSP_DISPLAY_PIXEL_FORMAT_8888 = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspDisplaySetBufSync {
PSP_DISPLAY_SETBUF_IMMEDIATE = 0,
PSP_DISPLAY_SETBUF_NEXTFRAME = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspDisplayErrorCodes {
SCE_DISPLAY_ERROR_OK = 0,
SCE_DISPLAY_ERROR_POINTER = 2147483907,
SCE_DISPLAY_ERROR_ARGUMENT = 2147483911,
}
extern "C" {
pub fn sceDisplaySetMode(mode: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayGetMode(pmode: *mut ::std::os::raw::c_int,
pwidth: *mut ::std::os::raw::c_int,
pheight: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplaySetFrameBuf(topaddr: *mut ::std::os::raw::c_void,
bufferwidth: ::std::os::raw::c_int,
pixelformat: ::std::os::raw::c_int,
sync: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayGetFrameBuf(topaddr: *mut *mut ::std::os::raw::c_void,
bufferwidth: *mut ::std::os::raw::c_int,
pixelformat: *mut ::std::os::raw::c_int,
sync: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayGetVcount() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sceDisplayWaitVblankStart() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayWaitVblankStartCB() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayWaitVblank() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayWaitVblankCB() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayGetAccumulatedHcount() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayGetCurrentHcount() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayGetFramePerSec() -> f32;
}
extern "C" {
pub fn sceDisplayIsForeground() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplayIsVblank() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplay_driver_63E22A26(pri: ::std::os::raw::c_int,
topaddr: *mut ::std::os::raw::c_void,
bufferwidth: ::std::os::raw::c_int,
pixelformat: ::std::os::raw::c_int,
sync: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplay_driver_5B5AEFAD(pri: ::std::os::raw::c_int,
topaddr:
*mut *mut ::std::os::raw::c_void,
bufferwidth: *mut ::std::os::raw::c_int,
pixelformat: *mut ::std::os::raw::c_int,
sync: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceDisplaySetBrightness(level: ::std::os::raw::c_int,
unk1: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceDisplayGetBrightness(level: *mut ::std::os::raw::c_int,
unk1: *mut ::std::os::raw::c_int);
}
extern "C" {
pub fn sceKernelRegisterDefaultExceptionHandler(func:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelRegisterExceptionHandler(exno: ::std::os::raw::c_int,
func:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelRegisterPriorityExceptionHandler(exno:
::std::os::raw::c_int,
priority:
::std::os::raw::c_int,
func:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspFpuRoundMode {
PSP_FPU_RN = 0,
PSP_FPU_RZ = 1,
PSP_FPU_RP = 2,
PSP_FPU_RM = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspFpuExceptions {
PSP_FPU_EXCEPTION_INEXACT = 1,
PSP_FPU_EXCEPTION_UNDERFLOW = 2,
PSP_FPU_EXCEPTION_OVERFLOW = 4,
PSP_FPU_EXCEPTION_DIVBYZERO = 8,
PSP_FPU_EXCEPTION_INVALIDOP = 16,
PSP_FPU_EXCEPTION_UNIMPOP = 32,
PSP_FPU_EXCEPTION_ALL = 63,
}
extern "C" {
pub fn pspFpuGetFCR31() -> u32;
}
extern "C" {
pub fn pspFpuSetFCR31(var: u32);
}
extern "C" {
pub fn pspFpuSetRoundmode(mode: PspFpuRoundMode);
}
extern "C" {
pub fn pspFpuGetRoundmode() -> PspFpuRoundMode;
}
extern "C" {
pub fn pspFpuGetFlags() -> u32;
}
extern "C" {
pub fn pspFpuClearFlags(clear: u32);
}
extern "C" {
pub fn pspFpuGetEnable() -> u32;
}
extern "C" {
pub fn pspFpuSetEnable(enable: u32);
}
extern "C" {
pub fn pspFpuGetCause() -> u32;
}
extern "C" {
pub fn pspFpuClearCause(clear: u32);
}
extern "C" {
pub fn pspFpuGetFS() -> u32;
}
extern "C" {
pub fn pspFpuSetFS(fs: u32);
}
extern "C" {
pub fn pspFpuGetCondbits() -> u32;
}
extern "C" {
pub fn pspFpuClearCondbits(clear: u32);
}
extern "C" {
pub fn pspFpuAbs(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuCeil(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuFloor(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuMax(f1: f32, f2: f32) -> f32;
}
extern "C" {
pub fn pspFpuMin(f1: f32, f2: f32) -> f32;
}
extern "C" {
pub fn pspFpuNeg(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuRound(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuRsqrt(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuSqrt(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuTrunc(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuFmod(fs: f32, fd: f32) -> f32;
}
extern "C" {
pub fn pspFpuFrac(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuReinterpretFloat(ui: u32) -> f32;
}
extern "C" {
pub fn pspFpuReinterpretUint(f: f32) -> u32;
}
extern "C" {
pub fn pspFpuIsEqual(f1: f32, f2: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuSignFloat(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuSignInt(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuPositiveZero() -> f32;
}
extern "C" {
pub fn pspFpuNegativeZero() -> f32;
}
extern "C" {
pub fn pspFpuIsZero(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuIsPositiveZero(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuIsNegativeZero(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuIsDenormal(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuIsZeroOrDenormal(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuPositiveInf() -> f32;
}
extern "C" {
pub fn pspFpuNegativeInf() -> f32;
}
extern "C" {
pub fn pspFpuIsInf(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuPositiveNaN() -> f32;
}
extern "C" {
pub fn pspFpuNegativeNaN() -> f32;
}
extern "C" {
pub fn pspFpuPositiveQNaN() -> f32;
}
extern "C" {
pub fn pspFpuNegativeQNaN() -> f32;
}
extern "C" {
pub fn pspFpuPositiveSNaN(uiSignal: ::std::os::raw::c_uint) -> f32;
}
extern "C" {
pub fn pspFpuNegativeSNaN(uiSignal: ::std::os::raw::c_uint) -> f32;
}
extern "C" {
pub fn pspFpuIsNaN(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuIsInfOrNaN(f: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspFpuNormalizePhase(f: f32) -> f32;
}
extern "C" {
pub fn pspFpuSin(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuCos(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuAtan(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuLog(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuExp(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuAsin(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuAcos(x: f32) -> f32;
}
extern "C" {
pub fn pspFpuFloatToDouble(a: f32) -> f64;
}
extern "C" {
pub fn pspFpuDoubleToFloat(a: f64) -> f32;
}
#[repr(C)]
#[derive(Copy)]
pub struct PspGeContext {
pub context: [::std::os::raw::c_uint; 512usize],
}
#[test]
fn bindgen_test_layout_PspGeContext() {
assert_eq!(::std::mem::size_of::<PspGeContext>() , 2048usize , concat ! (
"Size of: " , stringify ! ( PspGeContext ) ));
assert_eq! (::std::mem::align_of::<PspGeContext>() , 4usize , concat ! (
"Alignment of " , stringify ! ( PspGeContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeContext ) ) . context as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeContext ) , "::" ,
stringify ! ( context ) ));
}
impl Clone for PspGeContext {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceGeStack {
pub stack: [::std::os::raw::c_uint; 8usize],
}
#[test]
fn bindgen_test_layout_SceGeStack() {
assert_eq!(::std::mem::size_of::<SceGeStack>() , 32usize , concat ! (
"Size of: " , stringify ! ( SceGeStack ) ));
assert_eq! (::std::mem::align_of::<SceGeStack>() , 4usize , concat ! (
"Alignment of " , stringify ! ( SceGeStack ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceGeStack ) ) . stack as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceGeStack ) , "::" ,
stringify ! ( stack ) ));
}
impl Clone for SceGeStack {
fn clone(&self) -> Self { *self }
}
pub type PspGeCallback =
::std::option::Option<unsafe extern "C" fn(id: ::std::os::raw::c_int,
arg:
*mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspGeCallbackData {
pub signal_func: PspGeCallback,
pub signal_arg: *mut ::std::os::raw::c_void,
pub finish_func: PspGeCallback,
pub finish_arg: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_PspGeCallbackData() {
assert_eq!(::std::mem::size_of::<PspGeCallbackData>() , 32usize , concat !
( "Size of: " , stringify ! ( PspGeCallbackData ) ));
assert_eq! (::std::mem::align_of::<PspGeCallbackData>() , 8usize , concat
! ( "Alignment of " , stringify ! ( PspGeCallbackData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeCallbackData ) ) . signal_func as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeCallbackData ) ,
"::" , stringify ! ( signal_func ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeCallbackData ) ) . signal_arg as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeCallbackData ) ,
"::" , stringify ! ( signal_arg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeCallbackData ) ) . finish_func as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeCallbackData ) ,
"::" , stringify ! ( finish_func ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeCallbackData ) ) . finish_arg as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeCallbackData ) ,
"::" , stringify ! ( finish_arg ) ));
}
impl Clone for PspGeCallbackData {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspGeListArgs {
pub size: ::std::os::raw::c_uint,
pub context: *mut PspGeContext,
pub numStacks: u32,
pub stacks: *mut SceGeStack,
}
#[test]
fn bindgen_test_layout_PspGeListArgs() {
assert_eq!(::std::mem::size_of::<PspGeListArgs>() , 32usize , concat ! (
"Size of: " , stringify ! ( PspGeListArgs ) ));
assert_eq! (::std::mem::align_of::<PspGeListArgs>() , 8usize , concat ! (
"Alignment of " , stringify ! ( PspGeListArgs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeListArgs ) ) . size as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeListArgs ) , "::"
, stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeListArgs ) ) . context as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeListArgs ) , "::"
, stringify ! ( context ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeListArgs ) ) . numStacks as * const
_ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeListArgs ) , "::"
, stringify ! ( numStacks ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeListArgs ) ) . stacks as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeListArgs ) , "::"
, stringify ! ( stacks ) ));
}
impl Clone for PspGeListArgs {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspGeBreakParam {
pub buf: [::std::os::raw::c_uint; 4usize],
}
#[test]
fn bindgen_test_layout_PspGeBreakParam() {
assert_eq!(::std::mem::size_of::<PspGeBreakParam>() , 16usize , concat ! (
"Size of: " , stringify ! ( PspGeBreakParam ) ));
assert_eq! (::std::mem::align_of::<PspGeBreakParam>() , 4usize , concat !
( "Alignment of " , stringify ! ( PspGeBreakParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeBreakParam ) ) . buf as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeBreakParam ) ,
"::" , stringify ! ( buf ) ));
}
impl Clone for PspGeBreakParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceGeEdramGetSize() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sceGeEdramGetAddr() -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceGeGetCmd(cmd: ::std::os::raw::c_int) -> ::std::os::raw::c_uint;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspGeMatrixTypes {
PSP_GE_MATRIX_BONE0 = 0,
PSP_GE_MATRIX_BONE1 = 1,
PSP_GE_MATRIX_BONE2 = 2,
PSP_GE_MATRIX_BONE3 = 3,
PSP_GE_MATRIX_BONE4 = 4,
PSP_GE_MATRIX_BONE5 = 5,
PSP_GE_MATRIX_BONE6 = 6,
PSP_GE_MATRIX_BONE7 = 7,
PSP_GE_MATRIX_WORLD = 8,
PSP_GE_MATRIX_VIEW = 9,
PSP_GE_MATRIX_PROJECTION = 10,
PSP_GE_MATRIX_TEXGEN = 11,
}
extern "C" {
pub fn sceGeGetMtx(type_: ::std::os::raw::c_int,
matrix: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspGeStack {
pub stack: [::std::os::raw::c_uint; 8usize],
}
#[test]
fn bindgen_test_layout_PspGeStack() {
assert_eq!(::std::mem::size_of::<PspGeStack>() , 32usize , concat ! (
"Size of: " , stringify ! ( PspGeStack ) ));
assert_eq! (::std::mem::align_of::<PspGeStack>() , 4usize , concat ! (
"Alignment of " , stringify ! ( PspGeStack ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspGeStack ) ) . stack as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspGeStack ) , "::" ,
stringify ! ( stack ) ));
}
impl Clone for PspGeStack {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceGeGetStack(stackId: ::std::os::raw::c_int,
stack: *mut PspGeStack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeSaveContext(context: *mut PspGeContext)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeRestoreContext(context: *const PspGeContext)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeListEnQueue(list: *const ::std::os::raw::c_void,
stall: *mut ::std::os::raw::c_void,
cbid: ::std::os::raw::c_int,
arg: *mut PspGeListArgs) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeListEnQueueHead(list: *const ::std::os::raw::c_void,
stall: *mut ::std::os::raw::c_void,
cbid: ::std::os::raw::c_int,
arg: *mut PspGeListArgs)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeListDeQueue(qid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeListUpdateStallAddr(qid: ::std::os::raw::c_int,
stall: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspGeListState {
PSP_GE_LIST_DONE = 0,
PSP_GE_LIST_QUEUED = 1,
PSP_GE_LIST_DRAWING_DONE = 2,
PSP_GE_LIST_STALL_REACHED = 3,
PSP_GE_LIST_CANCEL_DONE = 4,
}
extern "C" {
pub fn sceGeListSync(qid: ::std::os::raw::c_int,
syncType: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeDrawSync(syncType: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeSetCallback(cb: *mut PspGeCallbackData)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeUnsetCallback(cbid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeBreak(mode: ::std::os::raw::c_int,
pParam: *mut PspGeBreakParam) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeContinue() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGeEdramSetAddrTranslation(width: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
pub type GuSwapBuffersCallback =
::std::option::Option<unsafe extern "C" fn(display:
*mut *mut ::std::os::raw::c_void,
render:
*mut *mut ::std::os::raw::c_void)>;
extern "C" {
pub fn sceGuDepthBuffer(zbp: *mut ::std::os::raw::c_void,
zbw: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDispBuffer(width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
dispbp: *mut ::std::os::raw::c_void,
dispbw: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDrawBuffer(psm: ::std::os::raw::c_int,
fbp: *mut ::std::os::raw::c_void,
fbw: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDrawBufferList(psm: ::std::os::raw::c_int,
fbp: *mut ::std::os::raw::c_void,
fbw: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDisplay(state: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuDepthFunc(function: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDepthMask(mask: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDepthOffset(offset: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuDepthRange(near: ::std::os::raw::c_int,
far: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuFog(near: f32, far: f32, color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuInit();
}
extern "C" {
pub fn sceGuTerm();
}
extern "C" {
pub fn sceGuBreak(a0: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuContinue();
}
extern "C" {
pub fn sceGuSetCallback(signal: ::std::os::raw::c_int,
callback:
::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int)>)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceGuSignal(signal: ::std::os::raw::c_int,
behavior: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuSendCommandf(cmd: ::std::os::raw::c_int, argument: f32);
}
extern "C" {
pub fn sceGuSendCommandi(cmd: ::std::os::raw::c_int,
argument: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuGetMemory(size: ::std::os::raw::c_int)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceGuStart(cid: ::std::os::raw::c_int,
list: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuFinish() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuFinishId(id: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuCallList(list: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuCallMode(mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuCheckList() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuSendList(mode: ::std::os::raw::c_int,
list: *const ::std::os::raw::c_void,
context: *mut PspGeContext);
}
extern "C" {
pub fn sceGuSwapBuffers() -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceGuSync(mode: ::std::os::raw::c_int, what: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuDrawArray(prim: ::std::os::raw::c_int,
vtype: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuBeginObject(vtype: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuEndObject();
}
extern "C" {
pub fn sceGuSetStatus(state: ::std::os::raw::c_int,
status: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuGetStatus(state: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuSetAllStatus(status: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuGetAllStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceGuEnable(state: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDisable(state: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuLight(light: ::std::os::raw::c_int,
type_: ::std::os::raw::c_int,
components: ::std::os::raw::c_int,
position: *const ScePspFVector3);
}
extern "C" {
pub fn sceGuLightAtt(light: ::std::os::raw::c_int, atten0: f32,
atten1: f32, atten2: f32);
}
extern "C" {
pub fn sceGuLightColor(light: ::std::os::raw::c_int,
component: ::std::os::raw::c_int,
color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuLightMode(mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuLightSpot(light: ::std::os::raw::c_int,
direction: *const ScePspFVector3, exponent: f32,
cutoff: f32);
}
extern "C" {
pub fn sceGuClear(flags: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuClearColor(color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuClearDepth(depth: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuClearStencil(stencil: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuPixelMask(mask: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuColor(color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuColorFunc(func: ::std::os::raw::c_int,
color: ::std::os::raw::c_uint,
mask: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuColorMaterial(components: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuAlphaFunc(func: ::std::os::raw::c_int,
value: ::std::os::raw::c_int,
mask: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuAmbient(color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuAmbientColor(color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuBlendFunc(op: ::std::os::raw::c_int,
src: ::std::os::raw::c_int,
dest: ::std::os::raw::c_int,
srcfix: ::std::os::raw::c_uint,
destfix: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuMaterial(mode: ::std::os::raw::c_int,
color: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuModelColor(emissive: ::std::os::raw::c_uint,
ambient: ::std::os::raw::c_uint,
diffuse: ::std::os::raw::c_uint,
specular: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuStencilFunc(func: ::std::os::raw::c_int,
ref_: ::std::os::raw::c_int,
mask: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuStencilOp(fail: ::std::os::raw::c_int,
zfail: ::std::os::raw::c_int,
zpass: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuSpecular(power: f32);
}
extern "C" {
pub fn sceGuFrontFace(order: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuLogicalOp(op: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuSetDither(matrix: *const ScePspIMatrix4);
}
extern "C" {
pub fn sceGuShadeModel(mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuCopyImage(psm: ::std::os::raw::c_int,
sx: ::std::os::raw::c_int,
sy: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
srcw: ::std::os::raw::c_int,
src: *mut ::std::os::raw::c_void,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
destw: ::std::os::raw::c_int,
dest: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuTexEnvColor(color: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuTexFilter(min: ::std::os::raw::c_int,
mag: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuTexFlush();
}
extern "C" {
pub fn sceGuTexFunc(tfx: ::std::os::raw::c_int,
tcc: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuTexImage(mipmap: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
tbw: ::std::os::raw::c_int,
tbp: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuTexLevelMode(mode: ::std::os::raw::c_uint, bias: f32);
}
extern "C" {
pub fn sceGuTexMapMode(mode: ::std::os::raw::c_int,
a1: ::std::os::raw::c_uint,
a2: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuTexMode(tpsm: ::std::os::raw::c_int,
maxmips: ::std::os::raw::c_int,
a2: ::std::os::raw::c_int,
swizzle: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuTexOffset(u: f32, v: f32);
}
extern "C" {
pub fn sceGuTexProjMapMode(mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuTexScale(u: f32, v: f32);
}
extern "C" {
pub fn sceGuTexSlope(slope: f32);
}
extern "C" {
pub fn sceGuTexSync();
}
extern "C" {
pub fn sceGuTexWrap(u: ::std::os::raw::c_int, v: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuClutLoad(num_blocks: ::std::os::raw::c_int,
cbp: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuClutMode(cpsm: ::std::os::raw::c_uint,
shift: ::std::os::raw::c_uint,
mask: ::std::os::raw::c_uint,
a3: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuOffset(x: ::std::os::raw::c_uint, y: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuScissor(x: ::std::os::raw::c_int, y: ::std::os::raw::c_int,
w: ::std::os::raw::c_int, h: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuViewport(cx: ::std::os::raw::c_int, cy: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDrawBezier(vtype: ::std::os::raw::c_int,
ucount: ::std::os::raw::c_int,
vcount: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuPatchDivide(ulevel: ::std::os::raw::c_uint,
vlevel: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuPatchFrontFace(a0: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sceGuPatchPrim(prim: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGuDrawSpline(vtype: ::std::os::raw::c_int,
ucount: ::std::os::raw::c_int,
vcount: ::std::os::raw::c_int,
uedge: ::std::os::raw::c_int,
vedge: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGuSetMatrix(type_: ::std::os::raw::c_int,
matrix: *const ScePspFMatrix4);
}
extern "C" {
pub fn sceGuBoneMatrix(index: ::std::os::raw::c_uint,
matrix: *const ScePspFMatrix4);
}
extern "C" {
pub fn sceGuMorphWeight(index: ::std::os::raw::c_int, weight: f32);
}
extern "C" {
pub fn sceGuDrawArrayN(primitive_type: ::std::os::raw::c_int,
vertex_type: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
a3: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn guSwapBuffersBehaviour(behaviour: ::std::os::raw::c_int);
}
extern "C" {
pub fn guSwapBuffersCallback(callback: GuSwapBuffersCallback);
}
extern "C" {
pub fn sceGumDrawArray(prim: ::std::os::raw::c_int,
vtype: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGumDrawArrayN(prim: ::std::os::raw::c_int,
vtype: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
a3: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGumDrawBezier(vtype: ::std::os::raw::c_int,
ucount: ::std::os::raw::c_int,
vcount: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGumDrawSpline(vtype: ::std::os::raw::c_int,
ucount: ::std::os::raw::c_int,
vcount: ::std::os::raw::c_int,
uedge: ::std::os::raw::c_int,
vedge: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGumLoadIdentity();
}
extern "C" {
pub fn sceGumLoadMatrix(m: *const ScePspFMatrix4);
}
extern "C" {
pub fn sceGumLookAt(eye: *mut ScePspFVector3, center: *mut ScePspFVector3,
up: *mut ScePspFVector3);
}
extern "C" {
pub fn sceGumMatrixMode(mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceGumMultMatrix(m: *const ScePspFMatrix4);
}
extern "C" {
pub fn sceGumOrtho(left: f32, right: f32, bottom: f32, top: f32,
near: f32, far: f32);
}
extern "C" {
pub fn sceGumPerspective(fovy: f32, aspect: f32, near: f32, far: f32);
}
extern "C" {
pub fn sceGumPopMatrix();
}
extern "C" {
pub fn sceGumPushMatrix();
}
extern "C" {
pub fn sceGumRotateX(angle: f32);
}
extern "C" {
pub fn sceGumRotateY(angle: f32);
}
extern "C" {
pub fn sceGumRotateZ(angle: f32);
}
extern "C" {
pub fn sceGumRotateXYZ(v: *const ScePspFVector3);
}
extern "C" {
pub fn sceGumRotateZYX(v: *const ScePspFVector3);
}
extern "C" {
pub fn sceGumScale(v: *const ScePspFVector3);
}
extern "C" {
pub fn sceGumStoreMatrix(m: *mut ScePspFMatrix4);
}
extern "C" {
pub fn sceGumTranslate(v: *const ScePspFVector3);
}
extern "C" {
pub fn sceGumUpdateMatrix();
}
extern "C" {
pub fn sceGumFullInverse();
}
extern "C" {
pub fn sceGumFastInverse();
}
extern "C" {
pub fn sceGumBeginObject(vtype: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
indices: *const ::std::os::raw::c_void,
vertices: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn sceGumEndObject();
}
extern "C" {
pub fn gumInit();
}
extern "C" {
pub fn gumLoadIdentity(m: *mut ScePspFMatrix4);
}
extern "C" {
pub fn gumLoadMatrix(r: *mut ScePspFMatrix4, a: *const ScePspFMatrix4);
}
extern "C" {
pub fn gumLookAt(m: *mut ScePspFMatrix4, eye: *mut ScePspFVector3,
center: *mut ScePspFVector3, up: *mut ScePspFVector3);
}
extern "C" {
pub fn gumMultMatrix(result: *mut ScePspFMatrix4,
a: *const ScePspFMatrix4, b: *const ScePspFMatrix4);
}
extern "C" {
pub fn gumOrtho(m: *mut ScePspFMatrix4, left: f32, right: f32,
bottom: f32, top: f32, near: f32, far: f32);
}
extern "C" {
pub fn gumPerspective(m: *mut ScePspFMatrix4, fovy: f32, aspect: f32,
near: f32, far: f32);
}
extern "C" {
pub fn gumRotateX(m: *mut ScePspFMatrix4, angle: f32);
}
extern "C" {
pub fn gumRotateXYZ(m: *mut ScePspFMatrix4, v: *const ScePspFVector3);
}
extern "C" {
pub fn gumRotateY(m: *mut ScePspFMatrix4, angle: f32);
}
extern "C" {
pub fn gumRotateZ(m: *mut ScePspFMatrix4, angle: f32);
}
extern "C" {
pub fn gumRotateZYX(m: *mut ScePspFMatrix4, v: *const ScePspFVector3);
}
extern "C" {
pub fn gumScale(m: *mut ScePspFMatrix4, v: *const ScePspFVector3);
}
extern "C" {
pub fn gumTranslate(m: *mut ScePspFMatrix4, v: *const ScePspFVector3);
}
extern "C" {
pub fn gumFullInverse(r: *mut ScePspFMatrix4, a: *const ScePspFMatrix4);
}
extern "C" {
pub fn gumFastInverse(r: *mut ScePspFMatrix4, a: *const ScePspFMatrix4);
}
extern "C" {
pub fn gumCrossProduct(r: *mut ScePspFVector3, a: *const ScePspFVector3,
b: *const ScePspFVector3);
}
extern "C" {
pub fn gumDotProduct(a: *const ScePspFVector3, b: *const ScePspFVector3)
-> f32;
}
extern "C" {
pub fn gumNormalize(v: *mut ScePspFVector3);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspHprmKeys {
PSP_HPRM_PLAYPAUSE = 1,
PSP_HPRM_FORWARD = 4,
PSP_HPRM_BACK = 8,
PSP_HPRM_VOL_UP = 16,
PSP_HPRM_VOL_DOWN = 32,
PSP_HPRM_HOLD = 128,
}
extern "C" {
pub fn sceHprmPeekCurrentKey(key: *mut u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHprmPeekLatch(latch: *mut u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHprmReadLatch(latch: *mut u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHprmIsHeadphoneExist() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHprmIsRemoteExist() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHprmIsMicrophoneExist() -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspHttpHttpVersion {
PSP_HTTP_VERSION_1_0 = 0,
PSP_HTTP_VERSION_1_1 = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspHttpMethod {
PSP_HTTP_METHOD_GET = 0,
PSP_HTTP_METHOD_POST = 1,
PSP_HTTP_METHOD_HEAD = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspHttpAuthType {
PSP_HTTP_AUTH_BASIC = 0,
PSP_HTTP_AUTH_DIGEST = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspHttpProxyMode {
PSP_HTTP_PROXY_AUTO = 0,
PSP_HTTP_PROXY_MANUAL = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspHttpAddHeaderMode {
PSP_HTTP_HEADER_OVERWRITE = 0,
PSP_HTTP_HEADER_ADD = 1,
}
pub type PspHttpMallocFunction =
::std::option::Option<unsafe extern "C" fn(size: SceSize)
-> *mut ::std::os::raw::c_void>;
pub type PspHttpReallocFunction =
::std::option::Option<unsafe extern "C" fn(p: *mut ::std::os::raw::c_void,
size: SceSize)
-> *mut ::std::os::raw::c_void>;
pub type PspHttpFreeFunction =
::std::option::Option<unsafe extern "C" fn(p:
*mut ::std::os::raw::c_void)>;
pub type PspHttpPasswordCB =
::std::option::Option<unsafe extern "C" fn(request: ::std::os::raw::c_int,
auth_type: PspHttpAuthType,
realm:
*const ::std::os::raw::c_uchar,
username:
*mut ::std::os::raw::c_uchar,
password:
*mut ::std::os::raw::c_uchar,
need_entity: SceBool,
entity_body:
*mut *mut ::std::os::raw::c_uchar,
entity_size: *mut SceSize,
save: *mut SceBool)
-> ::std::os::raw::c_int>;
extern "C" {
pub fn sceHttpInit(unknown1: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpCreateTemplate(agent: *mut ::std::os::raw::c_char,
unknown1: ::std::os::raw::c_int,
unknown2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDeleteTemplate(templateid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpCreateConnection(templateid: ::std::os::raw::c_int,
host: *mut ::std::os::raw::c_char,
unknown1: *mut ::std::os::raw::c_char,
port: ::std::os::raw::c_ushort,
unknown2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpCreateConnectionWithURL(templateid: ::std::os::raw::c_int,
url: *const ::std::os::raw::c_char,
unknown1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDeleteConnection(connectionid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpCreateRequest(connectionid: ::std::os::raw::c_int,
method: PspHttpMethod,
path: *mut ::std::os::raw::c_char,
contentlength: SceULong64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpCreateRequestWithURL(connectionid: ::std::os::raw::c_int,
method: PspHttpMethod,
url: *mut ::std::os::raw::c_char,
contentlength: SceULong64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDeleteRequest(requestid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSendRequest(requestid: ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_void,
datasize: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpAbortRequest(requestid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpReadData(requestid: ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_void,
datasize: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpGetContentLength(requestid: ::std::os::raw::c_int,
contentlength: *mut SceULong64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpGetStatusCode(requestid: ::std::os::raw::c_int,
statuscode: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetResolveTimeOut(id: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetResolveRetry(id: ::std::os::raw::c_int,
count: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetConnectTimeOut(id: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetSendTimeOut(id: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetRecvTimeOut(id: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEnableKeepAlive(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDisableKeepAlive(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEnableRedirect(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDisableRedirect(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEnableCookie(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDisableCookie(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSaveSystemCookie() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpLoadSystemCookie() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpAddExtraHeader(id: ::std::os::raw::c_int,
name: *mut ::std::os::raw::c_char,
value: *mut ::std::os::raw::c_char,
unknown1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDeleteHeader(id: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpsInit(unknown1: ::std::os::raw::c_int,
unknown2: ::std::os::raw::c_int,
unknown3: ::std::os::raw::c_int,
unknown4: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpsEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpsLoadDefaultCert(unknown1: ::std::os::raw::c_int,
unknown2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDisableAuth(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpDisableCache(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEnableAuth(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEnableCache(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpEndCache() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpGetAllHeader(request: ::std::os::raw::c_int,
header: *mut *mut ::std::os::raw::c_uchar,
header_size: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpGetNetworkErrno(request: ::std::os::raw::c_int,
err_num: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpGetProxy(id: ::std::os::raw::c_int,
activate_flag: *mut ::std::os::raw::c_int,
mode: *mut ::std::os::raw::c_int,
proxy_host: *mut ::std::os::raw::c_uchar,
len: SceSize,
proxy_port: *mut ::std::os::raw::c_ushort)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpInitCache(max_size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetAuthInfoCB(id: ::std::os::raw::c_int,
cbfunc: PspHttpPasswordCB)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetProxy(id: ::std::os::raw::c_int,
activate_flag: ::std::os::raw::c_int,
mode: ::std::os::raw::c_int,
new_proxy_host: *const ::std::os::raw::c_uchar,
new_proxy_port: ::std::os::raw::c_ushort)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetResHeaderMaxSize(id: ::std::os::raw::c_int,
header_size: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceHttpSetMallocFunction(malloc_func: PspHttpMallocFunction,
free_func: PspHttpFreeFunction,
realloc_func: PspHttpReallocFunction)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIdStorageLookup(key: u16, offset: u32,
buf: *mut ::std::os::raw::c_void, len: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIdStorageReadLeaf(key: u16, buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIdStorageWriteLeaf(key: u16, buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIdStorageIsReadOnly() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceIdStorageFlush() -> ::std::os::raw::c_int;
}
pub type SceImposeParam = ::std::os::raw::c_int;
extern "C" {
pub fn sceImposeGetParam(param: SceImposeParam) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeSetParam(param: SceImposeParam,
value: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeGetBacklightOffTime() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeSetBacklightOffTime(value: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeGetLanguageMode(lang: *mut ::std::os::raw::c_int,
button: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeSetLanguageMode(lang: ::std::os::raw::c_int,
button: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeGetUMDPopup() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeSetUMDPopup(value: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeGetHomePopup() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeSetHomePopup(value: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceImposeCheckVideoOut(value: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PSPBootFrom {
PSP_BOOT_FLASH = 0,
PSP_BOOT_DISC = 32,
PSP_BOOT_MS = 64,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PSPInitApitype {
PSP_INIT_APITYPE_DISC = 288,
PSP_INIT_APITYPE_DISC_UPDATER = 289,
PSP_INIT_APITYPE_MS1 = 320,
PSP_INIT_APITYPE_MS2 = 321,
PSP_INIT_APITYPE_MS3 = 322,
PSP_INIT_APITYPE_MS4 = 323,
PSP_INIT_APITYPE_MS5 = 324,
PSP_INIT_APITYPE_VSH1 = 528,
PSP_INIT_APITYPE_VSH2 = 544,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PSPKeyConfig {
PSP_INIT_KEYCONFIG_VSH = 256,
PSP_INIT_KEYCONFIG_GAME = 512,
PSP_INIT_KEYCONFIG_POPS = 768,
}
extern "C" {
pub fn sceKernelInitApitype() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelInitFileName() -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn sceKernelBootFrom() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn InitForKernel_7233B5BC() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceJpegInitMJpeg() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceJpegFinishMJpeg() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceJpegCreateMJpeg(width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceJpegDeleteMJpeg() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceJpegDecodeMJpeg(jpegbuf: *mut u8, size: SceSize,
rgba: *mut ::std::os::raw::c_void, unk: u32)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelLoadExecVSHParam {
pub size: SceSize,
pub args: SceSize,
pub argp: *mut ::std::os::raw::c_void,
pub key: *const ::std::os::raw::c_char,
pub vshmain_args_size: u32,
pub vshmain_args: *mut ::std::os::raw::c_void,
pub configfile: *mut ::std::os::raw::c_char,
pub unk4: u32,
pub unk5: u32,
}
#[test]
fn bindgen_test_layout_SceKernelLoadExecVSHParam() {
assert_eq!(::std::mem::size_of::<SceKernelLoadExecVSHParam>() , 56usize ,
concat ! (
"Size of: " , stringify ! ( SceKernelLoadExecVSHParam ) ));
assert_eq! (::std::mem::align_of::<SceKernelLoadExecVSHParam>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelLoadExecVSHParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) . args as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( args ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) . argp as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( argp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) . key as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( key ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) .
vshmain_args_size as * const _ as usize } , 24usize , concat !
(
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! (
vshmain_args_size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) .
vshmain_args as * const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! (
vshmain_args ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) .
configfile as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( configfile
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) . unk4 as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( unk4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelLoadExecVSHParam ) ) . unk5 as *
const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! (
SceKernelLoadExecVSHParam ) , "::" , stringify ! ( unk5 ) ));
}
impl Clone for SceKernelLoadExecVSHParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceKernelLoadExecBufferPlain(bufsize: SceSize,
buf: *mut ::std::os::raw::c_void,
param: *mut SceKernelLoadExecParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelExitVSHVSH(param: *mut SceKernelLoadExecVSHParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLoadExecVSHDisc(file: *const ::std::os::raw::c_char,
param: *mut SceKernelLoadExecVSHParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLoadExecVSHDiscUpdater(file:
*const ::std::os::raw::c_char,
param:
*mut SceKernelLoadExecVSHParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLoadExecVSHMs1(file: *const ::std::os::raw::c_char,
param: *mut SceKernelLoadExecVSHParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLoadExecVSHMs2(file: *const ::std::os::raw::c_char,
param: *mut SceKernelLoadExecVSHParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelLoadExecVSHMs3(file: *const ::std::os::raw::c_char,
param: *mut SceKernelLoadExecVSHParam)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _PspLibraryEntry {
pub name: *const ::std::os::raw::c_char,
pub version: ::std::os::raw::c_ushort,
pub attribute: ::std::os::raw::c_ushort,
pub entLen: ::std::os::raw::c_uchar,
pub varCount: ::std::os::raw::c_uchar,
pub funcCount: ::std::os::raw::c_ushort,
pub entrytable: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__PspLibraryEntry() {
assert_eq!(::std::mem::size_of::<_PspLibraryEntry>() , 24usize , concat !
( "Size of: " , stringify ! ( _PspLibraryEntry ) ));
assert_eq! (::std::mem::align_of::<_PspLibraryEntry>() , 8usize , concat !
( "Alignment of " , stringify ! ( _PspLibraryEntry ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . name as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . version as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( version ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . attribute as *
const _ as usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( attribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . entLen as * const
_ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( entLen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . varCount as *
const _ as usize } , 13usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( varCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . funcCount as *
const _ as usize } , 14usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( funcCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspLibraryEntry ) ) . entrytable as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( _PspLibraryEntry ) ,
"::" , stringify ! ( entrytable ) ));
}
impl Clone for _PspLibraryEntry {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceMp3InitArg {
pub mp3StreamStart: SceUInt32,
pub unk1: SceUInt32,
pub mp3StreamEnd: SceUInt32,
pub unk2: SceUInt32,
pub mp3Buf: *mut SceVoid,
pub mp3BufSize: SceInt32,
pub pcmBuf: *mut SceVoid,
pub pcmBufSize: SceInt32,
}
#[test]
fn bindgen_test_layout_SceMp3InitArg() {
assert_eq!(::std::mem::size_of::<SceMp3InitArg>() , 48usize , concat ! (
"Size of: " , stringify ! ( SceMp3InitArg ) ));
assert_eq! (::std::mem::align_of::<SceMp3InitArg>() , 8usize , concat ! (
"Alignment of " , stringify ! ( SceMp3InitArg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . mp3StreamStart as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( mp3StreamStart ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . unk1 as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( unk1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . mp3StreamEnd as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( mp3StreamEnd ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . unk2 as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . mp3Buf as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( mp3Buf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . mp3BufSize as * const
_ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( mp3BufSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . pcmBuf as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( pcmBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMp3InitArg ) ) . pcmBufSize as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceMp3InitArg ) , "::"
, stringify ! ( pcmBufSize ) ));
}
impl Clone for SceMp3InitArg {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceMp3ReserveMp3Handle(args: *mut SceMp3InitArg) -> SceInt32;
}
extern "C" {
pub fn sceMp3ReleaseMp3Handle(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3InitResource() -> SceInt32;
}
extern "C" {
pub fn sceMp3TermResource() -> SceInt32;
}
extern "C" {
pub fn sceMp3Init(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3Decode(handle: SceInt32, dst: *mut *mut SceShort16)
-> SceInt32;
}
extern "C" {
pub fn sceMp3GetInfoToAddStreamData(handle: SceInt32,
dst: *mut *mut SceUChar8,
towrite: *mut SceInt32,
srcpos: *mut SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3NotifyAddStreamData(handle: SceInt32, size: SceInt32)
-> SceInt32;
}
extern "C" {
pub fn sceMp3CheckStreamDataNeeded(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3SetLoopNum(handle: SceInt32, loop_: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3GetLoopNum(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3GetSumDecodedSample(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3GetMaxOutputSample(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3GetSamplingRate(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3GetBitRate(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3GetMp3ChannelNum(handle: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMp3ResetPlayPosition(handle: SceInt32) -> SceInt32;
}
#[repr(C)]
#[derive(Copy)]
pub struct SceMpegLLI {
pub pSrc: ScePVoid,
pub pDst: ScePVoid,
pub Next: ScePVoid,
pub iSize: SceInt32,
pub __bindgen_padding_0: [u32; 9usize],
}
#[test]
fn bindgen_test_layout_SceMpegLLI() {
assert_eq!(::std::mem::size_of::<SceMpegLLI>() , 64usize , concat ! (
"Size of: " , stringify ! ( SceMpegLLI ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegLLI ) ) . pSrc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegLLI ) , "::" ,
stringify ! ( pSrc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegLLI ) ) . pDst as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegLLI ) , "::" ,
stringify ! ( pDst ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegLLI ) ) . Next as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegLLI ) , "::" ,
stringify ! ( Next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegLLI ) ) . iSize as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegLLI ) , "::" ,
stringify ! ( iSize ) ));
}
impl Clone for SceMpegLLI {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct SceMpegYCrCbBuffer {
pub iFrameBufferHeight16: SceInt32,
pub iFrameBufferWidth16: SceInt32,
pub iUnknown: SceInt32,
pub iUnknown2: SceInt32,
pub pYBuffer: ScePVoid,
pub pYBuffer2: ScePVoid,
pub pCrBuffer: ScePVoid,
pub pCbBuffer: ScePVoid,
pub pCrBuffer2: ScePVoid,
pub pCbBuffer2: ScePVoid,
pub iFrameHeight: SceInt32,
pub iFrameWidth: SceInt32,
pub iFrameBufferWidth: SceInt32,
pub iUnknown3: [SceInt32; 11usize],
pub __bindgen_padding_0: u64,
}
#[test]
fn bindgen_test_layout_SceMpegYCrCbBuffer() {
assert_eq!(::std::mem::size_of::<SceMpegYCrCbBuffer>() , 128usize , concat
! ( "Size of: " , stringify ! ( SceMpegYCrCbBuffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) .
iFrameBufferHeight16 as * const _ as usize } , 0usize , concat
! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iFrameBufferHeight16 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) .
iFrameBufferWidth16 as * const _ as usize } , 4usize , concat
! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iFrameBufferWidth16 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . iUnknown as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iUnknown ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . iUnknown2 as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iUnknown2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . pYBuffer as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( pYBuffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . pYBuffer2 as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( pYBuffer2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . pCrBuffer as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( pCrBuffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . pCbBuffer as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( pCbBuffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . pCrBuffer2 as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( pCrBuffer2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . pCbBuffer2 as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( pCbBuffer2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . iFrameHeight as
* const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iFrameHeight ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . iFrameWidth as *
const _ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iFrameWidth ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) .
iFrameBufferWidth as * const _ as usize } , 72usize , concat !
(
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iFrameBufferWidth ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegYCrCbBuffer ) ) . iUnknown3 as *
const _ as usize } , 76usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegYCrCbBuffer ) ,
"::" , stringify ! ( iUnknown3 ) ));
}
impl Clone for SceMpegYCrCbBuffer {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceMpegBaseYCrCbCopyVme(YUVBuffer: ScePVoid, Buffer: *mut SceInt32,
Type: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegBaseCscInit(width: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegBaseCscVme(pRGBbuffer: ScePVoid, pRGBbuffer2: ScePVoid,
width: SceInt32,
pYCrCbBuffer: *mut SceMpegYCrCbBuffer)
-> SceInt32;
}
extern "C" {
pub fn sceMpegbase_BEA18F91(pLLI: *mut SceMpegLLI) -> SceInt32;
}
pub type SceMpeg = ScePVoid;
pub type SceMpegStream = SceVoid;
pub type sceMpegRingbufferCB =
::std::option::Option<unsafe extern "C" fn(pData: ScePVoid,
iNumPackets: SceInt32,
pParam: ScePVoid) -> SceInt32>;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceMpegRingbuffer {
pub iPackets: SceInt32,
pub iUnk0: SceUInt32,
pub iUnk1: SceUInt32,
pub iUnk2: SceUInt32,
pub iUnk3: SceUInt32,
pub pData: ScePVoid,
pub Callback: sceMpegRingbufferCB,
pub pCBparam: ScePVoid,
pub iUnk4: SceUInt32,
pub iUnk5: SceUInt32,
pub pSceMpeg: SceMpeg,
}
#[test]
fn bindgen_test_layout_SceMpegRingbuffer() {
assert_eq!(::std::mem::size_of::<SceMpegRingbuffer>() , 64usize , concat !
( "Size of: " , stringify ! ( SceMpegRingbuffer ) ));
assert_eq! (::std::mem::align_of::<SceMpegRingbuffer>() , 8usize , concat
! ( "Alignment of " , stringify ! ( SceMpegRingbuffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iPackets as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iPackets ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iUnk0 as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iUnk0 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iUnk1 as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iUnk1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iUnk2 as * const
_ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iUnk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iUnk3 as * const
_ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iUnk3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . pData as * const
_ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( pData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . Callback as *
const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( Callback ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . pCBparam as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( pCBparam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iUnk4 as * const
_ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iUnk4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . iUnk5 as * const
_ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( iUnk5 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegRingbuffer ) ) . pSceMpeg as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegRingbuffer ) ,
"::" , stringify ! ( pSceMpeg ) ));
}
impl Clone for SceMpegRingbuffer {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceMpegAu {
pub iPtsMSB: SceUInt32,
pub iPts: SceUInt32,
pub iDtsMSB: SceUInt32,
pub iDts: SceUInt32,
pub iEsBuffer: SceUInt32,
pub iAuSize: SceUInt32,
}
#[test]
fn bindgen_test_layout_SceMpegAu() {
assert_eq!(::std::mem::size_of::<SceMpegAu>() , 24usize , concat ! (
"Size of: " , stringify ! ( SceMpegAu ) ));
assert_eq! (::std::mem::align_of::<SceMpegAu>() , 4usize , concat ! (
"Alignment of " , stringify ! ( SceMpegAu ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAu ) ) . iPtsMSB as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAu ) , "::" ,
stringify ! ( iPtsMSB ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAu ) ) . iPts as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAu ) , "::" ,
stringify ! ( iPts ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAu ) ) . iDtsMSB as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAu ) , "::" ,
stringify ! ( iDtsMSB ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAu ) ) . iDts as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAu ) , "::" ,
stringify ! ( iDts ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAu ) ) . iEsBuffer as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAu ) , "::" ,
stringify ! ( iEsBuffer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAu ) ) . iAuSize as * const _ as
usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAu ) , "::" ,
stringify ! ( iAuSize ) ));
}
impl Clone for SceMpegAu {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceMpegAvcMode {
pub iUnk0: SceInt32,
pub iPixelFormat: SceInt32,
}
#[test]
fn bindgen_test_layout_SceMpegAvcMode() {
assert_eq!(::std::mem::size_of::<SceMpegAvcMode>() , 8usize , concat ! (
"Size of: " , stringify ! ( SceMpegAvcMode ) ));
assert_eq! (::std::mem::align_of::<SceMpegAvcMode>() , 4usize , concat ! (
"Alignment of " , stringify ! ( SceMpegAvcMode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAvcMode ) ) . iUnk0 as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAvcMode ) , "::"
, stringify ! ( iUnk0 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceMpegAvcMode ) ) . iPixelFormat as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceMpegAvcMode ) , "::"
, stringify ! ( iPixelFormat ) ));
}
impl Clone for SceMpegAvcMode {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceMpegInit() -> SceInt32;
}
extern "C" {
pub fn sceMpegFinish() -> SceVoid;
}
extern "C" {
pub fn sceMpegRingbufferQueryMemSize(iPackets: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegRingbufferConstruct(Ringbuffer: *mut SceMpegRingbuffer,
iPackets: SceInt32, pData: ScePVoid,
iSize: SceInt32,
Callback: sceMpegRingbufferCB,
pCBparam: ScePVoid) -> SceInt32;
}
extern "C" {
pub fn sceMpegRingbufferDestruct(Ringbuffer: *mut SceMpegRingbuffer)
-> SceVoid;
}
extern "C" {
pub fn sceMpegRingbufferAvailableSize(Ringbuffer: *mut SceMpegRingbuffer)
-> SceInt32;
}
extern "C" {
pub fn sceMpegRingbufferPut(Ringbuffer: *mut SceMpegRingbuffer,
iNumPackets: SceInt32, iAvailable: SceInt32)
-> SceInt32;
}
extern "C" {
pub fn sceMpegQueryMemSize(iUnk: ::std::os::raw::c_int) -> SceInt32;
}
extern "C" {
pub fn sceMpegCreate(Mpeg: *mut SceMpeg, pData: ScePVoid, iSize: SceInt32,
Ringbuffer: *mut SceMpegRingbuffer,
iFrameWidth: SceInt32, iUnk1: SceInt32,
iUnk2: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegDelete(Mpeg: *mut SceMpeg) -> SceVoid;
}
extern "C" {
pub fn sceMpegQueryStreamOffset(Mpeg: *mut SceMpeg, pBuffer: ScePVoid,
iOffset: *mut SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegQueryStreamSize(pBuffer: ScePVoid, iSize: *mut SceInt32)
-> SceInt32;
}
extern "C" {
pub fn sceMpegRegistStream(Mpeg: *mut SceMpeg, iStreamID: SceInt32,
iUnk: SceInt32) -> *mut SceMpegStream;
}
extern "C" {
pub fn sceMpegUnRegistStream(Mpeg: SceMpeg, pStream: *mut SceMpegStream)
-> SceVoid;
}
extern "C" {
pub fn sceMpegFlushAllStream(Mpeg: *mut SceMpeg) -> SceInt32;
}
extern "C" {
pub fn sceMpegMallocAvcEsBuf(Mpeg: *mut SceMpeg) -> ScePVoid;
}
extern "C" {
pub fn sceMpegFreeAvcEsBuf(Mpeg: *mut SceMpeg, pBuf: ScePVoid) -> SceVoid;
}
extern "C" {
pub fn sceMpegQueryAtracEsSize(Mpeg: *mut SceMpeg, iEsSize: *mut SceInt32,
iOutSize: *mut SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegInitAu(Mpeg: *mut SceMpeg, pEsBuffer: ScePVoid,
pAu: *mut SceMpegAu) -> SceInt32;
}
extern "C" {
pub fn sceMpegGetAvcAu(Mpeg: *mut SceMpeg, pStream: *mut SceMpegStream,
pAu: *mut SceMpegAu, iUnk: *mut SceInt32)
-> SceInt32;
}
extern "C" {
pub fn sceMpegAvcDecodeMode(Mpeg: *mut SceMpeg,
pMode: *mut SceMpegAvcMode) -> SceInt32;
}
extern "C" {
pub fn sceMpegAvcDecode(Mpeg: *mut SceMpeg, pAu: *mut SceMpegAu,
iFrameWidth: SceInt32, pBuffer: ScePVoid,
iInit: *mut SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceMpegAvcDecodeStop(Mpeg: *mut SceMpeg, iFrameWidth: SceInt32,
pBuffer: ScePVoid, iStatus: *mut SceInt32)
-> SceInt32;
}
extern "C" {
pub fn sceMpegGetAtracAu(Mpeg: *mut SceMpeg, pStream: *mut SceMpegStream,
pAu: *mut SceMpegAu, pUnk: ScePVoid) -> SceInt32;
}
extern "C" {
pub fn sceMpegAtracDecode(Mpeg: *mut SceMpeg, pAu: *mut SceMpegAu,
pBuffer: ScePVoid, iInit: SceInt32) -> SceInt32;
}
extern "C" {
pub fn sceNandSetWriteProtect(protectFlag: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandLock(writeFlag: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandUnlock();
}
extern "C" {
pub fn sceNandReadStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandReset(flag: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandReadId(buf: *mut ::std::os::raw::c_void, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandReadPages(ppn: u32, buf: *mut ::std::os::raw::c_void,
buf2: *mut ::std::os::raw::c_void, count: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandGetPageSize() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandGetPagesPerBlock() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandGetTotalBlocks() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandReadBlockWithRetry(ppn: u32,
buf: *mut ::std::os::raw::c_void,
buf2: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNandIsBadBlock(ppn: u32) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct productStruct {
pub unknown: ::std::os::raw::c_int,
pub product: [::std::os::raw::c_char; 9usize],
pub unk: [::std::os::raw::c_char; 3usize],
}
#[test]
fn bindgen_test_layout_productStruct() {
assert_eq!(::std::mem::size_of::<productStruct>() , 16usize , concat ! (
"Size of: " , stringify ! ( productStruct ) ));
assert_eq! (::std::mem::align_of::<productStruct>() , 4usize , concat ! (
"Alignment of " , stringify ! ( productStruct ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const productStruct ) ) . unknown as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( productStruct ) , "::"
, stringify ! ( unknown ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const productStruct ) ) . product as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( productStruct ) , "::"
, stringify ! ( product ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const productStruct ) ) . unk as * const _ as
usize } , 13usize , concat ! (
"Alignment of field: " , stringify ! ( productStruct ) , "::"
, stringify ! ( unk ) ));
}
impl Clone for productStruct {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct SceNetAdhocctlPeerInfo {
pub next: *mut SceNetAdhocctlPeerInfo,
pub nickname: [::std::os::raw::c_char; 128usize],
pub mac: [::std::os::raw::c_uchar; 6usize],
pub unknown: [::std::os::raw::c_uchar; 6usize],
pub timestamp: ::std::os::raw::c_ulong,
}
#[test]
fn bindgen_test_layout_SceNetAdhocctlPeerInfo() {
assert_eq!(::std::mem::size_of::<SceNetAdhocctlPeerInfo>() , 160usize ,
concat ! ( "Size of: " , stringify ! ( SceNetAdhocctlPeerInfo )
));
assert_eq! (::std::mem::align_of::<SceNetAdhocctlPeerInfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceNetAdhocctlPeerInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlPeerInfo ) ) . next as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlPeerInfo
) , "::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlPeerInfo ) ) . nickname as
* const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlPeerInfo
) , "::" , stringify ! ( nickname ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlPeerInfo ) ) . mac as *
const _ as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlPeerInfo
) , "::" , stringify ! ( mac ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlPeerInfo ) ) . unknown as *
const _ as usize } , 142usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlPeerInfo
) , "::" , stringify ! ( unknown ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlPeerInfo ) ) . timestamp as
* const _ as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlPeerInfo
) , "::" , stringify ! ( timestamp ) ));
}
impl Clone for SceNetAdhocctlPeerInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceNetAdhocctlScanInfo {
pub next: *mut SceNetAdhocctlScanInfo,
pub channel: ::std::os::raw::c_int,
pub name: [::std::os::raw::c_char; 8usize],
pub bssid: [::std::os::raw::c_uchar; 6usize],
pub unknown: [::std::os::raw::c_uchar; 2usize],
pub unknown2: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceNetAdhocctlScanInfo() {
assert_eq!(::std::mem::size_of::<SceNetAdhocctlScanInfo>() , 32usize ,
concat ! ( "Size of: " , stringify ! ( SceNetAdhocctlScanInfo )
));
assert_eq! (::std::mem::align_of::<SceNetAdhocctlScanInfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceNetAdhocctlScanInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlScanInfo ) ) . next as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlScanInfo
) , "::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlScanInfo ) ) . channel as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlScanInfo
) , "::" , stringify ! ( channel ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlScanInfo ) ) . name as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlScanInfo
) , "::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlScanInfo ) ) . bssid as *
const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlScanInfo
) , "::" , stringify ! ( bssid ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlScanInfo ) ) . unknown as *
const _ as usize } , 26usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlScanInfo
) , "::" , stringify ! ( unknown ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlScanInfo ) ) . unknown2 as
* const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlScanInfo
) , "::" , stringify ! ( unknown2 ) ));
}
impl Clone for SceNetAdhocctlScanInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceNetAdhocctlGameModeInfo {
pub count: ::std::os::raw::c_int,
pub macs: [[::std::os::raw::c_uchar; 6usize]; 16usize],
}
#[test]
fn bindgen_test_layout_SceNetAdhocctlGameModeInfo() {
assert_eq!(::std::mem::size_of::<SceNetAdhocctlGameModeInfo>() , 100usize
, concat ! (
"Size of: " , stringify ! ( SceNetAdhocctlGameModeInfo ) ));
assert_eq! (::std::mem::align_of::<SceNetAdhocctlGameModeInfo>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( SceNetAdhocctlGameModeInfo )
));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlGameModeInfo ) ) . count as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
SceNetAdhocctlGameModeInfo ) , "::" , stringify ! ( count )
));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlGameModeInfo ) ) . macs as
* const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
SceNetAdhocctlGameModeInfo ) , "::" , stringify ! ( macs ) ));
}
impl Clone for SceNetAdhocctlGameModeInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct SceNetAdhocctlParams {
pub channel: ::std::os::raw::c_int,
pub name: [::std::os::raw::c_char; 8usize],
pub bssid: [::std::os::raw::c_uchar; 6usize],
pub nickname: [::std::os::raw::c_char; 128usize],
}
#[test]
fn bindgen_test_layout_SceNetAdhocctlParams() {
assert_eq!(::std::mem::size_of::<SceNetAdhocctlParams>() , 148usize ,
concat ! ( "Size of: " , stringify ! ( SceNetAdhocctlParams )
));
assert_eq! (::std::mem::align_of::<SceNetAdhocctlParams>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( SceNetAdhocctlParams ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlParams ) ) . channel as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlParams )
, "::" , stringify ! ( channel ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlParams ) ) . name as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlParams )
, "::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlParams ) ) . bssid as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlParams )
, "::" , stringify ! ( bssid ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetAdhocctlParams ) ) . nickname as *
const _ as usize } , 18usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetAdhocctlParams )
, "::" , stringify ! ( nickname ) ));
}
impl Clone for SceNetAdhocctlParams {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceNetAdhocctlInit(stacksize: ::std::os::raw::c_int,
priority: ::std::os::raw::c_int,
product: *mut productStruct)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlTerm() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlConnect(name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlDisconnect() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetState(event: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlCreate(name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlJoin(scaninfo: *mut SceNetAdhocctlScanInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetAdhocId(product: *mut productStruct)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlCreateEnterGameMode(name:
*const ::std::os::raw::c_char,
unknown: ::std::os::raw::c_int,
num: ::std::os::raw::c_int,
macs:
*mut ::std::os::raw::c_uchar,
timeout: ::std::os::raw::c_uint,
unknown2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlJoinEnterGameMode(name:
*const ::std::os::raw::c_char,
hostmac:
*mut ::std::os::raw::c_uchar,
timeout: ::std::os::raw::c_uint,
unknown: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetGameModeInfo(gamemodeinfo:
*mut SceNetAdhocctlGameModeInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlExitGameMode() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetPeerList(length: *mut ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetPeerInfo(mac: *mut ::std::os::raw::c_uchar,
size: ::std::os::raw::c_int,
peerinfo: *mut SceNetAdhocctlPeerInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlScan() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetScanInfo(length: *mut ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
pub type sceNetAdhocctlHandler =
::std::option::Option<unsafe extern "C" fn(flag: ::std::os::raw::c_int,
error: ::std::os::raw::c_int,
unknown:
*mut ::std::os::raw::c_void)>;
extern "C" {
pub fn sceNetAdhocctlAddHandler(handler: sceNetAdhocctlHandler,
unknown: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlDelHandler(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetNameByAddr(mac: *mut ::std::os::raw::c_uchar,
nickname: *mut ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetAddrByName(nickname: *mut ::std::os::raw::c_char,
length: *mut ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocctlGetParameter(params: *mut SceNetAdhocctlParams)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocInit() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocTerm() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPdpCreate(mac: *mut ::std::os::raw::c_uchar,
port: ::std::os::raw::c_ushort,
bufsize: ::std::os::raw::c_uint,
unk1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPdpDelete(id: ::std::os::raw::c_int,
unk1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPdpSend(id: ::std::os::raw::c_int,
destMacAddr: *mut ::std::os::raw::c_uchar,
port: ::std::os::raw::c_ushort,
data: *mut ::std::os::raw::c_void,
len: ::std::os::raw::c_uint,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPdpRecv(id: ::std::os::raw::c_int,
srcMacAddr: *mut ::std::os::raw::c_uchar,
port: *mut ::std::os::raw::c_ushort,
data: *mut ::std::os::raw::c_void,
dataLength: *mut ::std::os::raw::c_void,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pdpStatStruct {
pub next: *mut pdpStatStruct,
pub pdpId: ::std::os::raw::c_int,
pub mac: [::std::os::raw::c_uchar; 6usize],
pub port: ::std::os::raw::c_ushort,
pub rcvdData: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_pdpStatStruct() {
assert_eq!(::std::mem::size_of::<pdpStatStruct>() , 24usize , concat ! (
"Size of: " , stringify ! ( pdpStatStruct ) ));
assert_eq! (::std::mem::align_of::<pdpStatStruct>() , 8usize , concat ! (
"Alignment of " , stringify ! ( pdpStatStruct ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pdpStatStruct ) ) . next as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pdpStatStruct ) , "::"
, stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pdpStatStruct ) ) . pdpId as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pdpStatStruct ) , "::"
, stringify ! ( pdpId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pdpStatStruct ) ) . mac as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( pdpStatStruct ) , "::"
, stringify ! ( mac ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pdpStatStruct ) ) . port as * const _ as
usize } , 18usize , concat ! (
"Alignment of field: " , stringify ! ( pdpStatStruct ) , "::"
, stringify ! ( port ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pdpStatStruct ) ) . rcvdData as * const _
as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( pdpStatStruct ) , "::"
, stringify ! ( rcvdData ) ));
}
impl Clone for pdpStatStruct {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceNetAdhocGetPdpStat(size: *mut ::std::os::raw::c_int,
stat: *mut pdpStatStruct)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocGameModeCreateMaster(data: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocGameModeCreateReplica(mac: *mut ::std::os::raw::c_uchar,
data: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocGameModeUpdateMaster() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocGameModeUpdateReplica(id: ::std::os::raw::c_int,
unk1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocGameModeDeleteMaster() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocGameModeDeleteReplica(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpOpen(srcmac: *mut ::std::os::raw::c_uchar,
srcport: ::std::os::raw::c_ushort,
destmac: *mut ::std::os::raw::c_uchar,
destport: ::std::os::raw::c_ushort,
bufsize: ::std::os::raw::c_uint,
delay: ::std::os::raw::c_uint,
count: ::std::os::raw::c_int,
unk1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpConnect(id: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpListen(srcmac: *mut ::std::os::raw::c_uchar,
srcport: ::std::os::raw::c_ushort,
bufsize: ::std::os::raw::c_uint,
delay: ::std::os::raw::c_uint,
count: ::std::os::raw::c_int,
queue: ::std::os::raw::c_int,
unk1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpAccept(id: ::std::os::raw::c_int,
mac: *mut ::std::os::raw::c_uchar,
port: *mut ::std::os::raw::c_ushort,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpSend(id: ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_void,
datasize: *mut ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpRecv(id: ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_void,
datasize: *mut ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpFlush(id: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint,
nonblock: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocPtpClose(id: ::std::os::raw::c_int,
unk1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ptpStatStruct {
pub next: *mut ptpStatStruct,
pub ptpId: ::std::os::raw::c_int,
pub mac: [::std::os::raw::c_uchar; 6usize],
pub peermac: [::std::os::raw::c_uchar; 6usize],
pub port: ::std::os::raw::c_ushort,
pub peerport: ::std::os::raw::c_ushort,
pub sentData: ::std::os::raw::c_uint,
pub rcvdData: ::std::os::raw::c_uint,
pub unk1: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_ptpStatStruct() {
assert_eq!(::std::mem::size_of::<ptpStatStruct>() , 40usize , concat ! (
"Size of: " , stringify ! ( ptpStatStruct ) ));
assert_eq! (::std::mem::align_of::<ptpStatStruct>() , 8usize , concat ! (
"Alignment of " , stringify ! ( ptpStatStruct ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . next as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . ptpId as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( ptpId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . mac as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( mac ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . peermac as * const _
as usize } , 18usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( peermac ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . port as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( port ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . peerport as * const _
as usize } , 26usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( peerport ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . sentData as * const _
as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( sentData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . rcvdData as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( rcvdData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ptpStatStruct ) ) . unk1 as * const _ as
usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( ptpStatStruct ) , "::"
, stringify ! ( unk1 ) ));
}
impl Clone for ptpStatStruct {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceNetAdhocGetPtpStat(size: *mut ::std::os::raw::c_int,
stat: *mut ptpStatStruct)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspAdhocMatchingEvents {
PSP_ADHOC_MATCHING_EVENT_HELLO = 1,
PSP_ADHOC_MATCHING_EVENT_JOIN = 2,
PSP_ADHOC_MATCHING_EVENT_LEFT = 3,
PSP_ADHOC_MATCHING_EVENT_REJECT = 4,
PSP_ADHOC_MATCHING_EVENT_CANCEL = 5,
PSP_ADHOC_MATCHING_EVENT_ACCEPT = 6,
PSP_ADHOC_MATCHING_EVENT_COMPLETE = 7,
PSP_ADHOC_MATCHING_EVENT_TIMEOUT = 8,
PSP_ADHOC_MATCHING_EVENT_ERROR = 9,
PSP_ADHOC_MATCHING_EVENT_DISCONNECT = 10,
PSP_ADHOC_MATCHING_EVENT_DATA = 11,
PSP_ADHOC_MATCHING_EVENT_DATA_CONFIRM = 12,
PSP_ADHOC_MATCHING_EVENT_DATA_TIMEOUT = 13,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspAdhocMatchingModes {
PSP_ADHOC_MATCHING_MODE_HOST = 1,
PSP_ADHOC_MATCHING_MODE_CLIENT = 2,
PSP_ADHOC_MATCHING_MODE_PTP = 3,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspAdhocMatchingMember {
pub next: *mut pspAdhocMatchingMember,
pub mac: [::std::os::raw::c_uchar; 6usize],
pub unknown: [::std::os::raw::c_char; 2usize],
}
#[test]
fn bindgen_test_layout_pspAdhocMatchingMember() {
assert_eq!(::std::mem::size_of::<pspAdhocMatchingMember>() , 16usize ,
concat ! ( "Size of: " , stringify ! ( pspAdhocMatchingMember )
));
assert_eq! (::std::mem::align_of::<pspAdhocMatchingMember>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( pspAdhocMatchingMember ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAdhocMatchingMember ) ) . next as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspAdhocMatchingMember
) , "::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAdhocMatchingMember ) ) . mac as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pspAdhocMatchingMember
) , "::" , stringify ! ( mac ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAdhocMatchingMember ) ) . unknown as *
const _ as usize } , 14usize , concat ! (
"Alignment of field: " , stringify ! ( pspAdhocMatchingMember
) , "::" , stringify ! ( unknown ) ));
}
impl Clone for pspAdhocMatchingMember {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspAdhocPoolStat {
pub size: ::std::os::raw::c_int,
pub maxsize: ::std::os::raw::c_int,
pub freesize: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pspAdhocPoolStat() {
assert_eq!(::std::mem::size_of::<pspAdhocPoolStat>() , 12usize , concat !
( "Size of: " , stringify ! ( pspAdhocPoolStat ) ));
assert_eq! (::std::mem::align_of::<pspAdhocPoolStat>() , 4usize , concat !
( "Alignment of " , stringify ! ( pspAdhocPoolStat ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAdhocPoolStat ) ) . size as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspAdhocPoolStat ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAdhocPoolStat ) ) . maxsize as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( pspAdhocPoolStat ) ,
"::" , stringify ! ( maxsize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspAdhocPoolStat ) ) . freesize as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pspAdhocPoolStat ) ,
"::" , stringify ! ( freesize ) ));
}
impl Clone for pspAdhocPoolStat {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceNetAdhocMatchingInit(memsize: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingTerm() -> ::std::os::raw::c_int;
}
pub type pspAdhocMatchingCallback =
::std::option::Option<unsafe extern "C" fn(matchingid:
::std::os::raw::c_int,
event: ::std::os::raw::c_int,
mac:
*mut ::std::os::raw::c_uchar,
optlen: ::std::os::raw::c_int,
optdata:
*mut ::std::os::raw::c_void)>;
extern "C" {
pub fn sceNetAdhocMatchingCreate(mode: ::std::os::raw::c_int,
maxpeers: ::std::os::raw::c_int,
port: ::std::os::raw::c_ushort,
bufsize: ::std::os::raw::c_int,
hellodelay: ::std::os::raw::c_uint,
pingdelay: ::std::os::raw::c_uint,
initcount: ::std::os::raw::c_int,
msgdelay: ::std::os::raw::c_uint,
callback: pspAdhocMatchingCallback)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingDelete(matchingid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingStart(matchingid: ::std::os::raw::c_int,
evthpri: ::std::os::raw::c_int,
evthstack: ::std::os::raw::c_int,
inthpri: ::std::os::raw::c_int,
inthstack: ::std::os::raw::c_int,
optlen: ::std::os::raw::c_int,
optdata: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingStop(matchingid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingSelectTarget(matchingid: ::std::os::raw::c_int,
mac: *mut ::std::os::raw::c_uchar,
optlen: ::std::os::raw::c_int,
optdata:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingCancelTarget(matchingid: ::std::os::raw::c_int,
mac: *mut ::std::os::raw::c_uchar)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingCancelTargetWithOpt(matchingid:
::std::os::raw::c_int,
mac:
*mut ::std::os::raw::c_uchar,
optlen:
::std::os::raw::c_int,
optdata:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingSendData(matchingid: ::std::os::raw::c_int,
mac: *mut ::std::os::raw::c_uchar,
datalen: ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingAbortSendData(matchingid: ::std::os::raw::c_int,
mac: *mut ::std::os::raw::c_uchar)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingSetHelloOpt(matchingid: ::std::os::raw::c_int,
optlen: ::std::os::raw::c_int,
optdata:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingGetHelloOpt(matchingid: ::std::os::raw::c_int,
optlen: *mut ::std::os::raw::c_int,
optdata:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingGetMembers(matchingid: ::std::os::raw::c_int,
length: *mut ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingGetPoolMaxAlloc() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetAdhocMatchingGetPoolStat(poolstat: *mut pspAdhocPoolStat)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub union SceNetApctlInfo {
pub name: [::std::os::raw::c_char; 64usize],
pub bssid: [::std::os::raw::c_uchar; 6usize],
pub ssid: [::std::os::raw::c_uchar; 32usize],
pub ssidLength: ::std::os::raw::c_uint,
pub securityType: ::std::os::raw::c_uint,
pub strength: ::std::os::raw::c_uchar,
pub channel: ::std::os::raw::c_uchar,
pub powerSave: ::std::os::raw::c_uchar,
pub ip: [::std::os::raw::c_char; 16usize],
pub subNetMask: [::std::os::raw::c_char; 16usize],
pub gateway: [::std::os::raw::c_char; 16usize],
pub primaryDns: [::std::os::raw::c_char; 16usize],
pub secondaryDns: [::std::os::raw::c_char; 16usize],
pub useProxy: ::std::os::raw::c_uint,
pub proxyUrl: [::std::os::raw::c_char; 128usize],
pub proxyPort: ::std::os::raw::c_ushort,
pub eapType: ::std::os::raw::c_uint,
pub startBrowser: ::std::os::raw::c_uint,
pub wifisp: ::std::os::raw::c_uint,
_bindgen_union_align: [u32; 32usize],
}
#[test]
fn bindgen_test_layout_SceNetApctlInfo() {
assert_eq!(::std::mem::size_of::<SceNetApctlInfo>() , 128usize , concat !
( "Size of: " , stringify ! ( SceNetApctlInfo ) ));
assert_eq! (::std::mem::align_of::<SceNetApctlInfo>() , 4usize , concat !
( "Alignment of " , stringify ! ( SceNetApctlInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . name as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . bssid as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( bssid ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . ssid as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( ssid ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . ssidLength as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( ssidLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . securityType as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( securityType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . strength as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( strength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . channel as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( channel ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . powerSave as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( powerSave ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . ip as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( ip ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . subNetMask as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( subNetMask ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . gateway as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( gateway ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . primaryDns as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( primaryDns ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . secondaryDns as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( secondaryDns ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . useProxy as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( useProxy ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . proxyUrl as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( proxyUrl ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . proxyPort as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( proxyPort ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . eapType as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( eapType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . startBrowser as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( startBrowser ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetApctlInfo ) ) . wifisp as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetApctlInfo ) ,
"::" , stringify ! ( wifisp ) ));
}
impl Clone for SceNetApctlInfo {
fn clone(&self) -> Self { *self }
}
pub type sceNetApctlHandler =
::std::option::Option<unsafe extern "C" fn(oldState:
::std::os::raw::c_int,
newState:
::std::os::raw::c_int,
event: ::std::os::raw::c_int,
error: ::std::os::raw::c_int,
pArg:
*mut ::std::os::raw::c_void)>;
extern "C" {
pub fn sceNetApctlInit(stackSize: ::std::os::raw::c_int,
initPriority: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlTerm() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlGetInfo(code: ::std::os::raw::c_int,
pInfo: *mut SceNetApctlInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlAddHandler(handler: sceNetApctlHandler,
pArg: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlDelHandler(handlerId: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlConnect(connIndex: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlDisconnect() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetApctlGetState(pState: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceNetMallocStat {
pub pool: ::std::os::raw::c_int,
pub maximum: ::std::os::raw::c_int,
pub free: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_SceNetMallocStat() {
assert_eq!(::std::mem::size_of::<SceNetMallocStat>() , 12usize , concat !
( "Size of: " , stringify ! ( SceNetMallocStat ) ));
assert_eq! (::std::mem::align_of::<SceNetMallocStat>() , 4usize , concat !
( "Alignment of " , stringify ! ( SceNetMallocStat ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetMallocStat ) ) . pool as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetMallocStat ) ,
"::" , stringify ! ( pool ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetMallocStat ) ) . maximum as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetMallocStat ) ,
"::" , stringify ! ( maximum ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceNetMallocStat ) ) . free as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceNetMallocStat ) ,
"::" , stringify ! ( free ) ));
}
impl Clone for SceNetMallocStat {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceNetInit(poolsize: ::std::os::raw::c_int,
calloutprio: ::std::os::raw::c_int,
calloutstack: ::std::os::raw::c_int,
netintrprio: ::std::os::raw::c_int,
netintrstack: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetTerm() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetFreeThreadinfo(thid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetThreadAbort(thid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetEtherStrton(name: *mut ::std::os::raw::c_char,
mac: *mut ::std::os::raw::c_uchar);
}
extern "C" {
pub fn sceNetEtherNtostr(mac: *mut ::std::os::raw::c_uchar,
name: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn sceNetGetLocalEtherAddr(mac: *mut ::std::os::raw::c_uchar)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetGetMallocStat(stat: *mut SceNetMallocStat)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetInit() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetTerm() -> ::std::os::raw::c_int;
}
pub type sa_family_t = u8;
pub type socklen_t = u32;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct linger {
pub l_onoff: ::std::os::raw::c_int,
pub l_linger: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_linger() {
assert_eq!(::std::mem::size_of::<linger>() , 8usize , concat ! (
"Size of: " , stringify ! ( linger ) ));
assert_eq! (::std::mem::align_of::<linger>() , 4usize , concat ! (
"Alignment of " , stringify ! ( linger ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const linger ) ) . l_onoff as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( linger ) , "::" ,
stringify ! ( l_onoff ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const linger ) ) . l_linger as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( linger ) , "::" ,
stringify ! ( l_linger ) ));
}
impl Clone for linger {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sockaddr {
pub sa_len: u8,
pub sa_family: sa_family_t,
pub sa_data: [::std::os::raw::c_char; 14usize],
}
#[test]
fn bindgen_test_layout_sockaddr() {
assert_eq!(::std::mem::size_of::<sockaddr>() , 16usize , concat ! (
"Size of: " , stringify ! ( sockaddr ) ));
assert_eq! (::std::mem::align_of::<sockaddr>() , 1usize , concat ! (
"Alignment of " , stringify ! ( sockaddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr ) ) . sa_len as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr ) , "::" ,
stringify ! ( sa_len ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr ) ) . sa_family as * const _ as
usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr ) , "::" ,
stringify ! ( sa_family ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr ) ) . sa_data as * const _ as
usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr ) , "::" ,
stringify ! ( sa_data ) ));
}
impl Clone for sockaddr {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct iovec {
pub iov_base: *mut ::std::os::raw::c_void,
pub iov_len: usize,
}
#[test]
fn bindgen_test_layout_iovec() {
assert_eq!(::std::mem::size_of::<iovec>() , 16usize , concat ! (
"Size of: " , stringify ! ( iovec ) ));
assert_eq! (::std::mem::align_of::<iovec>() , 8usize , concat ! (
"Alignment of " , stringify ! ( iovec ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const iovec ) ) . iov_base as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( iovec ) , "::" ,
stringify ! ( iov_base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const iovec ) ) . iov_len as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( iovec ) , "::" ,
stringify ! ( iov_len ) ));
}
impl Clone for iovec {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct msghdr {
pub msg_name: *mut ::std::os::raw::c_void,
pub msg_namelen: socklen_t,
pub msg_iov: *mut iovec,
pub msg_iovlen: ::std::os::raw::c_int,
pub msg_control: *mut ::std::os::raw::c_void,
pub msg_controllen: socklen_t,
pub msg_flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_msghdr() {
assert_eq!(::std::mem::size_of::<msghdr>() , 48usize , concat ! (
"Size of: " , stringify ! ( msghdr ) ));
assert_eq! (::std::mem::align_of::<msghdr>() , 8usize , concat ! (
"Alignment of " , stringify ! ( msghdr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_name as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_namelen as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_namelen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_iov as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_iov ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_iovlen as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_iovlen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_control as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_control ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_controllen as * const _
as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_controllen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const msghdr ) ) . msg_flags as * const _ as
usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! ( msghdr ) , "::" ,
stringify ! ( msg_flags ) ));
}
impl Clone for msghdr {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn accept(arg1: ::std::os::raw::c_int, arg2: *mut sockaddr,
arg3: *mut socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bind(arg1: ::std::os::raw::c_int, arg2: *const sockaddr,
arg3: socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn connect(arg1: ::std::os::raw::c_int, arg2: *const sockaddr,
arg3: socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getpeername(arg1: ::std::os::raw::c_int, arg2: *mut sockaddr,
arg3: *mut socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsockname(arg1: ::std::os::raw::c_int, arg2: *mut sockaddr,
arg3: *mut socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsockopt(arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_void, arg5: *mut socklen_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn listen(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn recv(arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void, arg3: usize,
arg4: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn recvfrom(arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void, arg3: usize,
arg4: ::std::os::raw::c_int, arg5: *mut sockaddr,
arg6: *mut socklen_t) -> isize;
}
extern "C" {
pub fn recvmsg(s: ::std::os::raw::c_int, msg: *mut msghdr,
flags: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn send(arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_void, arg3: usize,
arg4: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn sendto(arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_void, arg3: usize,
arg4: ::std::os::raw::c_int, arg5: *const sockaddr,
arg6: socklen_t) -> isize;
}
extern "C" {
pub fn sendmsg(s: ::std::os::raw::c_int, msg: *const msghdr,
flags: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn setsockopt(arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_void, arg5: socklen_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn shutdown(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn socket(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetAccept(s: ::std::os::raw::c_int, addr: *mut sockaddr,
addrlen: *mut socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetBind(s: ::std::os::raw::c_int, my_addr: *const sockaddr,
addrlen: socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetConnect(s: ::std::os::raw::c_int,
serv_addr: *const sockaddr, addrlen: socklen_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetGetsockopt(s: ::std::os::raw::c_int,
level: ::std::os::raw::c_int,
optname: ::std::os::raw::c_int,
optval: *mut ::std::os::raw::c_void,
optlen: *mut socklen_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetListen(s: ::std::os::raw::c_int,
backlog: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetRecv(s: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void, len: usize,
flags: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn sceNetInetRecvfrom(s: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void, flags: usize,
arg1: ::std::os::raw::c_int,
from: *mut sockaddr, fromlen: *mut socklen_t)
-> isize;
}
extern "C" {
pub fn sceNetInetRecvmsg(s: ::std::os::raw::c_int, msg: *mut msghdr,
flags: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn sceNetInetSend(s: ::std::os::raw::c_int,
buf: *const ::std::os::raw::c_void, len: usize,
flags: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn sceNetInetSendto(s: ::std::os::raw::c_int,
buf: *const ::std::os::raw::c_void, len: usize,
flags: ::std::os::raw::c_int, to: *const sockaddr,
tolen: socklen_t) -> isize;
}
extern "C" {
pub fn sceNetInetSendmsg(s: ::std::os::raw::c_int, msg: *const msghdr,
flags: ::std::os::raw::c_int) -> isize;
}
extern "C" {
pub fn sceNetInetSetsockopt(s: ::std::os::raw::c_int,
level: ::std::os::raw::c_int,
optname: ::std::os::raw::c_int,
optval: *const ::std::os::raw::c_void,
optlen: socklen_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetShutdown(s: ::std::os::raw::c_int,
how: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetSocket(domain: ::std::os::raw::c_int,
type_: ::std::os::raw::c_int,
protocol: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetClose(s: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetGetErrno() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetGetsockname(s: ::std::os::raw::c_int,
name: *mut sockaddr, namelen: *mut socklen_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetInetGetpeername(s: ::std::os::raw::c_int,
name: *mut sockaddr, namelen: *mut socklen_t)
-> ::std::os::raw::c_int;
}
pub type in_addr_t = u32;
pub type in_port_t = u16;
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct in_addr {
pub s_addr: in_addr_t,
}
#[test]
fn bindgen_test_layout_in_addr() {
assert_eq!(::std::mem::size_of::<in_addr>() , 4usize , concat ! (
"Size of: " , stringify ! ( in_addr ) ));
assert_eq! (::std::mem::align_of::<in_addr>() , 1usize , concat ! (
"Alignment of " , stringify ! ( in_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const in_addr ) ) . s_addr as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( in_addr ) , "::" ,
stringify ! ( s_addr ) ));
}
impl Clone for in_addr {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sockaddr_in {
pub sin_len: u8,
pub sin_family: sa_family_t,
pub sin_port: in_port_t,
pub sin_addr: in_addr,
pub sin_zero: [i8; 8usize],
}
#[test]
fn bindgen_test_layout_sockaddr_in() {
assert_eq!(::std::mem::size_of::<sockaddr_in>() , 16usize , concat ! (
"Size of: " , stringify ! ( sockaddr_in ) ));
assert_eq! (::std::mem::align_of::<sockaddr_in>() , 2usize , concat ! (
"Alignment of " , stringify ! ( sockaddr_in ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr_in ) ) . sin_len as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr_in ) , "::" ,
stringify ! ( sin_len ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr_in ) ) . sin_family as * const _
as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr_in ) , "::" ,
stringify ! ( sin_family ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr_in ) ) . sin_port as * const _
as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr_in ) , "::" ,
stringify ! ( sin_port ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr_in ) ) . sin_addr as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr_in ) , "::" ,
stringify ! ( sin_addr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sockaddr_in ) ) . sin_zero as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sockaddr_in ) , "::" ,
stringify ! ( sin_zero ) ));
}
impl Clone for sockaddr_in {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct ip_opts {
pub ip_dst: in_addr,
pub ip_opts: [i8; 40usize],
}
#[test]
fn bindgen_test_layout_ip_opts() {
assert_eq!(::std::mem::size_of::<ip_opts>() , 44usize , concat ! (
"Size of: " , stringify ! ( ip_opts ) ));
assert_eq! (::std::mem::align_of::<ip_opts>() , 1usize , concat ! (
"Alignment of " , stringify ! ( ip_opts ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ip_opts ) ) . ip_dst as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ip_opts ) , "::" ,
stringify ! ( ip_dst ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ip_opts ) ) . ip_opts as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ip_opts ) , "::" ,
stringify ! ( ip_opts ) ));
}
impl Clone for ip_opts {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ip_mreq {
pub imr_multiaddr: in_addr,
pub imr_interface: in_addr,
}
#[test]
fn bindgen_test_layout_ip_mreq() {
assert_eq!(::std::mem::size_of::<ip_mreq>() , 8usize , concat ! (
"Size of: " , stringify ! ( ip_mreq ) ));
assert_eq! (::std::mem::align_of::<ip_mreq>() , 1usize , concat ! (
"Alignment of " , stringify ! ( ip_mreq ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ip_mreq ) ) . imr_multiaddr as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ip_mreq ) , "::" ,
stringify ! ( imr_multiaddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ip_mreq ) ) . imr_interface as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ip_mreq ) , "::" ,
stringify ! ( imr_interface ) ));
}
impl Clone for ip_mreq {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceNetResolverInit() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetResolverCreate(rid: *mut ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void,
buflen: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetResolverDelete(rid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetResolverStartNtoA(rid: ::std::os::raw::c_int,
hostname: *const ::std::os::raw::c_char,
addr: *mut in_addr,
timeout: ::std::os::raw::c_uint,
retry: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetResolverStartAtoN(rid: ::std::os::raw::c_int,
addr: *const in_addr,
hostname: *mut ::std::os::raw::c_char,
hostname_len: SceSize,
timeout: ::std::os::raw::c_uint,
retry: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetResolverStop(rid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceNetResolverTerm() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspOpenPSID {
pub data: [::std::os::raw::c_uchar; 16usize],
}
#[test]
fn bindgen_test_layout_PspOpenPSID() {
assert_eq!(::std::mem::size_of::<PspOpenPSID>() , 16usize , concat ! (
"Size of: " , stringify ! ( PspOpenPSID ) ));
assert_eq! (::std::mem::align_of::<PspOpenPSID>() , 1usize , concat ! (
"Alignment of " , stringify ! ( PspOpenPSID ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspOpenPSID ) ) . data as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspOpenPSID ) , "::" ,
stringify ! ( data ) ));
}
impl Clone for PspOpenPSID {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceOpenPSIDGetOpenPSID(openpsid: *mut PspOpenPSID)
-> ::std::os::raw::c_int;
}
pub type powerCallback_t =
::std::option::Option<unsafe extern "C" fn(unknown: ::std::os::raw::c_int,
powerInfo:
::std::os::raw::c_int)>;
extern "C" {
pub fn scePowerRegisterCallback(slot: ::std::os::raw::c_int, cbid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerUnregisterCallback(slot: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerIsPowerOnline() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerIsBatteryExist() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerIsBatteryCharging() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBatteryChargingStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerIsLowBattery() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBatteryLifePercent() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBatteryLifeTime() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBatteryTemp() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBatteryElec() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBatteryVolt() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerSetCpuClockFrequency(cpufreq: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerSetBusClockFrequency(busfreq: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetCpuClockFrequency() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetCpuClockFrequencyInt() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetCpuClockFrequencyFloat() -> f32;
}
extern "C" {
pub fn scePowerGetBusClockFrequency() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBusClockFrequencyInt() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetBusClockFrequencyFloat() -> f32;
}
extern "C" {
pub fn scePowerSetClockFrequency(pllfreq: ::std::os::raw::c_int,
cpufreq: ::std::os::raw::c_int,
busfreq: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerLock(unknown: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerUnlock(unknown: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerTick(type_: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerGetIdleTimer() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerIdleTimerEnable(unknown: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerIdleTimerDisable(unknown: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerRequestStandby() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scePowerRequestSuspend() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gprof_cleanup();
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum RegKeyTypes {
REG_TYPE_DIR = 1,
REG_TYPE_INT = 2,
REG_TYPE_STR = 3,
REG_TYPE_BIN = 4,
}
pub type REGHANDLE = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy)]
pub struct RegParam {
pub regtype: ::std::os::raw::c_uint,
pub name: [::std::os::raw::c_char; 256usize],
pub namelen: ::std::os::raw::c_uint,
pub unk2: ::std::os::raw::c_uint,
pub unk3: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_RegParam() {
assert_eq!(::std::mem::size_of::<RegParam>() , 272usize , concat ! (
"Size of: " , stringify ! ( RegParam ) ));
assert_eq! (::std::mem::align_of::<RegParam>() , 4usize , concat ! (
"Alignment of " , stringify ! ( RegParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const RegParam ) ) . regtype as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( RegParam ) , "::" ,
stringify ! ( regtype ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const RegParam ) ) . name as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( RegParam ) , "::" ,
stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const RegParam ) ) . namelen as * const _ as
usize } , 260usize , concat ! (
"Alignment of field: " , stringify ! ( RegParam ) , "::" ,
stringify ! ( namelen ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const RegParam ) ) . unk2 as * const _ as usize
} , 264usize , concat ! (
"Alignment of field: " , stringify ! ( RegParam ) , "::" ,
stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const RegParam ) ) . unk3 as * const _ as usize
} , 268usize , concat ! (
"Alignment of field: " , stringify ! ( RegParam ) , "::" ,
stringify ! ( unk3 ) ));
}
impl Clone for RegParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceRegOpenRegistry(reg: *mut RegParam, mode: ::std::os::raw::c_int,
h: *mut REGHANDLE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegFlushRegistry(h: REGHANDLE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegCloseRegistry(h: REGHANDLE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegOpenCategory(h: REGHANDLE,
name: *const ::std::os::raw::c_char,
mode: ::std::os::raw::c_int, hd: *mut REGHANDLE)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegRemoveCategory(h: REGHANDLE,
name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegCloseCategory(hd: REGHANDLE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegFlushCategory(hd: REGHANDLE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegGetKeyInfo(hd: REGHANDLE,
name: *const ::std::os::raw::c_char,
hk: *mut REGHANDLE,
type_: *mut ::std::os::raw::c_uint,
size: *mut SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegGetKeyInfoByName(hd: REGHANDLE,
name: *const ::std::os::raw::c_char,
type_: *mut ::std::os::raw::c_uint,
size: *mut SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegGetKeyValue(hd: REGHANDLE, hk: REGHANDLE,
buf: *mut ::std::os::raw::c_void, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegGetKeyValueByName(hd: REGHANDLE,
name: *const ::std::os::raw::c_char,
buf: *mut ::std::os::raw::c_void,
size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegSetKeyValue(hd: REGHANDLE,
name: *const ::std::os::raw::c_char,
buf: *const ::std::os::raw::c_void,
size: SceSize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegGetKeysNum(hd: REGHANDLE, num: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegGetKeys(hd: REGHANDLE, buf: *mut ::std::os::raw::c_char,
num: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegCreateKey(hd: REGHANDLE, name: *const ::std::os::raw::c_char,
type_: ::std::os::raw::c_int, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRegRemoveRegistry(reg: *mut RegParam) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspTime {
pub year: u16,
pub month: u16,
pub day: u16,
pub hour: u16,
pub minutes: u16,
pub seconds: u16,
pub microseconds: u32,
}
#[test]
fn bindgen_test_layout_pspTime() {
assert_eq!(::std::mem::size_of::<pspTime>() , 16usize , concat ! (
"Size of: " , stringify ! ( pspTime ) ));
assert_eq! (::std::mem::align_of::<pspTime>() , 4usize , concat ! (
"Alignment of " , stringify ! ( pspTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . year as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( year ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . month as * const _ as usize
} , 2usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( month ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . day as * const _ as usize }
, 4usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( day ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . hour as * const _ as usize
} , 6usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( hour ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . minutes as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( minutes ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . seconds as * const _ as
usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( seconds ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspTime ) ) . microseconds as * const _
as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( pspTime ) , "::" ,
stringify ! ( microseconds ) ));
}
impl Clone for pspTime {
fn clone(&self) -> Self { *self }
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspRtcCheckValidErrors {
PSP_TIME_INVALID_YEAR = -1,
PSP_TIME_INVALID_MONTH = -2,
PSP_TIME_INVALID_DAY = -3,
PSP_TIME_INVALID_HOUR = -4,
PSP_TIME_INVALID_MINUTES = -5,
PSP_TIME_INVALID_SECONDS = -6,
PSP_TIME_INVALID_MICROSECONDS = -7,
}
extern "C" {
pub fn sceRtcGetTickResolution() -> u32;
}
extern "C" {
pub fn sceRtcGetCurrentTick(tick: *mut u64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetCurrentClock(time: *mut pspTime,
tz: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetCurrentClockLocalTime(time: *mut pspTime)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcConvertUtcToLocalTime(tickUTC: *const u64,
tickLocal: *mut u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcConvertLocalTimeToUTC(tickLocal: *const u64,
tickUTC: *mut u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcIsLeapYear(year: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetDaysInMonth(year: ::std::os::raw::c_int,
month: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetDayOfWeek(year: ::std::os::raw::c_int,
month: ::std::os::raw::c_int,
day: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcCheckValid(date: *const pspTime) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcSetTick(date: *mut pspTime, tick: *const u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetTick(date: *const pspTime, tick: *mut u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcCompareTick(tick1: *const u64, tick2: *const u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddTicks(destTick: *mut u64, srcTick: *const u64,
numTicks: u64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddMicroseconds(destTick: *mut u64, srcTick: *const u64,
numMS: u64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddSeconds(destTick: *mut u64, srcTick: *const u64,
numSecs: u64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddMinutes(destTick: *mut u64, srcTick: *const u64,
numMins: u64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddHours(destTick: *mut u64, srcTick: *const u64,
numHours: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddDays(destTick: *mut u64, srcTick: *const u64,
numDays: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddWeeks(destTick: *mut u64, srcTick: *const u64,
numWeeks: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddMonths(destTick: *mut u64, srcTick: *const u64,
numMonths: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcTickAddYears(destTick: *mut u64, srcTick: *const u64,
numYears: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcSetTime_t(date: *mut pspTime, time: time_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetTime_t(date: *const pspTime, time: *mut time_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcSetDosTime(date: *mut pspTime, dosTime: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetDosTime(date: *mut pspTime, dosTime: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcSetWin32FileTime(date: *mut pspTime, win32Time: *mut u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcGetWin32FileTime(date: *mut pspTime, win32Time: *mut u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcParseDateTime(destTick: *mut u64,
dateString: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcFormatRFC2822(pszDateTime: *mut ::std::os::raw::c_char,
pUtc: *const u64,
iTimeZoneMinutes: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcFormatRFC2822LocalTime(pszDateTime:
*mut ::std::os::raw::c_char,
pUtc: *const u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcFormatRFC3339(pszDateTime: *mut ::std::os::raw::c_char,
pUtc: *const u64,
iTimeZoneMinutes: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcFormatRFC3339LocalTime(pszDateTime:
*mut ::std::os::raw::c_char,
pUtc: *const u64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceRtcParseRFC3339(pUtc: *mut u64,
pszDateTime: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkQueryModuleInfoV1(uid: SceUID,
modinfo: *mut SceKernelModuleInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkGetModuleIdList(readbuf: *mut SceUID,
readbufsize: ::std::os::raw::c_int,
idcount: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkInstallNoDeviceCheckPatch() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkInstallNoPlainModuleCheckPatch() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkInstallKernelLoadModulePatch() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkLoadStartModule(filename: *const ::std::os::raw::c_char,
mpid: ::std::os::raw::c_int) -> SceUID;
}
extern "C" {
pub fn pspSdkLoadStartModuleWithArgs(filename:
*const ::std::os::raw::c_char,
mpid: ::std::os::raw::c_int,
argc: ::std::os::raw::c_int,
argv:
*const *const ::std::os::raw::c_char)
-> SceUID;
}
extern "C" {
pub fn pspSdkFixupImports(moduleId: ::std::os::raw::c_int);
}
extern "C" {
pub fn pspSdkLoadInetModules() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkInetInit() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkInetTerm();
}
extern "C" {
pub fn pspSdkReferThreadStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelThreadInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferSemaStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelSemaInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferEventFlagStatusByName(name:
*const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo:
*mut SceKernelEventFlagInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferMboxStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelMbxInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferVplStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelVplInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferFplStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelFplInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferMppStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelMppInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferCallbackStatusByName(name:
*const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelCallbackInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferVTimerStatusByName(name: *const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo: *mut SceKernelVTimerInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkReferThreadEventHandlerStatusByName(name:
*const ::std::os::raw::c_char,
pUID: *mut SceUID,
pInfo:
*mut SceKernelThreadEventHandlerInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pspSdkDisableInterrupts() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn pspSdkEnableInterrupts(istate: ::std::os::raw::c_uint);
}
extern "C" {
pub fn pspSdkSetK1(k1: ::std::os::raw::c_uint) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn pspSdkGetK1() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn pspSdkDisableFPUExceptions();
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sircs_data {
pub type_: u8,
pub cmd: u8,
pub dev: u16,
}
#[test]
fn bindgen_test_layout_sircs_data() {
assert_eq!(::std::mem::size_of::<sircs_data>() , 4usize , concat ! (
"Size of: " , stringify ! ( sircs_data ) ));
assert_eq! (::std::mem::align_of::<sircs_data>() , 2usize , concat ! (
"Alignment of " , stringify ! ( sircs_data ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sircs_data ) ) . type_ as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sircs_data ) , "::" ,
stringify ! ( type_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sircs_data ) ) . cmd as * const _ as
usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( sircs_data ) , "::" ,
stringify ! ( cmd ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sircs_data ) ) . dev as * const _ as
usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( sircs_data ) , "::" ,
stringify ! ( dev ) ));
}
impl Clone for sircs_data {
fn clone(&self) -> Self { *self }
}
extern "C" {
#[link_name = "__packed__"]
pub static mut __packed__: sircs_data;
}
extern "C" {
pub fn sceSircsSend(sd: *mut sircs_data, count: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSslInit(unknown1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSslEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSslGetUsedMemoryMax(memory: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSslGetUsedMemoryCurrent(memory: *mut ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelVolatileMemLock(unk: ::std::os::raw::c_int,
ptr: *mut *mut ::std::os::raw::c_void,
size: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelVolatileMemTryLock(unk: ::std::os::raw::c_int,
ptr: *mut *mut ::std::os::raw::c_void,
size: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelVolatileMemUnlock(unk: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub type prnt_callback =
::std::option::Option<unsafe extern "C" fn(ctx:
*mut ::std::os::raw::c_void,
ch: ::std::os::raw::c_int)>;
extern "C" {
pub fn prnt(cb: prnt_callback, ctx: *mut ::std::os::raw::c_void,
fmt: *const ::std::os::raw::c_char, args: *mut __va_list_tag);
}
extern "C" {
pub fn sceSysconPowerStandby();
}
extern "C" {
pub fn sceSysconResetDevice(unk1: ::std::os::raw::c_int,
unk2: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceSysconCtrlLED(SceLED: ::std::os::raw::c_int,
state: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconCtrlHRPower(power: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconGetHPConnect() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconSetHPConnectCallback(arg1:
::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int)>,
unk0: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconSetHRPowerCallback(arg1:
::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int)>,
unk0: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconGetPommelVersion(version: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceSysconGetBaryonVersion(version: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspSysEventHandler {
pub size: ::std::os::raw::c_int,
pub name: *mut ::std::os::raw::c_char,
pub type_mask: ::std::os::raw::c_int,
pub handler: ::std::option::Option<unsafe extern "C" fn(ev_id:
::std::os::raw::c_int,
ev_name:
*mut ::std::os::raw::c_char,
param:
*mut ::std::os::raw::c_void,
result:
*mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub r28: ::std::os::raw::c_int,
pub busy: ::std::os::raw::c_int,
pub next: *mut _PspSysEventHandler,
pub reserved: [::std::os::raw::c_int; 9usize],
}
#[test]
fn bindgen_test_layout_PspSysEventHandler() {
assert_eq!(::std::mem::size_of::<PspSysEventHandler>() , 88usize , concat
! ( "Size of: " , stringify ! ( PspSysEventHandler ) ));
assert_eq! (::std::mem::align_of::<PspSysEventHandler>() , 8usize , concat
! ( "Alignment of " , stringify ! ( PspSysEventHandler ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . size as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . name as * const
_ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . type_mask as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( type_mask ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . handler as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( handler ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . r28 as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( r28 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . busy as * const
_ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( busy ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . next as * const
_ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspSysEventHandler ) ) . reserved as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( PspSysEventHandler ) ,
"::" , stringify ! ( reserved ) ));
}
impl Clone for PspSysEventHandler {
fn clone(&self) -> Self { *self }
}
pub type _PspSysEventHandler = PspSysEventHandler;
pub type PspSysEventHandlerFunc =
::std::option::Option<unsafe extern "C" fn(ev_id: ::std::os::raw::c_int,
ev_name:
*mut ::std::os::raw::c_char,
param:
*mut ::std::os::raw::c_void,
result:
*mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int>;
extern "C" {
pub fn sceKernelSysEventDispatch(ev_type_mask: ::std::os::raw::c_int,
ev_id: ::std::os::raw::c_int,
ev_name: *mut ::std::os::raw::c_char,
param: *mut ::std::os::raw::c_void,
result: *mut ::std::os::raw::c_int,
break_nonzero: ::std::os::raw::c_int,
break_handler: *mut PspSysEventHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelReferSysEventHandler() -> *mut PspSysEventHandler;
}
extern "C" {
pub fn sceKernelIsRegisterSysEventHandler(handler:
*mut PspSysEventHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelRegisterSysEventHandler(handler: *mut PspSysEventHandler)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelUnregisterSysEventHandler(handler:
*mut PspSysEventHandler)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _PspSysmemPartitionInfo {
pub size: SceSize,
pub startaddr: ::std::os::raw::c_uint,
pub memsize: ::std::os::raw::c_uint,
pub attr: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout__PspSysmemPartitionInfo() {
assert_eq!(::std::mem::size_of::<_PspSysmemPartitionInfo>() , 16usize ,
concat ! (
"Size of: " , stringify ! ( _PspSysmemPartitionInfo ) ));
assert_eq! (::std::mem::align_of::<_PspSysmemPartitionInfo>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( _PspSysmemPartitionInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspSysmemPartitionInfo ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _PspSysmemPartitionInfo
) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspSysmemPartitionInfo ) ) . startaddr
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _PspSysmemPartitionInfo
) , "::" , stringify ! ( startaddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspSysmemPartitionInfo ) ) . memsize as
* const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( _PspSysmemPartitionInfo
) , "::" , stringify ! ( memsize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _PspSysmemPartitionInfo ) ) . attr as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( _PspSysmemPartitionInfo
) , "::" , stringify ! ( attr ) ));
}
impl Clone for _PspSysmemPartitionInfo {
fn clone(&self) -> Self { *self }
}
pub type PspSysmemPartitionInfo = _PspSysmemPartitionInfo;
extern "C" {
pub fn sceKernelQueryMemoryPartitionInfo(pid: ::std::os::raw::c_int,
info:
*mut PspSysmemPartitionInfo)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelPartitionTotalFreeMemSize(pid: ::std::os::raw::c_int)
-> SceSize;
}
extern "C" {
pub fn sceKernelPartitionMaxFreeMemSize(pid: ::std::os::raw::c_int)
-> SceSize;
}
extern "C" {
pub fn sceKernelSysMemDump();
}
extern "C" {
pub fn sceKernelSysMemDumpBlock();
}
extern "C" {
pub fn sceKernelSysMemDumpTail();
}
extern "C" {
pub fn sceKernelSetDdrMemoryProtection(addr: *mut ::std::os::raw::c_void,
size: ::std::os::raw::c_int,
prot: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCreateHeap(partitionid: SceUID, size: SceSize,
unk: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char) -> SceUID;
}
extern "C" {
pub fn sceKernelAllocHeapMemory(heapid: SceUID, size: SceSize)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceKernelFreeHeapMemory(heapid: SceUID,
block: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDeleteHeap(heapid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelHeapTotalFreeSize(heapid: SceUID) -> SceSize;
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct _uidControlBlock {
pub parent: *mut _uidControlBlock,
pub nextChild: *mut _uidControlBlock,
pub type_: *mut _uidControlBlock,
pub UID: u32,
pub name: *mut ::std::os::raw::c_char,
pub unk: ::std::os::raw::c_uchar,
pub size: ::std::os::raw::c_uchar,
pub attribute: ::std::os::raw::c_short,
pub nextEntry: *mut _uidControlBlock,
}
#[test]
fn bindgen_test_layout__uidControlBlock() {
assert_eq!(::std::mem::size_of::<_uidControlBlock>() , 48usize , concat !
( "Size of: " , stringify ! ( _uidControlBlock ) ));
assert_eq! (::std::mem::align_of::<_uidControlBlock>() , 1usize , concat !
( "Alignment of " , stringify ! ( _uidControlBlock ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . parent as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( parent ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . nextChild as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( nextChild ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . type_ as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( type_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . UID as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( UID ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . name as * const _
as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . unk as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( unk ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . size as * const _
as usize } , 37usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . attribute as *
const _ as usize } , 38usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( attribute ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _uidControlBlock ) ) . nextEntry as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( _uidControlBlock ) ,
"::" , stringify ! ( nextEntry ) ));
}
impl Clone for _uidControlBlock {
fn clone(&self) -> Self { *self }
}
pub type uidControlBlock = _uidControlBlock;
extern "C" {
pub fn sceKernelGetUIDcontrolBlock(uid: SceUID,
block: *mut *mut uidControlBlock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetUIDcontrolBlockWithType(uid: SceUID,
type_: *mut uidControlBlock,
block:
*mut *mut uidControlBlock)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn SysMemForKernel_536AD5E1() -> *mut uidControlBlock;
}
extern "C" {
pub fn sceKernelDeleteUID(uid: SceUID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetModel() -> ::std::os::raw::c_int;
}
pub type SceSysTimerId = ::std::os::raw::c_int;
extern "C" {
pub fn sceSTimerAlloc() -> SceSysTimerId;
}
extern "C" {
pub fn sceSTimerFree(timer: SceSysTimerId);
}
extern "C" {
pub fn sceSTimerStartCount(timer: SceSysTimerId);
}
extern "C" {
pub fn sceSTimerStopCount(timer: SceSysTimerId);
}
extern "C" {
pub fn sceSTimerResetCount(timer: SceSysTimerId);
}
extern "C" {
pub fn sceSTimerGetCount(timer: SceSysTimerId,
count: *mut ::std::os::raw::c_int);
}
extern "C" {
pub fn sceSTimerSetHandler(timer: SceSysTimerId,
cycle: ::std::os::raw::c_int,
handler:
::std::option::Option<unsafe extern "C" fn()
->
::std::os::raw::c_int>,
unk1: ::std::os::raw::c_int);
}
extern "C" {
pub fn SysTimerForKernel_53231A15(timer: SceSysTimerId,
unk1: ::std::os::raw::c_int);
}
extern "C" {
pub fn SysTimerForKernel_B53534B4(timer: SceSysTimerId,
unk1: ::std::os::raw::c_int,
unk2: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceKernelSuspendAllUserThreads() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelIsUserModeThread() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetUserLevel() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetSyscallRA() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sceKernelGetThreadKernelStackFreeSize(thid: SceUID)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelCheckThreadKernelStack() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelExtendKernelStack(type_: ::std::os::raw::c_int,
cb:
::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void)>,
arg: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetSystemStatusFlag() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sceKernelAllocateKTLS(id: ::std::os::raw::c_int,
cb:
::std::option::Option<unsafe extern "C" fn(size:
*mut ::std::os::raw::c_uint,
arg:
*mut ::std::os::raw::c_void)
->
::std::os::raw::c_int>,
arg: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelFreeKTLS(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelGetKTLS(id: ::std::os::raw::c_int)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn sceKernelGetThreadKTLS(id: ::std::os::raw::c_int, thid: SceUID,
mode: ::std::os::raw::c_int)
-> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceThreadContext {
pub type_: ::std::os::raw::c_uint,
pub gpr: [::std::os::raw::c_uint; 31usize],
pub fpr: [::std::os::raw::c_uint; 32usize],
pub fc31: ::std::os::raw::c_uint,
pub hi: ::std::os::raw::c_uint,
pub lo: ::std::os::raw::c_uint,
pub SR: ::std::os::raw::c_uint,
pub EPC: ::std::os::raw::c_uint,
pub field_114: ::std::os::raw::c_uint,
pub field_118: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_SceThreadContext() {
assert_eq!(::std::mem::size_of::<SceThreadContext>() , 284usize , concat !
( "Size of: " , stringify ! ( SceThreadContext ) ));
assert_eq! (::std::mem::align_of::<SceThreadContext>() , 4usize , concat !
( "Alignment of " , stringify ! ( SceThreadContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . type_ as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( type_ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . gpr as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( gpr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . fpr as * const _
as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( fpr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . fc31 as * const _
as usize } , 256usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( fc31 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . hi as * const _ as
usize } , 260usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( hi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . lo as * const _ as
usize } , 264usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( lo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . SR as * const _ as
usize } , 268usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( SR ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . EPC as * const _
as usize } , 272usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( EPC ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . field_114 as *
const _ as usize } , 276usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( field_114 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceThreadContext ) ) . field_118 as *
const _ as usize } , 280usize , concat ! (
"Alignment of field: " , stringify ! ( SceThreadContext ) ,
"::" , stringify ! ( field_118 ) ));
}
impl Clone for SceThreadContext {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceSCContext {
pub status: ::std::os::raw::c_uint,
pub epc: ::std::os::raw::c_uint,
pub sp: ::std::os::raw::c_uint,
pub ra: ::std::os::raw::c_uint,
pub k1: ::std::os::raw::c_uint,
pub unk: [::std::os::raw::c_uint; 3usize],
}
#[test]
fn bindgen_test_layout_SceSCContext() {
assert_eq!(::std::mem::size_of::<SceSCContext>() , 32usize , concat ! (
"Size of: " , stringify ! ( SceSCContext ) ));
assert_eq! (::std::mem::align_of::<SceSCContext>() , 4usize , concat ! (
"Alignment of " , stringify ! ( SceSCContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceSCContext ) ) . status as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceSCContext ) , "::" ,
stringify ! ( status ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceSCContext ) ) . epc as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceSCContext ) , "::" ,
stringify ! ( epc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceSCContext ) ) . sp as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( SceSCContext ) , "::" ,
stringify ! ( sp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceSCContext ) ) . ra as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( SceSCContext ) , "::" ,
stringify ! ( ra ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceSCContext ) ) . k1 as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( SceSCContext ) , "::" ,
stringify ! ( k1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceSCContext ) ) . unk as * const _ as
usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( SceSCContext ) , "::" ,
stringify ! ( unk ) ));
}
impl Clone for SceSCContext {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct SceKernelThreadKInfo {
pub size: SceSize,
pub name: [::std::os::raw::c_char; 32usize],
pub attr: SceUInt,
pub status: ::std::os::raw::c_int,
pub entry: SceKernelThreadEntry,
pub stack: *mut ::std::os::raw::c_void,
pub stackSize: ::std::os::raw::c_int,
pub kstack: *mut ::std::os::raw::c_void,
pub kstackSize: *mut ::std::os::raw::c_void,
pub gpReg: *mut ::std::os::raw::c_void,
pub args: SceSize,
pub argp: *mut ::std::os::raw::c_void,
pub initPriority: ::std::os::raw::c_int,
pub currentPriority: ::std::os::raw::c_int,
pub waitType: ::std::os::raw::c_int,
pub waitId: SceUID,
pub wakeupCount: ::std::os::raw::c_int,
pub runClocks: SceKernelSysClock,
pub intrPreemptCount: SceUInt,
pub threadPreemptCount: SceUInt,
pub releaseCount: SceUInt,
pub thContext: *mut SceThreadContext,
pub vfpuContext: *mut f32,
pub retAddr: *mut ::std::os::raw::c_void,
pub unknown1: SceUInt,
pub scContext: *mut SceSCContext,
}
#[test]
fn bindgen_test_layout_SceKernelThreadKInfo() {
assert_eq!(::std::mem::size_of::<SceKernelThreadKInfo>() , 192usize ,
concat ! ( "Size of: " , stringify ! ( SceKernelThreadKInfo )
));
assert_eq! (::std::mem::align_of::<SceKernelThreadKInfo>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceKernelThreadKInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . name as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . attr as *
const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( attr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . status as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( status ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . entry as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( entry ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . stack as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( stack ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . stackSize as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( stackSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . kstack as *
const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( kstack ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . kstackSize as
* const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( kstackSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . gpReg as *
const _ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( gpReg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . args as *
const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( args ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . argp as *
const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( argp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . initPriority
as * const _ as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( initPriority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) .
currentPriority as * const _ as usize } , 116usize , concat !
(
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( currentPriority ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . waitType as *
const _ as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( waitType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . waitId as *
const _ as usize } , 124usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( waitId ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . wakeupCount as
* const _ as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( wakeupCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . runClocks as *
const _ as usize } , 132usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( runClocks ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) .
intrPreemptCount as * const _ as usize } , 140usize , concat !
(
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( intrPreemptCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) .
threadPreemptCount as * const _ as usize } , 144usize , concat
! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( threadPreemptCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . releaseCount
as * const _ as usize } , 148usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( releaseCount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . thContext as *
const _ as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( thContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . vfpuContext as
* const _ as usize } , 160usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( vfpuContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . retAddr as *
const _ as usize } , 168usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( retAddr ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . unknown1 as *
const _ as usize } , 176usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( unknown1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceKernelThreadKInfo ) ) . scContext as *
const _ as usize } , 184usize , concat ! (
"Alignment of field: " , stringify ! ( SceKernelThreadKInfo )
, "::" , stringify ! ( scContext ) ));
}
impl Clone for SceKernelThreadKInfo {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn ThreadManForKernel_2D69D086(uid: SceUID,
info: *mut SceKernelThreadKInfo)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspUmdInfo {
pub size: ::std::os::raw::c_uint,
pub type_: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_pspUmdInfo() {
assert_eq!(::std::mem::size_of::<pspUmdInfo>() , 8usize , concat ! (
"Size of: " , stringify ! ( pspUmdInfo ) ));
assert_eq! (::std::mem::align_of::<pspUmdInfo>() , 4usize , concat ! (
"Alignment of " , stringify ! ( pspUmdInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUmdInfo ) ) . size as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspUmdInfo ) , "::" ,
stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUmdInfo ) ) . type_ as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( pspUmdInfo ) , "::" ,
stringify ! ( type_ ) ));
}
impl Clone for pspUmdInfo {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUmdTypes {
PSP_UMD_TYPE_GAME = 16,
PSP_UMD_TYPE_VIDEO = 32,
PSP_UMD_TYPE_AUDIO = 64,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUmdState {
PSP_UMD_NOT_PRESENT = 1,
PSP_UMD_PRESENT = 2,
PSP_UMD_CHANGED = 4,
PSP_UMD_INITING = 8,
PSP_UMD_INITED = 16,
PSP_UMD_READY = 32,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum UmdDriveStat { UMD_WAITFORDISC = 2, UMD_WAITFORINIT = 32, }
pub type UmdCallback =
::std::option::Option<unsafe extern "C" fn(unknown: ::std::os::raw::c_int,
event: ::std::os::raw::c_int)
-> ::std::os::raw::c_int>;
extern "C" {
pub fn sceUmdCheckMedium() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdGetDiscInfo(info: *mut pspUmdInfo) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdActivate(unit: ::std::os::raw::c_int,
drive: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdDeactivate(unit: ::std::os::raw::c_int,
drive: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdWaitDriveStat(stat: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdWaitDriveStatWithTimer(stat: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdWaitDriveStatCB(stat: ::std::os::raw::c_int,
timeout: ::std::os::raw::c_uint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdCancelWaitDriveStat() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdGetDriveStat() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdGetErrorStat() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdRegisterUMDCallBack(cbid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdUnRegisterUMDCallBack(cbid: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdReplacePermit() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUmdReplaceProhibit() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbInterface {
pub expect_interface: ::std::os::raw::c_int,
pub unk8: ::std::os::raw::c_int,
pub num_interface: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_UsbInterface() {
assert_eq!(::std::mem::size_of::<UsbInterface>() , 12usize , concat ! (
"Size of: " , stringify ! ( UsbInterface ) ));
assert_eq! (::std::mem::align_of::<UsbInterface>() , 4usize , concat ! (
"Alignment of " , stringify ! ( UsbInterface ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbInterface ) ) . expect_interface as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbInterface ) , "::" ,
stringify ! ( expect_interface ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbInterface ) ) . unk8 as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( UsbInterface ) , "::" ,
stringify ! ( unk8 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbInterface ) ) . num_interface as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( UsbInterface ) , "::" ,
stringify ! ( num_interface ) ));
}
impl Clone for UsbInterface {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbEndpoint {
pub endpnum: ::std::os::raw::c_int,
pub unk2: ::std::os::raw::c_int,
pub unk3: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_UsbEndpoint() {
assert_eq!(::std::mem::size_of::<UsbEndpoint>() , 12usize , concat ! (
"Size of: " , stringify ! ( UsbEndpoint ) ));
assert_eq! (::std::mem::align_of::<UsbEndpoint>() , 4usize , concat ! (
"Alignment of " , stringify ! ( UsbEndpoint ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbEndpoint ) ) . endpnum as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbEndpoint ) , "::" ,
stringify ! ( endpnum ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbEndpoint ) ) . unk2 as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( UsbEndpoint ) , "::" ,
stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbEndpoint ) ) . unk3 as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( UsbEndpoint ) , "::" ,
stringify ! ( unk3 ) ));
}
impl Clone for UsbEndpoint {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct StringDescriptor {
pub bLength: ::std::os::raw::c_uchar,
pub bDescriptorType: ::std::os::raw::c_uchar,
pub bString: [::std::os::raw::c_short; 32usize],
}
#[test]
fn bindgen_test_layout_StringDescriptor() {
assert_eq!(::std::mem::size_of::<StringDescriptor>() , 66usize , concat !
( "Size of: " , stringify ! ( StringDescriptor ) ));
assert_eq! (::std::mem::align_of::<StringDescriptor>() , 1usize , concat !
( "Alignment of " , stringify ! ( StringDescriptor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StringDescriptor ) ) . bLength as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( StringDescriptor ) ,
"::" , stringify ! ( bLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StringDescriptor ) ) . bDescriptorType as
* const _ as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( StringDescriptor ) ,
"::" , stringify ! ( bDescriptorType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StringDescriptor ) ) . bString as * const
_ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( StringDescriptor ) ,
"::" , stringify ! ( bString ) ));
}
impl Clone for StringDescriptor {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct DeviceDescriptor {
pub bLength: ::std::os::raw::c_uchar,
pub bDescriptorType: ::std::os::raw::c_uchar,
pub bcdUSB: ::std::os::raw::c_ushort,
pub bDeviceClass: ::std::os::raw::c_uchar,
pub bDeviceSubClass: ::std::os::raw::c_uchar,
pub bDeviceProtocol: ::std::os::raw::c_uchar,
pub bMaxPacketSize: ::std::os::raw::c_uchar,
pub idVendor: ::std::os::raw::c_ushort,
pub idProduct: ::std::os::raw::c_ushort,
pub bcdDevice: ::std::os::raw::c_ushort,
pub iManufacturer: ::std::os::raw::c_uchar,
pub iProduct: ::std::os::raw::c_uchar,
pub iSerialNumber: ::std::os::raw::c_uchar,
pub bNumConfigurations: ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_DeviceDescriptor() {
assert_eq!(::std::mem::size_of::<DeviceDescriptor>() , 18usize , concat !
( "Size of: " , stringify ! ( DeviceDescriptor ) ));
assert_eq! (::std::mem::align_of::<DeviceDescriptor>() , 1usize , concat !
( "Alignment of " , stringify ! ( DeviceDescriptor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bLength as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bDescriptorType as
* const _ as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bDescriptorType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bcdUSB as * const
_ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bcdUSB ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bDeviceClass as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bDeviceClass ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bDeviceSubClass as
* const _ as usize } , 5usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bDeviceSubClass ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bDeviceProtocol as
* const _ as usize } , 6usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bDeviceProtocol ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bMaxPacketSize as
* const _ as usize } , 7usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bMaxPacketSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . idVendor as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( idVendor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . idProduct as *
const _ as usize } , 10usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( idProduct ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bcdDevice as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bcdDevice ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . iManufacturer as *
const _ as usize } , 14usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( iManufacturer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . iProduct as *
const _ as usize } , 15usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( iProduct ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . iSerialNumber as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( iSerialNumber ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceDescriptor ) ) . bNumConfigurations
as * const _ as usize } , 17usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceDescriptor ) ,
"::" , stringify ! ( bNumConfigurations ) ));
}
impl Clone for DeviceDescriptor {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct ConfigDescriptor {
pub bLength: ::std::os::raw::c_uchar,
pub bDescriptorType: ::std::os::raw::c_uchar,
pub wTotalLength: ::std::os::raw::c_ushort,
pub bNumInterfaces: ::std::os::raw::c_uchar,
pub bConfigurationValue: ::std::os::raw::c_uchar,
pub iConfiguration: ::std::os::raw::c_uchar,
pub bmAttributes: ::std::os::raw::c_uchar,
pub bMaxPower: ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_ConfigDescriptor() {
assert_eq!(::std::mem::size_of::<ConfigDescriptor>() , 9usize , concat ! (
"Size of: " , stringify ! ( ConfigDescriptor ) ));
assert_eq! (::std::mem::align_of::<ConfigDescriptor>() , 1usize , concat !
( "Alignment of " , stringify ! ( ConfigDescriptor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . bLength as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( bLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . bDescriptorType as
* const _ as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( bDescriptorType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . wTotalLength as *
const _ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( wTotalLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . bNumInterfaces as
* const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( bNumInterfaces ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) .
bConfigurationValue as * const _ as usize } , 5usize , concat
! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( bConfigurationValue ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . iConfiguration as
* const _ as usize } , 6usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( iConfiguration ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . bmAttributes as *
const _ as usize } , 7usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( bmAttributes ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ConfigDescriptor ) ) . bMaxPower as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( ConfigDescriptor ) ,
"::" , stringify ! ( bMaxPower ) ));
}
impl Clone for ConfigDescriptor {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct InterfaceDescriptor {
pub bLength: ::std::os::raw::c_uchar,
pub bDescriptorType: ::std::os::raw::c_uchar,
pub bInterfaceNumber: ::std::os::raw::c_uchar,
pub bAlternateSetting: ::std::os::raw::c_uchar,
pub bNumEndpoints: ::std::os::raw::c_uchar,
pub bInterfaceClass: ::std::os::raw::c_uchar,
pub bInterfaceSubClass: ::std::os::raw::c_uchar,
pub bInterfaceProtocol: ::std::os::raw::c_uchar,
pub iInterface: ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_InterfaceDescriptor() {
assert_eq!(::std::mem::size_of::<InterfaceDescriptor>() , 9usize , concat
! ( "Size of: " , stringify ! ( InterfaceDescriptor ) ));
assert_eq! (::std::mem::align_of::<InterfaceDescriptor>() , 1usize ,
concat ! (
"Alignment of " , stringify ! ( InterfaceDescriptor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) . bLength as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) . bDescriptorType
as * const _ as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bDescriptorType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) .
bInterfaceNumber as * const _ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bInterfaceNumber ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) .
bAlternateSetting as * const _ as usize } , 3usize , concat !
(
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bAlternateSetting ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) . bNumEndpoints
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bNumEndpoints ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) . bInterfaceClass
as * const _ as usize } , 5usize , concat ! (
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bInterfaceClass ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) .
bInterfaceSubClass as * const _ as usize } , 6usize , concat !
(
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bInterfaceSubClass ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) .
bInterfaceProtocol as * const _ as usize } , 7usize , concat !
(
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( bInterfaceProtocol ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const InterfaceDescriptor ) ) . iInterface as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( InterfaceDescriptor ) ,
"::" , stringify ! ( iInterface ) ));
}
impl Clone for InterfaceDescriptor {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct EndpointDescriptor {
pub bLength: ::std::os::raw::c_uchar,
pub bDescriptorType: ::std::os::raw::c_uchar,
pub bEndpointAddress: ::std::os::raw::c_uchar,
pub bmAttributes: ::std::os::raw::c_uchar,
pub wMaxPacketSize: ::std::os::raw::c_ushort,
pub bInterval: ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_EndpointDescriptor() {
assert_eq!(::std::mem::size_of::<EndpointDescriptor>() , 7usize , concat !
( "Size of: " , stringify ! ( EndpointDescriptor ) ));
assert_eq! (::std::mem::align_of::<EndpointDescriptor>() , 1usize , concat
! ( "Alignment of " , stringify ! ( EndpointDescriptor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const EndpointDescriptor ) ) . bLength as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( EndpointDescriptor ) ,
"::" , stringify ! ( bLength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const EndpointDescriptor ) ) . bDescriptorType
as * const _ as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( EndpointDescriptor ) ,
"::" , stringify ! ( bDescriptorType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const EndpointDescriptor ) ) . bEndpointAddress
as * const _ as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( EndpointDescriptor ) ,
"::" , stringify ! ( bEndpointAddress ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const EndpointDescriptor ) ) . bmAttributes as
* const _ as usize } , 3usize , concat ! (
"Alignment of field: " , stringify ! ( EndpointDescriptor ) ,
"::" , stringify ! ( bmAttributes ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const EndpointDescriptor ) ) . wMaxPacketSize
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( EndpointDescriptor ) ,
"::" , stringify ! ( wMaxPacketSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const EndpointDescriptor ) ) . bInterval as *
const _ as usize } , 6usize , concat ! (
"Alignment of field: " , stringify ! ( EndpointDescriptor ) ,
"::" , stringify ! ( bInterval ) ));
}
impl Clone for EndpointDescriptor {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbInterfaces {
pub infp: [*mut InterfaceDescriptor; 2usize],
pub num: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_UsbInterfaces() {
assert_eq!(::std::mem::size_of::<UsbInterfaces>() , 24usize , concat ! (
"Size of: " , stringify ! ( UsbInterfaces ) ));
assert_eq! (::std::mem::align_of::<UsbInterfaces>() , 8usize , concat ! (
"Alignment of " , stringify ! ( UsbInterfaces ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbInterfaces ) ) . infp as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbInterfaces ) , "::"
, stringify ! ( infp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbInterfaces ) ) . num as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbInterfaces ) , "::"
, stringify ! ( num ) ));
}
impl Clone for UsbInterfaces {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbConfiguration {
pub confp: *mut ConfigDescriptor,
pub infs: *mut UsbInterfaces,
pub infp: *mut InterfaceDescriptor,
pub endp: *mut EndpointDescriptor,
}
#[test]
fn bindgen_test_layout_UsbConfiguration() {
assert_eq!(::std::mem::size_of::<UsbConfiguration>() , 32usize , concat !
( "Size of: " , stringify ! ( UsbConfiguration ) ));
assert_eq! (::std::mem::align_of::<UsbConfiguration>() , 8usize , concat !
( "Alignment of " , stringify ! ( UsbConfiguration ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbConfiguration ) ) . confp as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbConfiguration ) ,
"::" , stringify ! ( confp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbConfiguration ) ) . infs as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( UsbConfiguration ) ,
"::" , stringify ! ( infs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbConfiguration ) ) . infp as * const _
as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbConfiguration ) ,
"::" , stringify ! ( infp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbConfiguration ) ) . endp as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( UsbConfiguration ) ,
"::" , stringify ! ( endp ) ));
}
impl Clone for UsbConfiguration {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct UsbData {
pub devdesc: [::std::os::raw::c_uchar; 20usize],
pub config: UsbData_Config,
pub confdesc: UsbData_ConfDesc,
pub pad1: [::std::os::raw::c_uchar; 8usize],
pub interfaces: UsbData_Interfaces,
pub interdesc: UsbData_InterDesc,
pub endp: [UsbData_Endp; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbData_Config {
pub pconfdesc: *mut ::std::os::raw::c_void,
pub pinterfaces: *mut ::std::os::raw::c_void,
pub pinterdesc: *mut ::std::os::raw::c_void,
pub pendp: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_UsbData_Config() {
assert_eq!(::std::mem::size_of::<UsbData_Config>() , 32usize , concat ! (
"Size of: " , stringify ! ( UsbData_Config ) ));
assert_eq! (::std::mem::align_of::<UsbData_Config>() , 8usize , concat ! (
"Alignment of " , stringify ! ( UsbData_Config ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Config ) ) . pconfdesc as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Config ) , "::"
, stringify ! ( pconfdesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Config ) ) . pinterfaces as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Config ) , "::"
, stringify ! ( pinterfaces ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Config ) ) . pinterdesc as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Config ) , "::"
, stringify ! ( pinterdesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Config ) ) . pendp as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Config ) , "::"
, stringify ! ( pendp ) ));
}
impl Clone for UsbData_Config {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbData_ConfDesc {
pub desc: [::std::os::raw::c_uchar; 12usize],
pub pinterfaces: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_UsbData_ConfDesc() {
assert_eq!(::std::mem::size_of::<UsbData_ConfDesc>() , 24usize , concat !
( "Size of: " , stringify ! ( UsbData_ConfDesc ) ));
assert_eq! (::std::mem::align_of::<UsbData_ConfDesc>() , 8usize , concat !
( "Alignment of " , stringify ! ( UsbData_ConfDesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_ConfDesc ) ) . desc as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_ConfDesc ) ,
"::" , stringify ! ( desc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_ConfDesc ) ) . pinterfaces as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_ConfDesc ) ,
"::" , stringify ! ( pinterfaces ) ));
}
impl Clone for UsbData_ConfDesc {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbData_Interfaces {
pub pinterdesc: [*mut ::std::os::raw::c_void; 2usize],
pub intcount: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_UsbData_Interfaces() {
assert_eq!(::std::mem::size_of::<UsbData_Interfaces>() , 24usize , concat
! ( "Size of: " , stringify ! ( UsbData_Interfaces ) ));
assert_eq! (::std::mem::align_of::<UsbData_Interfaces>() , 8usize , concat
! ( "Alignment of " , stringify ! ( UsbData_Interfaces ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Interfaces ) ) . pinterdesc as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Interfaces ) ,
"::" , stringify ! ( pinterdesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Interfaces ) ) . intcount as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Interfaces ) ,
"::" , stringify ! ( intcount ) ));
}
impl Clone for UsbData_Interfaces {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbData_InterDesc {
pub desc: [::std::os::raw::c_uchar; 12usize],
pub pendp: *mut ::std::os::raw::c_void,
pub pad: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_UsbData_InterDesc() {
assert_eq!(::std::mem::size_of::<UsbData_InterDesc>() , 56usize , concat !
( "Size of: " , stringify ! ( UsbData_InterDesc ) ));
assert_eq! (::std::mem::align_of::<UsbData_InterDesc>() , 8usize , concat
! ( "Alignment of " , stringify ! ( UsbData_InterDesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_InterDesc ) ) . desc as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_InterDesc ) ,
"::" , stringify ! ( desc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_InterDesc ) ) . pendp as * const
_ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_InterDesc ) ,
"::" , stringify ! ( pendp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_InterDesc ) ) . pad as * const _
as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_InterDesc ) ,
"::" , stringify ! ( pad ) ));
}
impl Clone for UsbData_InterDesc {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbData_Endp {
pub desc: [::std::os::raw::c_uchar; 16usize],
}
#[test]
fn bindgen_test_layout_UsbData_Endp() {
assert_eq!(::std::mem::size_of::<UsbData_Endp>() , 16usize , concat ! (
"Size of: " , stringify ! ( UsbData_Endp ) ));
assert_eq! (::std::mem::align_of::<UsbData_Endp>() , 1usize , concat ! (
"Alignment of " , stringify ! ( UsbData_Endp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData_Endp ) ) . desc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData_Endp ) , "::" ,
stringify ! ( desc ) ));
}
impl Clone for UsbData_Endp {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_UsbData() {
assert_eq!(::std::mem::size_of::<UsbData>() , 228usize , concat ! (
"Size of: " , stringify ! ( UsbData ) ));
assert_eq! (::std::mem::align_of::<UsbData>() , 1usize , concat ! (
"Alignment of " , stringify ! ( UsbData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . devdesc as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( devdesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . config as * const _ as
usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( config ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . confdesc as * const _ as
usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( confdesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . pad1 as * const _ as usize
} , 76usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( pad1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . interfaces as * const _ as
usize } , 84usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( interfaces ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . interdesc as * const _ as
usize } , 108usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( interdesc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbData ) ) . endp as * const _ as usize
} , 164usize , concat ! (
"Alignment of field: " , stringify ! ( UsbData ) , "::" ,
stringify ! ( endp ) ));
}
impl Clone for UsbData {
fn clone(&self) -> Self { *self }
}
#[repr(C, packed)]
#[derive(Debug, Copy)]
pub struct DeviceRequest {
pub bmRequestType: ::std::os::raw::c_uchar,
pub bRequest: ::std::os::raw::c_uchar,
pub wValue: ::std::os::raw::c_ushort,
pub wIndex: ::std::os::raw::c_ushort,
pub wLength: ::std::os::raw::c_ushort,
}
#[test]
fn bindgen_test_layout_DeviceRequest() {
assert_eq!(::std::mem::size_of::<DeviceRequest>() , 8usize , concat ! (
"Size of: " , stringify ! ( DeviceRequest ) ));
assert_eq! (::std::mem::align_of::<DeviceRequest>() , 1usize , concat ! (
"Alignment of " , stringify ! ( DeviceRequest ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceRequest ) ) . bmRequestType as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceRequest ) , "::"
, stringify ! ( bmRequestType ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceRequest ) ) . bRequest as * const _
as usize } , 1usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceRequest ) , "::"
, stringify ! ( bRequest ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceRequest ) ) . wValue as * const _
as usize } , 2usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceRequest ) , "::"
, stringify ! ( wValue ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceRequest ) ) . wIndex as * const _
as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceRequest ) , "::"
, stringify ! ( wIndex ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const DeviceRequest ) ) . wLength as * const _
as usize } , 6usize , concat ! (
"Alignment of field: " , stringify ! ( DeviceRequest ) , "::"
, stringify ! ( wLength ) ));
}
impl Clone for DeviceRequest {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbDriver {
pub name: *const ::std::os::raw::c_char,
pub endpoints: ::std::os::raw::c_int,
pub endp: *mut UsbEndpoint,
pub intp: *mut UsbInterface,
pub devp_hi: *mut ::std::os::raw::c_void,
pub confp_hi: *mut ::std::os::raw::c_void,
pub devp: *mut ::std::os::raw::c_void,
pub confp: *mut ::std::os::raw::c_void,
pub str: *mut StringDescriptor,
pub recvctl: ::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int,
arg2:
::std::os::raw::c_int,
req:
*mut DeviceRequest)
-> ::std::os::raw::c_int>,
pub func28: ::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int,
arg2:
::std::os::raw::c_int,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub attach: ::std::option::Option<unsafe extern "C" fn(speed:
::std::os::raw::c_int,
arg2:
*mut ::std::os::raw::c_void,
arg3:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>,
pub detach: ::std::option::Option<unsafe extern "C" fn(arg1:
::std::os::raw::c_int,
arg2:
::std::os::raw::c_int,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub unk34: ::std::os::raw::c_int,
pub start_func: ::std::option::Option<unsafe extern "C" fn(size:
::std::os::raw::c_int,
args:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>,
pub stop_func: ::std::option::Option<unsafe extern "C" fn(size:
::std::os::raw::c_int,
args:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>,
pub link: *mut UsbDriver,
}
#[test]
fn bindgen_test_layout_UsbDriver() {
assert_eq!(::std::mem::size_of::<UsbDriver>() , 136usize , concat ! (
"Size of: " , stringify ! ( UsbDriver ) ));
assert_eq! (::std::mem::align_of::<UsbDriver>() , 8usize , concat ! (
"Alignment of " , stringify ! ( UsbDriver ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . name as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . endpoints as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( endpoints ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . endp as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( endp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . intp as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( intp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . devp_hi as * const _ as
usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( devp_hi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . confp_hi as * const _ as
usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( confp_hi ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . devp as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( devp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . confp as * const _ as
usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( confp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . str as * const _ as usize
} , 64usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( str ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . recvctl as * const _ as
usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( recvctl ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . func28 as * const _ as
usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( func28 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . attach as * const _ as
usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( attach ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . detach as * const _ as
usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( detach ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . unk34 as * const _ as
usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( unk34 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . start_func as * const _
as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( start_func ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . stop_func as * const _ as
usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( stop_func ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbDriver ) ) . link as * const _ as
usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( UsbDriver ) , "::" ,
stringify ! ( link ) ));
}
impl Clone for UsbDriver {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct UsbdDeviceReq {
pub endp: *mut UsbEndpoint,
pub data: *mut ::std::os::raw::c_void,
pub size: ::std::os::raw::c_int,
pub unkc: ::std::os::raw::c_int,
pub func: *mut ::std::os::raw::c_void,
pub recvsize: ::std::os::raw::c_int,
pub retcode: ::std::os::raw::c_int,
pub unk1c: ::std::os::raw::c_int,
pub arg: *mut ::std::os::raw::c_void,
pub link: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_UsbdDeviceReq() {
assert_eq!(::std::mem::size_of::<UsbdDeviceReq>() , 64usize , concat ! (
"Size of: " , stringify ! ( UsbdDeviceReq ) ));
assert_eq! (::std::mem::align_of::<UsbdDeviceReq>() , 8usize , concat ! (
"Alignment of " , stringify ! ( UsbdDeviceReq ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . endp as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( endp ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . data as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( data ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . size as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . unkc as * const _ as
usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( unkc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . func as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( func ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . recvsize as * const _
as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( recvsize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . retcode as * const _
as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( retcode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . unk1c as * const _ as
usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( unk1c ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . arg as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( arg ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const UsbdDeviceReq ) ) . link as * const _ as
usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( UsbdDeviceReq ) , "::"
, stringify ! ( link ) ));
}
impl Clone for UsbdDeviceReq {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceUsbbdRegister(drv: *mut UsbDriver) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbbdUnregister(drv: *mut UsbDriver) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbbdClearFIFO(endp: *mut UsbEndpoint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbbdReqCancelAll(endp: *mut UsbEndpoint)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbbdStall(endp: *mut UsbEndpoint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbbdReqSend(req: *mut UsbdDeviceReq) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbbdReqRecv(req: *mut UsbdDeviceReq) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamResolution {
PSP_USBCAM_RESOLUTION_160_120 = 0,
PSP_USBCAM_RESOLUTION_176_144 = 1,
PSP_USBCAM_RESOLUTION_320_240 = 2,
PSP_USBCAM_RESOLUTION_352_288 = 3,
PSP_USBCAM_RESOLUTION_640_480 = 4,
PSP_USBCAM_RESOLUTION_1024_768 = 5,
PSP_USBCAM_RESOLUTION_1280_960 = 6,
PSP_USBCAM_RESOLUTION_480_272 = 7,
PSP_USBCAM_RESOLUTION_360_272 = 8,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamResolutionEx {
PSP_USBCAM_RESOLUTION_EX_160_120 = 0,
PSP_USBCAM_RESOLUTION_EX_176_144 = 1,
PSP_USBCAM_RESOLUTION_EX_320_240 = 2,
PSP_USBCAM_RESOLUTION_EX_352_288 = 3,
PSP_USBCAM_RESOLUTION_EX_360_272 = 4,
PSP_USBCAM_RESOLUTION_EX_480_272 = 5,
PSP_USBCAM_RESOLUTION_EX_640_480 = 6,
PSP_USBCAM_RESOLUTION_EX_1024_768 = 7,
PSP_USBCAM_RESOLUTION_EX_1280_960 = 8,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamReverseFlags {
PSP_USBCAM_FLIP = 1,
PSP_USBCAM_MIRROR = 256,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamDelay {
PSP_USBCAM_NODELAY = 0,
PSP_USBCAM_DELAY_10SEC = 1,
PSP_USBCAM_DELAY_20SEC = 2,
PSP_USBCAM_DELAY_30SEC = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamFrameRate {
PSP_USBCAM_FRAMERATE_3_75_FPS = 0,
PSP_USBCAM_FRAMERATE_5_FPS = 1,
PSP_USBCAM_FRAMERATE_7_5_FPS = 2,
PSP_USBCAM_FRAMERATE_10_FPS = 3,
PSP_USBCAM_FRAMERATE_15_FPS = 4,
PSP_USBCAM_FRAMERATE_20_FPS = 5,
PSP_USBCAM_FRAMERATE_30_FPS = 6,
PSP_USBCAM_FRAMERATE_60_FPS = 7,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamWB {
PSP_USBCAM_WB_AUTO = 0,
PSP_USBCAM_WB_DAYLIGHT = 1,
PSP_USBCAM_WB_FLUORESCENT = 2,
PSP_USBCAM_WB_INCADESCENT = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamEffectMode {
PSP_USBCAM_EFFECTMODE_NORMAL = 0,
PSP_USBCAM_EFFECTMODE_NEGATIVE = 1,
PSP_USBCAM_EFFECTMODE_BLACKWHITE = 2,
PSP_USBCAM_EFFECTMODE_SEPIA = 3,
PSP_USBCAM_EFFECTMODE_BLUE = 4,
PSP_USBCAM_EFFECTMODE_RED = 5,
PSP_USBCAM_EFFECTMODE_GREEN = 6,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUsbCamEVLevel {
PSP_USBCAM_EVLEVEL_2_0_POSITIVE = 0,
PSP_USBCAM_EVLEVEL_1_7_POSITIVE = 1,
PSP_USBCAM_EVLEVEL_1_5_POSITIVE = 2,
PSP_USBCAM_EVLEVEL_1_3_POSITIVE = 3,
PSP_USBCAM_EVLEVEL_1_0_POSITIVE = 4,
PSP_USBCAM_EVLEVEL_0_7_POSITIVE = 5,
PSP_USBCAM_EVLEVEL_0_5_POSITIVE = 6,
PSP_USBCAM_EVLEVEL_0_3_POSITIVE = 7,
PSP_USBCAM_EVLEVEL_0_0 = 8,
PSP_USBCAM_EVLEVEL_0_3_NEGATIVE = 9,
PSP_USBCAM_EVLEVEL_0_5_NEGATIVE = 10,
PSP_USBCAM_EVLEVEL_0_7_NEGATIVE = 11,
PSP_USBCAM_EVLEVEL_1_0_NEGATIVE = 12,
PSP_USBCAM_EVLEVEL_1_3_NEGATIVE = 13,
PSP_USBCAM_EVLEVEL_1_5_NEGATIVE = 14,
PSP_USBCAM_EVLEVEL_1_7_NEGATIVE = 15,
PSP_USBCAM_EVLEVEL_2_0_NEGATIVE = 16,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspUsbCamSetupStillParam {
pub size: ::std::os::raw::c_int,
pub resolution: ::std::os::raw::c_int,
pub jpegsize: ::std::os::raw::c_int,
pub reverseflags: ::std::os::raw::c_int,
pub delay: ::std::os::raw::c_int,
pub complevel: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_PspUsbCamSetupStillParam() {
assert_eq!(::std::mem::size_of::<PspUsbCamSetupStillParam>() , 24usize ,
concat ! (
"Size of: " , stringify ! ( PspUsbCamSetupStillParam ) ));
assert_eq! (::std::mem::align_of::<PspUsbCamSetupStillParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( PspUsbCamSetupStillParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillParam ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillParam ) ) . resolution
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillParam ) , "::" , stringify ! ( resolution )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillParam ) ) . jpegsize
as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillParam ) , "::" , stringify ! ( jpegsize )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillParam ) ) .
reverseflags as * const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillParam ) , "::" , stringify ! ( reverseflags
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillParam ) ) . delay as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillParam ) , "::" , stringify ! ( delay ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillParam ) ) . complevel
as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillParam ) , "::" , stringify ! ( complevel )
));
}
impl Clone for PspUsbCamSetupStillParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspUsbCamSetupStillExParam {
pub size: ::std::os::raw::c_int,
pub unk: u32,
pub resolution: ::std::os::raw::c_int,
pub jpegsize: ::std::os::raw::c_int,
pub complevel: ::std::os::raw::c_int,
pub unk2: u32,
pub unk3: u32,
pub flip: ::std::os::raw::c_int,
pub mirror: ::std::os::raw::c_int,
pub delay: ::std::os::raw::c_int,
pub unk4: [u32; 5usize],
}
#[test]
fn bindgen_test_layout_PspUsbCamSetupStillExParam() {
assert_eq!(::std::mem::size_of::<PspUsbCamSetupStillExParam>() , 60usize ,
concat ! (
"Size of: " , stringify ! ( PspUsbCamSetupStillExParam ) ));
assert_eq! (::std::mem::align_of::<PspUsbCamSetupStillExParam>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( PspUsbCamSetupStillExParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . size as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . unk as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( unk ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) .
resolution as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( resolution
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . jpegsize
as * const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( jpegsize )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) .
complevel as * const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( complevel
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . unk2 as
* const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . unk3 as
* const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( unk3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . flip as
* const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( flip ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . mirror
as * const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( mirror )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . delay as
* const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( delay )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupStillExParam ) ) . unk4 as
* const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupStillExParam ) , "::" , stringify ! ( unk4 ) ));
}
impl Clone for PspUsbCamSetupStillExParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspUsbCamSetupVideoParam {
pub size: ::std::os::raw::c_int,
pub resolution: ::std::os::raw::c_int,
pub framerate: ::std::os::raw::c_int,
pub wb: ::std::os::raw::c_int,
pub saturation: ::std::os::raw::c_int,
pub brightness: ::std::os::raw::c_int,
pub contrast: ::std::os::raw::c_int,
pub sharpness: ::std::os::raw::c_int,
pub effectmode: ::std::os::raw::c_int,
pub framesize: ::std::os::raw::c_int,
pub unk: u32,
pub evlevel: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_PspUsbCamSetupVideoParam() {
assert_eq!(::std::mem::size_of::<PspUsbCamSetupVideoParam>() , 48usize ,
concat ! (
"Size of: " , stringify ! ( PspUsbCamSetupVideoParam ) ));
assert_eq! (::std::mem::align_of::<PspUsbCamSetupVideoParam>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( PspUsbCamSetupVideoParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . resolution
as * const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( resolution )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . framerate
as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( framerate )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . wb as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( wb ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . saturation
as * const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( saturation )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . brightness
as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( brightness )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . contrast
as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( contrast )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . sharpness
as * const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( sharpness )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . effectmode
as * const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( effectmode )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . framesize
as * const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( framesize )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . unk as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( unk ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoParam ) ) . evlevel as
* const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoParam ) , "::" , stringify ! ( evlevel )
));
}
impl Clone for PspUsbCamSetupVideoParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspUsbCamSetupVideoExParam {
pub size: ::std::os::raw::c_int,
pub unk: u32,
pub resolution: ::std::os::raw::c_int,
pub framerate: ::std::os::raw::c_int,
pub unk2: u32,
pub unk3: u32,
pub wb: ::std::os::raw::c_int,
pub saturation: ::std::os::raw::c_int,
pub brightness: ::std::os::raw::c_int,
pub contrast: ::std::os::raw::c_int,
pub sharpness: ::std::os::raw::c_int,
pub unk4: u32,
pub unk5: u32,
pub unk6: [u32; 3usize],
pub effectmode: ::std::os::raw::c_int,
pub unk7: u32,
pub unk8: u32,
pub unk9: u32,
pub unk10: u32,
pub unk11: u32,
pub framesize: ::std::os::raw::c_int,
pub unk12: u32,
pub evlevel: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_PspUsbCamSetupVideoExParam() {
assert_eq!(::std::mem::size_of::<PspUsbCamSetupVideoExParam>() , 100usize
, concat ! (
"Size of: " , stringify ! ( PspUsbCamSetupVideoExParam ) ));
assert_eq! (::std::mem::align_of::<PspUsbCamSetupVideoExParam>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( PspUsbCamSetupVideoExParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . size as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
resolution as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( resolution
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
framerate as * const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( framerate
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk2 as
* const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk3 as
* const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . wb as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( wb ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
saturation as * const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( saturation
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
brightness as * const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( brightness
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . contrast
as * const _ as usize } , 36usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( contrast )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
sharpness as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( sharpness
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk4 as
* const _ as usize } , 44usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk5 as
* const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk5 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk6 as
* const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk6 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
effectmode as * const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( effectmode
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk7 as
* const _ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk7 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk8 as
* const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk8 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk9 as
* const _ as usize } , 76usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk9 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk10 as
* const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk10 )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk11 as
* const _ as usize } , 84usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk11 )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) .
framesize as * const _ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( framesize
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . unk12 as
* const _ as usize } , 92usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( unk12 )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUsbCamSetupVideoExParam ) ) . evlevel
as * const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! (
PspUsbCamSetupVideoExParam ) , "::" , stringify ! ( evlevel )
));
}
impl Clone for PspUsbCamSetupVideoExParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceUsbCamSetupStill(param: *mut PspUsbCamSetupStillParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetupStillEx(param: *mut PspUsbCamSetupStillExParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStillInputBlocking(buf: *mut u8, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStillInput(buf: *mut u8, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStillWaitInputEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStillPollInputEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStillCancelInput() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStillGetInputLength() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetupVideo(param: *mut PspUsbCamSetupVideoParam,
workarea: *mut ::std::os::raw::c_void,
wasize: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetupVideoEx(param: *mut PspUsbCamSetupVideoExParam,
workarea: *mut ::std::os::raw::c_void,
wasize: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStartVideo() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamStopVideo() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamReadVideoFrameBlocking(buf: *mut u8, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamReadVideoFrame(buf: *mut u8, size: SceSize)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamWaitReadVideoFrameEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamPollReadVideoFrameEnd() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetReadVideoFrameSize() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetSaturation(saturation: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetBrightness(brightness: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetContrast(contrast: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetSharpness(sharpness: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetImageEffectMode(effectmode: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetEvLevel(ev: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetReverseMode(reverseflags: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamSetZoom(zoom: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetSaturation(saturation: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetBrightness(brightness: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetContrast(contrast: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetSharpness(sharpness: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetImageEffectMode(effectmode: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetEvLevel(ev: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetReverseMode(reverseflags: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetZoom(zoom: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamAutoImageReverseSW(on: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetAutoImageReverseState() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbCamGetLensDirection() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbStart(driverName: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
args: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbStop(driverName: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
args: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbActivate(pid: u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbDeactivate(pid: u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbGetState() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbGetDrvState(driverName: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbstorBootRegisterNotify(eventFlag: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbstorBootUnregisterNotify(eventFlag: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUsbstorBootSetCapacity(size: u32) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspUtilityDialogCommon {
pub size: ::std::os::raw::c_uint,
pub language: ::std::os::raw::c_int,
pub buttonSwap: ::std::os::raw::c_int,
pub graphicsThread: ::std::os::raw::c_int,
pub accessThread: ::std::os::raw::c_int,
pub fontThread: ::std::os::raw::c_int,
pub soundThread: ::std::os::raw::c_int,
pub result: ::std::os::raw::c_int,
pub reserved: [::std::os::raw::c_int; 4usize],
}
#[test]
fn bindgen_test_layout_pspUtilityDialogCommon() {
assert_eq!(::std::mem::size_of::<pspUtilityDialogCommon>() , 48usize ,
concat ! ( "Size of: " , stringify ! ( pspUtilityDialogCommon )
));
assert_eq! (::std::mem::align_of::<pspUtilityDialogCommon>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( pspUtilityDialogCommon ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . size as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . language as
* const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( language ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . buttonSwap
as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( buttonSwap ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) .
graphicsThread as * const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( graphicsThread ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . accessThread
as * const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( accessThread ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . fontThread
as * const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( fontThread ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . soundThread
as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( soundThread ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . result as *
const _ as usize } , 28usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( result ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityDialogCommon ) ) . reserved as
* const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityDialogCommon
) , "::" , stringify ! ( reserved ) ));
}
impl Clone for pspUtilityDialogCommon {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityMsgDialogMode {
PSP_UTILITY_MSGDIALOG_MODE_ERROR = 0,
PSP_UTILITY_MSGDIALOG_MODE_TEXT = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityMsgDialogOption {
PSP_UTILITY_MSGDIALOG_OPTION_ERROR = 0,
PSP_UTILITY_MSGDIALOG_OPTION_TEXT = 1,
PSP_UTILITY_MSGDIALOG_OPTION_YESNO_BUTTONS = 16,
PSP_UTILITY_MSGDIALOG_OPTION_DEFAULT_NO = 256,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityMsgDialogPressed {
PSP_UTILITY_MSGDIALOG_RESULT_UNKNOWN1 = 0,
PSP_UTILITY_MSGDIALOG_RESULT_YES = 1,
PSP_UTILITY_MSGDIALOG_RESULT_NO = 2,
PSP_UTILITY_MSGDIALOG_RESULT_BACK = 3,
}
#[repr(C)]
#[derive(Copy)]
pub struct _pspUtilityMsgDialogParams {
pub base: pspUtilityDialogCommon,
pub unknown: ::std::os::raw::c_int,
pub mode: pspUtilityMsgDialogMode,
pub errorValue: ::std::os::raw::c_uint,
pub message: [::std::os::raw::c_char; 512usize],
pub options: ::std::os::raw::c_int,
pub buttonPressed: pspUtilityMsgDialogPressed,
}
#[test]
fn bindgen_test_layout__pspUtilityMsgDialogParams() {
assert_eq!(::std::mem::size_of::<_pspUtilityMsgDialogParams>() , 580usize
, concat ! (
"Size of: " , stringify ! ( _pspUtilityMsgDialogParams ) ));
assert_eq! (::std::mem::align_of::<_pspUtilityMsgDialogParams>() , 4usize
, concat ! (
"Alignment of " , stringify ! ( _pspUtilityMsgDialogParams )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) . base as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) . unknown
as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! ( unknown )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) . mode as
* const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! ( mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) .
errorValue as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! ( errorValue
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) . message
as * const _ as usize } , 60usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! ( message )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) . options
as * const _ as usize } , 572usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! ( options )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityMsgDialogParams ) ) .
buttonPressed as * const _ as usize } , 576usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityMsgDialogParams ) , "::" , stringify ! (
buttonPressed ) ));
}
impl Clone for _pspUtilityMsgDialogParams {
fn clone(&self) -> Self { *self }
}
pub type pspUtilityMsgDialogParams = _pspUtilityMsgDialogParams;
extern "C" {
pub fn sceUtilityMsgDialogInitStart(params:
*mut pspUtilityMsgDialogParams)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityMsgDialogShutdownStart();
}
extern "C" {
pub fn sceUtilityMsgDialogGetStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityMsgDialogUpdate(n: ::std::os::raw::c_int);
}
extern "C" {
pub fn sceUtilityMsgDialogAbort() -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityNetconfActions {
PSP_NETCONF_ACTION_CONNECTAP = 0,
PSP_NETCONF_ACTION_DISPLAYSTATUS = 1,
PSP_NETCONF_ACTION_CONNECT_ADHOC = 2,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspUtilityNetconfAdhoc {
pub name: [::std::os::raw::c_uchar; 8usize],
pub timeout: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_pspUtilityNetconfAdhoc() {
assert_eq!(::std::mem::size_of::<pspUtilityNetconfAdhoc>() , 12usize ,
concat ! ( "Size of: " , stringify ! ( pspUtilityNetconfAdhoc )
));
assert_eq! (::std::mem::align_of::<pspUtilityNetconfAdhoc>() , 4usize ,
concat ! (
"Alignment of " , stringify ! ( pspUtilityNetconfAdhoc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityNetconfAdhoc ) ) . name as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityNetconfAdhoc
) , "::" , stringify ! ( name ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityNetconfAdhoc ) ) . timeout as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( pspUtilityNetconfAdhoc
) , "::" , stringify ! ( timeout ) ));
}
impl Clone for pspUtilityNetconfAdhoc {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _pspUtilityNetconfData {
pub base: pspUtilityDialogCommon,
pub action: ::std::os::raw::c_int,
pub adhocparam: *mut pspUtilityNetconfAdhoc,
pub hotspot: ::std::os::raw::c_int,
pub hotspot_connected: ::std::os::raw::c_int,
pub wifisp: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__pspUtilityNetconfData() {
assert_eq!(::std::mem::size_of::<_pspUtilityNetconfData>() , 80usize ,
concat ! ( "Size of: " , stringify ! ( _pspUtilityNetconfData )
));
assert_eq! (::std::mem::align_of::<_pspUtilityNetconfData>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( _pspUtilityNetconfData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityNetconfData ) ) . base as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _pspUtilityNetconfData
) , "::" , stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityNetconfData ) ) . action as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( _pspUtilityNetconfData
) , "::" , stringify ! ( action ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityNetconfData ) ) . adhocparam
as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( _pspUtilityNetconfData
) , "::" , stringify ! ( adhocparam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityNetconfData ) ) . hotspot as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( _pspUtilityNetconfData
) , "::" , stringify ! ( hotspot ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityNetconfData ) ) .
hotspot_connected as * const _ as usize } , 68usize , concat !
(
"Alignment of field: " , stringify ! ( _pspUtilityNetconfData
) , "::" , stringify ! ( hotspot_connected ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityNetconfData ) ) . wifisp as *
const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( _pspUtilityNetconfData
) , "::" , stringify ! ( wifisp ) ));
}
impl Clone for _pspUtilityNetconfData {
fn clone(&self) -> Self { *self }
}
pub type pspUtilityNetconfData = _pspUtilityNetconfData;
extern "C" {
pub fn sceUtilityNetconfInitStart(data: *mut pspUtilityNetconfData)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityNetconfShutdownStart() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityNetconfUpdate(unknown: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityNetconfGetStatus() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub union netData {
pub asUint: u32,
pub asString: [::std::os::raw::c_char; 128usize],
_bindgen_union_align: [u32; 32usize],
}
#[test]
fn bindgen_test_layout_netData() {
assert_eq!(::std::mem::size_of::<netData>() , 128usize , concat ! (
"Size of: " , stringify ! ( netData ) ));
assert_eq! (::std::mem::align_of::<netData>() , 4usize , concat ! (
"Alignment of " , stringify ! ( netData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const netData ) ) . asUint as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( netData ) , "::" ,
stringify ! ( asUint ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const netData ) ) . asString as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( netData ) , "::" ,
stringify ! ( asString ) ));
}
impl Clone for netData {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceUtilityCheckNetParam(id: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityGetNetParam(conf: ::std::os::raw::c_int,
param: ::std::os::raw::c_int,
data: *mut netData) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityCreateNetParam(conf: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilitySetNetParam(param: ::std::os::raw::c_int,
val: *const ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityCopyNetParam(src: ::std::os::raw::c_int,
dest: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityDeleteNetParam(conf: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUtilitySavedataMode {
PSP_UTILITY_SAVEDATA_AUTOLOAD = 0,
PSP_UTILITY_SAVEDATA_AUTOSAVE = 1,
PSP_UTILITY_SAVEDATA_LOAD = 2,
PSP_UTILITY_SAVEDATA_SAVE = 3,
PSP_UTILITY_SAVEDATA_LISTLOAD = 4,
PSP_UTILITY_SAVEDATA_LISTSAVE = 5,
PSP_UTILITY_SAVEDATA_LISTDELETE = 6,
PSP_UTILITY_SAVEDATADELETE = 7,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PspUtilitySavedataFocus {
PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN = 0,
PSP_UTILITY_SAVEDATA_FOCUS_FIRSTLIST = 1,
PSP_UTILITY_SAVEDATA_FOCUS_LASTLIST = 2,
PSP_UTILITY_SAVEDATA_FOCUS_LATEST = 3,
PSP_UTILITY_SAVEDATA_FOCUS_OLDEST = 4,
PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN2 = 5,
PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN3 = 6,
PSP_UTILITY_SAVEDATA_FOCUS_FIRSTEMPTY = 7,
PSP_UTILITY_SAVEDATA_FOCUS_LASTEMPTY = 8,
}
#[repr(C)]
#[derive(Copy)]
pub struct PspUtilitySavedataSFOParam {
pub title: [::std::os::raw::c_char; 128usize],
pub savedataTitle: [::std::os::raw::c_char; 128usize],
pub detail: [::std::os::raw::c_char; 1024usize],
pub parentalLevel: ::std::os::raw::c_uchar,
pub unknown: [::std::os::raw::c_uchar; 3usize],
}
#[test]
fn bindgen_test_layout_PspUtilitySavedataSFOParam() {
assert_eq!(::std::mem::size_of::<PspUtilitySavedataSFOParam>() , 1284usize
, concat ! (
"Size of: " , stringify ! ( PspUtilitySavedataSFOParam ) ));
assert_eq! (::std::mem::align_of::<PspUtilitySavedataSFOParam>() , 1usize
, concat ! (
"Alignment of " , stringify ! ( PspUtilitySavedataSFOParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataSFOParam ) ) . title as
* const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataSFOParam ) , "::" , stringify ! ( title )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataSFOParam ) ) .
savedataTitle as * const _ as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataSFOParam ) , "::" , stringify ! (
savedataTitle ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataSFOParam ) ) . detail
as * const _ as usize } , 256usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataSFOParam ) , "::" , stringify ! ( detail )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataSFOParam ) ) .
parentalLevel as * const _ as usize } , 1280usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataSFOParam ) , "::" , stringify ! (
parentalLevel ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataSFOParam ) ) . unknown
as * const _ as usize } , 1281usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataSFOParam ) , "::" , stringify ! ( unknown )
));
}
impl Clone for PspUtilitySavedataSFOParam {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspUtilitySavedataFileData {
pub buf: *mut ::std::os::raw::c_void,
pub bufSize: SceSize,
pub size: SceSize,
pub unknown: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_PspUtilitySavedataFileData() {
assert_eq!(::std::mem::size_of::<PspUtilitySavedataFileData>() , 24usize ,
concat ! (
"Size of: " , stringify ! ( PspUtilitySavedataFileData ) ));
assert_eq! (::std::mem::align_of::<PspUtilitySavedataFileData>() , 8usize
, concat ! (
"Alignment of " , stringify ! ( PspUtilitySavedataFileData )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataFileData ) ) . buf as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataFileData ) , "::" , stringify ! ( buf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataFileData ) ) . bufSize
as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataFileData ) , "::" , stringify ! ( bufSize )
));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataFileData ) ) . size as
* const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataFileData ) , "::" , stringify ! ( size ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataFileData ) ) . unknown
as * const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataFileData ) , "::" , stringify ! ( unknown )
));
}
impl Clone for PspUtilitySavedataFileData {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct PspUtilitySavedataListSaveNewData {
pub icon0: PspUtilitySavedataFileData,
pub title: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_PspUtilitySavedataListSaveNewData() {
assert_eq!(::std::mem::size_of::<PspUtilitySavedataListSaveNewData>() ,
32usize , concat ! (
"Size of: " , stringify ! ( PspUtilitySavedataListSaveNewData )
));
assert_eq! (::std::mem::align_of::<PspUtilitySavedataListSaveNewData>() ,
8usize , concat ! (
"Alignment of " , stringify ! (
PspUtilitySavedataListSaveNewData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataListSaveNewData ) ) .
icon0 as * const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataListSaveNewData ) , "::" , stringify ! (
icon0 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const PspUtilitySavedataListSaveNewData ) ) .
title as * const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! (
PspUtilitySavedataListSaveNewData ) , "::" , stringify ! (
title ) ));
}
impl Clone for PspUtilitySavedataListSaveNewData {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct SceUtilitySavedataParam {
pub base: pspUtilityDialogCommon,
pub mode: PspUtilitySavedataMode,
pub unknown1: ::std::os::raw::c_int,
pub overwrite: ::std::os::raw::c_int,
pub gameName: [::std::os::raw::c_char; 13usize],
pub reserved: [::std::os::raw::c_char; 3usize],
pub saveName: [::std::os::raw::c_char; 20usize],
pub saveNameList: *mut [::std::os::raw::c_char; 20usize],
pub fileName: [::std::os::raw::c_char; 13usize],
pub reserved1: [::std::os::raw::c_char; 3usize],
pub dataBuf: *mut ::std::os::raw::c_void,
pub dataBufSize: SceSize,
pub dataSize: SceSize,
pub sfoParam: PspUtilitySavedataSFOParam,
pub icon0FileData: PspUtilitySavedataFileData,
pub icon1FileData: PspUtilitySavedataFileData,
pub pic1FileData: PspUtilitySavedataFileData,
pub snd0FileData: PspUtilitySavedataFileData,
pub newData: *mut PspUtilitySavedataListSaveNewData,
pub focus: PspUtilitySavedataFocus,
pub unknown2: [::std::os::raw::c_int; 4usize],
}
#[test]
fn bindgen_test_layout_SceUtilitySavedataParam() {
assert_eq!(::std::mem::size_of::<SceUtilitySavedataParam>() , 1552usize ,
concat ! (
"Size of: " , stringify ! ( SceUtilitySavedataParam ) ));
assert_eq! (::std::mem::align_of::<SceUtilitySavedataParam>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( SceUtilitySavedataParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . base as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . mode as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . unknown1 as
* const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( unknown1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . overwrite
as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( overwrite ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . gameName as
* const _ as usize } , 60usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( gameName ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . reserved as
* const _ as usize } , 73usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( reserved ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . saveName as
* const _ as usize } , 76usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( saveName ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) .
saveNameList as * const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( saveNameList ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . fileName as
* const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( fileName ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . reserved1
as * const _ as usize } , 117usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( reserved1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . dataBuf as
* const _ as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( dataBuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . dataBufSize
as * const _ as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( dataBufSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . dataSize as
* const _ as usize } , 132usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( dataSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . sfoParam as
* const _ as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( sfoParam ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) .
icon0FileData as * const _ as usize } , 1424usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( icon0FileData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) .
icon1FileData as * const _ as usize } , 1448usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( icon1FileData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) .
pic1FileData as * const _ as usize } , 1472usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( pic1FileData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) .
snd0FileData as * const _ as usize } , 1496usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( snd0FileData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . newData as
* const _ as usize } , 1520usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( newData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . focus as *
const _ as usize } , 1528usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( focus ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const SceUtilitySavedataParam ) ) . unknown2 as
* const _ as usize } , 1532usize , concat ! (
"Alignment of field: " , stringify ! ( SceUtilitySavedataParam
) , "::" , stringify ! ( unknown2 ) ));
}
impl Clone for SceUtilitySavedataParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceUtilitySavedataInitStart(params: *mut SceUtilitySavedataParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilitySavedataGetStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilitySavedataShutdownStart() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilitySavedataUpdate(unknown: ::std::os::raw::c_int);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityGameSharingMode {
PSP_UTILITY_GAMESHARING_MODE_SINGLE = 1,
PSP_UTILITY_GAMESHARING_MODE_MULTIPLE = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityGameSharingDataType {
PSP_UTILITY_GAMESHARING_DATA_TYPE_FILE = 1,
PSP_UTILITY_GAMESHARING_DATA_TYPE_MEMORY = 2,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _pspUtilityGameSharingParams {
pub base: pspUtilityDialogCommon,
pub unknown1: ::std::os::raw::c_int,
pub unknown2: ::std::os::raw::c_int,
pub name: [::std::os::raw::c_char; 8usize],
pub unknown3: ::std::os::raw::c_int,
pub unknown4: ::std::os::raw::c_int,
pub unknown5: ::std::os::raw::c_int,
pub result: ::std::os::raw::c_int,
pub filepath: *mut ::std::os::raw::c_char,
pub mode: pspUtilityGameSharingMode,
pub datatype: pspUtilityGameSharingDataType,
pub data: *mut ::std::os::raw::c_void,
pub datasize: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout__pspUtilityGameSharingParams() {
assert_eq!(::std::mem::size_of::<_pspUtilityGameSharingParams>() ,
112usize , concat ! (
"Size of: " , stringify ! ( _pspUtilityGameSharingParams ) ));
assert_eq! (::std::mem::align_of::<_pspUtilityGameSharingParams>() ,
8usize , concat ! (
"Alignment of " , stringify ! ( _pspUtilityGameSharingParams )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) . base
as * const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( base )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
unknown1 as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( unknown1
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
unknown2 as * const _ as usize } , 52usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( unknown2
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) . name
as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( name )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
unknown3 as * const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( unknown3
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
unknown4 as * const _ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( unknown4
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
unknown5 as * const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( unknown5
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) . result
as * const _ as usize } , 76usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( result )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
filepath as * const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( filepath
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) . mode
as * const _ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( mode )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
datatype as * const _ as usize } , 92usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( datatype
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) . data
as * const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( data )
));
assert_eq! (unsafe {
& ( * ( 0 as * const _pspUtilityGameSharingParams ) ) .
datasize as * const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! (
_pspUtilityGameSharingParams ) , "::" , stringify ! ( datasize
) ));
}
impl Clone for _pspUtilityGameSharingParams {
fn clone(&self) -> Self { *self }
}
pub type pspUtilityGameSharingParams = _pspUtilityGameSharingParams;
extern "C" {
pub fn sceUtilityGameSharingInitStart(params:
*mut pspUtilityGameSharingParams)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityGameSharingShutdownStart();
}
extern "C" {
pub fn sceUtilityGameSharingGetStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityGameSharingUpdate(n: ::std::os::raw::c_int);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerDisconnectModes {
PSP_UTILITY_HTMLVIEWER_DISCONNECTMODE_ENABLE = 0,
PSP_UTILITY_HTMLVIEWER_DISCONNECTMODE_DISABLE = 1,
PSP_UTILITY_HTMLVIEWER_DISCONNECTMODE_CONFIRM = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerInterfaceModes {
PSP_UTILITY_HTMLVIEWER_INTERFACEMODE_FULL = 0,
PSP_UTILITY_HTMLVIEWER_INTERFACEMODE_LIMITED = 1,
PSP_UTILITY_HTMLVIEWER_INTERFACEMODE_NONE = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerCookieModes {
PSP_UTILITY_HTMLVIEWER_COOKIEMODE_DISABLED = 0,
PSP_UTILITY_HTMLVIEWER_COOKIEMODE_ENABLED = 1,
PSP_UTILITY_HTMLVIEWER_COOKIEMODE_CONFIRM = 2,
PSP_UTILITY_HTMLVIEWER_COOKIEMODE_DEFAULT = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerTextSizes {
PSP_UTILITY_HTMLVIEWER_TEXTSIZE_LARGE = 0,
PSP_UTILITY_HTMLVIEWER_TEXTSIZE_NORMAL = 1,
PSP_UTILITY_HTMLVIEWER_TEXTSIZE_SMALL = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerDisplayModes {
PSP_UTILITY_HTMLVIEWER_DISPLAYMODE_NORMAL = 0,
PSP_UTILITY_HTMLVIEWER_DISPLAYMODE_FIT = 1,
PSP_UTILITY_HTMLVIEWER_DISPLAYMODE_SMART_FIT = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerConnectModes {
PSP_UTILITY_HTMLVIEWER_CONNECTMODE_LAST = 0,
PSP_UTILITY_HTMLVIEWER_CONNECTMODE_MANUAL_ONCE = 1,
PSP_UTILITY_HTMLVIEWER_CONNECTMODE_MANUAL_ALL = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityHtmlViewerOptions {
PSP_UTILITY_HTMLVIEWER_OPEN_SCE_START_PAGE = 1,
PSP_UTILITY_HTMLVIEWER_DISABLE_STARTUP_LIMITS = 2,
PSP_UTILITY_HTMLVIEWER_DISABLE_EXIT_DIALOG = 4,
PSP_UTILITY_HTMLVIEWER_DISABLE_CURSOR = 8,
PSP_UTILITY_HTMLVIEWER_DISABLE_DOWNLOAD_COMPLETE_DIALOG = 16,
PSP_UTILITY_HTMLVIEWER_DISABLE_DOWNLOAD_START_DIALOG = 32,
PSP_UTILITY_HTMLVIEWER_DISABLE_DOWNLOAD_DESTINATION_DIALOG = 64,
PSP_UTILITY_HTMLVIEWER_LOCK_DOWNLOAD_DESTINATION_DIALOG = 128,
PSP_UTILITY_HTMLVIEWER_DISABLE_TAB_DISPLAY = 256,
PSP_UTILITY_HTMLVIEWER_ENABLE_ANALOG_HOLD = 512,
PSP_UTILITY_HTMLVIEWER_ENABLE_FLASH = 1024,
PSP_UTILITY_HTMLVIEWER_DISABLE_LRTRIGGER = 2048,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct pspUtilityHtmlViewerParam {
pub base: pspUtilityDialogCommon,
pub memaddr: *mut ::std::os::raw::c_void,
pub memsize: ::std::os::raw::c_uint,
pub unknown1: ::std::os::raw::c_int,
pub unknown2: ::std::os::raw::c_int,
pub initialurl: *mut ::std::os::raw::c_char,
pub numtabs: ::std::os::raw::c_uint,
pub interfacemode: ::std::os::raw::c_uint,
pub options: ::std::os::raw::c_uint,
pub dldirname: *mut ::std::os::raw::c_char,
pub dlfilename: *mut ::std::os::raw::c_char,
pub uldirname: *mut ::std::os::raw::c_char,
pub ulfilename: *mut ::std::os::raw::c_char,
pub cookiemode: ::std::os::raw::c_uint,
pub unknown3: ::std::os::raw::c_uint,
pub homeurl: *mut ::std::os::raw::c_char,
pub textsize: ::std::os::raw::c_uint,
pub displaymode: ::std::os::raw::c_uint,
pub connectmode: ::std::os::raw::c_uint,
pub disconnectmode: ::std::os::raw::c_uint,
pub memused: ::std::os::raw::c_uint,
pub unknown4: [::std::os::raw::c_int; 10usize],
}
#[test]
fn bindgen_test_layout_pspUtilityHtmlViewerParam() {
assert_eq!(::std::mem::size_of::<pspUtilityHtmlViewerParam>() , 208usize ,
concat ! (
"Size of: " , stringify ! ( pspUtilityHtmlViewerParam ) ));
assert_eq! (::std::mem::align_of::<pspUtilityHtmlViewerParam>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( pspUtilityHtmlViewerParam )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . base as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . memaddr
as * const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( memaddr )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . memsize
as * const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( memsize )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . unknown1
as * const _ as usize } , 60usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( unknown1 )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . unknown2
as * const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( unknown2 )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
initialurl as * const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( initialurl
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . numtabs
as * const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( numtabs )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
interfacemode as * const _ as usize } , 84usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! (
interfacemode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . options
as * const _ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( options )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . dldirname
as * const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( dldirname )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
dlfilename as * const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( dlfilename
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . uldirname
as * const _ as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( uldirname )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
ulfilename as * const _ as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( ulfilename
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
cookiemode as * const _ as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( cookiemode
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . unknown3
as * const _ as usize } , 132usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( unknown3 )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . homeurl
as * const _ as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( homeurl )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . textsize
as * const _ as usize } , 144usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( textsize )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
displaymode as * const _ as usize } , 148usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( displaymode
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
connectmode as * const _ as usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( connectmode
) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) .
disconnectmode as * const _ as usize } , 156usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! (
disconnectmode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . memused
as * const _ as usize } , 160usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( memused )
));
assert_eq! (unsafe {
& ( * ( 0 as * const pspUtilityHtmlViewerParam ) ) . unknown4
as * const _ as usize } , 164usize , concat ! (
"Alignment of field: " , stringify ! (
pspUtilityHtmlViewerParam ) , "::" , stringify ! ( unknown4 )
));
}
impl Clone for pspUtilityHtmlViewerParam {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sceUtilityHtmlViewerInitStart(params:
*mut pspUtilityHtmlViewerParam)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityHtmlViewerShutdownStart() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityHtmlViewerUpdate(n: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityHtmlViewerGetStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilitySetSystemParamInt(id: ::std::os::raw::c_int,
value: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilitySetSystemParamString(id: ::std::os::raw::c_int,
str: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityGetSystemParamInt(id: ::std::os::raw::c_int,
value: *mut ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityGetSystemParamString(id: ::std::os::raw::c_int,
str: *mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SceUtilityOskInputLanguage {
PSP_UTILITY_OSK_LANGUAGE_DEFAULT = 0,
PSP_UTILITY_OSK_LANGUAGE_JAPANESE = 1,
PSP_UTILITY_OSK_LANGUAGE_ENGLISH = 2,
PSP_UTILITY_OSK_LANGUAGE_FRENCH = 3,
PSP_UTILITY_OSK_LANGUAGE_SPANISH = 4,
PSP_UTILITY_OSK_LANGUAGE_GERMAN = 5,
PSP_UTILITY_OSK_LANGUAGE_ITALIAN = 6,
PSP_UTILITY_OSK_LANGUAGE_DUTCH = 7,
PSP_UTILITY_OSK_LANGUAGE_PORTUGESE = 8,
PSP_UTILITY_OSK_LANGUAGE_RUSSIAN = 9,
PSP_UTILITY_OSK_LANGUAGE_KOREAN = 10,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SceUtilityOskState {
PSP_UTILITY_OSK_DIALOG_NONE = 0,
PSP_UTILITY_OSK_DIALOG_INITING = 1,
PSP_UTILITY_OSK_DIALOG_INITED = 2,
PSP_UTILITY_OSK_DIALOG_VISIBLE = 3,
PSP_UTILITY_OSK_DIALOG_QUIT = 4,
PSP_UTILITY_OSK_DIALOG_FINISHED = 5,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SceUtilityOskResult {
PSP_UTILITY_OSK_RESULT_UNCHANGED = 0,
PSP_UTILITY_OSK_RESULT_CANCELLED = 1,
PSP_UTILITY_OSK_RESULT_CHANGED = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SceUtilityOskInputType {
PSP_UTILITY_OSK_INPUTTYPE_ALL = 0,
PSP_UTILITY_OSK_INPUTTYPE_LATIN_DIGIT = 1,
PSP_UTILITY_OSK_INPUTTYPE_LATIN_SYMBOL = 2,
PSP_UTILITY_OSK_INPUTTYPE_LATIN_LOWERCASE = 4,
PSP_UTILITY_OSK_INPUTTYPE_LATIN_UPPERCASE = 8,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_DIGIT = 256,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_SYMBOL = 512,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_LOWERCASE = 1024,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_UPPERCASE = 2048,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_HIRAGANA = 4096,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_HALF_KATAKANA = 8192,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_KATAKANA = 16384,
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_KANJI = 32768,
PSP_UTILITY_OSK_INPUTTYPE_RUSSIAN_LOWERCASE = 65536,
PSP_UTILITY_OSK_INPUTTYPE_RUSSIAN_UPPERCASE = 131072,
PSP_UTILITY_OSK_INPUTTYPE_KOREAN = 262144,
PSP_UTILITY_OSK_INPUTTYPE_URL = 524288,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _SceUtilityOskData {
pub unk_00: ::std::os::raw::c_int,
pub unk_04: ::std::os::raw::c_int,
pub language: ::std::os::raw::c_int,
pub unk_12: ::std::os::raw::c_int,
pub inputtype: ::std::os::raw::c_int,
pub lines: ::std::os::raw::c_int,
pub unk_24: ::std::os::raw::c_int,
pub desc: *mut ::std::os::raw::c_ushort,
pub intext: *mut ::std::os::raw::c_ushort,
pub outtextlength: ::std::os::raw::c_int,
pub outtext: *mut ::std::os::raw::c_ushort,
pub result: ::std::os::raw::c_int,
pub outtextlimit: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__SceUtilityOskData() {
assert_eq!(::std::mem::size_of::<_SceUtilityOskData>() , 72usize , concat
! ( "Size of: " , stringify ! ( _SceUtilityOskData ) ));
assert_eq! (::std::mem::align_of::<_SceUtilityOskData>() , 8usize , concat
! ( "Alignment of " , stringify ! ( _SceUtilityOskData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . unk_00 as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( unk_00 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . unk_04 as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( unk_04 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . language as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( language ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . unk_12 as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( unk_12 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . inputtype as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( inputtype ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . lines as * const
_ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( lines ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . unk_24 as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( unk_24 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . desc as * const
_ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( desc ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . intext as *
const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( intext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . outtextlength as
* const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( outtextlength ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . outtext as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( outtext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . result as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( result ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskData ) ) . outtextlimit as
* const _ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskData ) ,
"::" , stringify ! ( outtextlimit ) ));
}
impl Clone for _SceUtilityOskData {
fn clone(&self) -> Self { *self }
}
pub type SceUtilityOskData = _SceUtilityOskData;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _SceUtilityOskParams {
pub base: pspUtilityDialogCommon,
pub datacount: ::std::os::raw::c_int,
pub data: *mut SceUtilityOskData,
pub state: ::std::os::raw::c_int,
pub unk_60: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__SceUtilityOskParams() {
assert_eq!(::std::mem::size_of::<_SceUtilityOskParams>() , 72usize ,
concat ! ( "Size of: " , stringify ! ( _SceUtilityOskParams )
));
assert_eq! (::std::mem::align_of::<_SceUtilityOskParams>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( _SceUtilityOskParams ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskParams ) ) . base as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskParams )
, "::" , stringify ! ( base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskParams ) ) . datacount as *
const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskParams )
, "::" , stringify ! ( datacount ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskParams ) ) . data as *
const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskParams )
, "::" , stringify ! ( data ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskParams ) ) . state as *
const _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskParams )
, "::" , stringify ! ( state ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _SceUtilityOskParams ) ) . unk_60 as *
const _ as usize } , 68usize , concat ! (
"Alignment of field: " , stringify ! ( _SceUtilityOskParams )
, "::" , stringify ! ( unk_60 ) ));
}
impl Clone for _SceUtilityOskParams {
fn clone(&self) -> Self { *self }
}
pub type SceUtilityOskParams = _SceUtilityOskParams;
extern "C" {
pub fn sceUtilityOskInitStart(params: *mut SceUtilityOskParams)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityOskShutdownStart() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityOskUpdate(n: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityOskGetStatus() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityLoadNetModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityUnloadNetModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityLoadAvModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityUnloadAvModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityLoadUsbModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityUnloadUsbModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityLoadModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceUtilityUnloadModule(module: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum pspUtilityDialogState {
PSP_UTILITY_DIALOG_NONE = 0,
PSP_UTILITY_DIALOG_INIT = 1,
PSP_UTILITY_DIALOG_VISIBLE = 2,
PSP_UTILITY_DIALOG_QUIT = 3,
PSP_UTILITY_DIALOG_FINISHED = 4,
}
extern "C" {
pub fn sceKernelGzipDecompress(dest: *mut u8, destSize: u32,
src: *const u8, unknown: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDeflateDecompress(dest: *mut u8, destSize: u32,
src: *const u8, unknown: u32)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelDcacheInvalidateAll();
}
extern "C" {
pub fn sceKernelDcacheProbe(addr: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceKernelIcacheProbe(addr: *const ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pspvfpu_context {
_unused: [u8; 0],
}
pub type vfpumatrixset_t = ::std::os::raw::c_uchar;
extern "C" {
pub fn pspvfpu_initcontext() -> *mut pspvfpu_context;
}
extern "C" {
pub fn pspvfpu_deletecontext(context: *mut pspvfpu_context);
}
extern "C" {
pub fn pspvfpu_use_matrices(context: *mut pspvfpu_context,
keepset: vfpumatrixset_t,
tempset: vfpumatrixset_t);
}
extern "C" {
pub fn sceVideocodecOpen(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceVideocodecGetEDRAM(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceVideocodecInit(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceVideocodecDecode(Buffer: *mut ::std::os::raw::c_ulong,
Type: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceVideocodecReleaseEDRAM(Buffer: *mut ::std::os::raw::c_ulong)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceWlanDevIsPowerOn() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceWlanGetSwitchState() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceWlanGetEtherAddr(etherAddr: *mut u8) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceWlanDevAttach() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sceWlanDevDetach() -> ::std::os::raw::c_int;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
assert_eq!(::std::mem::size_of::<__va_list_tag>() , 24usize , concat ! (
"Size of: " , stringify ! ( __va_list_tag ) ));
assert_eq! (::std::mem::align_of::<__va_list_tag>() , 8usize , concat ! (
"Alignment of " , stringify ! ( __va_list_tag ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __va_list_tag ) ) . gp_offset as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::"
, stringify ! ( gp_offset ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __va_list_tag ) ) . fp_offset as * const
_ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::"
, stringify ! ( fp_offset ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __va_list_tag ) ) . overflow_arg_area as
* const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::"
, stringify ! ( overflow_arg_area ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __va_list_tag ) ) . reg_save_area as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::"
, stringify ! ( reg_save_area ) ));
}
impl Clone for __va_list_tag {
fn clone(&self) -> Self { *self }
}