| 774 | } |
| 775 | |
| 776 | char * |
| 777 | generate_notify_key(const char *rsc_id, const char *notify_type, const char *op_type) |
| 778 | { |
| 779 | int len = 12; |
| 780 | char *op_id = NULL; |
| 781 | |
| 782 | CRM_CHECK(rsc_id != NULL, return NULL); |
| 783 | CRM_CHECK(op_type != NULL, return NULL); |
| 784 | CRM_CHECK(notify_type != NULL, return NULL); |
| 785 | |
| 786 | len += strlen(op_type); |
| 787 | len += strlen(rsc_id); |
| 788 | len += strlen(notify_type); |
| 789 | op_id = calloc(1, len); |
| 790 | if (op_id != NULL) { |
| 791 | sprintf(op_id, "%s_%s_notify_%s_0", rsc_id, notify_type, op_type); |
| 792 | } |
| 793 | return op_id; |
| 794 | } |
| 795 | |
| 796 | char * |
| 797 | generate_transition_magic_v202(const char *transition_key, int op_status) |
no outgoing calls
no test coverage detected