~ubuntu-branches/debian/lenny/netatalk/lenny

« back to all changes in this revision

Viewing changes to libatalk/cnid/mtab/cnid_mtab.h

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2005-10-07 13:46:11 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051007134611-r07qa2g67xwkp2if
Tags: 2.0.3-1ubuntu1
* debian/netatalk.init
  - run cnid_metad if CNID_METAD_RUN=yes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* 
 
3
 * interface for database access to cnids. i do it this way to abstract
 
4
 * things a bit in case we want to change the underlying implementation.
 
5
 */
 
6
 
 
7
#ifndef _ATALK_CNID_MTAB__H
 
8
#define _ATALK_CNID_MTAB__H 1
 
9
 
 
10
#include <sys/cdefs.h>
 
11
#include <sys/stat.h>
 
12
#include <unistd.h>
 
13
#include <string.h>
 
14
 
 
15
#include <netatalk/endian.h>
 
16
#include <atalk/cnid.h>
 
17
 
 
18
extern struct _cnid_module cnid_mtab_module;
 
19
 
 
20
extern struct _cnid_db *cnid_mtab_open __P((const char *, mode_t));
 
21
extern void cnid_mtab_close __P((struct _cnid_db *));
 
22
extern cnid_t cnid_mtab_add __P((struct _cnid_db *, const struct stat *, const cnid_t,
 
23
                                 char *, const int, cnid_t));
 
24
extern cnid_t cnid_mtab_get __P((struct _cnid_db *, const cnid_t, char *, const int));
 
25
extern char *cnid_mtab_resolve __P((struct _cnid_db *, cnid_t *, void *, u_int32_t));
 
26
extern cnid_t cnid_mtab_lookup __P((struct _cnid_db *, const struct stat *, const cnid_t, char *, const int));
 
27
extern int cnid_mtab_update __P((struct _cnid_db *, const cnid_t, const struct stat *,
 
28
                                 const cnid_t, char *, int));
 
29
extern int cnid_mtab_delete __P((struct _cnid_db *, const cnid_t));
 
30
 
 
31
#endif /* include/atalk/cnid_mtab.h */