lbry-rocksdb/rocksdb/status.pxd

16 lines
555 B
Cython
Raw Normal View History

2014-01-13 19:52:22 +01:00
from libcpp cimport bool as cpp_bool
from libcpp.string cimport string
cdef extern from "rocksdb/status.h" namespace "rocksdb":
cdef cppclass Status:
Status()
cpp_bool ok() nogil
cpp_bool IsNotFound() nogil const
cpp_bool IsCorruption() nogil const
cpp_bool IsNotSupported() nogil const
cpp_bool IsInvalidArgument() nogil const
cpp_bool IsIOError() nogil const
cpp_bool IsMergeInProgress() nogil const
cpp_bool IsIncomplete() nogil const
string ToString() nogil except+