|
libfossil
|
Options for use with fsl_repo_extract(). More...
#include "repo.h"
Data Fields | |
| fsl_repo_extract_f | callback |
| The callback to call for each extracted file in the checkin. | |
| void * | callbackState |
| Optional state pointer to pass to the callback when extracting. | |
| fsl_id_t | checkinRid |
| The version of the repostitory to check out. | |
| bool | extractContent |
| If true, the fsl_repo_extract_state::content pointer passed to the callback will be non-NULL and will contain the content of the file. | |
Options for use with fsl_repo_extract().
| fsl_repo_extract_f fsl_repo_extract_opt::callback |
| void* fsl_repo_extract_opt::callbackState |
| fsl_id_t fsl_repo_extract_opt::checkinRid |
| bool fsl_repo_extract_opt::extractContent |
If true, the fsl_repo_extract_state::content pointer passed to the callback will be non-NULL and will contain the content of the file.
If false, that pointer will be NULL. Such extraction is a relatively costly operation, so should only be enabled when necessary. Some uses cases can delay this decision until the callback and only fetch the content for cases which need it.