~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to s3tools/src/s3c_acl.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2010- The University of Notre Dame
 
3
This software is distributed under the GNU General Public License.
 
4
See the file COPYING for details.
 
5
*/
 
6
#ifndef S3C_ACL_H_
 
7
#define S3C_ACL_H_
 
8
 
 
9
#include <hash_table.h>
 
10
#include <stdlib.h>
 
11
 
 
12
#define S3_ACL_URI      1
 
13
#define S3_ACL_ID       2
 
14
#define S3_ACL_EMAIL    3
 
15
 
 
16
#define S3_ACL_FULL_CONTROL     0x01
 
17
#define S3_ACL_READ             0x02
 
18
#define S3_ACL_WRITE            0x04
 
19
#define S3_ACL_READ_ACP         0x08
 
20
#define S3_ACL_WRITE_ACP        0x10
 
21
 
 
22
 
 
23
struct s3_acl_object {
 
24
        char acl_type;
 
25
        char* display_name;
 
26
        char perm;
 
27
};
 
28
 
 
29
int s3_getacl(char* bucketname, char* filename, char *owner, struct hash_table* acls, const char* access_key_id, const char* access_key);
 
30
int s3_setacl(char* bucketname, char* filename, const char* owner, struct hash_table* acls, const char* access_key_id, const char* access_key);
 
31
 
 
32
#endif
 
33