2024-11-25 16:14:09 +08:00
|
|
|
#ifndef __KIT_XML_H_
|
|
|
|
#define __KIT_XML_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2024-11-26 13:59:11 +08:00
|
|
|
#include <fcntl.h>
|
2024-11-25 16:14:09 +08:00
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include "libxml2/include/libxml2/libxml/parser.h"
|
|
|
|
#include "libxml2/include/libxml2/libxml/tree.h"
|
|
|
|
#include "libxml2/include/libxml2/libxml/xmlmemory.h"
|
|
|
|
|
|
|
|
#define EMS_XML_FILE "EMS_XML.xml"
|
|
|
|
#define NAME_STR_LEN 32
|
|
|
|
#define DEFAULT_XML_FILE "EMS_XML.xml"
|
|
|
|
|
|
|
|
typedef struct EMS_XML_t {
|
|
|
|
int id; //编号
|
|
|
|
char can_recv_name[NAME_STR_LEN];
|
|
|
|
char can_send_name[NAME_STR_LEN];
|
|
|
|
char can_id_name[NAME_STR_LEN];
|
|
|
|
char can_recv_dlc[NAME_STR_LEN];
|
2024-11-26 13:59:11 +08:00
|
|
|
char can_send_dlc[NAME_STR_LEN];
|
|
|
|
char ems_local_ip[NAME_STR_LEN];
|
2024-11-25 16:14:09 +08:00
|
|
|
}EMS_XML;
|
|
|
|
|
|
|
|
void createXml();
|
|
|
|
void paraXml();
|
|
|
|
|
|
|
|
#endif
|