|
clsync
|
#include <stdio.h>#include <stdint.h>#include <sys/types.h>

Go to the source code of this file.
Data Structures | |
| struct | api_eventinfo |
Macros | |
| #define | CLSYNC_API_VERSION 2 |
Typedefs | |
| typedef enum eventobjtype | eventobjtype_t |
| typedef struct api_eventinfo | api_eventinfo_t |
| typedef int(* | api_funct_init) (struct ctx *, struct indexes *) |
| typedef int(* | api_funct_sync) (int n, api_eventinfo_t *) |
| typedef int(* | api_funct_rsync) (const char *inclist, const char *exclist) |
| typedef int(* | api_funct_deinit) () |
| typedef enum eventinfo_flags | eventinfo_flags_t |
Enumerations | |
| enum | eventobjtype { EOT_UNKNOWN = 0 , EOT_DOESNTEXIST = 1 , EOT_FILE = 2 , EOT_DIR = 3 } |
| enum | eventinfo_flags { EVIF_NONE = 0x00000000 , EVIF_RECURSIVELY = 0x00000001 , EVIF_CONTENTRECURSIVELY = 0x00000002 } |
Functions | |
| int | apievinfo2rsynclist (struct indexes *indexes_p, FILE *listfile, int n, api_eventinfo_t *apievinfo) |
| Writes the list to list-file for "--include-from" option of rsync using array of api_eventinfo_t. | |
| int | clsyncapi_getapiversion () |
| Returns currect API version. | |
| pid_t | clsyncapi_fork (struct ctx *ctx_p) |
| clsync's wrapper for function "fork()". Should be used instead of "fork()" directly, to notify clsync about child's pid. | |
| typedef struct api_eventinfo api_eventinfo_t |
| typedef int(* api_funct_rsync) (const char *inclist, const char *exclist) |
| typedef int(* api_funct_sync) (int n, api_eventinfo_t *) |
| typedef enum eventinfo_flags eventinfo_flags_t |
| typedef enum eventobjtype eventobjtype_t |
| enum eventinfo_flags |
| enum eventobjtype |
|
extern |
Writes the list to list-file for "--include-from" option of rsync using array of api_eventinfo_t.
| [in] | indexes_p | Pointer to "indexes" |
| [in] | listfile | File identifier to write to |
| [in] | n | Number of records in apievinfo |
| [in] | apievinfo | Pointer to api_eventinfo_t records |
| zero | Successful |
| non-zero | If got error while deleting the message. The error-code is placed into returned value. |
Definition at line 3171 of file sync.c.

|
extern |
clsync's wrapper for function "fork()". Should be used instead of "fork()" directly, to notify clsync about child's pid.
| [in] | ctx_p | Pointer to "ctx" |
| -1 | If error (see "man 2 fork", added error code "ECANCELED" if too many children) |
| 0 | If child |
| pid | Pid of child of parent. (see "man 2 fork") |