MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / generate_notify_key

Function generate_notify_key

lib/common/utils.c:776–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776char *
777generate_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
796char *
797generate_transition_magic_v202(const char *transition_key, int op_status)

Callers 6

create_action_nameFunction · 0.85
create_operation_updateFunction · 0.85
pe_notifyFunction · 0.85
convert_non_atomic_uuidFunction · 0.85
action2xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected