2018-05-11 12:38:23 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-06-27 22:11:24 -07:00
|
|
|
/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */
|
2018-05-11 12:38:23 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2020-06-27 22:11:24 -07:00
|
|
|
#include "frc/simulation/CallbackStore.h"
|
2018-05-11 12:38:23 -07:00
|
|
|
|
|
|
|
|
void frc::sim::CallbackStoreThunk(const char* name, void* param,
|
|
|
|
|
const HAL_Value* value) {
|
|
|
|
|
reinterpret_cast<CallbackStore*>(param)->callback(name, value);
|
|
|
|
|
}
|
2020-07-04 10:10:43 -07:00
|
|
|
|
|
|
|
|
void frc::sim::ConstBufferCallbackStoreThunk(const char* name, void* param,
|
|
|
|
|
const unsigned char* buffer,
|
|
|
|
|
unsigned int count) {
|
|
|
|
|
reinterpret_cast<CallbackStore*>(param)->constBufferCallback(name, buffer,
|
|
|
|
|
count);
|
|
|
|
|
}
|