mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 05:20:34 +08:00
GDTR find() overload for name only
This commit is contained in:
@@ -141,6 +141,16 @@ void GlobalDataTypeRegistry::freeze()
|
||||
}
|
||||
}
|
||||
|
||||
const DataTypeDescriptor* GlobalDataTypeRegistry::find(const char* name) const
|
||||
{
|
||||
const DataTypeDescriptor* desc = find(DataTypeKindMessage, name);
|
||||
if (desc == NULL)
|
||||
{
|
||||
desc = find(DataTypeKindService, name);
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
const DataTypeDescriptor* GlobalDataTypeRegistry::find(DataTypeKind kind, const char* name) const
|
||||
{
|
||||
if (!name)
|
||||
|
||||
Reference in New Issue
Block a user