mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
42 lines
829 B
C++
42 lines
829 B
C++
// TarUpdate.h
|
|
|
|
#ifndef __TAR_UPDATE_H
|
|
#define __TAR_UPDATE_H
|
|
|
|
#include "../IArchive.h"
|
|
|
|
#include "TarItem.h"
|
|
|
|
namespace NArchive {
|
|
namespace NTar {
|
|
|
|
struct CUpdateItem
|
|
{
|
|
int IndexInArc;
|
|
unsigned IndexInClient;
|
|
UInt64 Size;
|
|
Int64 MTime;
|
|
UInt32 Mode;
|
|
bool NewData;
|
|
bool NewProps;
|
|
bool IsDir;
|
|
AString Name;
|
|
AString User;
|
|
AString Group;
|
|
|
|
CUpdateItem(): Size(0), IsDir(false) {}
|
|
};
|
|
|
|
HRESULT UpdateArchive(IInStream *inStream, ISequentialOutStream *outStream,
|
|
const CObjectVector<CItemEx> &inputItems,
|
|
const CObjectVector<CUpdateItem> &updateItems,
|
|
UINT codePage, unsigned utfFlags,
|
|
IArchiveUpdateCallback *updateCallback);
|
|
|
|
HRESULT GetPropString(IArchiveUpdateCallback *callback, UInt32 index, PROPID propId, AString &res,
|
|
UINT codePage, unsigned utfFlags, bool convertSlash);
|
|
|
|
}}
|
|
|
|
#endif
|