Skip to content
Permalink
Browse files

Added free methods for schemas returned by functions

  • Loading branch information...
Turupawn committed Mar 25, 2019
1 parent d98dcf8 commit 0019966e8452b0785dc29e78262044a662485b4a
@@ -75,6 +75,7 @@
"cinttypes": "cpp",
"stdio.h": "c",
"set": "cpp",
"unordered_set": "cpp"
"unordered_set": "cpp",
"stdlib.h": "c"
}
}
@@ -658,6 +658,11 @@ extern "C"
//Stats Methods
void MODIO_DLL modioGetModStats(void* object, u32 mod_id, void (*callback)(void* object, ModioResponse response, ModioStats mod));
void MODIO_DLL modioGetAllModStats(void* object, ModioFilterCreator filter, void (*callback)(void* object, ModioResponse response, ModioStats mods_stats[], u32 mods_stats_size));

//Free Methods For Schemas Returned By Funtions
void MODIO_DLL modioFreeInstalledMod(ModioInstalledMod* installed_mod);
void MODIO_DLL modioFreeQueuedModDownload(ModioQueuedModDownload* queued_mod_download);
void MODIO_DLL modioFreeQueuedModfileUpload(ModioQueuedModfileUpload* queued_modfile_upload);
}

#endif
@@ -8,7 +8,6 @@
extern "C"
{
void modioInitInstalledMod(ModioInstalledMod* installed_mod, nlohmann::json image_json);
void modioFreeInstalledMod(ModioInstalledMod* installed_mod);
}

#endif
@@ -8,7 +8,6 @@
extern "C"
{
void modioInitQueuedModDownload(ModioQueuedModDownload* queued_mod_download, nlohmann::json queued_mod_download_json);
void modioFreeQueuedModDownload(ModioQueuedModDownload* queued_mod_download);
}

#endif
@@ -8,7 +8,6 @@
extern "C"
{
void modioInitQueuedModfileUpload(ModioQueuedModfileUpload* queued_modfile_upload, nlohmann::json queued_modfile_upload_json);
void modioFreeQueuedModfileUpload(ModioQueuedModfileUpload* queued_modfile_upload);
}

#endif

0 comments on commit 0019966

Please sign in to comment.
You can’t perform that action at this time.