39 lines
883 B
C
39 lines
883 B
C
#ifndef __USER_SENSE_API_LIB_H__
|
|
#define __USER_SENSE_API_LIB_H__
|
|
|
|
#include <preprocessor.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Exported by all sense API Libraries to tell Harikoff what API the lib uses
|
|
* to connect to providers; and also to state which implexor APIs it exports.
|
|
*/
|
|
struct CExportedImplexorApiDesc
|
|
{
|
|
const char *name;
|
|
};
|
|
|
|
struct CSenseApiDesc
|
|
{
|
|
/* Shortname that identifies the API used by this lib to talk to the sense
|
|
* provider.
|
|
*/
|
|
const char *name;
|
|
// These are the implexors whose APIs this lib exports.
|
|
CExportedImplexorApiDesc *exportedImplexorApis;
|
|
};
|
|
|
|
#define HK_GET_SENSE_API_DESC_FN_NAME getSenseApiDesc
|
|
#define HK_GET_SENSE_API_DESC_FN_NAME_STR \
|
|
HK_QUOTE(HK_GET_SENSE_API_DESC_FN_NAME)
|
|
|
|
typedef const CSenseApiDesc *(getSenseApiDescFn)(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __USER_SENSE_API_LIB_H__
|