#ifndef CMD_CLIENT_H__
#define CMD_CLIENT_H__
#include "lnxall_list.h"
#include <semaphore.h>

#ifdef EN_LC
#define APPNAME "emu_lc"
#else
#define APPNAME "proto_forward"
#endif

int cmd_client_init(const char * id);
int cmd_call(char *arg,int timeout,char **dist_arg,int getreturn);
#define get_board_sn(x) get_board_sn_local(x)
int get_board_sn_local(char *sn);

typedef struct list_head list_head_t;

typedef struct 
{

    int seq;
    int status;
    int timeout;
    char *resp;
    sem_t *cmd_info_sem;
}CMD_INFO;
typedef struct
{
    list_head_t list;
    CMD_INFO *cmdInfo;
}cmd_write_list_t;

#endif
