blob: fec534e8cc70936ecb23b3835ba12e1aa70bf4f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# cython: embedsignature=True
#
# Shared object for librbdpy
#
# Copyright 2016 Mehdi Abaakouk <sileht@redhat.com>
IF BUILD_DOC:
cdef:
ctypedef void* rados_t
ctypedef void* rados_config_t
ctypedef void* rados_ioctx_t
ELSE:
cdef extern from "rados/librados.h" nogil:
ctypedef void* rados_t
ctypedef void* rados_config_t
ctypedef void* rados_ioctx_t
cdef class Rados(object):
cdef:
rados_t cluster
public object state
public object monitor_callback
public object monitor_callback2
public object parsed_args
public object conf_defaults
public object conffile
public object rados_id
cdef class Ioctx(object):
cdef:
object rados
rados_ioctx_t io
public object name
public object state
public object locator_key
public object nspace
# TODO(sileht): we need to track leaving completion objects
# I guess we can do that in a lighter ways, but keep code simple
# as before for now
public object safe_completions
public object complete_completions
public object lock
|