| 20 | } |
| 21 | |
| 22 | struct swq * |
| 23 | swq_find(const char *name) |
| 24 | { |
| 25 | struct swq *swq; |
| 26 | |
| 27 | if (name == NULL) |
| 28 | return NULL; |
| 29 | |
| 30 | TAILQ_FOREACH(swq, &swq_list, node) |
| 31 | if (strcmp(swq->name, name) == 0) |
| 32 | return swq; |
| 33 | |
| 34 | return NULL; |
| 35 | } |
| 36 | |
| 37 | struct swq * |
| 38 | swq_create(const char *name, struct swq_params *params) |
no test coverage detected