35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*
|
|
**********************************************************************************************
|
|
* File: maat_config_monitor.h
|
|
* Description: maat config monitor api
|
|
* Authors: Liu WenTan <liuwentan@geedgenetworks.com>
|
|
* Date: 2022-10-31
|
|
* Copyright: (c) Since 2022 Geedge Networks, Ltd. All rights reserved.
|
|
***********************************************************************************************
|
|
*/
|
|
|
|
#ifndef _MAAT_CONFIG_MONITOR_H_
|
|
#define _MAAT_CONFIG_MONITOR_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include "log/log.h"
|
|
|
|
void config_monitor_traverse(long long version, const char *idx_dir,
|
|
void (*start_fn)(long long, int, void *),
|
|
int (*update_fn)(const char *, const char *, void *),
|
|
void (*finish_fn)(void *), void *u_param,
|
|
const char *dec_key, struct log_handle *logger);
|
|
|
|
int load_maat_json_file(struct maat *maat_instance, const char *json_filename,
|
|
char *err_str, size_t err_str_sz);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |