Пример #1
0
struct tt__PTZNode* getPTZNodeInfo(struct soap* soap, int index) {
	struct tt__PTZNode* result = (struct tt__PTZNode*) my_soap_malloc(soap,
			sizeof(struct tt__PTZNode));
	result->Name = getPTZName(soap, index);
	result->token = getPTZNodeToken(soap, index);
	result->FixedHomePosition = getxsdBoolean(soap, false);
	int presets = 0;
	getPTZPresetsCapacity(&presets);
	result->MaximumNumberOfPresets = presets;
	result->SupportedPTZSpaces = getPTZSpaces(soap);
	return result;
}
Пример #2
0
void test_GetPTZPresetsCapacity() {
	int v = -1;
	TEST_ASSERT_EQUAL(RET_CODE_SUCCESS, getPTZPresetsCapacity(&v));
	TEST_ASSERT_EQUAL(9, v);
}