| 67 | }; |
| 68 | |
| 69 | static struct test_app * |
| 70 | test_app_create(void) |
| 71 | { |
| 72 | int i; |
| 73 | struct test_app *app; |
| 74 | |
| 75 | app = calloc(1, sizeof(struct test_app)); |
| 76 | |
| 77 | if (app == NULL) |
| 78 | return NULL; |
| 79 | |
| 80 | for (i = 0; i < NUM_QUEUES; i++) |
| 81 | app->queues[i].queue_id = i; |
| 82 | |
| 83 | return app; |
| 84 | } |
| 85 | |
| 86 | static void |
| 87 | test_app_free(struct test_app *app) |