| 52 | } |
| 53 | |
| 54 | struct pipeline * |
| 55 | pipeline_find(const char *name) |
| 56 | { |
| 57 | struct pipeline *pipeline; |
| 58 | |
| 59 | if (name == NULL) |
| 60 | return NULL; |
| 61 | |
| 62 | TAILQ_FOREACH(pipeline, &pipeline_list, node) |
| 63 | if (strcmp(name, pipeline->name) == 0) |
| 64 | return pipeline; |
| 65 | |
| 66 | return NULL; |
| 67 | } |
| 68 | |
| 69 | struct pipeline * |
| 70 | pipeline_create(const char *name, struct pipeline_params *params) |
no test coverage detected