#ifndef __LC_H__
#define __LC_H__
#include <sys/types.h>
//
#define MAX_LC_SUM_SUPPORT (10)
typedef enum LC_STATUS_ENUM
{
    LC_STATUS_OK = 0,
    LC_STATUS_DISABLE,
    LC_STATUS_OFFLINE,
    LC_STATUS_SYSTEM_ERR,
    LC_STATUS_PROTECT,
    LC_STATUS_MAX,
} LC_STATUS_ENUM;
typedef struct lc_info
{
    int lc_sum;        // LC总数
    int valid_sum;     // 可用LC的总数
    double exp_powert; // 总的期望功率
    struct
    {
        const char *no;
        int is_vlc;        // 是VLC
        LC_STATUS_ENUM status;
        time_t start_0_power_time;
        double exp_powert;
    } lc[MAX_LC_SUM_SUPPORT];
} lc_info_t;
int update_lc_info(void);
int check_lc_lang(void);
int check_lc_group_info(void);
int lc_init(void);
int lc_variant_cb_register(void *var);
int flush_dev_group_info_file(void);
int check_and_sync_lc_template(void);
int copy_remote_template_to_local(const char *ipaddr, const char *lc_no);
int set_ChDischStatus(const char *no, double cur_power);
#endif