| 857 | } |
| 858 | |
| 859 | char * |
| 860 | generate_transition_key(int transition_id, int action_id, int target_rc, const char *node) |
| 861 | { |
| 862 | int len = 40; |
| 863 | char *fail_state = NULL; |
| 864 | |
| 865 | CRM_CHECK(node != NULL, return NULL); |
| 866 | |
| 867 | len += strlen(node); |
| 868 | |
| 869 | fail_state = calloc(1, len); |
| 870 | if (fail_state != NULL) { |
| 871 | snprintf(fail_state, len, "%d:%d:%d:%s", action_id, transition_id, target_rc, node); |
| 872 | } |
| 873 | return fail_state; |
| 874 | } |
| 875 | |
| 876 | gboolean |
| 877 | decode_transition_key(const char *key, char **uuid, int *transition_id, int *action_id, |
no outgoing calls
no test coverage detected