mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-25 21:54:14 +01:00
Added missing include gctypes and changed data types
This commit is contained in:
parent
ef06a0e3f2
commit
e56b20ce9b
@ -28,6 +28,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <gctypes.h>
|
||||||
|
|
||||||
extern u32 aoc_handle;
|
extern u32 aoc_handle;
|
||||||
|
|
||||||
#define AOC_TITLE_SIZE 104
|
#define AOC_TITLE_SIZE 104
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <gctypes.h>
|
||||||
#include "gx2_types.h"
|
#include "gx2_types.h"
|
||||||
|
|
||||||
extern u32 gx2_handle;
|
extern u32 gx2_handle;
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <gctypes.h>
|
||||||
|
|
||||||
extern u32 sysapp_handle;
|
extern u32 sysapp_handle;
|
||||||
|
|
||||||
void InitSysFunctionPointers(void);
|
void InitSysFunctionPointers(void);
|
||||||
|
@ -28,20 +28,22 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <gctypes.h>
|
||||||
|
|
||||||
extern u32 syshid_handle;
|
extern u32 syshid_handle;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
u32 handle;
|
u32 handle;
|
||||||
u32 physical_device_inst;
|
u32 physical_device_inst;
|
||||||
unsigned short vid;
|
u16 vid;
|
||||||
unsigned short pid;
|
u16 pid;
|
||||||
unsigned char interface_index;
|
u8 interface_index;
|
||||||
unsigned char sub_class;
|
u8 sub_class;
|
||||||
unsigned char protocol;
|
u8 protocol;
|
||||||
|
|
||||||
unsigned short max_packet_size_rx;
|
u16 max_packet_size_rx;
|
||||||
unsigned short max_packet_size_tx;
|
u16 max_packet_size_tx;
|
||||||
|
|
||||||
} HIDDevice;
|
} HIDDevice;
|
||||||
|
|
||||||
@ -58,7 +60,7 @@ struct _HIDClient
|
|||||||
HIDAttachCallback attach_cb;
|
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 InitSysHIDFunctionPointers(void);
|
||||||
void InitAcquireSysHID(void);
|
void InitAcquireSysHID(void);
|
||||||
@ -69,8 +71,8 @@ extern s32(*HIDTeardown)(void);
|
|||||||
extern s32(*HIDAddClient)(HIDClient *p_client, HIDAttachCallback attach_callback);
|
extern s32(*HIDAddClient)(HIDClient *p_client, HIDAttachCallback attach_callback);
|
||||||
extern s32(*HIDDelClient)(HIDClient *p_client);
|
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(*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, 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, 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(*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);
|
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(* 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(* 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(*HIDRead)(u32 handle, u8 *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(*HIDWrite)(u32 handle, u8 *p_buffer, u32 buffer_length, HIDCallback hc, void *p_user);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user