intelligent software:  iDiana API

home

This is the .h file of iDiana kernel.

#ifndef DIANA_LIBRARY_H
#define DIANA_LIBRARY_H

#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/

/*************** version definition ******************/
/*os macro*/
/*#define LINUX_VERSION*/
/*#define UNIX_VERSION*/
/*#define VXWORKS_VERSION*/
#define WINDOWS_VERSION

/*compile tool macro*/
/*#define GNU_VERSION*/

/******************** data type **********************/
/*basic data type*/
#ifdef VXWORKS_VERSION 
#include <memLib.h>
#include <stdlib.h>
#else
typedef unsigned char UINT8; /*headed with uc*/
typedef unsigned short UINT16; /*headed with us*/
typedef unsigned int UINT32; /*headed with ul*/ 
#define NULL 0
#endif /*VXWORKS_VERSION*/

typedef unsigned char BOOLEAN; /*headed with b*/
#define TRUE 1
#define FALSE 0

/****************** APIs of diana library *************/
/*System APIs*/
void dianaInit();
BOOLEAN dianaLoadXml(char* pFileName);
BOOLEAN dianaSaveXml(char* pFileName);

/*Dialog APIs*/
void dianaGetResponse(char* pQuestion, char* pAnswer, UINT32 ulAnswerSize);


/******************************************************************/
#ifdef __cplusplus
}
#endif /*__cplusplus*/
#endif /*DIANA_LIBRARY_H*/

If you want to get more information, please contact with us.