}
}
-std::unique_ptr<csync_file_stat_t> csync_file_stat_s::fromSyncJournalFileRecord(const OCC::SyncJournalFileRecord &rec)
+std::unique_ptr<csync_file_stat_t> csync_file_stat_t::fromSyncJournalFileRecord(const OCC::SyncJournalFileRecord &rec)
{
std::unique_ptr<csync_file_stat_t> st(new csync_file_stat_t);
st->path = rec._path;
#define BITFIELD(size) :size
#endif
-enum csync_status_codes_e {
+enum CSYNC_STATUS {
CSYNC_STATUS_OK = 0,
CSYNC_STATUS_ERROR = 1024, /* don't use this code,
CSYNC_STATUS_INDIVIDUAL_CANNOT_ENCODE
};
-using CSYNC_STATUS = enum csync_status_codes_e;
-
#ifndef likely
# define likely(x) (x)
#endif
// currently specified at https://github.com/owncloud/core/issues/8322 are 9 to 10
#define REMOTE_PERM_BUF_SIZE 15
-using csync_file_stat_t = struct csync_file_stat_s;
-
-struct OCSYNC_EXPORT csync_file_stat_s {
+struct OCSYNC_EXPORT csync_file_stat_t {
time_t modtime = 0;
int64_t size = 0;
uint64_t inode = 0;
enum csync_instructions_e instruction = CSYNC_INSTRUCTION_NONE; /* u32 */
- csync_file_stat_s()
+ csync_file_stat_t()
: type(ItemTypeSkip)
, child_modified(false)
, has_ignored_files(false)
#include <functional>
-enum csync_exclude_type_e {
+enum CSYNC_EXCLUDE_TYPE {
CSYNC_NOT_EXCLUDED = 0,
CSYNC_FILE_SILENTLY_EXCLUDED,
CSYNC_FILE_EXCLUDE_AND_REMOVE,
CSYNC_FILE_EXCLUDE_CONFLICT,
CSYNC_FILE_EXCLUDE_CANNOT_ENCODE
};
-using CSYNC_EXCLUDE_TYPE = enum csync_exclude_type_e;
class ExcludedFilesTest;
csync_file_stat_t *current_fs = nullptr;
/* csync error code */
- enum csync_status_codes_e status_code = CSYNC_STATUS_OK;
+ enum CSYNC_STATUS status_code = CSYNC_STATUS_OK;
char *error_string = nullptr;
Q_LOGGING_CATEGORY(lcCSyncUtils, "nextcloud.sync.csync.utils", QtInfoMsg)
-using _instr_code_struct = struct {
+struct _instr_code_struct {
const char *instr_str;
enum csync_instructions_e instr_code;
};
#include "csync.h"
#include "csync_private.h"
-using fhandle_t = struct fhandle_s {
-
+struct fhandle_t {
int fd;
-
};
csync_vio_handle_t *csync_vio_opendir(CSYNC *ctx, const char *name);
* directory functions
*/
-using dhandle_t = struct dhandle_s {
+struct dhandle_t {
DIR *dh;
char *path;
};
* directory functions
*/
-using dhandle_t = struct dhandle_s {
+struct dhandle_t {
WIN32_FIND_DATA ffd;
HANDLE hFind;
int firstFind;
static mbchar_t wd_buffer[WD_BUFFER_SIZE];
-using statevar = struct {
+struct statevar {
CSYNC *csync;
char *result;
char *ignored_dir;