* Convert the name of a structure to the type value of that structure, or * STRUCTURE_INVALID if not found. */
| 350 | * STRUCTURE_INVALID if not found. |
| 351 | */ |
| 352 | uint8 Structure_StringToType(const char *name) |
| 353 | { |
| 354 | uint8 type; |
| 355 | if (name == NULL) return STRUCTURE_INVALID; |
| 356 | |
| 357 | for (type = 0; type < STRUCTURE_MAX; type++) { |
| 358 | if (strcasecmp(g_table_structureInfo[type].o.name, name) == 0) return type; |
| 359 | } |
| 360 | |
| 361 | return STRUCTURE_INVALID; |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * Create a new Structure. |
no outgoing calls
no test coverage detected