| 68 | |
| 69 | |
| 70 | struct lb_resource *get_resource_by_name(struct lb_data *data, str *name) |
| 71 | { |
| 72 | struct lb_resource *res; |
| 73 | |
| 74 | for( res=data->resources ; res ; res=res->next ) { |
| 75 | if (name->len==res->name.len && |
| 76 | memcmp( name->s, res->name.s, name->len)==0) { |
| 77 | LM_DBG("found resource [%.*s]\n",name->len,name->s); |
| 78 | return res; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | return NULL; |
| 83 | } |
| 84 | |
| 85 | |
| 86 | static struct lb_resource *add_lb_resource(struct lb_data *data, str *name) |
no outgoing calls
no test coverage detected