[rtems commit] record: Add rtems_record_client_set_handler()

Sebastian Huber sebh at rtems.org
Sat Aug 17 18:16:36 UTC 2019


Module:    rtems
Branch:    master
Commit:    4a9a58ea8ad75248af5876c01ef654f9bc59c312
Changeset: http://git.rtems.org/rtems/commit/?id=4a9a58ea8ad75248af5876c01ef654f9bc59c312

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Aug 17 18:58:53 2019 +0200

record: Add rtems_record_client_set_handler()

---

 cpukit/include/rtems/recordclient.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cpukit/include/rtems/recordclient.h b/cpukit/include/rtems/recordclient.h
index d38a8a7..2509ba5 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
 )



More information about the vc mailing list