scripting: Rework samba.upgradehelpers.get_diff_sddls to be get_diff_sds
[Samba/bjacke.git] / source3 / lib / xattr_tdb.h
blob03bc43a38c596a1fd0fbebee4b835f651856f407
1 /*
2 * Store posix-level xattrs in a tdb
4 * Copyright (C) Andrew Bartlett 2011
6 * extracted from vfs_xattr_tdb by
8 * Copyright (C) Volker Lendecke, 2007
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 #include "librpc/gen_ndr/file_id.h"
26 /* The following definitions come from lib/util/xattr_tdb.c */
28 ssize_t xattr_tdb_getattr(struct db_context *db_ctx,
29 TALLOC_CTX *mem_ctx,
30 const struct file_id *id,
31 const char *name, DATA_BLOB *blob);
32 int xattr_tdb_setattr(struct db_context *db_ctx,
33 const struct file_id *id, const char *name,
34 const void *value, size_t size, int flags);
35 ssize_t xattr_tdb_listattr(struct db_context *db_ctx,
36 const struct file_id *id, char *list,
37 size_t size);
38 int xattr_tdb_removeattr(struct db_context *db_ctx,
39 const struct file_id *id, const char *name);
40 void xattr_tdb_remove_all_attrs(struct db_context *db_ctx,
41 const struct file_id *id);