* */
| 155 | * |
| 156 | */ |
| 157 | mq_head_t *mq_head_get(str *name) |
| 158 | { |
| 159 | mq_head_t *mh = NULL; |
| 160 | |
| 161 | mh = _mq_head_list; |
| 162 | if(!name) { |
| 163 | return mh; |
| 164 | } |
| 165 | while(mh != NULL) { |
| 166 | if(name->len == mh->name.len |
| 167 | && strncmp(mh->name.s, name->s, name->len) == 0) { |
| 168 | return mh; |
| 169 | } |
| 170 | mh = mh->next; |
| 171 | } |
| 172 | return NULL; |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * |
no outgoing calls
no test coverage detected