cdef enum AIAvailabilityEnum:
    NONE = 0
    DOWNLOADING = 10
    CONVERTING = 20
    UPLOADING = 30
    ENABLED = 200
    WARNING = 300
    ERROR = 500

from cython cimport pymutex

cdef class AIAvailabilityStatus:
    cdef int status
    cdef str error_message
    cdef pymutex _lock

    cdef set_status(self, int status, str error_message=*)
