[wpiutil] DataLog: Remove extra entry parameter from C AddSchema functions (#6246)

This commit is contained in:
Thad House
2024-01-19 20:35:44 -08:00
committed by GitHub
parent ca35bcd827
commit 7f9389f101
2 changed files with 12 additions and 14 deletions

View File

@@ -1205,16 +1205,15 @@ void WPI_DataLog_AppendStringArray(struct WPI_DataLog* datalog, int entry,
timestamp);
}
void WPI_DataLog_AddSchemaString(struct WPI_DataLog* datalog, int entry,
const char* name, const char* type,
const char* schema, int64_t timestamp) {
void WPI_DataLog_AddSchemaString(struct WPI_DataLog* datalog, const char* name,
const char* type, const char* schema,
int64_t timestamp) {
reinterpret_cast<DataLog*>(datalog)->AddSchema(name, type, schema, timestamp);
}
void WPI_DataLog_AddSchema(struct WPI_DataLog* datalog, int entry,
const char* name, const char* type,
const uint8_t* schema, size_t schema_len,
int64_t timestamp) {
void WPI_DataLog_AddSchema(struct WPI_DataLog* datalog, const char* name,
const char* type, const uint8_t* schema,
size_t schema_len, int64_t timestamp) {
reinterpret_cast<DataLog*>(datalog)->AddSchema(
name, type, std::span<const uint8_t>{schema, schema_len}, timestamp);
}