provision: Make dsacl2fsacl() take a security.dom_sid, not str
[Samba/gebeck_regimport.git] / source3 / lib / file_id.h
blob2ca839077fdebbb7a454463127d7c00bb99ddd1d
1 /*
2 Unix SMB/CIFS implementation.
4 file_id structure handling
6 Copyright (C) Andrew Tridgell 2007
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "librpc/gen_ndr/file_id.h"
24 /* The following definitions come from lib/file_id.c */
26 bool file_id_equal(const struct file_id *id1, const struct file_id *id2);
28 a static-like (on talloc_tos()) string for a file_id structure
30 const char *file_id_string_tos(const struct file_id *id);
32 an allocated string for a file_id structure
34 const char *file_id_string(TALLOC_CTX *mem_ctx, const struct file_id *id);
35 void push_file_id_16(char *buf, const struct file_id *id);
36 void push_file_id_24(char *buf, const struct file_id *id);
37 void pull_file_id_24(char *buf, struct file_id *id);