2025-01-25 10:55:11 +01:00
|
|
|
#ifndef ONEWAY_H
|
|
|
|
#define ONEWAY_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* C++ interface (jako callback v C) */
|
|
|
|
template<typename T> class OneWay {
|
|
|
|
public:
|
2025-01-25 12:21:08 +01:00
|
|
|
virtual unsigned Send (T * const ptr, const unsigned len) = 0;
|
2025-01-25 10:55:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ONEWAY_H
|