12 lines
405 B
C
12 lines
405 B
C
#include "application.h"
|
|
|
|
#include <stddef.h>
|
|
|
|
bool application_enqueue(application_t *application, const app_command_t *command) {
|
|
return application != NULL && command_queue_push(&application->command_queue, command);
|
|
}
|
|
|
|
bool application_take_next_command(application_t *application, app_command_t *command) {
|
|
return application != NULL && command_queue_pop(&application->command_queue, command);
|
|
}
|