forked from Archive/PX4-Autopilot
Added logbuffer free function
This commit is contained in:
parent
7292e8c722
commit
acc06e7eb1
|
@ -107,7 +107,6 @@ struct mavlink_logmessage {
|
||||||
|
|
||||||
struct mavlink_logbuffer {
|
struct mavlink_logbuffer {
|
||||||
unsigned int start;
|
unsigned int start;
|
||||||
// unsigned int end;
|
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
int count;
|
int count;
|
||||||
struct mavlink_logmessage *elems;
|
struct mavlink_logmessage *elems;
|
||||||
|
@ -115,6 +114,8 @@ struct mavlink_logbuffer {
|
||||||
|
|
||||||
void mavlink_logbuffer_init(struct mavlink_logbuffer *lb, int size);
|
void mavlink_logbuffer_init(struct mavlink_logbuffer *lb, int size);
|
||||||
|
|
||||||
|
void mavlink_logbuffer_destroy(struct mavlink_logbuffer *lb);
|
||||||
|
|
||||||
int mavlink_logbuffer_is_full(struct mavlink_logbuffer *lb);
|
int mavlink_logbuffer_is_full(struct mavlink_logbuffer *lb);
|
||||||
|
|
||||||
int mavlink_logbuffer_is_empty(struct mavlink_logbuffer *lb);
|
int mavlink_logbuffer_is_empty(struct mavlink_logbuffer *lb);
|
||||||
|
|
Loading…
Reference in New Issue