clsync
Loading...
Searching...
No Matches
control.c File Reference
#include "common.h"
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <glib.h>
#include "indexes.h"
#include "main.h"
#include "ctx.h"
#include "error.h"
#include "sync.h"
#include "control.h"
#include "socket.h"
Include dependency graph for control.c:

Go to the source code of this file.

Functions

static int control_error (clsyncsock_t *clsyncsock_p, sockcmd_t *sockcmd_p, const char *const funct, const char *const args)
 
int control_dump (ctx_t *ctx_p, clsyncsock_t *clsyncsock_p, sockcmd_t *sockcmd_p)
 
int control_procclsyncsock (socket_sockthreaddata_t *arg, sockcmd_t *sockcmd_p)
 
static void closecontrol (ctx_t *ctx_p)
 
int control_loop (ctx_t *ctx_p)
 
int control_run (ctx_t *ctx_p)
 
int control_cleanup (ctx_t *ctx_p)
 

Variables

static pthread_t pthread_control
 

Function Documentation

◆ closecontrol()

static void closecontrol ( ctx_t * ctx_p)
inlinestatic

Definition at line 96 of file control.c.

Here is the caller graph for this function:

◆ control_cleanup()

int control_cleanup ( ctx_t * ctx_p)

Definition at line 243 of file control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ control_dump()

int control_dump ( ctx_t * ctx_p,
clsyncsock_t * clsyncsock_p,
sockcmd_t * sockcmd_p )

Definition at line 47 of file control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ control_error()

static int control_error ( clsyncsock_t * clsyncsock_p,
sockcmd_t * sockcmd_p,
const char *const funct,
const char *const args )
inlinestatic

Definition at line 40 of file control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ control_loop()

int control_loop ( ctx_t * ctx_p)

Definition at line 104 of file control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ control_procclsyncsock()

int control_procclsyncsock ( socket_sockthreaddata_t * arg,
sockcmd_t * sockcmd_p )

Definition at line 56 of file control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ control_run()

int control_run ( ctx_t * ctx_p)

Definition at line 191 of file control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ pthread_control

pthread_t pthread_control
static

Definition at line 37 of file control.c.