1
/* userspace library to interface with dazukofs
3
Copyright (C) 2008 John Ogness
4
Author: John Ogness <dazukocode@ogness.net>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU Lesser General Public License for more details.
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
/* dazukofs_open() flags */
27
#define DAZUKOFS_TRACK_GROUP 1
29
/* dazukofs_close() flags */
30
#define DAZUKOFS_REMOVE_GROUP 1
32
struct dazukofs_handle;
33
typedef struct dazukofs_handle * dazukofs_handle_t;
35
struct dazukofs_access
42
dazukofs_handle_t dazukofs_open(const char *gname, int flags);
43
int dazukofs_get_access(dazukofs_handle_t hndl, struct dazukofs_access *acc);
44
int dazukofs_return_access(dazukofs_handle_t hndl, struct dazukofs_access *acc);
45
int dazukofs_close(dazukofs_handle_t hndl, int flags);
46
int dazukofs_get_filename(struct dazukofs_access *acc, char *buf, size_t bufsiz);
48
#endif /* __DAZUKOFS_H */