zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

StringList.h File Reference
#include "String.h"
#include <stdarg.h>
Include dependency graph for StringList.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define StringListVoid   ( ( stringList_t ) 0 )
 

Typedefs

typedef struct StringListTypestringList_t
 
typedef string_tStringListIterator
 

Functions

StringListIterator StringListBegin (stringList_t)
 
StringListIterator StringListEnd (stringList_t)
 
void StringListGetIterators (stringList_t, StringListIterator *begin, StringListIterator *end)
 
void StringListForEach (stringList_t stl, void(*)(string_t))
 
void StringListForEach_1 (stringList_t stl, void(*)(string_t, void *), void *)
 
void StringListForEachString_1 (stringList_t stl, void(*)(const char *, void *), void *)
 
void StringListForEachString (stringList_t stl, void(*)(const char *))
 
void StringListExitOnMemoryExaustion (void(*)(void))
 
stringList_t StringList (const char *cstring)
 
stringList_t StringListString (string_t *)
 
stringList_t StringListInit (void)
 
string_tStringListArray (stringList_t *, size_t arraySize)
 
size_t StringListSize (stringList_t stl)
 
stringList_t StringListSplit (const char *cstring, char splitter)
 
string_tStringListAssign (stringList_t)
 
string_t StringListAssignString (stringList_t, string_t)
 
stringList_t StringListStringSplit (string_t st, char splitter)
 
string_t StringListStringAt (stringList_t stl, size_t index)
 
static __inline__ string_t StringListStringAtFirstPlace (stringList_t stl)
 
static __inline__ string_t StringListStringAtSecondPlace (stringList_t stl)
 
const char * StringListContentAt (stringList_t stl, size_t index)
 
static const __inline__ char * StringListContentAtFirstPlace (stringList_t stl)
 
static const __inline__ char * StringListContentAtSecondPlace (stringList_t stl)
 
static const __inline__ char * StringListContentAtThirdPlace (stringList_t stl)
 
int StringListContentAtEqual (stringList_t stl, size_t index, const char *cstring)
 
void StringListPrintAt (stringList_t stl, size_t index)
 
void StringListPrintList (stringList_t stl)
 
void StringListPrintLineAt (stringList_t stl, size_t index)
 
const char * StringListContentAtLast (stringList_t stl)
 
string_t StringListStringAtLast (stringList_t stl)
 
ssize_t StringListContains (stringList_t stl, const char *cstring)
 
static int StringListHasEntry (stringList_t stl, const char *cstring)
 
static int StringListHasNoEntry (stringList_t stl, const char *cstring)
 
ssize_t StringListHasSequence (stringList_t stl, const char *str)
 
string_t StringListHasSequence_1 (stringList_t stl, const char *str)
 
ssize_t StringListHasStartSequence (stringList_t stl, const char *str)
 
string_t StringListHasStartSequence_1 (stringList_t stl, const char *str)
 
stringList_t StringListAppend (stringList_t stl, const char *cstring)
 
stringList_t StringListAppendIfAbsent (stringList_t stl, const char *cstring)
 
void StringListAppendString_1 (stringList_t *stl, string_t *)
 
stringList_t StringListAppendString (stringList_t stl, string_t)
 
stringList_t StringListAppendSize (stringList_t stl, const char *cstring, size_t len)
 
stringList_t StringListAppendList (stringList_t, stringList_t)
 
stringList_t StringListPrepend (stringList_t stl, const char *cstring)
 
stringList_t StringListPrependSize (stringList_t stl, const char *cstring, size_t len)
 
stringList_t StringListInsertAt (stringList_t stl, const char *cstring, size_t index)
 
stringList_t StringListStringInsertAt (stringList_t stl, string_t *, size_t index)
 
stringList_t StringListInsertAtSize (stringList_t stl, const char *cstring, size_t len, size_t index)
 
stringList_t StringListRemoveAt (stringList_t stl, size_t index)
 
void StringListRemoveAt_1 (stringList_t stl, StringListIterator at, StringListIterator *end)
 
size_t StringListRemoveIfStringStartsWith (stringList_t stl, const char *str)
 
size_t StringListRemoveIfStringContains (stringList_t stl, const char *str)
 
size_t StringListRemoveIfPresent (stringList_t stl, const char *str)
 
size_t StringListRemoveIfPresent_1 (stringList_t stl, string_t st)
 
string_t StringListDetachAt (stringList_t stl, size_t index)
 
void StringListDelete (stringList_t *stl)
 
char *const * StringListStringArray (stringList_t)
 
static const __inline__ char *const * StringListStringArray_0 (stringList_t stl)
 
void StringListStringArray_1 (char *const **, size_t *, stringList_t)
 
void StringListClearDelete (stringList_t *stl)
 
void StringListMultipleDelete (stringList_t *stl,...)
 
ssize_t StringListRemoveString (stringList_t stl, const char *cstring)
 
stringList_t StringListAppendWithSize (stringList_t stl, char **cstring, size_t s, size_t l)
 
stringList_t StringListWithSize (char **cstring, size_t s, size_t l)
 
stringList_t StringListCopy (stringList_t stl)
 
string_t StringListCopyStringAt (stringList_t, size_t pos)
 
static __inline__ string_t StringListCopyStringAtFirstPlace (stringList_t stl)
 
static __inline__ string_t StringListCopyStringAtSecondPlace (stringList_t stl)
 
stringList_t StringListSwap (stringList_t stl, size_t x, size_t y)
 

Macro Definition Documentation

◆ StringListVoid

#define StringListVoid   ( ( stringList_t ) 0 )

Definition at line 41 of file StringList.h.

Typedef Documentation

◆ stringList_t

typedef struct StringListType* stringList_t

Definition at line 35 of file StringList.h.

◆ StringListIterator

Definition at line 46 of file StringList.h.

Function Documentation

◆ StringList()

◆ StringListAppend()

◆ StringListAppendIfAbsent()

stringList_t StringListAppendIfAbsent ( stringList_t  stl,
const char *  cstring 
)

◆ StringListAppendList()

◆ StringListAppendSize()

stringList_t StringListAppendSize ( stringList_t  stl,
const char *  cstring,
size_t  len 
)

◆ StringListAppendString()

stringList_t StringListAppendString ( stringList_t  stl,
string_t   
)

◆ StringListAppendString_1()

◆ StringListAppendWithSize()

stringList_t StringListAppendWithSize ( stringList_t  stl,
char **  cstring,
size_t  s,
size_t  l 
)

◆ StringListArray()

◆ StringListAssign()

◆ StringListAssignString()

string_t StringListAssignString ( stringList_t  ,
string_t   
)

◆ StringListBegin()

StringListIterator StringListBegin ( stringList_t  )

Definition at line 192 of file StringList.c.

References StringListType::stp, and StringListVoid.

Referenced by _zuluCryptUnmountVolume_0().

◆ StringListClearDelete()

void StringListClearDelete ( stringList_t stl)

◆ StringListContains()

ssize_t StringListContains ( stringList_t  stl,
const char *  cstring 
)

◆ StringListContentAt()

const char* StringListContentAt ( stringList_t  stl,
size_t  index 
)

◆ StringListContentAtEqual()

int StringListContentAtEqual ( stringList_t  stl,
size_t  index,
const char *  cstring 
)

◆ StringListContentAtFirstPlace()

static const __inline__ char* StringListContentAtFirstPlace ( stringList_t  stl)
static

◆ StringListContentAtLast()

const char* StringListContentAtLast ( stringList_t  stl)

◆ StringListContentAtSecondPlace()

static const __inline__ char* StringListContentAtSecondPlace ( stringList_t  stl)
static

◆ StringListContentAtThirdPlace()

static const __inline__ char* StringListContentAtThirdPlace ( stringList_t  stl)
static

Definition at line 192 of file StringList.h.

References StringListContentAt().

Referenced by _print_device_properties().

◆ StringListCopy()

◆ StringListCopyStringAt()

◆ StringListCopyStringAtFirstPlace()

static __inline__ string_t StringListCopyStringAtFirstPlace ( stringList_t  stl)
static

Definition at line 470 of file StringList.h.

References StringListCopyStringAt().

Referenced by zuluCryptTrueCryptVeraCryptVolumeInfo().

◆ StringListCopyStringAtSecondPlace()

static __inline__ string_t StringListCopyStringAtSecondPlace ( stringList_t  stl)
static

◆ StringListDelete()

void StringListDelete ( stringList_t stl)

Definition at line 1184 of file StringList.c.

References e, StringListType::size, StringListType::stp, StringListVoid, and StringVoid.

Referenced by _checkUnmount(), _fileSystemIsSupported(), _get_file_system_options_from_config_file(), _get_file_system_options_from_config_file_1(), _get_mapper_property_from_udev(), _mounted(), _option_contain_not_allowed(), _print_device_properties(), _printOpenedVolumes(), _replace_truecrypt_key(), _restore_truecrypt_header(), _save_truecrypt_header(), _volumeList(), _zuluCryptBindUnmountVolume(), _zuluCryptPartitionIsSystemPartition(), _zuluCryptPrintUnMountedPartitionProperties(), _zuluCryptResolveDevRoot(), _zuluCryptUnmountVolume_0(), _zuluExit(), _zuluExit_1(), _zuluMountPartitionAccess(), StringListMultipleDelete(), StringListSplit(), zuluCryptBindMountVolume(), zuluCryptBindUnmountVolume(), zuluCryptBitLockerVolume_1(), zuluCryptClearDeadMappers(), zuluCryptDeviceIsSupported(), zuluCryptEXEOpenVolume(), zuluCryptGetFstabEntry(), zuluCryptGetFstabList(), zuluCryptGetMountEntry(), zuluCryptGetMountOptionsFromFstab(), zuluCryptGetMountPointFromPath(), zuluCryptGetPartitionFromConfigFile(), zuluCryptGetPartitionFromCrypttab(), zuluCryptGetVolumeSize(), zuluCryptOpenedVolumesList(), zuluCryptOpenPlain_2(), zuluCryptPartitions(), zuluCryptPrintPartitions(), zuluCryptTrueCryptVeraCryptVolumeInfo(), zuluCryptUnmountVolume(), zuluCryptVolumeIsInSystemVolumeList(), zuluExit(), zuluMountPrintDeviceProperties(), and zuluMountUnEncryptedVolumeStatus().

◆ StringListDetachAt()

string_t StringListDetachAt ( stringList_t  stl,
size_t  index 
)

◆ StringListEnd()

StringListIterator StringListEnd ( stringList_t  )

Definition at line 201 of file StringList.c.

References StringListType::size, StringListType::stp, and StringListVoid.

◆ StringListExitOnMemoryExaustion()

void StringListExitOnMemoryExaustion ( void(*)(void)  )

Definition at line 54 of file StringList.c.

References _memory_error.

Referenced by main().

◆ StringListForEach()

void StringListForEach ( stringList_t  stl,
void(*)(string_t  
)

Definition at line 65 of file StringList.c.

References StringListType::size, StringListType::stp, StringListVoid, and StringVoid.

◆ StringListForEach_1()

void StringListForEach_1 ( stringList_t  stl,
void(*)(string_t, void *)  ,
void *   
)

Definition at line 84 of file StringList.c.

References StringListType::size, StringListType::stp, StringListVoid, and StringVoid.

◆ StringListForEachString()

void StringListForEachString ( stringList_t  stl,
void(*)(const char *)   
)

◆ StringListForEachString_1()

void StringListForEachString_1 ( stringList_t  stl,
void(*)(const char *, void *)  ,
void *   
)

◆ StringListGetIterators()

◆ StringListHasEntry()

static __inline__ int StringListHasEntry ( stringList_t  stl,
const char *  cstring 
)
static

◆ StringListHasNoEntry()

static __inline__ int StringListHasNoEntry ( stringList_t  stl,
const char *  cstring 
)
static

◆ StringListHasSequence()

◆ StringListHasSequence_1()

string_t StringListHasSequence_1 ( stringList_t  stl,
const char *  str 
)

Definition at line 858 of file StringList.c.

References e, StringListType::stp, StringListHasSequence(), and StringVoid.

Referenced by _zuluCryptBindUnmountVolume().

◆ StringListHasStartSequence()

◆ StringListHasStartSequence_1()

string_t StringListHasStartSequence_1 ( stringList_t  stl,
const char *  str 
)

◆ StringListInit()

◆ StringListInsertAt()

stringList_t StringListInsertAt ( stringList_t  stl,
const char *  cstring,
size_t  index 
)

◆ StringListInsertAtSize()

stringList_t StringListInsertAtSize ( stringList_t  stl,
const char *  cstring,
size_t  len,
size_t  index 
)

◆ StringListMultipleDelete()

◆ StringListPrepend()

stringList_t StringListPrepend ( stringList_t  stl,
const char *  cstring 
)

Definition at line 754 of file StringList.c.

References StringList(), StringListInsertAt(), and StringListVoid.

◆ StringListPrependSize()

stringList_t StringListPrependSize ( stringList_t  stl,
const char *  cstring,
size_t  len 
)

◆ StringListPrintAt()

void StringListPrintAt ( stringList_t  stl,
size_t  index 
)

Definition at line 1334 of file StringList.c.

References StringListType::stp, StringType::string, and StringListVoid.

◆ StringListPrintLineAt()

void StringListPrintLineAt ( stringList_t  stl,
size_t  index 
)

Definition at line 1343 of file StringList.c.

References StringListType::stp, StringType::string, and StringListVoid.

Referenced by zuluExit().

◆ StringListPrintList()

void StringListPrintList ( stringList_t  stl)

◆ StringListRemoveAt()

stringList_t StringListRemoveAt ( stringList_t  stl,
size_t  index 
)

◆ StringListRemoveAt_1()

void StringListRemoveAt_1 ( stringList_t  stl,
StringListIterator  at,
StringListIterator end 
)

Definition at line 1129 of file StringList.c.

References StringListType::stp, and StringListRemoveAt().

Referenced by _get_mount_entries(), _not_removed(), and zuluCryptPartitions().

◆ StringListRemoveIfPresent()

size_t StringListRemoveIfPresent ( stringList_t  stl,
const char *  str 
)

◆ StringListRemoveIfPresent_1()

size_t StringListRemoveIfPresent_1 ( stringList_t  stl,
string_t  st 
)

◆ StringListRemoveIfStringContains()

size_t StringListRemoveIfStringContains ( stringList_t  stl,
const char *  str 
)

◆ StringListRemoveIfStringStartsWith()

size_t StringListRemoveIfStringStartsWith ( stringList_t  stl,
const char *  str 
)

◆ StringListRemoveString()

ssize_t StringListRemoveString ( stringList_t  stl,
const char *  cstring 
)

Definition at line 1160 of file StringList.c.

References StringListContains(), and StringListRemoveAt().

Referenced by _zuluCryptAddMDRAIDVolumes(), and zuluCryptPartitions().

◆ StringListSize()

◆ StringListSplit()

◆ StringListString()

stringList_t StringListString ( string_t )

Definition at line 647 of file StringList.c.

References _StringListString(), StringListVoid, and StringVoid.

◆ StringListStringArray()

char* const * StringListStringArray ( stringList_t  )

◆ StringListStringArray_0()

static const __inline__ char* const * StringListStringArray_0 ( stringList_t  stl)
static

Definition at line 402 of file StringList.h.

References StringListStringArray().

Referenced by zuluCryptEXECreateVolume(), and zuluCryptEXEOpenVolume().

◆ StringListStringArray_1()

void StringListStringArray_1 ( char *const **  ,
size_t *  ,
stringList_t   
)

◆ StringListStringAt()

◆ StringListStringAtFirstPlace()

static __inline__ string_t StringListStringAtFirstPlace ( stringList_t  stl)
static

◆ StringListStringAtLast()

string_t StringListStringAtLast ( stringList_t  stl)

Definition at line 540 of file StringList.c.

References StringListType::size, StringListType::stp, StringListVoid, and StringVoid.

◆ StringListStringAtSecondPlace()

static __inline__ string_t StringListStringAtSecondPlace ( stringList_t  stl)
static

◆ StringListStringInsertAt()

stringList_t StringListStringInsertAt ( stringList_t  stl,
string_t ,
size_t  index 
)

Definition at line 674 of file StringList.c.

References _StringListStringInsertAt(), and StringVoid.

◆ StringListStringSplit()

◆ StringListSwap()

stringList_t StringListSwap ( stringList_t  stl,
size_t  x,
size_t  y 
)

Definition at line 1319 of file StringList.c.

References StringListType::size, StringListType::stp, and StringListVoid.

◆ StringListWithSize()

stringList_t StringListWithSize ( char **  cstring,
size_t  s,
size_t  l 
)