Added missing include gctypes and changed data types

This commit is contained in:
Maschell 2017-04-30 09:42:49 +02:00
parent ef06a0e3f2
commit e56b20ce9b
4 changed files with 19 additions and 12 deletions

View File

@ -28,6 +28,8 @@
extern "C" {
#endif
#include <gctypes.h>
extern u32 aoc_handle;
#define AOC_TITLE_SIZE 104

View File

@ -28,6 +28,7 @@
extern "C" {
#endif
#include <gctypes.h>
#include "gx2_types.h"
extern u32 gx2_handle;

View File

@ -28,6 +28,8 @@
extern "C" {
#endif
#include <gctypes.h>
extern u32 sysapp_handle;
void InitSysFunctionPointers(void);

View File

@ -28,20 +28,22 @@
extern "C" {
#endif
#include <gctypes.h>
extern u32 syshid_handle;
typedef struct
{
u32 handle;
u32 physical_device_inst;
unsigned short vid;
unsigned short pid;
unsigned char interface_index;
unsigned char sub_class;
unsigned char protocol;
u16 vid;
u16 pid;
u8 interface_index;
u8 sub_class;
u8 protocol;
unsigned short max_packet_size_rx;
unsigned short max_packet_size_tx;
u16 max_packet_size_rx;
u16 max_packet_size_tx;
} HIDDevice;
@ -58,7 +60,7 @@ struct _HIDClient
HIDAttachCallback attach_cb;
};
typedef void (*HIDCallback)(u32 handle,s32 error,unsigned char *p_buffer,u32 bytes_transferred,void *p_user);
typedef void (*HIDCallback)(u32 handle,s32 error,u8 *p_buffer,u32 bytes_transferred,void *p_user);
void InitSysHIDFunctionPointers(void);
void InitAcquireSysHID(void);
@ -69,8 +71,8 @@ extern s32(*HIDTeardown)(void);
extern s32(*HIDAddClient)(HIDClient *p_client, HIDAttachCallback attach_callback);
extern s32(*HIDDelClient)(HIDClient *p_client);
extern s32(*HIDGetDescriptor)(u32 handle,u8 descriptor_type,u8 descriptor_index, u16 language_id, unsigned char *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDSetDescriptor)(u32 handle,u8 descriptor_type,u8 descriptor_index, u16 language_id, unsigned char *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDGetDescriptor)(u32 handle,u8 descriptor_type,u8 descriptor_index, u16 language_id, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDSetDescriptor)(u32 handle,u8 descriptor_type,u8 descriptor_index, u16 language_id, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDGetReport)(u32 handle, u8 report_type, u8 report_id, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDSetReport)(u32 handle, u8 report_type, u8 report_id, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
@ -80,8 +82,8 @@ extern s32(*HIDSetIdle)(u32 handle, u8 s32erface_index,u8 duration, HIDCallback
extern s32(* HIDSetProtocol)(u32 handle,u8 s32erface_index,u8 protocol, HIDCallback hc, void *p_user);
extern s32(* HIDGetProtocol)(u32 handle,u8 s32erface_index,u8 * protocol, HIDCallback hc, void *p_user);
extern s32(*HIDRead)(u32 handle, unsigned char *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDWrite)(u32 handle, unsigned char *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDRead)(u32 handle, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
extern s32(*HIDWrite)(u32 handle, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
#ifdef __cplusplus
}