mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1145 made MetaObjectId define publicly available
This commit is contained in:
parent
0417b361b7
commit
c2e8d25319
@ -49,6 +49,8 @@
|
|||||||
|
|
||||||
typedef void *UAVObjHandle;
|
typedef void *UAVObjHandle;
|
||||||
|
|
||||||
|
#define MetaObjectId(id) ((id) + 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Object update mode, used by multiple modules (e.g. telemetry and logger)
|
* Object update mode, used by multiple modules (e.g. telemetry and logger)
|
||||||
*/
|
*/
|
||||||
|
@ -167,7 +167,6 @@ struct UAVOMulti {
|
|||||||
#define MetaObjectPtr(obj) ((struct UAVODataMeta *)&((obj)->metaObj))
|
#define MetaObjectPtr(obj) ((struct UAVODataMeta *)&((obj)->metaObj))
|
||||||
#define MetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->instance0))
|
#define MetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->instance0))
|
||||||
#define LinkedMetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->metaObj.instance0))
|
#define LinkedMetaDataPtr(obj) ((UAVObjMetadata *)&((obj)->metaObj.instance0))
|
||||||
#define MetaObjectId(id) ((id) + 1)
|
|
||||||
|
|
||||||
/** all information about instances are dependant on object type **/
|
/** all information about instances are dependant on object type **/
|
||||||
#define ObjSingleInstanceDataOffset(obj) ((void *)(&(((struct UAVOSingle *)obj)->instance0)))
|
#define ObjSingleInstanceDataOffset(obj) ((void *)(&(((struct UAVOSingle *)obj)->instance0)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user