This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2024-09-27 19:11:47 +08:00

30 lines
661 B
C

#ifndef _SF_STATUS_H
#define _SF_STATUS_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "utils.h"
#include "kafka.h"
struct sf_status_key
{
uint32_t vsys_id;
uuid_t sf_uuid;
};
struct sf_status *sf_status_create(const char *profile, struct kafka *kfk);
void sf_status_destory(struct sf_status *handle);
void sf_status_delete(struct sf_status *handle, const struct sf_status_key *key);
void sf_status_update(struct sf_status *handle, const struct sf_status_key *key, int sf_status, int sf_latency);
void sf_status_output(struct sf_status *handle);
int sf_status_get_ouput_interval_ms(struct sf_status *handle);
#ifdef __cplusplus
}
#endif
#endif