Skip to content

Commit

Permalink
add lcm_event_destroy (not used yet)
Browse files Browse the repository at this point in the history
related to #62 but not a complete fix yet
  • Loading branch information
dehann authored May 5, 2019
1 parent a313d94 commit e30e44b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/readlog.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ function lcm_eventlog_read_next_event(_log::Ptr{lcm_eventlog_t})
)
end

function lcm_event_destroy(event::Ptr{LCMCore.lcm_eventlog_event_t})
ccall(
(:lcm_eventlog_free_event, LCMCore.liblcm),
Cvoid,
(Ptr{LCMCore.lcm_eventlog_event_t}, ),
event
)
end

#
# Doesn't work yet
# event = unsafe_wrap(lcm_eventlog_event_t, _event, dim??)
Expand Down

0 comments on commit e30e44b

Please sign in to comment.