|
|
|
@ -586,7 +586,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newIntegerFromInt8(int8_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
self->type = MMS_INTEGER;
|
|
|
|
|
self->value.integer = BerInteger_createFromInt32((int32_t) integer);
|
|
|
|
@ -598,7 +597,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newIntegerFromInt16(int16_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
self->type = MMS_INTEGER;
|
|
|
|
|
self->value.integer = BerInteger_createFromInt32((int32_t) integer);
|
|
|
|
@ -832,7 +830,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newUnsignedFromUint32(uint32_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
if (self == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
@ -847,7 +844,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newIntegerFromInt64(int64_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
if (self == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
@ -913,8 +909,6 @@ MmsValue_toFloat(const MmsValue* self)
|
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
printf("MmsValue_toFloat: conversion error. Wrong type!\n");
|
|
|
|
|
|
|
|
|
|
return 0.f;
|
|
|
|
|
}
|
|
|
|
@ -1169,7 +1163,7 @@ MmsValue_clone(const MmsValue* self)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit_function:
|
|
|
|
|
exit_function:
|
|
|
|
|
return newValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1530,7 +1524,7 @@ setVisibleStringValue(MmsValue* self, const char* string)
|
|
|
|
|
self->value.visibleString.buf[0] = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit_function:
|
|
|
|
|
exit_function:
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1744,7 +1738,7 @@ MmsValue_newStringFromByteArray(const uint8_t* byteArray, int size, MmsType type
|
|
|
|
|
self = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit_function:
|
|
|
|
|
exit_function:
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1813,7 +1807,7 @@ MmsValue_newUtcTime(uint32_t timeval)
|
|
|
|
|
valueArray[3] = timeArray[3];
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
exit_function:
|
|
|
|
|
exit_function:
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1860,7 +1854,7 @@ MmsValue_createArray(MmsVariableSpecification* elementType, int size)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit_function:
|
|
|
|
|
exit_function:
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1887,7 +1881,7 @@ MmsValue_createEmptyArray(int size)
|
|
|
|
|
self->value.structure.components[i] = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit_function:
|
|
|
|
|
exit_function:
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|