用 Clang.jl 生成的,仅供参考:
const DDC_FILE_TYPE_TDM = "TDM"
const DDC_FILE_TYPE_TDM_STREAMING = "TDMS"
const DDC_FILE_NAME = "name"
const DDC_FILE_DESCRIPTION = "description"
const DDC_FILE_TITLE = "title"
const DDC_FILE_AUTHOR = "author"
const DDC_FILE_DATETIME = "datetime"
const DDC_CHANNELGROUP_NAME = "name"
const DDC_CHANNELGROUP_DESCRIPTION = "description"
const DDC_CHANNEL_NAME = "name"
const DDC_CHANNEL_DESCRIPTION = "description"
const DDC_CHANNEL_UNIT_STRING = "unit_string"
const DDC_CHANNEL_MINIMUM = "minimum"
const DDC_CHANNEL_MAXIMUM = "maximum"
const _DDCFile = Cvoid
const DDCFile = _DDCFile
const _DDCChannelGroup = Cvoid
const DDCChannelGroup = _DDCChannelGroup
const _DDCChannel = Cvoid
const DDCChannel = _DDCChannel
const DDCFileHandle = Ptr{DDCFile}
const DDCChannelGroupHandle = Ptr{DDCChannelGroup}
const DDCChannelHandle = Ptr{DDCChannel}
@cenum(DDCDataType,
DDC_UInt8 = 5,
DDC_Int16 = 2,
DDC_Int32 = 3,
DDC_Float = 9,
DDC_Double = 10,
DDC_String = 23,
DDC_Timestamp = 30,
)
# Julia wrapper for header: /Users/gnimuc/Downloads/TDM C DLL/dev/include/nilibddc.h
# Automatically generated using Clang.jl wrap_c
function DDC_CreateFile(filePath, fileType, name, description, title, author, file)
ccall((:DDC_CreateFile, libddc), Cint, (Cstring, Cstring, Cstring, Cstring, Cstring, Cstring, Ptr{DDCFileHandle}), filePath, fileType, name, description, title, author, file)
end
function DDC_AddChannelGroup(file, name, description, channelGroup)
ccall((:DDC_AddChannelGroup, libddc), Cint, (DDCFileHandle, Cstring, Cstring, Ptr{DDCChannelGroupHandle}), file, name, description, channelGroup)
end
function DDC_AddChannel(channelGroup, dataType, name, description, unitString, channel)
ccall((:DDC_AddChannel, libddc), Cint, (DDCChannelGroupHandle, DDCDataType, Cstring, Cstring, Cstring, Ptr{DDCChannelHandle}), channelGroup, dataType, name, description, unitString, channel)
end
function DDC_SaveFile(file)
ccall((:DDC_SaveFile, libddc), Cint, (DDCFileHandle,), file)
end
function DDC_CloseFile(file)
ccall((:DDC_CloseFile, libddc), Cint, (DDCFileHandle,), file)
end
function DDC_OpenFileEx(filePath, fileType, readOnly, file)
ccall((:DDC_OpenFileEx, libddc), Cint, (Cstring, Cstring, Cint, Ptr{DDCFileHandle}), filePath, fileType, readOnly, file)
end
function DDC_RemoveChannelGroup(channelGroup)
ccall((:DDC_RemoveChannelGroup, libddc), Cint, (DDCChannelGroupHandle,), channelGroup)
end
function DDC_RemoveChannel(channel)
ccall((:DDC_RemoveChannel, libddc), Cint, (DDCChannelHandle,), channel)
end
function DDC_CloseChannelGroup(channelGroup)
ccall((:DDC_CloseChannelGroup, libddc), Cint, (DDCChannelGroupHandle,), channelGroup)
end
function DDC_CloseChannel(channel)
ccall((:DDC_CloseChannel, libddc), Cint, (DDCChannelHandle,), channel)
end
function DDC_OpenFile(filePath, fileType, file)
ccall((:DDC_OpenFile, libddc), Cint, (Cstring, Cstring, Ptr{DDCFileHandle}), filePath, fileType, file)
end
function DDC_SetDataValues(channel, values, numValues)
ccall((:DDC_SetDataValues, libddc), Cint, (DDCChannelHandle, Ptr{Cvoid}, Csize_t), channel, values, numValues)
end
function DDC_SetDataValuesTimestampComponents(channel, year, month, day, hour, minute, second, milliSecond, numValues)
ccall((:DDC_SetDataValuesTimestampComponents, libddc), Cint, (DDCChannelHandle, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Csize_t), channel, year, month, day, hour, minute, second, milliSecond, numValues)
end
function DDC_AppendDataValues(channel, values, numValues)
ccall((:DDC_AppendDataValues, libddc), Cint, (DDCChannelHandle, Ptr{Cvoid}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesTimestampComponents(channel, year, month, day, hour, minute, second, milliSecond, numValues)
ccall((:DDC_AppendDataValuesTimestampComponents, libddc), Cint, (DDCChannelHandle, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Csize_t), channel, year, month, day, hour, minute, second, milliSecond, numValues)
end
function DDC_ReplaceDataValues(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValues, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Cvoid}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_ReplaceDataValuesTimestampComponents(channel, indexOfFirstValueToReplace, year, month, day, hour, minute, second, milliSecond, numValues)
ccall((:DDC_ReplaceDataValuesTimestampComponents, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Csize_t), channel, indexOfFirstValueToReplace, year, month, day, hour, minute, second, milliSecond, numValues)
end
function DDC_GetNumChannelGroups(file, numChannelGroups)
ccall((:DDC_GetNumChannelGroups, libddc), Cint, (DDCFileHandle, Ptr{UInt32}), file, numChannelGroups)
end
function DDC_GetChannelGroups(file, channelGroupsBuf, numChannelGroups)
ccall((:DDC_GetChannelGroups, libddc), Cint, (DDCFileHandle, Ptr{DDCChannelGroupHandle}, Csize_t), file, channelGroupsBuf, numChannelGroups)
end
function DDC_GetNumChannels(channelGroup, numChannels)
ccall((:DDC_GetNumChannels, libddc), Cint, (DDCChannelGroupHandle, Ptr{UInt32}), channelGroup, numChannels)
end
function DDC_GetChannels(channelGroup, channelsBuf, numChannels)
ccall((:DDC_GetChannels, libddc), Cint, (DDCChannelGroupHandle, Ptr{DDCChannelHandle}, Csize_t), channelGroup, channelsBuf, numChannels)
end
function DDC_GetNumDataValues(channel, __int64)
ccall((:DDC_GetNumDataValues, libddc), Cint, (DDCChannelHandle, UInt32), channel, __int64)
end
function DDC_GetDataValues(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValues, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Cvoid}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_GetDataValuesTimestampComponents(channel, indexOfFirstValueToGet, numValuesToGet, year, month, day, hour, minute, second, milliSecond, weekDay)
ccall((:DDC_GetDataValuesTimestampComponents, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Ptr{UInt32}), channel, indexOfFirstValueToGet, numValuesToGet, year, month, day, hour, minute, second, milliSecond, weekDay)
end
function DDC_GetDataType(channel, dataType)
ccall((:DDC_GetDataType, libddc), Cint, (DDCChannelHandle, Ptr{DDCDataType}), channel, dataType)
end
function DDC_SetFilePropertyTimestampComponents(file, property, year, month, day, hour, minute, second, milliSecond)
ccall((:DDC_SetFilePropertyTimestampComponents, libddc), Cint, (DDCFileHandle, Cstring, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Cdouble), file, property, year, month, day, hour, minute, second, milliSecond)
end
function DDC_GetFileProperty(file, property, value, valueSizeInBytes)
ccall((:DDC_GetFileProperty, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Cvoid}, Csize_t), file, property, value, valueSizeInBytes)
end
function DDC_GetFilePropertyTimestampComponents(file, property, year, month, day, hour, minute, second, milliSecond, weekDay)
ccall((:DDC_GetFilePropertyTimestampComponents, libddc), Cint, (DDCFileHandle, Cstring, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Ptr{UInt32}), file, property, year, month, day, hour, minute, second, milliSecond, weekDay)
end
function DDC_GetFileStringPropertyLength(file, property, length)
ccall((:DDC_GetFileStringPropertyLength, libddc), Cint, (DDCFileHandle, Cstring, Ptr{UInt32}), file, property, length)
end
function DDC_CreateFilePropertyTimestampComponents(file, property, year, month, day, hour, minute, second, milliSecond)
ccall((:DDC_CreateFilePropertyTimestampComponents, libddc), Cint, (DDCFileHandle, Cstring, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Cdouble), file, property, year, month, day, hour, minute, second, milliSecond)
end
function DDC_FilePropertyExists(file, property, exists)
ccall((:DDC_FilePropertyExists, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Cint}), file, property, exists)
end
function DDC_GetNumFileProperties(file, numProperties)
ccall((:DDC_GetNumFileProperties, libddc), Cint, (DDCFileHandle, Ptr{UInt32}), file, numProperties)
end
function DDC_GetFilePropertyNames(file, propertyNames, numPropertyNames)
ccall((:DDC_GetFilePropertyNames, libddc), Cint, (DDCFileHandle, Ptr{Cstring}, Csize_t), file, propertyNames, numPropertyNames)
end
function DDC_GetFilePropertyType(file, property, dataType)
ccall((:DDC_GetFilePropertyType, libddc), Cint, (DDCFileHandle, Cstring, Ptr{DDCDataType}), file, property, dataType)
end
function DDC_SetChannelGroupPropertyTimestampComponents(channelGroup, property, year, month, day, hour, minute, second, milliSecond)
ccall((:DDC_SetChannelGroupPropertyTimestampComponents, libddc), Cint, (DDCChannelGroupHandle, Cstring, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Cdouble), channelGroup, property, year, month, day, hour, minute, second, milliSecond)
end
function DDC_GetChannelGroupProperty(channelGroup, property, value, valueSizeInBytes)
ccall((:DDC_GetChannelGroupProperty, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Cvoid}, Csize_t), channelGroup, property, value, valueSizeInBytes)
end
function DDC_GetChannelGroupPropertyTimestampComponents(channelGroup, property, year, month, day, hour, minute, second, milliSecond, weekDay)
ccall((:DDC_GetChannelGroupPropertyTimestampComponents, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Ptr{UInt32}), channelGroup, property, year, month, day, hour, minute, second, milliSecond, weekDay)
end
function DDC_GetChannelGroupStringPropertyLength(channelGroup, property, length)
ccall((:DDC_GetChannelGroupStringPropertyLength, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{UInt32}), channelGroup, property, length)
end
function DDC_CreateChannelGroupPropertyTimestampComponents(channelGroup, property, year, month, day, hour, minute, second, milliSecond)
ccall((:DDC_CreateChannelGroupPropertyTimestampComponents, libddc), Cint, (DDCChannelGroupHandle, Cstring, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Cdouble), channelGroup, property, year, month, day, hour, minute, second, milliSecond)
end
function DDC_ChannelGroupPropertyExists(channelGroup, property, exists)
ccall((:DDC_ChannelGroupPropertyExists, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Cint}), channelGroup, property, exists)
end
function DDC_GetNumChannelGroupProperties(channelGroup, numProperties)
ccall((:DDC_GetNumChannelGroupProperties, libddc), Cint, (DDCChannelGroupHandle, Ptr{UInt32}), channelGroup, numProperties)
end
function DDC_GetChannelGroupPropertyNames(channelGroup, propertyNames, numPropertyNames)
ccall((:DDC_GetChannelGroupPropertyNames, libddc), Cint, (DDCChannelGroupHandle, Ptr{Cstring}, Csize_t), channelGroup, propertyNames, numPropertyNames)
end
function DDC_GetChannelGroupPropertyType(channelGroup, property, dataType)
ccall((:DDC_GetChannelGroupPropertyType, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{DDCDataType}), channelGroup, property, dataType)
end
function DDC_SetChannelPropertyTimestampComponents(channel, property, year, month, day, hour, minute, second, milliSecond)
ccall((:DDC_SetChannelPropertyTimestampComponents, libddc), Cint, (DDCChannelHandle, Cstring, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Cdouble), channel, property, year, month, day, hour, minute, second, milliSecond)
end
function DDC_GetChannelProperty(channel, property, value, valueSizeInBytes)
ccall((:DDC_GetChannelProperty, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Cvoid}, Csize_t), channel, property, value, valueSizeInBytes)
end
function DDC_GetChannelPropertyTimestampComponents(channel, property, year, month, day, hour, minute, second, milliSecond, weekDay)
ccall((:DDC_GetChannelPropertyTimestampComponents, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{UInt32}, Ptr{Cdouble}, Ptr{UInt32}), channel, property, year, month, day, hour, minute, second, milliSecond, weekDay)
end
function DDC_GetChannelStringPropertyLength(channel, property, length)
ccall((:DDC_GetChannelStringPropertyLength, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{UInt32}), channel, property, length)
end
function DDC_CreateChannelPropertyTimestampComponents(channel, property, year, month, day, hour, minute, second, milliSecond)
ccall((:DDC_CreateChannelPropertyTimestampComponents, libddc), Cint, (DDCChannelHandle, Cstring, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Cdouble), channel, property, year, month, day, hour, minute, second, milliSecond)
end
function DDC_ChannelPropertyExists(channel, property, exists)
ccall((:DDC_ChannelPropertyExists, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Cint}), channel, property, exists)
end
function DDC_GetNumChannelProperties(channel, numProperties)
ccall((:DDC_GetNumChannelProperties, libddc), Cint, (DDCChannelHandle, Ptr{UInt32}), channel, numProperties)
end
function DDC_GetChannelPropertyNames(channel, propertyNames, numPropertyNames)
ccall((:DDC_GetChannelPropertyNames, libddc), Cint, (DDCChannelHandle, Ptr{Cstring}, Csize_t), channel, propertyNames, numPropertyNames)
end
function DDC_GetChannelPropertyType(channel, property, dataType)
ccall((:DDC_GetChannelPropertyType, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{DDCDataType}), channel, property, dataType)
end
function DDC_GetLibraryErrorDescription(errorCode)
ccall((:DDC_GetLibraryErrorDescription, libddc), Cstring, (Cint,), errorCode)
end
function DDC_FreeMemory(memoryPointer)
ccall((:DDC_FreeMemory, libddc), Cvoid, (Ptr{Cvoid},), memoryPointer)
end
function DDC_SetDataValuesUInt8(channel, values, numValues)
ccall((:DDC_SetDataValuesUInt8, libddc), Cint, (DDCChannelHandle, Ptr{Cuchar}, Csize_t), channel, values, numValues)
end
function DDC_SetDataValuesInt16(channel, values, numValues)
ccall((:DDC_SetDataValuesInt16, libddc), Cint, (DDCChannelHandle, Ptr{Int16}, Csize_t), channel, values, numValues)
end
function DDC_SetDataValuesInt32(channel, values, numValues)
ccall((:DDC_SetDataValuesInt32, libddc), Cint, (DDCChannelHandle, Ptr{Clong}, Csize_t), channel, values, numValues)
end
function DDC_SetDataValuesFloat(channel, values, numValues)
ccall((:DDC_SetDataValuesFloat, libddc), Cint, (DDCChannelHandle, Ptr{Cfloat}, Csize_t), channel, values, numValues)
end
function DDC_SetDataValuesDouble(channel, values, numValues)
ccall((:DDC_SetDataValuesDouble, libddc), Cint, (DDCChannelHandle, Ptr{Cdouble}, Csize_t), channel, values, numValues)
end
function DDC_SetDataValuesString(channel, values, numValues)
ccall((:DDC_SetDataValuesString, libddc), Cint, (DDCChannelHandle, Ptr{Cstring}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesUInt8(channel, values, numValues)
ccall((:DDC_AppendDataValuesUInt8, libddc), Cint, (DDCChannelHandle, Ptr{Cuchar}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesInt16(channel, values, numValues)
ccall((:DDC_AppendDataValuesInt16, libddc), Cint, (DDCChannelHandle, Ptr{Int16}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesInt32(channel, values, numValues)
ccall((:DDC_AppendDataValuesInt32, libddc), Cint, (DDCChannelHandle, Ptr{Clong}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesFloat(channel, values, numValues)
ccall((:DDC_AppendDataValuesFloat, libddc), Cint, (DDCChannelHandle, Ptr{Cfloat}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesDouble(channel, values, numValues)
ccall((:DDC_AppendDataValuesDouble, libddc), Cint, (DDCChannelHandle, Ptr{Cdouble}, Csize_t), channel, values, numValues)
end
function DDC_AppendDataValuesString(channel, values, numValues)
ccall((:DDC_AppendDataValuesString, libddc), Cint, (DDCChannelHandle, Ptr{Cstring}, Csize_t), channel, values, numValues)
end
function DDC_ReplaceDataValuesUInt8(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValuesUInt8, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Cuchar}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_ReplaceDataValuesInt16(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValuesInt16, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Int16}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_ReplaceDataValuesInt32(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValuesInt32, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Clong}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_ReplaceDataValuesFloat(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValuesFloat, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Cfloat}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_ReplaceDataValuesDouble(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValuesDouble, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Cdouble}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_ReplaceDataValuesString(channel, indexOfFirstValueToReplace, values, numValues)
ccall((:DDC_ReplaceDataValuesString, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Cstring}, Csize_t), channel, indexOfFirstValueToReplace, values, numValues)
end
function DDC_GetDataValuesUInt8(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValuesUInt8, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Cuchar}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_GetDataValuesInt16(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValuesInt16, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Int16}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_GetDataValuesInt32(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValuesInt32, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Clong}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_GetDataValuesFloat(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValuesFloat, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Cfloat}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_GetDataValuesDouble(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValuesDouble, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Cdouble}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_GetDataValuesString(channel, indexOfFirstValueToGet, numValuesToGet, values)
ccall((:DDC_GetDataValuesString, libddc), Cint, (DDCChannelHandle, Csize_t, Csize_t, Ptr{Cstring}), channel, indexOfFirstValueToGet, numValuesToGet, values)
end
function DDC_CreateFilePropertyUInt8(file, property, value)
ccall((:DDC_CreateFilePropertyUInt8, libddc), Cint, (DDCFileHandle, Cstring, Cuchar), file, property, value)
end
function DDC_CreateFilePropertyInt16(file, property, value)
ccall((:DDC_CreateFilePropertyInt16, libddc), Cint, (DDCFileHandle, Cstring, Int16), file, property, value)
end
function DDC_CreateFilePropertyInt32(file, property, value)
ccall((:DDC_CreateFilePropertyInt32, libddc), Cint, (DDCFileHandle, Cstring, Clong), file, property, value)
end
function DDC_CreateFilePropertyFloat(file, property, value)
ccall((:DDC_CreateFilePropertyFloat, libddc), Cint, (DDCFileHandle, Cstring, Cfloat), file, property, value)
end
function DDC_CreateFilePropertyDouble(file, property, value)
ccall((:DDC_CreateFilePropertyDouble, libddc), Cint, (DDCFileHandle, Cstring, Cdouble), file, property, value)
end
function DDC_CreateFilePropertyString(file, property, value)
ccall((:DDC_CreateFilePropertyString, libddc), Cint, (DDCFileHandle, Cstring, Cstring), file, property, value)
end
function DDC_SetFilePropertyUInt8(file, property, value)
ccall((:DDC_SetFilePropertyUInt8, libddc), Cint, (DDCFileHandle, Cstring, Cuchar), file, property, value)
end
function DDC_SetFilePropertyInt16(file, property, value)
ccall((:DDC_SetFilePropertyInt16, libddc), Cint, (DDCFileHandle, Cstring, Int16), file, property, value)
end
function DDC_SetFilePropertyInt32(file, property, value)
ccall((:DDC_SetFilePropertyInt32, libddc), Cint, (DDCFileHandle, Cstring, Clong), file, property, value)
end
function DDC_SetFilePropertyFloat(file, property, value)
ccall((:DDC_SetFilePropertyFloat, libddc), Cint, (DDCFileHandle, Cstring, Cfloat), file, property, value)
end
function DDC_SetFilePropertyDouble(file, property, value)
ccall((:DDC_SetFilePropertyDouble, libddc), Cint, (DDCFileHandle, Cstring, Cdouble), file, property, value)
end
function DDC_SetFilePropertyString(file, property, value)
ccall((:DDC_SetFilePropertyString, libddc), Cint, (DDCFileHandle, Cstring, Cstring), file, property, value)
end
function DDC_GetFilePropertyUInt8(file, property, value)
ccall((:DDC_GetFilePropertyUInt8, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Cuchar}), file, property, value)
end
function DDC_GetFilePropertyInt16(file, property, value)
ccall((:DDC_GetFilePropertyInt16, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Int16}), file, property, value)
end
function DDC_GetFilePropertyInt32(file, property, value)
ccall((:DDC_GetFilePropertyInt32, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Clong}), file, property, value)
end
function DDC_GetFilePropertyFloat(file, property, value)
ccall((:DDC_GetFilePropertyFloat, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Cfloat}), file, property, value)
end
function DDC_GetFilePropertyDouble(file, property, value)
ccall((:DDC_GetFilePropertyDouble, libddc), Cint, (DDCFileHandle, Cstring, Ptr{Cdouble}), file, property, value)
end
function DDC_GetFilePropertyString(file, property, value, valueSize)
ccall((:DDC_GetFilePropertyString, libddc), Cint, (DDCFileHandle, Cstring, Ptr{UInt8}, Csize_t), file, property, value, valueSize)
end
function DDC_CreateChannelGroupPropertyUInt8(channelGroup, property, value)
ccall((:DDC_CreateChannelGroupPropertyUInt8, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cuchar), channelGroup, property, value)
end
function DDC_CreateChannelGroupPropertyInt16(channelGroup, property, value)
ccall((:DDC_CreateChannelGroupPropertyInt16, libddc), Cint, (DDCChannelGroupHandle, Cstring, Int16), channelGroup, property, value)
end
function DDC_CreateChannelGroupPropertyInt32(channelGroup, property, value)
ccall((:DDC_CreateChannelGroupPropertyInt32, libddc), Cint, (DDCChannelGroupHandle, Cstring, Clong), channelGroup, property, value)
end
function DDC_CreateChannelGroupPropertyFloat(channelGroup, property, value)
ccall((:DDC_CreateChannelGroupPropertyFloat, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cfloat), channelGroup, property, value)
end
function DDC_CreateChannelGroupPropertyDouble(channelGroup, property, value)
ccall((:DDC_CreateChannelGroupPropertyDouble, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cdouble), channelGroup, property, value)
end
function DDC_CreateChannelGroupPropertyString(channelGroup, property, value)
ccall((:DDC_CreateChannelGroupPropertyString, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cstring), channelGroup, property, value)
end
function DDC_SetChannelGroupPropertyUInt8(channelGroup, property, value)
ccall((:DDC_SetChannelGroupPropertyUInt8, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cuchar), channelGroup, property, value)
end
function DDC_SetChannelGroupPropertyInt16(channelGroup, property, value)
ccall((:DDC_SetChannelGroupPropertyInt16, libddc), Cint, (DDCChannelGroupHandle, Cstring, Int16), channelGroup, property, value)
end
function DDC_SetChannelGroupPropertyInt32(channelGroup, property, value)
ccall((:DDC_SetChannelGroupPropertyInt32, libddc), Cint, (DDCChannelGroupHandle, Cstring, Clong), channelGroup, property, value)
end
function DDC_SetChannelGroupPropertyFloat(channelGroup, property, value)
ccall((:DDC_SetChannelGroupPropertyFloat, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cfloat), channelGroup, property, value)
end
function DDC_SetChannelGroupPropertyDouble(channelGroup, property, value)
ccall((:DDC_SetChannelGroupPropertyDouble, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cdouble), channelGroup, property, value)
end
function DDC_SetChannelGroupPropertyString(channelGroup, property, value)
ccall((:DDC_SetChannelGroupPropertyString, libddc), Cint, (DDCChannelGroupHandle, Cstring, Cstring), channelGroup, property, value)
end
function DDC_GetChannelGroupPropertyUInt8(channelGroup, property, value)
ccall((:DDC_GetChannelGroupPropertyUInt8, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Cuchar}), channelGroup, property, value)
end
function DDC_GetChannelGroupPropertyInt16(channelGroup, property, value)
ccall((:DDC_GetChannelGroupPropertyInt16, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Int16}), channelGroup, property, value)
end
function DDC_GetChannelGroupPropertyInt32(channelGroup, property, value)
ccall((:DDC_GetChannelGroupPropertyInt32, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Clong}), channelGroup, property, value)
end
function DDC_GetChannelGroupPropertyFloat(channelGroup, property, value)
ccall((:DDC_GetChannelGroupPropertyFloat, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Cfloat}), channelGroup, property, value)
end
function DDC_GetChannelGroupPropertyDouble(channelGroup, property, value)
ccall((:DDC_GetChannelGroupPropertyDouble, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{Cdouble}), channelGroup, property, value)
end
function DDC_GetChannelGroupPropertyString(channelGroup, property, value, valueSize)
ccall((:DDC_GetChannelGroupPropertyString, libddc), Cint, (DDCChannelGroupHandle, Cstring, Ptr{UInt8}, Csize_t), channelGroup, property, value, valueSize)
end
function DDC_CreateChannelPropertyUInt8(channel, property, value)
ccall((:DDC_CreateChannelPropertyUInt8, libddc), Cint, (DDCChannelHandle, Cstring, Cuchar), channel, property, value)
end
function DDC_CreateChannelPropertyInt16(channel, property, value)
ccall((:DDC_CreateChannelPropertyInt16, libddc), Cint, (DDCChannelHandle, Cstring, Int16), channel, property, value)
end
function DDC_CreateChannelPropertyInt32(channel, property, value)
ccall((:DDC_CreateChannelPropertyInt32, libddc), Cint, (DDCChannelHandle, Cstring, Clong), channel, property, value)
end
function DDC_CreateChannelPropertyFloat(channel, property, value)
ccall((:DDC_CreateChannelPropertyFloat, libddc), Cint, (DDCChannelHandle, Cstring, Cfloat), channel, property, value)
end
function DDC_CreateChannelPropertyDouble(channel, property, value)
ccall((:DDC_CreateChannelPropertyDouble, libddc), Cint, (DDCChannelHandle, Cstring, Cdouble), channel, property, value)
end
function DDC_CreateChannelPropertyString(channel, property, value)
ccall((:DDC_CreateChannelPropertyString, libddc), Cint, (DDCChannelHandle, Cstring, Cstring), channel, property, value)
end
function DDC_SetChannelPropertyUInt8(channel, property, value)
ccall((:DDC_SetChannelPropertyUInt8, libddc), Cint, (DDCChannelHandle, Cstring, Cuchar), channel, property, value)
end
function DDC_SetChannelPropertyInt16(channel, property, value)
ccall((:DDC_SetChannelPropertyInt16, libddc), Cint, (DDCChannelHandle, Cstring, Int16), channel, property, value)
end
function DDC_SetChannelPropertyInt32(channel, property, value)
ccall((:DDC_SetChannelPropertyInt32, libddc), Cint, (DDCChannelHandle, Cstring, Clong), channel, property, value)
end
function DDC_SetChannelPropertyFloat(channel, property, value)
ccall((:DDC_SetChannelPropertyFloat, libddc), Cint, (DDCChannelHandle, Cstring, Cfloat), channel, property, value)
end
function DDC_SetChannelPropertyDouble(channel, property, value)
ccall((:DDC_SetChannelPropertyDouble, libddc), Cint, (DDCChannelHandle, Cstring, Cdouble), channel, property, value)
end
function DDC_SetChannelPropertyString(channel, property, value)
ccall((:DDC_SetChannelPropertyString, libddc), Cint, (DDCChannelHandle, Cstring, Cstring), channel, property, value)
end
function DDC_GetChannelPropertyUInt8(channel, property, value)
ccall((:DDC_GetChannelPropertyUInt8, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Cuchar}), channel, property, value)
end
function DDC_GetChannelPropertyInt16(channel, property, value)
ccall((:DDC_GetChannelPropertyInt16, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Int16}), channel, property, value)
end
function DDC_GetChannelPropertyInt32(channel, property, value)
ccall((:DDC_GetChannelPropertyInt32, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Clong}), channel, property, value)
end
function DDC_GetChannelPropertyFloat(channel, property, value)
ccall((:DDC_GetChannelPropertyFloat, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Cfloat}), channel, property, value)
end
function DDC_GetChannelPropertyDouble(channel, property, value)
ccall((:DDC_GetChannelPropertyDouble, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{Cdouble}), channel, property, value)
end
function DDC_GetChannelPropertyString(channel, property, value, valueSize)
ccall((:DDC_GetChannelPropertyString, libddc), Cint, (DDCChannelHandle, Cstring, Ptr{UInt8}, Csize_t), channel, property, value, valueSize)
end
function DDC_GetFilePropertyNameFromIndex(file, index, propertyName, propertyNameSize)
ccall((:DDC_GetFilePropertyNameFromIndex, libddc), Cint, (DDCFileHandle, Csize_t, Ptr{UInt8}, Csize_t), file, index, propertyName, propertyNameSize)
end
function DDC_GetFilePropertyNameLengthFromIndex(file, index, propertyNameLength)
ccall((:DDC_GetFilePropertyNameLengthFromIndex, libddc), Cint, (DDCFileHandle, Csize_t, Ptr{Csize_t}), file, index, propertyNameLength)
end
function DDC_GetChannelGroupPropertyNameFromIndex(channelGroup, index, propertyName, propertyNameSize)
ccall((:DDC_GetChannelGroupPropertyNameFromIndex, libddc), Cint, (DDCChannelGroupHandle, Csize_t, Ptr{UInt8}, Csize_t), channelGroup, index, propertyName, propertyNameSize)
end
function DDC_GetChannelGroupPropertyNameLengthFromIndex(channelGroup, index, propertyNameLength)
ccall((:DDC_GetChannelGroupPropertyNameLengthFromIndex, libddc), Cint, (DDCChannelGroupHandle, Csize_t, Ptr{Csize_t}), channelGroup, index, propertyNameLength)
end
function DDC_GetChannelPropertyNameFromIndex(channel, index, propertyName, propertyNameSize)
ccall((:DDC_GetChannelPropertyNameFromIndex, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{UInt8}, Csize_t), channel, index, propertyName, propertyNameSize)
end
function DDC_GetChannelPropertyNameLengthFromIndex(channel, index, propertyNameLength)
ccall((:DDC_GetChannelPropertyNameLengthFromIndex, libddc), Cint, (DDCChannelHandle, Csize_t, Ptr{Csize_t}), channel, index, propertyNameLength)
end