summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda.sadeh@dreamhost.com>2011-12-02 09:58:38 -0800
committerYehuda Sadeh <yehuda.sadeh@dreamhost.com>2011-12-02 09:58:38 -0800
commitcd138c108bbf13411b6cca3801fc7a93ce6b754d (patch)
treedea29e793a286036b6d4f0f985ed553a1b06f608
parentb327b28faf2ae5168662c763ed60f8a0e2075550 (diff)
downloadceph-cd138c108bbf13411b6cca3801fc7a93ce6b754d.tar.gz
libradosgw: amend api
-rw-r--r--src/rgw/libradosgw.hpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/rgw/libradosgw.hpp b/src/rgw/libradosgw.hpp
index c87b3e7f0cc..87c2c9b72e2 100644
--- a/src/rgw/libradosgw.hpp
+++ b/src/rgw/libradosgw.hpp
@@ -13,6 +13,9 @@ namespace libradosgw {
using librados::Rados;
using ceph::bufferlist;
+ class StoreImpl;
+ class AccountImpl;
+
enum RGWPerm {
PERM_READ = 0x01,
PERM_WRITE = 0x02,
@@ -156,6 +159,10 @@ namespace libradosgw {
};
class Account {
+ AccountImpl *account;
+ public:
+ Account();
+
AccountIterator buckets_begin();
const AccountIterator& buckets_end();
@@ -166,17 +173,18 @@ namespace libradosgw {
class Store {
+ StoreImpl *impl;
public:
- Store();
+ Store() : impl(NULL) {}
int init(librados::Rados *r);
void shutdown();
- Account get_account(string& name);
+ int get_account(string& name, Account& account);
- User user_by_name(string& name);
- User user_by_email(string& email);
- User user_by_access_key(string& access_key);
+ int user_by_name(string& name, User& user);
+ int user_by_email(string& email, User& user);
+ int user_by_access_key(string& access_key, User& user);
};
}