| 411 | } |
| 412 | |
| 413 | long ply_set_read_cb(p_ply ply, const char *element_name, |
| 414 | const char* property_name, p_ply_read_cb read_cb, |
| 415 | void *pdata, long idata) { |
| 416 | p_ply_element element = NULL; |
| 417 | p_ply_property property = NULL; |
| 418 | assert(ply && element_name && property_name); |
| 419 | element = ply_find_element(ply, element_name); |
| 420 | if (!element) return 0; |
| 421 | property = ply_find_property(element, property_name); |
| 422 | if (!property) return 0; |
| 423 | property->read_cb = read_cb; |
| 424 | property->pdata = pdata; |
| 425 | property->idata = idata; |
| 426 | return (int) element->ninstances; |
| 427 | } |
| 428 | |
| 429 | int ply_read(p_ply ply) { |
| 430 | long i; |
no test coverage detected