IDZEBRA 2.2.11
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()

◆ file_update_top()

◆ fileDelete_r()

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

◆ repComp()

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()

◆ 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()