Implement loading of frame animation data

This commit is contained in:
Kovid Goyal
2021-01-26 06:57:49 +05:30
parent cc4f9ddad8
commit 0adbbc6d62
5 changed files with 179 additions and 62 deletions

View File

@@ -630,6 +630,9 @@ disk_cache_wait_for_write(PyObject *self_, monotonic_t timeout) {
return false;
}
size_t
disk_cache_total_size(PyObject *self) { return ((DiskCache*)self)->total_size; }
#define PYWRAP(name) static PyObject* py##name(DiskCache *self, PyObject *args)
#define PA(fmt, ...) if (!PyArg_ParseTuple(args, fmt, __VA_ARGS__)) return NULL;
PYWRAP(ensure_state) {