summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-08-17 18:58:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-08-17 19:01:14 +0200
commit4a9a58ea8ad75248af5876c01ef654f9bc59c312 (patch)
tree13eb2d7c2ab7f5148844358e4e8a72ee70c0afd6
parentrecord: Pass bintime to client handlers (diff)
downloadrtems-4a9a58ea8ad75248af5876c01ef654f9bc59c312.tar.bz2
record: Add rtems_record_client_set_handler()
-rw-r--r--cpukit/include/rtems/recordclient.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/recordclient.h b/cpukit/include/rtems/recordclient.h
index d38a8a731d..2509ba5cc8 100644
--- a/cpukit/include/rtems/recordclient.h
+++ b/cpukit/include/rtems/recordclient.h
@@ -195,6 +195,14 @@ void rtems_record_client_destroy(
rtems_record_client_context *ctx
);
+static inline void rtems_record_client_set_handler(
+ rtems_record_client_context *ctx,
+ rtems_record_client_handler handler
+)
+{
+ ctx->handler = handler;
+}
+
static inline uint64_t rtems_record_client_bintime_to_nanoseconds(
uint64_t bt
)