| 243 | } |
| 244 | |
| 245 | struct blackbox_list *getBlackboxTypes() |
| 246 | { |
| 247 | int i = 0; |
| 248 | void **l = (void **)omalloc0(blackboxTableCnt * sizeof(void *)); |
| 249 | struct blackbox_list *list_struct = (struct blackbox_list *) omAlloc0(sizeof(struct blackbox_list)); |
| 250 | list_struct->count = blackboxTableCnt; |
| 251 | list_struct->list = l; |
| 252 | |
| 253 | for (i = blackboxTableCnt-1; i >= 0 ;i--) |
| 254 | { |
| 255 | if (blackboxName[i]!=NULL) { |
| 256 | l[i] = (void *)omStrDup(blackboxName[i]); |
| 257 | //Print("type %d: %s\n",i,blackboxName[i]); |
| 258 | } else { |
| 259 | l[i] = NULL; |
| 260 | } |
| 261 | } |
| 262 | return list_struct; |
| 263 | } |
no test coverage detected