way better cloud data
[carveJwlIkooP6JGAAIwe30JlM.git] / workshop.h
1 #ifndef WORKSHOP_H
2 #define WORKSHOP_H
3
4 #define VG_GAME
5 #include "vg/vg.h"
6 #include "vg/vg_steam_remote_storage.h"
7 #include "skaterift.h"
8
9 struct workshop_file_info{
10 u64 author;
11 char author_name[32];
12 char title[64];
13 };
14
15 struct async_workshop_filepath_info{
16 PublishedFileId_t id;
17 char *buf;
18 u32 len;
19 };
20
21 struct async_workshop_installed_files_info{
22 PublishedFileId_t *buffer;
23 u32 *len; /* inout */
24 };
25
26 struct async_workshop_metadata_info{
27 struct workshop_file_info *info;
28 const char *path;
29 };
30
31 VG_STATIC void workshop_file_info_clear( struct workshop_file_info *info )
32 {
33 info->author = 0ul;
34 info->author_name[0] = '\0';
35 info->title[0] = '\0';
36 }
37
38 VG_STATIC void async_workshop_get_filepath( void *data, u32 len );
39 VG_STATIC void async_workshop_get_installed_files( void *data, u32 len );
40 VG_STATIC void workshop_load_metadata( const char *path,
41 struct workshop_file_info *info );
42
43 #endif /* WORKSHOP_H */