libfossil
fsl_card_F Struct Reference

F-cards each represent one file entry in a Manifest Artifact (i.e., a checkin version). More...

#include "repo.h"

Collaboration diagram for fsl_card_F:

Data Fields

bool deckOwnsStrings
 An internal optimization.
char * name
 Name of the file.
fsl_fileperm_e perm
 File permissions.
char * priorName
 Previous name if the file was renamed, else NULL.
fsl_uuid_str uuid
 UUID of the underlying blob record for the file.

Detailed Description

F-cards each represent one file entry in a Manifest Artifact (i.e., a checkin version).

All of the non-const pointers in this class are owned by the respective instance of the class OR by the fsl_deck which created it, and must neither be modified nor freed except via the appropriate APIs.

Definition at line 2200 of file repo.h.

Field Documentation

◆ deckOwnsStrings

bool fsl_card_F::deckOwnsStrings

An internal optimization.

Do not mess with this. When this is true, the various string members of this struct are not owned by this struct, but by the deck which created this struct. This is used when loading decks from storage - the strings are pointed to the original content data, rather than strdup()'d copies of it. fsl_card_F_clean() will DTRT and delete the strings (or not).

Definition at line 2232 of file repo.h.

◆ name

char* fsl_card_F::name

Name of the file.

Definition at line 2209 of file repo.h.

◆ perm

fsl_fileperm_e fsl_card_F::perm

File permissions.

Fossil only supports one "permission" per file, and it does not necessarily map to a real filesystem-level permission.

See also
fsl_fileperm_e

Definition at line 2221 of file repo.h.

◆ priorName

char* fsl_card_F::priorName

Previous name if the file was renamed, else NULL.

Definition at line 2213 of file repo.h.

◆ uuid

fsl_uuid_str fsl_card_F::uuid

UUID of the underlying blob record for the file.

NULL for removed entries.

Definition at line 2205 of file repo.h.


The documentation for this struct was generated from the following file: