]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/attr.h
======================= Warning ==========================
[bacula/bacula] / bacula / src / lib / attr.h
1 /*
2  *   attr.h Definition of attributes packet for unpacking from tape
3  *
4  *    Kern Sibbald, June MMIII
5  *
6  *   Version $Id$
7  */
8 /*
9    Copyright (C) 2003-2006 Kern Sibbald
10
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License
13    version 2 as amended with additional clauses defined in the
14    file LICENSE in the main source directory.
15
16    This program is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
19    the file LICENSE for additional details.
20
21  */
22
23
24 struct ATTR {
25    int32_t stream;                    /* attribute stream id */
26    int32_t data_stream;               /* id of data stream to follow */
27    int32_t type;                      /* file type FT */
28    int32_t file_index;                /* file index */
29    int32_t LinkFI;                    /* file index to data if hard link */
30    struct stat statp;                 /* decoded stat packet */
31    POOLMEM *attrEx;                   /* extended attributes if any */
32    POOLMEM *ofname;                   /* output filename */
33    POOLMEM *olname;                   /* output link name */
34    /*
35     * Note the following three variables point into the
36     *  current BSOCK record, so they are invalid after
37     *  the next socket read!
38     */
39    char *attr;                        /* attributes position */
40    char *fname;                       /* filename */
41    char *lname;                       /* link name if any */
42 };