IDZEBRA  2.1.2
Functions
update_file.c File Reference
#include <stdio.h>
#include <assert.h>
#include <sys/types.h>
#include <direntz.h>
#include <fcntl.h>
#include <time.h>
#include "index.h"

Go to the source code of this file.

Functions

static int repComp (const char *a, const char *b, size_t len)
 
static void fileDelete_r (ZebraHandle zh, struct dirs_info *di, struct dirs_entry *dst, const char *base, char *src)
 
static void file_update_r (ZebraHandle zh, struct dirs_info *di, struct dirs_entry *dst, const char *base, char *src, int level)
 
static void file_update_top (ZebraHandle zh, Dict dict, const char *path)
 
static ZEBRA_RES zebra_open_fmatch (ZebraHandle zh, Dict *dictp)
 
ZEBRA_RES zebra_remove_file_match (ZebraHandle zh)
 
ZEBRA_RES zebra_update_file_match (ZebraHandle zh, const char *path)
 

Function Documentation

static void file_update_r ( ZebraHandle  zh,
struct dirs_info di,
struct dirs_entry dst,
const char *  base,
char *  src,
int  level 
)
static
static void file_update_top ( ZebraHandle  zh,
Dict  dict,
const char *  path 
)
static
static void fileDelete_r ( ZebraHandle  zh,
struct dirs_info di,
struct dirs_entry dst,
const char *  base,
char *  src 
)
static
static int repComp ( const char *  a,
const char *  b,
size_t  len 
)
static

Definition at line 58 of file update_file.c.

Referenced by file_update_r(), and fileDelete_r().

static ZEBRA_RES zebra_open_fmatch ( ZebraHandle  zh,
Dict dictp 
)
static
ZEBRA_RES zebra_remove_file_match ( ZebraHandle  zh)

Definition at line 315 of file update_file.c.

References dict, dict_clean(), dict_close(), ZEBRA_FAIL, ZEBRA_OK, and zebra_open_fmatch().

Referenced by zebra_drop_database().

ZEBRA_RES zebra_update_file_match ( ZebraHandle  zh,
const char *  path 
)