C API: add ragephoto_clear()

This commit is contained in:
Syping 2021-11-05 16:20:43 +01:00
parent 67ed433f6b
commit 4c43596e2a
3 changed files with 14 additions and 0 deletions

View file

@ -915,6 +915,12 @@ ragephoto_t ragephoto_open()
return static_cast<ragephoto_t>(new RagePhoto);
}
void ragephoto_clear(ragephoto_t instance)
{
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
ragePhoto->clear();
}
int ragephoto_load(ragephoto_t instance, const char *data, size_t size)
{
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);