SenseApis: Define descriptors exported by libs

This commit is contained in:
2025-01-08 11:49:28 -04:00
parent f5e3986644
commit c864bcfdd2
4 changed files with 112 additions and 77 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef __USER_SENSE_API_LIB_H__
#define __USER_SENSE_API_LIB_H__
#define HK_SENSE_API_DESC_GETTER_FN_NAME "getSenseApiDescriptor"
/* 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;
};
#endif // __USER_SENSE_API_LIB_H__