C API: bool -> int, size_t included
This commit is contained in:
parent
48f8d12246
commit
6b262e2ddc
2 changed files with 3 additions and 3 deletions
|
@ -865,14 +865,13 @@ inline void RagePhoto::uInt32ToCharLE(uint32_t x, char *y)
|
|||
y[3] = x >> 24;
|
||||
}
|
||||
|
||||
// C API
|
||||
#ifdef LIBRAGEPHOTO_C_API
|
||||
ragephoto_t ragephoto_open()
|
||||
{
|
||||
return new RagePhoto;
|
||||
}
|
||||
|
||||
bool ragephoto_load(ragephoto_t instance, const char *data, size_t size)
|
||||
int ragephoto_load(ragephoto_t instance, const char *data, size_t size)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
return ragePhoto->load(data, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue