pspsdk-1.0+beta2
psputility_gamesharing.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * psputility_gamesharing.h - Game Sharing utility library
7  *
8  * Copyright (c) 2008 InsertWittyName <tias_dp@hotmail.com>
9  *
10  */
11 #ifndef __PSPUTILITY_GAMESHARING_H__
12 #define __PSPUTILITY_GAMESHARING_H__
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef enum
19 {
20  PSP_UTILITY_GAMESHARING_MODE_SINGLE = 1, /* Single send */
21  PSP_UTILITY_GAMESHARING_MODE_MULTIPLE = 2 /* Up to 4 simultaneous sends */
22 
24 
25 typedef enum
26 {
27  PSP_UTILITY_GAMESHARING_DATA_TYPE_FILE = 1, /* EBOOT is a file */
28  PSP_UTILITY_GAMESHARING_DATA_TYPE_MEMORY = 2, /* EBOOT is in memory */
29 
31 
36 {
38  int unknown1; /* Set to 0 */
39  int unknown2; /* Set to 0 */
40  char name[8];
41  int unknown3; /* Set to 0 */
42  int unknown4; /* Set to 0 */
43  int unknown5; /* Set to 0 */
44  int result; /* Return value */
45  char *filepath; /* File path if PSP_UTILITY_GAMESHARING_DATA_TYPE_FILE specified */
46  pspUtilityGameSharingMode mode; /* Send mode. One of ::pspUtilityGameSharingMode */
47  pspUtilityGameSharingDataType datatype; /* Data type. One of ::pspUtilityGameSharingDataType */
48  void *data; /* Pointer to the EBOOT data in memory */
49  unsigned int datasize; /* Size of the EBOOT data in memory */
50 
52 
60 
65 
74 
80 void sceUtilityGameSharingUpdate(int n);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif