Various configuration pieces for libfossil sync transfer subsystem.
More...
#include "sync.h"
Various configuration pieces for libfossil sync transfer subsystem.
Definition at line 1554 of file sync.h.
◆ autosync
| bool fsl_xfer_config::autosync |
◆ callback [1/2]
Callback to use to fetch passwords.
Definition at line 1663 of file sync.h.
◆ callback [2/2]
If not NULL, fsl__xfer's cleanup routine will call this, passing it the metrics, this->state, and the final result code of the sync process.
Definition at line 1651 of file sync.h.
◆ clone
| short fsl_xfer_config::clone |
◆ compressTraffic
| bool fsl_xfer_config::compressTraffic |
If true, use the application/x-fossil-uncompressed Content-Type for communication, else use application/x-fossil (which fossil does not compress).
This is a hint to the server, which may response how it likes.
NYI is compression of outbound traffic.
Definition at line 1594 of file sync.h.
◆ debug
Optional debug message callback.
Definition at line 1608 of file sync.h.
◆ leaveTempFiles
| bool fsl_xfer_config::leaveTempFiles |
A hint for fsl_sc channels which support it.
See FSL_SC_F_LEAVE_TEMP_FILES.
Definition at line 1584 of file sync.h.
◆ listener
When a sync operation happens on a transient fs_cx instance, e.g.
during a clone operation into a new fsl_cx, this listener gets installed in the transient fsl_cx. Sync operations which happen in the context of a specific fsl_cx currently use that instance's message listener. "The plan" is to eventually allow an override of the listener for sync-specific messages, but that is not yet in place.
Definition at line 1605 of file sync.h.
◆ mask
If non-zero, a tracing channel is installed with the given mask of fsl_sc_tracer_e flags.
If it is zero, no tracer is installed.
Definition at line 1619 of file sync.h.
◆ maxResponseBytes
| int32_t fsl_xfer_config::maxResponseBytes |
NYI!
Approximate max size, in bytes, for outbound response payloads. It may overstep this amount by a single artifact (which may be arbitrarily large).
Definition at line 1573 of file sync.h.
◆ maxResponseSeconds
| int8_t fsl_xfer_config::maxResponseSeconds |
NYI!
Max amount of time, in seconds, to spend generating a single response.
Definition at line 1566 of file sync.h.
◆ [struct]
| struct { ... } fsl_xfer_config::metrics |
◆ [struct]
| struct { ... } fsl_xfer_config::op |
Members which are set to true will activate specific aspects of sync.
◆ outputer
The output sink.
Definition at line 1623 of file sync.h.
◆ [struct]
| struct { ... } fsl_xfer_config::password |
◆ privateContent
| bool fsl_xfer_config::privateContent |
◆ pull
| bool fsl_xfer_config::pull |
◆ push
| bool fsl_xfer_config::push |
◆ save
| bool fsl_xfer_config::save |
If true:
- If the URL contains a password, then on successful sync the hashed password is saved for future use with that same URL (excluding the password part).
- If the URL has no password but a saved one is found, it is used.
Definition at line 1679 of file sync.h.
◆ state
| void* fsl_xfer_config::state |
Optional state for the 2nd argument to this->callback().
State for the password callback.
It is owned by whoever assigns it to non-NULL.
It must match that implementation's expectations.
Definition at line 1656 of file sync.h.
◆ [struct]
| struct { ... } fsl_xfer_config::trace |
◆ url
| char const* fsl_xfer_config::url |
The URL or filename to sync with.
If this is NULL then the library will try to determine it from the currently-opened repository.
Definition at line 1560 of file sync.h.
◆ verbosity
| short fsl_xfer_config::verbosity |
Verbosity level (higher is more verbose).
Definition at line 1578 of file sync.h.
◆ verily
| bool fsl_xfer_config::verily |
The documentation for this struct was generated from the following file: