1 | /*
|
---|
2 | Unix SMB/CIFS implementation.
|
---|
3 |
|
---|
4 | file_id structure handling
|
---|
5 |
|
---|
6 | Copyright (C) Andrew Tridgell 2007
|
---|
7 |
|
---|
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.
|
---|
12 |
|
---|
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.
|
---|
17 |
|
---|
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/>.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #include "librpc/gen_ndr/file_id.h"
|
---|
23 |
|
---|
24 | /* The following definitions come from lib/file_id.c */
|
---|
25 |
|
---|
26 | bool file_id_equal(const struct file_id *id1, const struct file_id *id2);
|
---|
27 | /*
|
---|
28 | a static-like (on talloc_tos()) string for a file_id structure
|
---|
29 | */
|
---|
30 | const char *file_id_string_tos(const struct file_id *id);
|
---|
31 | /*
|
---|
32 | an allocated string for a file_id structure
|
---|
33 | */
|
---|
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(const char *buf, struct file_id *id);
|
---|