static char *make_persistent_server_directory_name(const char *base_path, const char *server, unsigned short port)
#include "persistent_state.h"
#define ZBX_PERSIST_TAG_FILENAME "filename"
#define ZBX_PERSIST_TAG_MTIME "mtime"
#define ZBX_PERSIST_TAG_SEQ "seq"
#define ZBX_PERSIST_TAG_INCOMPLETE "incomplete"
#define ZBX_PERSIST_TAG_COPY_OF "copy_of"
#define ZBX_PERSIST_TAG_DEVICE "dev"
#define ZBX_PERSIST_TAG_INODE_LO "ino_lo"
#define ZBX_PERSIST_TAG_INODE_HI "ino_hi"
#define ZBX_PERSIST_TAG_SIZE "size"
#define ZBX_PERSIST_TAG_PROCESSED_SIZE "processed_size"
#define ZBX_PERSIST_TAG_MD5_BLOCK_SIZE "md5_block_size"
#define ZBX_PERSIST_TAG_FIRST_BLOCK_MD5 "first_block_md5"
#define ZBX_PERSIST_TAG_LAST_BLOCK_OFFSET "last_block_offset"
#define ZBX_PERSIST_TAG_LAST_BLOCK_MD5 "last_block_md5"
ZBX_VECTOR_IMPL(pre_persistent, zbx_pre_persistent_t)
ZBX_VECTOR_IMPL(persistent_inactive, zbx_persistent_inactive_t)
#if !defined(_WINDOWS) && !defined(__MINGW32__)
static int zbx_persistent_inactive_compare_func(const void *d1, const void *d2)
return strcmp(((const zbx_persistent_inactive_t *)d1)->key_orig,
((const zbx_persistent_inactive_t *)d2)->key_orig);