gwenhywfar  4.99.8beta
Macros | Typedefs | Enumerations | Functions
gwen_sar_fileheader.h File Reference
#include <gwenhywfar/types.h>
#include <gwenhywfar/list1.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/syncio_file.h>
#include <gwenhywfar/gwentime.h>
Include dependency graph for gwen_sar_fileheader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GWEN_SAR_FILEHEADER_FLAGS_SIGNED   0x00000001
 

Typedefs

typedef struct GWEN_SAR_FILEHEADER GWEN_SAR_FILEHEADER
 

Enumerations

enum  GWEN_SAR_FILEHEADER_FTYPE {
  GWEN_SarFileHeader_FType_Unknown = -1, GWEN_SarFileHeader_FType_None = 0, GWEN_SarFileHeader_FType_File, GWEN_SarFileHeader_FType_Dir,
  GWEN_SarFileHeader_FType_SymLink
}
 
enum  GWEN_SAR_FILEHEADER_STATUS { GWEN_SarFileHeader_Status_Unknown = -1, GWEN_SarFileHeader_Status_Active = 0, GWEN_SarFileHeader_Status_Deleted }
 

Functions

GWENHYWFAR_API void GWEN_SarFileHeader_AddFlags (GWEN_SAR_FILEHEADER *p_struct, uint32_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_AddPermissions (GWEN_SAR_FILEHEADER *p_struct, uint32_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_AddStatus (GWEN_SAR_FILEHEADER *p_struct, int p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_Attach (GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API
GWEN_SAR_FILEHEADER
GWEN_SarFileHeader_copy (GWEN_SAR_FILEHEADER *p_struct, const GWEN_SAR_FILEHEADER *p_src)
 
GWENHYWFAR_API
GWEN_SAR_FILEHEADER
GWEN_SarFileHeader_dup (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API void GWEN_SarFileHeader_free (GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API
GWEN_SAR_FILEHEADER_FTYPE 
GWEN_SarFileHeader_FType_fromString (const char *p_s)
 
GWENHYWFAR_API const char * GWEN_SarFileHeader_FType_toString (GWEN_SAR_FILEHEADER_FTYPE p_i)
 
GWENHYWFAR_API const GWEN_TIMEGWEN_SarFileHeader_GetAtime (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API const GWEN_TIMEGWEN_SarFileHeader_GetCtime (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API uint64_t GWEN_SarFileHeader_GetFileSize (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API int GWEN_SarFileHeader_GetFileType (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API uint32_t GWEN_SarFileHeader_GetFlags (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API const GWEN_TIMEGWEN_SarFileHeader_GetMtime (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API const char * GWEN_SarFileHeader_GetPath (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API uint32_t GWEN_SarFileHeader_GetPermissions (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API int GWEN_SarFileHeader_GetStatus (const GWEN_SAR_FILEHEADER *p_struct)
 
GWENHYWFAR_API
GWEN_SAR_FILEHEADER_LIST
GWEN_SarFileHeader_List_dup (const GWEN_SAR_FILEHEADER_LIST *p_src)
 
GWENHYWFAR_API
GWEN_SAR_FILEHEADER
GWEN_SarFileHeader_new (void)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetAtime (GWEN_SAR_FILEHEADER *p_struct, GWEN_TIME *p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetCtime (GWEN_SAR_FILEHEADER *p_struct, GWEN_TIME *p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetFileSize (GWEN_SAR_FILEHEADER *p_struct, uint64_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetFileType (GWEN_SAR_FILEHEADER *p_struct, int p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetFlags (GWEN_SAR_FILEHEADER *p_struct, uint32_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetMtime (GWEN_SAR_FILEHEADER *p_struct, GWEN_TIME *p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetPath (GWEN_SAR_FILEHEADER *p_struct, const char *p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetPermissions (GWEN_SAR_FILEHEADER *p_struct, uint32_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SetStatus (GWEN_SAR_FILEHEADER *p_struct, int p_src)
 
GWENHYWFAR_API
GWEN_SAR_FILEHEADER_STATUS 
GWEN_SarFileHeader_Status_fromString (const char *p_s)
 
GWENHYWFAR_API const char * GWEN_SarFileHeader_Status_toString (GWEN_SAR_FILEHEADER_STATUS p_i)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SubFlags (GWEN_SAR_FILEHEADER *p_struct, uint32_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SubPermissions (GWEN_SAR_FILEHEADER *p_struct, uint32_t p_src)
 
GWENHYWFAR_API void GWEN_SarFileHeader_SubStatus (GWEN_SAR_FILEHEADER *p_struct, int p_src)
 

Macro Definition Documentation

#define GWEN_SAR_FILEHEADER_FLAGS_SIGNED   0x00000001

Definition at line 111 of file gwen_sar_fileheader.h.

Referenced by GWEN_Sar_Sign(), and GWEN_Sar_Verify().

Typedef Documentation

Definition at line 123 of file gwen_sar_fileheader.h.

Enumeration Type Documentation

Enumerator
GWEN_SarFileHeader_FType_Unknown 
GWEN_SarFileHeader_FType_None 
GWEN_SarFileHeader_FType_File 
GWEN_SarFileHeader_FType_Dir 
GWEN_SarFileHeader_FType_SymLink 

Definition at line 129 of file gwen_sar_fileheader.h.

Enumerator
GWEN_SarFileHeader_Status_Unknown 
GWEN_SarFileHeader_Status_Active 
GWEN_SarFileHeader_Status_Deleted 

Definition at line 138 of file gwen_sar_fileheader.h.

Function Documentation

GWENHYWFAR_API void GWEN_SarFileHeader_AddFlags ( GWEN_SAR_FILEHEADER p_struct,
uint32_t  p_src 
)

Add flags. Use this function to add flags to the member "flags"

Definition at line 352 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_Sign(), and GWEN_Sar_Verify().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_AddPermissions ( GWEN_SAR_FILEHEADER p_struct,
uint32_t  p_src 
)

Add flags. Use this function to add flags to the member "permissions"

Definition at line 385 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_AddFile().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_AddStatus ( GWEN_SAR_FILEHEADER p_struct,
int  p_src 
)

Add flags. Use this function to add flags to the member "status"

Definition at line 337 of file gwen_sar_fileheader.c.

GWENHYWFAR_API void GWEN_SarFileHeader_Attach ( GWEN_SAR_FILEHEADER p_struct)

Definition at line 110 of file gwen_sar_fileheader.c.

GWENHYWFAR_API GWEN_SAR_FILEHEADER* GWEN_SarFileHeader_copy ( GWEN_SAR_FILEHEADER p_struct,
const GWEN_SAR_FILEHEADER p_src 
)

Definition at line 190 of file gwen_sar_fileheader.c.

References GWEN_Time_dup(), GWEN_Time_free(), and NULL.

Here is the call graph for this function:

GWENHYWFAR_API GWEN_SAR_FILEHEADER* GWEN_SarFileHeader_dup ( const GWEN_SAR_FILEHEADER p_struct)

Definition at line 116 of file gwen_sar_fileheader.c.

References GWEN_SarFileHeader_new(), GWEN_Time_dup(), GWEN_Time_free(), and NULL.

Referenced by GWEN_SarFileHeader_List_dup().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_free ( GWEN_SAR_FILEHEADER p_struct)

Destructor.

Definition at line 92 of file gwen_sar_fileheader.c.

References GWEN_FREE_OBJECT, GWEN_LIST_FINI, and GWEN_Time_free().

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_ScanFile().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_SAR_FILEHEADER_FTYPE GWEN_SarFileHeader_FType_fromString ( const char *  p_s)
GWENHYWFAR_API const char* GWEN_SarFileHeader_FType_toString ( GWEN_SAR_FILEHEADER_FTYPE  p_i)
GWENHYWFAR_API const GWEN_TIME* GWEN_SarFileHeader_GetAtime ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "atime" (see GWEN_SAR_FILEHEADER_atime)

Definition at line 287 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_FileHeaderToTlv().

Here is the caller graph for this function:

GWENHYWFAR_API const GWEN_TIME* GWEN_SarFileHeader_GetCtime ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "ctime" (see GWEN_SAR_FILEHEADER_ctime)

Definition at line 297 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_FileHeaderToTlv().

Here is the caller graph for this function:

GWENHYWFAR_API uint64_t GWEN_SarFileHeader_GetFileSize ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "fileSize" (see GWEN_SAR_FILEHEADER_fileSize)

Definition at line 302 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_FileHeaderToTlv(), and GWEN_Sar_ScanFile().

Here is the caller graph for this function:

GWENHYWFAR_API int GWEN_SarFileHeader_GetFileType ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "fileType" (see GWEN_SAR_FILEHEADER_fileType)

Definition at line 277 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_AddAndDigestFile(), GWEN_Sar_ExtractAndDigestFile(), GWEN_Sar_FileHeaderToTlv(), and GWEN_Sar_ScanFile().

Here is the caller graph for this function:

GWENHYWFAR_API uint32_t GWEN_SarFileHeader_GetFlags ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "flags" (see GWEN_SAR_FILEHEADER_flags)

Definition at line 267 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_FileHeaderToTlv().

Here is the caller graph for this function:

GWENHYWFAR_API const GWEN_TIME* GWEN_SarFileHeader_GetMtime ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "mtime" (see GWEN_SAR_FILEHEADER_mtime)

Definition at line 292 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_FileHeaderToTlv().

Here is the caller graph for this function:

GWENHYWFAR_API const char* GWEN_SarFileHeader_GetPath ( const GWEN_SAR_FILEHEADER p_struct)
GWENHYWFAR_API uint32_t GWEN_SarFileHeader_GetPermissions ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "permissions" (see GWEN_SAR_FILEHEADER_permissions)

Definition at line 282 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_ExtractAndDigestFileDir(), GWEN_Sar_ExtractAndDigestFileLink(), GWEN_Sar_ExtractAndDigestFileReg(), and GWEN_Sar_FileHeaderToTlv().

Here is the caller graph for this function:

GWENHYWFAR_API int GWEN_SarFileHeader_GetStatus ( const GWEN_SAR_FILEHEADER p_struct)

Getter. Use this function to get the member "status" (see GWEN_SAR_FILEHEADER_status)

Definition at line 262 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_FileHeaderToTlv().

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_SAR_FILEHEADER_LIST* GWEN_SarFileHeader_List_dup ( const GWEN_SAR_FILEHEADER_LIST p_src)
GWENHYWFAR_API GWEN_SAR_FILEHEADER* GWEN_SarFileHeader_new ( void  )

Constructor.

Definition at line 66 of file gwen_sar_fileheader.c.

References GWEN_LIST_INIT, GWEN_NEW_OBJECT, and NULL.

Referenced by GWEN_Sar_AddFile(), GWEN_Sar_ScanFile(), and GWEN_SarFileHeader_dup().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetAtime ( GWEN_SAR_FILEHEADER p_struct,
GWEN_TIME p_src 
)

Setter. Use this function to set the member "atime" (see GWEN_SAR_FILEHEADER_atime)

Definition at line 395 of file gwen_sar_fileheader.c.

References GWEN_Time_free().

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_TlvToFileHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetCtime ( GWEN_SAR_FILEHEADER p_struct,
GWEN_TIME p_src 
)

Setter. Use this function to set the member "ctime" (see GWEN_SAR_FILEHEADER_ctime)

Definition at line 411 of file gwen_sar_fileheader.c.

References GWEN_Time_free().

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_TlvToFileHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetFileSize ( GWEN_SAR_FILEHEADER p_struct,
uint64_t  p_src 
)

Setter. Use this function to set the member "fileSize" (see GWEN_SAR_FILEHEADER_fileSize)

Definition at line 419 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_TlvToFileHeader().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetFileType ( GWEN_SAR_FILEHEADER p_struct,
int  p_src 
)

Setter. Use this function to set the member "fileType" (see GWEN_SAR_FILEHEADER_fileType)

Definition at line 375 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_TlvToFileHeader().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetFlags ( GWEN_SAR_FILEHEADER p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "flags" (see GWEN_SAR_FILEHEADER_flags)

Definition at line 347 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_TlvToFileHeader().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetMtime ( GWEN_SAR_FILEHEADER p_struct,
GWEN_TIME p_src 
)

Setter. Use this function to set the member "mtime" (see GWEN_SAR_FILEHEADER_mtime)

Definition at line 403 of file gwen_sar_fileheader.c.

References GWEN_Time_free().

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_TlvToFileHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetPath ( GWEN_SAR_FILEHEADER p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "path" (see GWEN_SAR_FILEHEADER_path)

Definition at line 362 of file gwen_sar_fileheader.c.

References NULL.

Referenced by GWEN_Sar_AddFile(), and GWEN_Sar_TlvToFileHeader().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetPermissions ( GWEN_SAR_FILEHEADER p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "permissions" (see GWEN_SAR_FILEHEADER_permissions)

Definition at line 380 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_TlvToFileHeader().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SetStatus ( GWEN_SAR_FILEHEADER p_struct,
int  p_src 
)

Setter. Use this function to set the member "status" (see GWEN_SAR_FILEHEADER_status)

Definition at line 332 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_TlvToFileHeader().

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_SAR_FILEHEADER_STATUS GWEN_SarFileHeader_Status_fromString ( const char *  p_s)
GWENHYWFAR_API const char* GWEN_SarFileHeader_Status_toString ( GWEN_SAR_FILEHEADER_STATUS  p_i)
GWENHYWFAR_API void GWEN_SarFileHeader_SubFlags ( GWEN_SAR_FILEHEADER p_struct,
uint32_t  p_src 
)

Sub flags. Use this function to sub flags from the member "flags"

Definition at line 357 of file gwen_sar_fileheader.c.

Referenced by GWEN_Sar_Sign(), and GWEN_Sar_Verify().

Here is the caller graph for this function:

GWENHYWFAR_API void GWEN_SarFileHeader_SubPermissions ( GWEN_SAR_FILEHEADER p_struct,
uint32_t  p_src 
)

Sub flags. Use this function to sub flags from the member "permissions"

Definition at line 390 of file gwen_sar_fileheader.c.

GWENHYWFAR_API void GWEN_SarFileHeader_SubStatus ( GWEN_SAR_FILEHEADER p_struct,
int  p_src 
)

Sub flags. Use this function to sub flags from the member "status"

Definition at line 342 of file gwen_sar_fileheader.c.