Skip to main content

tOpenArchiveData

Struct tOpenArchiveData 

Source
#[repr(C)]
pub struct tOpenArchiveData { pub ArcName: *mut c_char, pub OpenMode: c_int, pub OpenResult: c_int, pub CmtBuf: *mut c_char, pub CmtBufSize: c_int, pub CmtSize: c_int, pub CmtState: c_int, }
Expand description

tOpenArchiveData is used in OpenArchive.

typedef struct {

    char* ArcName;
    int OpenMode;
    int OpenResult;
    char* CmtBuf;
    int CmtBufSize;
    int CmtSize;
    int CmtState;
  } tOpenArchiveData;

§Description

ArcName contains the name of the archive to open.

OpenMode is set to one of the following values:

ConstantValueDescription
PK_OM_LIST0Open file for reading of file names only
PK_OM_EXTRACT1Open file for processing (extract or test)

OpenResult used to return one of the error values if an error occurs.

The Cmt* variables are for the file comment. They are currently not used by Total Commander, so may be set to NULL.

Notes:

If the file is opened with OpenMode==PK_OM_LIST, ProcessFile will never be called by Total Commander.

The Unicode version of this function uses WCHAR* instead of char* for the text fields.

Fields§

§ArcName: *mut c_char§OpenMode: c_int§OpenResult: c_int§CmtBuf: *mut c_char§CmtBufSize: c_int§CmtSize: c_int§CmtState: c_int

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.