Differences From Artifact [f1881fc452]:
- File
src/OFTarArchiveEntry.h
— part of check-in
[b10933a514]
at
2016-05-22 20:14:12
on branch trunk
— OFTarArchiveEntry: Rename name to fileName
This is for consistency with OFZIPArchiveEntry. (user: js, size: 1994) [annotate] [blame] [check-ins using]
To Artifact [51116eaca4]:
- File src/OFTarArchiveEntry.h — part of check-in [264126064b] at 2016-05-29 19:59:32 on branch trunk — Add support for ustar (user: js, size: 2767) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
22 23 24 25 26 27 28 | @class OFDate; /*! * @brief The type of the archive entry. */ typedef enum of_tar_archive_entry_type_t { /*! Normal file */ | | | | > > > > > > > > > > > > | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | @class OFDate; /*! * @brief The type of the archive entry. */ typedef enum of_tar_archive_entry_type_t { /*! Normal file */ OF_TAR_ARCHIVE_ENTRY_TYPE_FILE = '0', /*! Hard link */ OF_TAR_ARCHIVE_ENTRY_TYPE_LINK = '1', /*! Symbolic link */ OF_TAR_ARCHIVE_ENTRY_TYPE_SYMLINK = '2', /*! Character device */ OF_TAR_ARCHIVE_ENTRY_TYPE_CHARACTER_DEVICE = '3', /*! Block device */ OF_TAR_ARCHIVE_ENTRY_TYPE_BLOCK_DEVICE = '4', /*! Directory */ OF_TAR_ARCHIVE_ENTRY_TYPE_DIRECTORY = '5', /*! FIFO */ OF_TAR_ARCHIVE_ENTRY_TYPE_FIFO = '6', /*! Contiguous file */ OF_TAR_ARCHIVE_ENTRY_TYPE_CONTIGUOUS_FILE = '7', } of_tar_archive_entry_type_t; /*! * @class OFTarArchiveEntry OFTarArchiveEntry.h ObjFW/OFTarArchiveEntry.h * * @brief A class which represents an entry of a tar archive. */ @interface OFTarArchiveEntry: OFStream { OFStream *_stream; bool _atEndOfStream; OFString *_fileName; uint32_t _mode; uint64_t _size, _toRead; OFDate *_modificationDate; of_tar_archive_entry_type_t _type; OFString *_targetFileName; OFString *_owner, *_group; uint32_t _deviceMajor, _deviceMinor; } /*! * The file name of the entry. */ @property (readonly, copy) OFString *fileName; |
︙ | ︙ | |||
77 78 79 80 81 82 83 84 85 86 | */ @property (readonly) of_tar_archive_entry_type_t type; /*! * The file name of the target (for a hard link or symbolic link). */ @property (readonly, copy) OFString *targetFileName; @end OF_ASSUME_NONNULL_END | > > > > > > > > > > > > > > > > > > > > | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | */ @property (readonly) of_tar_archive_entry_type_t type; /*! * The file name of the target (for a hard link or symbolic link). */ @property (readonly, copy) OFString *targetFileName; /*! * The owner of the file. */ @property (readonly, copy) OFString *owner; /*! * The group of the file. */ @property (readonly, copy) OFString *group; /*! * The device major (if the file is a device). */ @property (readonly) uint32_t deviceMajor; /*! * The device major (if the file is a device). */ @property (readonly) uint32_t deviceMinor; @end OF_ASSUME_NONNULL_END |