IDZEBRA  2.2.7
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 <yaz/snprintf.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

◆ file_update_r()

static void file_update_r ( ZebraHandle  zh,
struct dirs_info di,
struct dirs_entry dst,
const char *  base,
char *  src,
int  level 
)
static

◆ file_update_top()

static void file_update_top ( ZebraHandle  zh,
Dict  dict,
const char *  path 
)
static

◆ fileDelete_r()

static void fileDelete_r ( ZebraHandle  zh,
struct dirs_info di,
struct dirs_entry dst,
const char *  base,
char *  src 
)
static

◆ repComp()

static int repComp ( const char *  a,
const char *  b,
size_t  len 
)
static

Definition at line 41 of file update_file.c.

Referenced by file_update_r(), and fileDelete_r().

◆ zebra_open_fmatch()

static ZEBRA_RES zebra_open_fmatch ( ZebraHandle  zh,
Dict dictp 
)
static

◆ zebra_remove_file_match()

ZEBRA_RES zebra_remove_file_match ( ZebraHandle  zh)

Definition at line 294 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_update_file_match()

ZEBRA_RES zebra_update_file_match ( ZebraHandle  zh,
const char *  path 
)