31 lines
724 B
C
31 lines
724 B
C
#ifndef __KIT_XML_H_
|
|
#define __KIT_XML_H_
|
|
|
|
|
|
#include <stdio.h>
|
|
#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];
|
|
char can_send_dlc[NAME_STR_LEN];
|
|
}EMS_XML;
|
|
|
|
void createXml();
|
|
void paraXml();
|
|
|
|
#endif |