]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef CEPH_RADOS_TYPES_H |
2 | #define CEPH_RADOS_TYPES_H | |
3 | ||
4 | #include <stdint.h> | |
5 | ||
6 | /** | |
7 | * @struct obj_watch_t | |
8 | * One item from list_watchers | |
9 | */ | |
10 | struct obj_watch_t { | |
11fdf7f2 | 11 | /// Address of the Watcher |
7c673cae | 12 | char addr[256]; |
11fdf7f2 | 13 | /// Watcher ID |
7c673cae | 14 | int64_t watcher_id; |
11fdf7f2 | 15 | /// Cookie |
7c673cae | 16 | uint64_t cookie; |
11fdf7f2 | 17 | /// Timeout in Seconds |
7c673cae FG |
18 | uint32_t timeout_seconds; |
19 | }; | |
20 | ||
21 | /** | |
7c673cae FG |
22 | * |
23 | * Pass as nspace argument to rados_ioctx_set_namespace() | |
24 | * before calling rados_nobjects_list_open() to return | |
25 | * all objects in all namespaces. | |
26 | */ | |
27 | #define LIBRADOS_ALL_NSPACES "\001" | |
28 | ||
29 | #endif |