psputility_gamesharing.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  *  psputility_gamesharing.h - Game Sharing utility library
00007  *
00008  * Copyright (c) 2008 InsertWittyName <tias_dp@hotmail.com>
00009  *
00010  */
00011 #ifndef __PSPUTILITY_GAMESHARING_H__
00012 #define __PSPUTILITY_GAMESHARING_H__
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 typedef enum
00019 {
00020         PSP_UTILITY_GAMESHARING_MODE_SINGLE             = 1,    /* Single send */
00021         PSP_UTILITY_GAMESHARING_MODE_MULTIPLE   = 2             /* Up to 4 simultaneous sends */
00022         
00023 } pspUtilityGameSharingMode;
00024 
00025 typedef enum
00026 {
00027         PSP_UTILITY_GAMESHARING_DATA_TYPE_FILE          = 1, /* EBOOT is a file */
00028         PSP_UTILITY_GAMESHARING_DATA_TYPE_MEMORY        = 2, /* EBOOT is in memory */
00029         
00030 } pspUtilityGameSharingDataType;
00031 
00035 typedef struct _pspUtilityGameSharingParams
00036 {
00037     pspUtilityDialogCommon base;
00038     int unknown1;                                                       /* Set to 0 */
00039         int unknown2;                                                   /* Set to 0 */
00040         char name[8];
00041         int unknown3;                                                   /* Set to 0 */
00042         int unknown4;                                                   /* Set to 0 */
00043         int unknown5;                                                   /* Set to 0 */
00044         int result;                                                             /* Return value */
00045         char *filepath;                                                 /* File path if PSP_UTILITY_GAMESHARING_DATA_TYPE_FILE specified */
00046         pspUtilityGameSharingMode mode;                 /* Send mode. One of ::pspUtilityGameSharingMode */
00047         pspUtilityGameSharingDataType datatype; /* Data type. One of ::pspUtilityGameSharingDataType */
00048         void *data;                                                             /* Pointer to the EBOOT data in memory */
00049         unsigned int datasize;                                  /* Size of the EBOOT data in memory */
00050 
00051 } pspUtilityGameSharingParams;
00052 
00059 int sceUtilityGameSharingInitStart(pspUtilityGameSharingParams *params);
00060 
00064 void sceUtilityGameSharingShutdownStart(void);
00065 
00073 int sceUtilityGameSharingGetStatus(void);
00074 
00080 void sceUtilityGameSharingUpdate(int n);
00081 
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085 
00086 #endif