Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteamremotestorage.h
Go to the documentation of this file.
1//====== Copyright � 1996-2008, Valve Corporation, All rights reserved. =======
2//
3// Purpose: public interface to user remote file storage in Steam
4//
5//=============================================================================
6
7#ifndef ISTEAMREMOTESTORAGE_H
8#define ISTEAMREMOTESTORAGE_H
9#ifdef _WIN32
10#pragma once
11#endif
12
13#include "steam_api_common.h"
14
15
16//-----------------------------------------------------------------------------
17// Purpose: Defines the largest allowed file size. Cloud files cannot be written
18// in a single chunk over 100MB (and cannot be over 200MB total.)
19//-----------------------------------------------------------------------------
20const uint32 k_unMaxCloudFileChunkSize = 100 * 1024 * 1024;
21
22
23//-----------------------------------------------------------------------------
24// Purpose: Structure that contains an array of const char * strings and the number of those strings
25//-----------------------------------------------------------------------------
26#if defined( VALVE_CALLBACK_PACK_SMALL )
27#pragma pack( push, 4 )
28#elif defined( VALVE_CALLBACK_PACK_LARGE )
29#pragma pack( push, 8 )
30#else
31#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
32#endif
38#pragma pack( pop )
39
40// A handle to a piece of user generated content
45const UGCHandle_t k_UGCHandleInvalid = 0xffffffffffffffffull;
47
48// Handle for writing to Steam Cloud
51
56const uint32 k_cchTagListMax = 1024 + 1;
59
60
75
83
84
86{
88
89 k_EWorkshopFileTypeCommunity = 0, // normal Workshop item that can be subscribed to
90 k_EWorkshopFileTypeMicrotransaction = 1, // Workshop item that is meant to be voted on for the purpose of selling in-game
91 k_EWorkshopFileTypeCollection = 2, // a collection of Workshop or Greenlight items
92 k_EWorkshopFileTypeArt = 3, // artwork
93 k_EWorkshopFileTypeVideo = 4, // external video
95 k_EWorkshopFileTypeGame = 6, // Greenlight game entry
96 k_EWorkshopFileTypeSoftware = 7, // Greenlight software entry
97 k_EWorkshopFileTypeConcept = 8, // Greenlight concept
98 k_EWorkshopFileTypeWebGuide = 9, // Steam web guide
99 k_EWorkshopFileTypeIntegratedGuide = 10, // application integrated guide
100 k_EWorkshopFileTypeMerch = 11, // Workshop merchandise meant to be voted on for the purpose of being sold
101 k_EWorkshopFileTypeControllerBinding = 12, // Steam Controller bindings
103 k_EWorkshopFileTypeSteamVideo = 14, // Steam video
104 k_EWorkshopFileTypeGameManagedItem = 15, // managed completely by the game, not the user, and not shown on the web
105 k_EWorkshopFileTypeClip = 16, // internal
106
107 // Update k_EWorkshopFileTypeMax if you add values.
109
110};
111
119
125
136
142
143
145{
146 // Keeps the file handle open unless the last byte is read. You can use this when reading large files (over 100MB) in sequential chunks.
147 // If the last byte is read, this will behave the same as k_EUGCRead_Close. Otherwise, it behaves the same as k_EUGCRead_ContinueReading.
148 // This value maintains the same behavior as before the EUGCReadAction parameter was introduced.
150
151 // Keeps the file handle open. Use this when using UGCRead to seek to different parts of the file.
152 // When you are done seeking around the file, make a final call with k_EUGCRead_Close to close it.
154
155 // Frees the file handle. Use this when you're done reading the content.
156 // To read the file from Steam again you will need to call UGCDownload again.
158};
159
161{
163
164 // The file was updated from another device
166
167 // The file was deleted by another device
169};
170
172{
174
175 // The file is directly accessed by the game and this is the full path
177
178 // The file is accessed via the ISteamRemoteStorage API and this is the filename
180};
181
182
183//-----------------------------------------------------------------------------
184// Purpose: Functions for accessing, reading and writing files stored remotely
185// and cached locally
186//-----------------------------------------------------------------------------
188{
189 public:
190 // NOTE
191 //
192 // Filenames are case-insensitive, and will be converted to lowercase automatically.
193 // So "foo.bar" and "Foo.bar" are the same file, and if you write "Foo.bar" then
194 // iterate the files, the filename returned will be "foo.bar".
195 //
196
197 // file operations
198 virtual bool FileWrite( const char *pchFile, const void *pvData, int32 cubData ) = 0;
199 virtual int32 FileRead( const char *pchFile, void *pvData, int32 cubDataToRead ) = 0;
200
202 virtual SteamAPICall_t FileWriteAsync( const char *pchFile, const void *pvData, uint32 cubData ) = 0;
203
205 virtual SteamAPICall_t FileReadAsync( const char *pchFile, uint32 nOffset, uint32 cubToRead ) = 0;
206 virtual bool FileReadAsyncComplete( SteamAPICall_t hReadCall, void *pvBuffer, uint32 cubToRead ) = 0;
207
208 virtual bool FileForget( const char *pchFile ) = 0;
209 virtual bool FileDelete( const char *pchFile ) = 0;
211 virtual SteamAPICall_t FileShare( const char *pchFile ) = 0;
212 virtual bool SetSyncPlatforms( const char *pchFile, ERemoteStoragePlatform eRemoteStoragePlatform ) = 0;
213
214 // file operations that cause network IO
215 virtual UGCFileWriteStreamHandle_t FileWriteStreamOpen( const char *pchFile ) = 0;
216 virtual bool FileWriteStreamWriteChunk( UGCFileWriteStreamHandle_t writeHandle, const void *pvData, int32 cubData ) = 0;
217 virtual bool FileWriteStreamClose( UGCFileWriteStreamHandle_t writeHandle ) = 0;
218 virtual bool FileWriteStreamCancel( UGCFileWriteStreamHandle_t writeHandle ) = 0;
219
220 // file information
221 virtual bool FileExists( const char *pchFile ) = 0;
222 virtual bool FilePersisted( const char *pchFile ) = 0;
223 virtual int32 GetFileSize( const char *pchFile ) = 0;
224 virtual int64 GetFileTimestamp( const char *pchFile ) = 0;
225 virtual ERemoteStoragePlatform GetSyncPlatforms( const char *pchFile ) = 0;
226
227 // iteration
228 virtual int32 GetFileCount() = 0;
229 virtual const char *GetFileNameAndSize( int iFile, int32 *pnFileSizeInBytes ) = 0;
230
231 // configuration management
232 virtual bool GetQuota( uint64 *pnTotalBytes, uint64 *puAvailableBytes ) = 0;
233 virtual bool IsCloudEnabledForAccount() = 0;
234 virtual bool IsCloudEnabledForApp() = 0;
235 virtual void SetCloudEnabledForApp( bool bEnabled ) = 0;
236
237 // user generated content
238
239 // Downloads a UGC file. A priority value of 0 will download the file immediately,
240 // otherwise it will wait to download the file until all downloads with a lower priority
241 // value are completed. Downloads with equal priority will occur simultaneously.
243 virtual SteamAPICall_t UGCDownload( UGCHandle_t hContent, uint32 unPriority ) = 0;
244
245 // Gets the amount of data downloaded so far for a piece of content. pnBytesExpected can be 0 if function returns false
246 // or if the transfer hasn't started yet, so be careful to check for that before dividing to get a percentage
247 virtual bool GetUGCDownloadProgress( UGCHandle_t hContent, int32 *pnBytesDownloaded, int32 *pnBytesExpected ) = 0;
248
249 // Gets metadata for a file after it has been downloaded. This is the same metadata given in the RemoteStorageDownloadUGCResult_t call result
250 virtual bool GetUGCDetails( UGCHandle_t hContent, AppId_t *pnAppID, STEAM_OUT_STRING() char **ppchName, int32 *pnFileSizeInBytes, STEAM_OUT_STRUCT() CSteamID *pSteamIDOwner ) = 0;
251
252 // After download, gets the content of the file.
253 // Small files can be read all at once by calling this function with an offset of 0 and cubDataToRead equal to the size of the file.
254 // Larger files can be read in chunks to reduce memory usage (since both sides of the IPC client and the game itself must allocate
255 // enough memory for each chunk). Once the last byte is read, the file is implicitly closed and further calls to UGCRead will fail
256 // unless UGCDownload is called again.
257 // For especially large files (anything over 100MB) it is a requirement that the file is read in chunks.
258 virtual int32 UGCRead( UGCHandle_t hContent, void *pvData, int32 cubDataToRead, uint32 cOffset, EUGCReadAction eAction ) = 0;
259
260 // Functions to iterate through UGC that has finished downloading but has not yet been read via UGCRead()
262 virtual UGCHandle_t GetCachedUGCHandle( int32 iCachedContent ) = 0;
263
264 // publishing UGC
266 virtual SteamAPICall_t PublishWorkshopFile( const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType ) = 0;
268 virtual bool UpdatePublishedFileFile( PublishedFileUpdateHandle_t updateHandle, const char *pchFile ) = 0;
269 virtual bool UpdatePublishedFilePreviewFile( PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile ) = 0;
270 virtual bool UpdatePublishedFileTitle( PublishedFileUpdateHandle_t updateHandle, const char *pchTitle ) = 0;
271 virtual bool UpdatePublishedFileDescription( PublishedFileUpdateHandle_t updateHandle, const char *pchDescription ) = 0;
276 // Gets published file details for the given publishedfileid. If unMaxSecondsOld is greater than 0,
277 // cached data may be returned, depending on how long ago it was cached. A value of 0 will force a refresh.
278 // A value of k_WorkshopForceLoadPublishedFileDetailsFromCache will use cached data if it exists, no matter how old it is.
280 virtual SteamAPICall_t GetPublishedFileDetails( PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld ) = 0;
282 virtual SteamAPICall_t DeletePublishedFile( PublishedFileId_t unPublishedFileId ) = 0;
283 // enumerate the files that the current user published with this app
292 virtual bool UpdatePublishedFileSetChangeDescription( PublishedFileUpdateHandle_t updateHandle, const char *pchChangeDescription ) = 0;
296 virtual SteamAPICall_t UpdateUserPublishedItemVote( PublishedFileId_t unPublishedFileId, bool bVoteUp ) = 0;
300 virtual SteamAPICall_t EnumerateUserSharedWorkshopFiles( CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t *pRequiredTags, SteamParamStringArray_t *pExcludedTags ) = 0;
302 virtual SteamAPICall_t PublishVideo( EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags ) = 0;
307 // this method enumerates the public view of workshop files
309 virtual SteamAPICall_t EnumeratePublishedWorkshopFiles( EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t *pTags, SteamParamStringArray_t *pUserTags ) = 0;
310
312 virtual SteamAPICall_t UGCDownloadToLocation( UGCHandle_t hContent, const char *pchLocation, uint32 unPriority ) = 0;
313
314 // Cloud dynamic state change notification
316 virtual const char *GetLocalFileChange( int iFile, ERemoteStorageLocalFileChange *pEChangeType, ERemoteStorageFilePathType *pEFilePathType ) = 0;
317
318 // Indicate to Steam the beginning / end of a set of local file
319 // operations - for example, writing a game save that requires updating two files.
320 virtual bool BeginFileWriteBatch() = 0;
321 virtual bool EndFileWriteBatch() = 0;
322};
323
324#define STEAMREMOTESTORAGE_INTERFACE_VERSION "STEAMREMOTESTORAGE_INTERFACE_VERSION016"
325
326// Global interface accessor
329
330// callbacks
331#if defined( VALVE_CALLBACK_PACK_SMALL )
332#pragma pack( push, 4 )
333#elif defined( VALVE_CALLBACK_PACK_LARGE )
334#pragma pack( push, 8 )
335#else
336#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
337#endif
338
339
340
341
342//-----------------------------------------------------------------------------
343// Purpose: The result of a call to FileShare()
344//-----------------------------------------------------------------------------
346{
348 EResult m_eResult; // The result of the operation
349 UGCHandle_t m_hFile; // The handle that can be shared with users and features
350 char m_rgchFilename[k_cchFilenameMax]; // The name of the file that was shared
351};
352
353
354// k_iSteamRemoteStorageCallbacks + 8 is deprecated! Do not reuse
355
356
357//-----------------------------------------------------------------------------
358// Purpose: The result of a call to PublishFile()
359//-----------------------------------------------------------------------------
367
368// k_iSteamRemoteStorageCallbacks + 10 is deprecated! Do not reuse
369
370
371
372//-----------------------------------------------------------------------------
373// Purpose: The result of a call to DeletePublishedFile()
374//-----------------------------------------------------------------------------
381
382
383//-----------------------------------------------------------------------------
384// Purpose: The result of a call to EnumerateUserPublishedFiles()
385//-----------------------------------------------------------------------------
394
395
396//-----------------------------------------------------------------------------
397// Purpose: The result of a call to SubscribePublishedFile()
398//-----------------------------------------------------------------------------
405
406
407//-----------------------------------------------------------------------------
408// Purpose: The result of a call to EnumerateSubscribePublishedFiles()
409//-----------------------------------------------------------------------------
419
420#if defined(VALVE_CALLBACK_PACK_SMALL)
421 VALVE_COMPILE_TIME_ASSERT( sizeof( RemoteStorageEnumerateUserSubscribedFilesResult_t ) == (1 + 1 + 1 + 50 + 100) * 4 );
422#elif defined(VALVE_CALLBACK_PACK_LARGE)
424#else
425#warning You must first include steam_api_common.h
426#endif
427
428//-----------------------------------------------------------------------------
429// Purpose: The result of a call to UnsubscribePublishedFile()
430//-----------------------------------------------------------------------------
437
438
439//-----------------------------------------------------------------------------
440// Purpose: The result of a call to CommitPublishedFileUpdate()
441//-----------------------------------------------------------------------------
449
450
451//-----------------------------------------------------------------------------
452// Purpose: The result of a call to UGCDownload()
453//-----------------------------------------------------------------------------
455{
457 EResult m_eResult; // The result of the operation.
458 UGCHandle_t m_hFile; // The handle to the file that was attempted to be downloaded.
459 AppId_t m_nAppID; // ID of the app that created this file.
460 int32 m_nSizeInBytes; // The size of the file that was downloaded, in bytes.
461 char m_pchFileName[k_cchFilenameMax]; // The name of the file that was downloaded.
462 uint64 m_ulSteamIDOwner; // Steam ID of the user who created this content.
463};
464
465
466//-----------------------------------------------------------------------------
467// Purpose: The result of a call to GetPublishedFileDetails()
468//-----------------------------------------------------------------------------
470{
472 EResult m_eResult; // The result of the operation.
474 AppId_t m_nCreatorAppID; // ID of the app that created this file.
475 AppId_t m_nConsumerAppID; // ID of the app that will consume this file.
476 char m_rgchTitle[k_cchPublishedDocumentTitleMax]; // title of document
478 UGCHandle_t m_hFile; // The handle of the primary file
479 UGCHandle_t m_hPreviewFile; // The handle of the preview file
480 uint64 m_ulSteamIDOwner; // Steam ID of the user who created this content.
481 uint32 m_rtimeCreated; // time when the published file was created
482 uint32 m_rtimeUpdated; // time when the published file was last updated
485 char m_rgchTags[k_cchTagListMax]; // comma separated list of all tags associated with this file
486 bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer
487 char m_pchFileName[k_cchFilenameMax]; // The name of the primary file
488 int32 m_nFileSize; // Size of the primary file
489 int32 m_nPreviewFileSize; // Size of the preview file
490 char m_rgchURL[k_cchPublishedFileURLMax]; // URL (for a video or a website)
491 EWorkshopFileType m_eFileType; // Type of the file
492 bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop
493};
494
495
507
508
509//-----------------------------------------------------------------------------
510// Purpose: The result of GetPublishedItemVoteDetails
511//-----------------------------------------------------------------------------
522
523
524//-----------------------------------------------------------------------------
525// Purpose: User subscribed to a file for the app (from within the app or on the web)
526//-----------------------------------------------------------------------------
528{
530 PublishedFileId_t m_nPublishedFileId; // The published file id
531 AppId_t m_nAppID; // ID of the app that will consume this file.
532};
533
534//-----------------------------------------------------------------------------
535// Purpose: User unsubscribed from a file for the app (from within the app or on the web)
536//-----------------------------------------------------------------------------
538{
540 PublishedFileId_t m_nPublishedFileId; // The published file id
541 AppId_t m_nAppID; // ID of the app that will consume this file.
542};
543
544
545//-----------------------------------------------------------------------------
546// Purpose: Published file that a user owns was deleted (from within the app or the web)
547//-----------------------------------------------------------------------------
549{
551 PublishedFileId_t m_nPublishedFileId; // The published file id
552 AppId_t m_nAppID; // ID of the app that will consume this file.
553};
554
555
556//-----------------------------------------------------------------------------
557// Purpose: The result of a call to UpdateUserPublishedItemVote()
558//-----------------------------------------------------------------------------
565
566
567//-----------------------------------------------------------------------------
568// Purpose: The result of a call to GetUserPublishedItemVoteDetails()
569//-----------------------------------------------------------------------------
571{
573 EResult m_eResult; // The result of the operation.
574 PublishedFileId_t m_nPublishedFileId; // The published file id
575 EWorkshopVote m_eVote; // what the user voted
576};
577
586
588{
590 EResult m_eResult; // The result of the operation.
591 PublishedFileId_t m_nPublishedFileId; // The published file id
592 EWorkshopFileAction m_eAction; // the action that was attempted
593};
594
605
606
607//-----------------------------------------------------------------------------
608// Purpose: Called periodically while a PublishWorkshopFile is in progress
609//-----------------------------------------------------------------------------
616
617
618//-----------------------------------------------------------------------------
619// Purpose: Called when the content for a published file is updated
620//-----------------------------------------------------------------------------
622{
624 PublishedFileId_t m_nPublishedFileId; // The published file id
625 AppId_t m_nAppID; // ID of the app that will consume this file.
626 uint64 m_ulUnused; // not used anymore
627};
628
629//-----------------------------------------------------------------------------
630// Purpose: Called when a FileWriteAsync completes
631//-----------------------------------------------------------------------------
637
638//-----------------------------------------------------------------------------
639// Purpose: Called when a FileReadAsync completes
640//-----------------------------------------------------------------------------
642{
644 SteamAPICall_t m_hFileReadAsync; // call handle of the async read which was made
646 uint32 m_nOffset; // offset in the file this read was at
647 uint32 m_cubRead; // amount read - will the <= the amount requested
648};
649
650//-----------------------------------------------------------------------------
651// Purpose: one or more files for this app have changed locally after syncing
652// to remote session changes
653// Note: only posted if this happens DURING the local app session
654//-----------------------------------------------------------------------------
655STEAM_CALLBACK_BEGIN( RemoteStorageLocalFileChange_t, k_iSteamRemoteStorageCallbacks + 33 )
657
658#pragma pack( pop )
659
660
661#endif // ISTEAMREMOTESTORAGE_H
virtual SteamAPICall_t UnsubscribePublishedFile(PublishedFileId_t unPublishedFileId)=0
virtual bool FileDelete(const char *pchFile)=0
virtual bool GetUGCDetails(UGCHandle_t hContent, AppId_t *pnAppID, STEAM_OUT_STRING() char **ppchName, int32 *pnFileSizeInBytes, STEAM_OUT_STRUCT() CSteamID *pSteamIDOwner)=0
virtual bool UpdatePublishedFileSetChangeDescription(PublishedFileUpdateHandle_t updateHandle, const char *pchChangeDescription)=0
virtual bool UpdatePublishedFileTitle(PublishedFileUpdateHandle_t updateHandle, const char *pchTitle)=0
virtual SteamAPICall_t FileShare(const char *pchFile)=0
virtual SteamAPICall_t GetPublishedFileDetails(PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld)=0
virtual ERemoteStoragePlatform GetSyncPlatforms(const char *pchFile)=0
virtual SteamAPICall_t GetUserPublishedItemVoteDetails(PublishedFileId_t unPublishedFileId)=0
virtual bool UpdatePublishedFileFile(PublishedFileUpdateHandle_t updateHandle, const char *pchFile)=0
virtual bool FileForget(const char *pchFile)=0
virtual SteamAPICall_t SubscribePublishedFile(PublishedFileId_t unPublishedFileId)=0
virtual bool UpdatePublishedFilePreviewFile(PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile)=0
virtual bool GetQuota(uint64 *pnTotalBytes, uint64 *puAvailableBytes)=0
virtual PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest(PublishedFileId_t unPublishedFileId)=0
virtual SteamAPICall_t EnumeratePublishedFilesByUserAction(EWorkshopFileAction eAction, uint32 unStartIndex)=0
virtual bool FilePersisted(const char *pchFile)=0
virtual bool UpdatePublishedFileDescription(PublishedFileUpdateHandle_t updateHandle, const char *pchDescription)=0
virtual SteamAPICall_t EnumerateUserSharedWorkshopFiles(CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t *pRequiredTags, SteamParamStringArray_t *pExcludedTags)=0
virtual bool BeginFileWriteBatch()=0
virtual bool FileWriteStreamWriteChunk(UGCFileWriteStreamHandle_t writeHandle, const void *pvData, int32 cubData)=0
virtual SteamAPICall_t GetPublishedItemVoteDetails(PublishedFileId_t unPublishedFileId)=0
virtual int32 UGCRead(UGCHandle_t hContent, void *pvData, int32 cubDataToRead, uint32 cOffset, EUGCReadAction eAction)=0
virtual bool FileWriteStreamClose(UGCFileWriteStreamHandle_t writeHandle)=0
virtual bool FileExists(const char *pchFile)=0
virtual int32 FileRead(const char *pchFile, void *pvData, int32 cubDataToRead)=0
virtual int32 GetLocalFileChangeCount()=0
virtual SteamAPICall_t UGCDownloadToLocation(UGCHandle_t hContent, const char *pchLocation, uint32 unPriority)=0
virtual SteamAPICall_t DeletePublishedFile(PublishedFileId_t unPublishedFileId)=0
virtual SteamAPICall_t UpdateUserPublishedItemVote(PublishedFileId_t unPublishedFileId, bool bVoteUp)=0
virtual bool GetUGCDownloadProgress(UGCHandle_t hContent, int32 *pnBytesDownloaded, int32 *pnBytesExpected)=0
virtual bool FileWriteStreamCancel(UGCFileWriteStreamHandle_t writeHandle)=0
virtual SteamAPICall_t CommitPublishedFileUpdate(PublishedFileUpdateHandle_t updateHandle)=0
virtual bool SetSyncPlatforms(const char *pchFile, ERemoteStoragePlatform eRemoteStoragePlatform)=0
virtual bool FileWrite(const char *pchFile, const void *pvData, int32 cubData)=0
virtual bool EndFileWriteBatch()=0
virtual void SetCloudEnabledForApp(bool bEnabled)=0
virtual UGCFileWriteStreamHandle_t FileWriteStreamOpen(const char *pchFile)=0
virtual bool IsCloudEnabledForApp()=0
virtual SteamAPICall_t EnumerateUserPublishedFiles(uint32 unStartIndex)=0
virtual SteamAPICall_t EnumerateUserSubscribedFiles(uint32 unStartIndex)=0
virtual SteamAPICall_t EnumeratePublishedWorkshopFiles(EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t *pTags, SteamParamStringArray_t *pUserTags)=0
virtual int64 GetFileTimestamp(const char *pchFile)=0
virtual SteamAPICall_t UGCDownload(UGCHandle_t hContent, uint32 unPriority)=0
virtual int32 GetCachedUGCCount()=0
virtual bool UpdatePublishedFileVisibility(PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility)=0
virtual SteamAPICall_t FileWriteAsync(const char *pchFile, const void *pvData, uint32 cubData)=0
virtual bool FileReadAsyncComplete(SteamAPICall_t hReadCall, void *pvBuffer, uint32 cubToRead)=0
virtual bool UpdatePublishedFileTags(PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t *pTags)=0
virtual bool IsCloudEnabledForAccount()=0
virtual const char * GetLocalFileChange(int iFile, ERemoteStorageLocalFileChange *pEChangeType, ERemoteStorageFilePathType *pEFilePathType)=0
virtual const char * GetFileNameAndSize(int iFile, int32 *pnFileSizeInBytes)=0
virtual SteamAPICall_t PublishVideo(EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags)=0
virtual int32 GetFileSize(const char *pchFile)=0
virtual int32 GetFileCount()=0
virtual UGCHandle_t GetCachedUGCHandle(int32 iCachedContent)=0
virtual SteamAPICall_t SetUserPublishedFileAction(PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction)=0
virtual SteamAPICall_t FileReadAsync(const char *pchFile, uint32 nOffset, uint32 cubToRead)=0
virtual SteamAPICall_t PublishWorkshopFile(const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType)=0
ERemoteStorageLocalFileChange
@ k_ERemoteStorageLocalFileChange_FileDeleted
@ k_ERemoteStorageLocalFileChange_FileUpdated
@ k_ERemoteStorageLocalFileChange_Invalid
const uint32 k_unMaxCloudFileChunkSize
ISteamRemoteStorage * SteamRemoteStorage()
uint64 UGCFileWriteStreamHandle_t
const PublishedFileUpdateHandle_t k_PublishedFileUpdateHandleInvalid
EWorkshopFileType
@ k_EWorkshopFileTypeMax
@ k_EWorkshopFileTypeCollection
@ k_EWorkshopFileTypeIntegratedGuide
@ k_EWorkshopFileTypeGame
@ k_EWorkshopFileTypeSteamVideo
@ k_EWorkshopFileTypeMerch
@ k_EWorkshopFileTypeCommunity
@ k_EWorkshopFileTypeArt
@ k_EWorkshopFileTypeVideo
@ k_EWorkshopFileTypeSteamworksAccessInvite
@ k_EWorkshopFileTypeScreenshot
@ k_EWorkshopFileTypeGameManagedItem
@ k_EWorkshopFileTypeSoftware
@ k_EWorkshopFileTypeClip
@ k_EWorkshopFileTypeMicrotransaction
@ k_EWorkshopFileTypeConcept
@ k_EWorkshopFileTypeWebGuide
@ k_EWorkshopFileTypeControllerBinding
@ k_EWorkshopFileTypeFirst
const uint32 k_cchPublishedDocumentDescriptionMax
#define STEAMREMOTESTORAGE_INTERFACE_VERSION
EWorkshopVideoProvider
@ k_EWorkshopVideoProviderNone
@ k_EWorkshopVideoProviderYoutube
const uint32 k_cchFilenameMax
uint64 UGCHandle_t
const uint32 k_cchTagListMax
const uint32 k_cchPublishedDocumentTitleMax
const uint32 k_unEnumeratePublishedFilesMaxResults
ERemoteStoragePublishedFileVisibility
@ k_ERemoteStoragePublishedFileVisibilityPublic
@ k_ERemoteStoragePublishedFileVisibilityFriendsOnly
@ k_ERemoteStoragePublishedFileVisibilityUnlisted
@ k_ERemoteStoragePublishedFileVisibilityPrivate
@ k_EUGCRead_ContinueReadingUntilFinished
@ k_EUGCRead_ContinueReading
@ k_EUGCRead_Close
const UGCFileWriteStreamHandle_t k_UGCFileStreamHandleInvalid
const uint32 k_cchPublishedFileURLMax
ERemoteStorageFilePathType
@ k_ERemoteStorageFilePathType_APIFilename
@ k_ERemoteStorageFilePathType_Invalid
@ k_ERemoteStorageFilePathType_Absolute
uint64 PublishedFileUpdateHandle_t
@ k_EWorkshopVoteFor
@ k_EWorkshopVoteLater
@ k_EWorkshopVoteUnvoted
@ k_EWorkshopVoteAgainst
ERemoteStoragePlatform
@ k_ERemoteStoragePlatformPS3
@ k_ERemoteStoragePlatformLinux
@ k_ERemoteStoragePlatformSwitch
@ k_ERemoteStoragePlatformIOS
@ k_ERemoteStoragePlatformOSX
@ k_ERemoteStoragePlatformNone
@ k_ERemoteStoragePlatformAndroid
@ k_ERemoteStoragePlatformAll
@ k_ERemoteStoragePlatformWindows
const uint32 k_cchPublishedDocumentChangeDescriptionMax
const UGCHandle_t k_UGCHandleInvalid
const PublishedFileId_t k_PublishedFileIdInvalid
EWorkshopEnumerationType
@ k_EWorkshopEnumerationTypeTrending
@ k_EWorkshopEnumerationTypeRankedByVote
@ k_EWorkshopEnumerationTypeRecentFromFollowedUsers
@ k_EWorkshopEnumerationTypeContentByFriends
@ k_EWorkshopEnumerationTypeVotedByFriends
@ k_EWorkshopEnumerationTypeFavoritesOfFriends
@ k_EWorkshopEnumerationTypeRecent
uint64 PublishedFileId_t
EWorkshopFileAction
@ k_EWorkshopFileActionPlayed
@ k_EWorkshopFileActionCompleted
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
#define STEAM_OUT_STRING()
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
#define STEAM_CALLBACK_END(nArgs)
@ k_iSteamRemoteStorageCallbacks
#define STEAM_CALL_RESULT(RESULT_TYPE)
#define STEAM_CALLBACK_BEGIN(callbackname, callbackid)
#define STEAM_OUT_STRUCT()
#define VALVE_COMPILE_TIME_ASSERT(pred)
uint32 AppId_t
Definition steamtypes.h:81
unsigned long long uint64
Definition steamtypes.h:60
int int32
Definition steamtypes.h:57
uint64 SteamAPICall_t
Definition steamtypes.h:93
long long int64
Definition steamtypes.h:59
uint32 m_rgRTimeUpdated[k_unEnumeratePublishedFilesMaxResults]
PublishedFileId_t m_rgPublishedFileId[k_unEnumeratePublishedFilesMaxResults]
PublishedFileId_t m_rgPublishedFileId[k_unEnumeratePublishedFilesMaxResults]
PublishedFileId_t m_rgPublishedFileId[k_unEnumeratePublishedFilesMaxResults]
uint32 m_rgRTimeSubscribed[k_unEnumeratePublishedFilesMaxResults]
PublishedFileId_t m_rgPublishedFileId[k_unEnumeratePublishedFilesMaxResults]
PublishedFileId_t m_rgPublishedFileId[k_unEnumeratePublishedFilesMaxResults]
float m_rgScore[k_unEnumeratePublishedFilesMaxResults]
char m_rgchFilename[k_cchFilenameMax]
char m_rgchTitle[k_cchPublishedDocumentTitleMax]
ERemoteStoragePublishedFileVisibility m_eVisibility
char m_rgchDescription[k_cchPublishedDocumentDescriptionMax]