RtaCommandCreateProtocolStack * rtaCommandCreateProtocolStack_Create(int stackId, CCNxStackConfig *config) { RtaCommandCreateProtocolStack *createStack = parcObject_CreateInstance(RtaCommandCreateProtocolStack); createStack->stackId = stackId; createStack->config = ccnxStackConfig_Copy(config); return createStack; }
LONGBOW_TEST_CASE(Global, ccnxStackConfig_Copy) { CCNxStackConfig *instance = ccnxStackConfig_Create(); CCNxStackConfig *copy = ccnxStackConfig_Copy(instance); assertTrue(ccnxStackConfig_Equals(instance, copy), "Expected the copy to be equal to the original"); ccnxStackConfig_Release(&instance); ccnxStackConfig_Release(©); }