multiqueue.c 321 B

1234567891011121314151617
  1. #include <string.h>
  2. #include <stdlib.h>
  3. #include "nvim/event/multiqueue.h"
  4. #include "multiqueue.h"
  5. void ut_multiqueue_put(MultiQueue *self, const char *str)
  6. {
  7. multiqueue_put(self, NULL, (void *)str);
  8. }
  9. const char *ut_multiqueue_get(MultiQueue *self)
  10. {
  11. Event event = multiqueue_get(self);
  12. return event.argv[0];
  13. }