| 1123 | } |
| 1124 | |
| 1125 | int |
| 1126 | crm_element_value_int(xmlNode *data, const char *name, int *dest) |
| 1127 | { |
| 1128 | const char *value = crm_element_value(data, name); |
| 1129 | CRM_CHECK(dest != NULL, return -1); |
| 1130 | if(value) { |
| 1131 | *dest = crm_int_helper(value, NULL); |
| 1132 | return 0; |
| 1133 | } |
| 1134 | return -1; |
| 1135 | } |
| 1136 | |
| 1137 | int |
| 1138 | crm_element_value_const_int(const xmlNode *data, const char *name, int *dest) |
no test coverage detected