nilibddc.h 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. /*============================================================================*/
  2. /* TDM DLL */
  3. /*----------------------------------------------------------------------------*/
  4. /* Copyright (c) National Instruments 2004-2017. All Rights Reserved. */
  5. /*----------------------------------------------------------------------------*/
  6. /* */
  7. /* Title: nilibddc.h */
  8. /* Purpose: Include file for DIAdem Connectivity Library */
  9. /* */
  10. /*============================================================================*/
  11. #ifndef _NILIBDDC_H
  12. #define _NILIBDDC_H
  13. #include <stdarg.h>
  14. #include <stddef.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. //*****************************************************************************
  19. // Typedefs, enums, constants, etc.
  20. //*****************************************************************************
  21. #ifdef WIN32
  22. #pragma pack(push)
  23. #pragma pack(4)
  24. #endif
  25. typedef struct _DDCFile DDCFile;
  26. typedef struct _DDCChannelGroup DDCChannelGroup;
  27. typedef struct _DDCChannel DDCChannel;
  28. typedef DDCFile* DDCFileHandle;
  29. typedef DDCChannelGroup* DDCChannelGroupHandle;
  30. typedef DDCChannel* DDCChannelHandle;
  31. #ifdef WIN32
  32. #pragma pack(pop)
  33. #endif
  34. typedef enum
  35. {
  36. DDC_UInt8 = 5, // unsigned char
  37. DDC_Int16 = 2, // short
  38. DDC_Int32 = 3, // int
  39. DDC_Float = 9, // float
  40. DDC_Double = 10, // double
  41. DDC_String = 23, // string
  42. DDC_Timestamp = 30, // timestamp (Year/Month/Day/Hour/Minute/Second/Millisecond components)
  43. } DDCDataType;
  44. // File type constants
  45. #define DDC_FILE_TYPE_TDM "TDM"
  46. #define DDC_FILE_TYPE_TDM_STREAMING "TDMS"
  47. // File property constants
  48. #define DDC_FILE_NAME "name" // Name
  49. #define DDC_FILE_DESCRIPTION "description" // Description
  50. #define DDC_FILE_TITLE "title" // Title
  51. #define DDC_FILE_AUTHOR "author" // Author
  52. #define DDC_FILE_DATETIME "datetime" // Date/Time
  53. // ChannelGroup property constants
  54. #define DDC_CHANNELGROUP_NAME "name" // Name
  55. #define DDC_CHANNELGROUP_DESCRIPTION "description" // Description
  56. // Channel property constants
  57. #define DDC_CHANNEL_NAME "name" // Name
  58. #define DDC_CHANNEL_DESCRIPTION "description" // Description
  59. #define DDC_CHANNEL_UNIT_STRING "unit_string" // Unit String
  60. #define DDC_CHANNEL_MINIMUM "minimum" // Minimum
  61. #define DDC_CHANNEL_MAXIMUM "maximum" // Maximum
  62. // Error codes
  63. typedef enum
  64. {
  65. DDC_NoError = 0, // No error
  66. DDC_ErrorBegin = -6201, //
  67. DDC_OutOfMemory = -6201, // The library could not allocate memory.
  68. DDC_InvalidArgument = -6202, // An invalid argument was passed to the library.
  69. DDC_InvalidDataType = -6203, // An invalid data type was passed to the library.
  70. DDC_UnexpectedError = -6204, // An unexpected error occurred in the library.
  71. DDC_UsiCouldNotBeLoaded = -6205, // The USI engine could not be loaded.
  72. DDC_InvalidFileHandle = -6206, // An invalid file handle was passed to the library.
  73. DDC_InvalidChannelGroupHandle = -6207, // An invalid channel group handle was passed to the library.
  74. DDC_InvalidChannelHandle = -6208, // An invalid channel handle was passed to the library.
  75. DDC_FileDoesNotExist = -6209, // The file passed to the library does not exist.
  76. DDC_CannotWriteToReadOnlyFile = -6210, // The file passed to the library is read only and cannot be modified.
  77. DDC_StorageCouldNotBeOpened = -6211, // The storage could not be opened.
  78. DDC_FileAlreadyExists = -6212, // The file passed to the library already exists and cannot be created.
  79. DDC_PropertyDoesNotExist = -6213, // The property passed to the library does not exist.
  80. DDC_PropertyDoesNotContainData = -6214, // The property passed to the library does not have a value.
  81. DDC_PropertyIsNotAScalar = -6215, // The value of the property passed to the library is an array and not a scalar.
  82. DDC_DataObjectTypeNotFound = -6216, // The object type passed to the library does not exist.
  83. DDC_NotImplemented = -6217, // The current implementation does not support this operation.
  84. DDC_CouldNotSaveFile = -6218, // The file could not be saved.
  85. DDC_MaximumNumberOfDataValuesExceeded = -6219,
  86. // The request would exceed the maximum number of data values for a channel.
  87. DDC_InvalidChannelName = -6220, // An invalid channel name was passed to the library.
  88. DDC_DuplicateChannelName = -6221, // The channel group already contains a channel with this name.
  89. DDC_DataTypeNotSupported = -6222, // The current implementation does not support this data type.
  90. DDC_FileAccessDenied = -6224, // File access denied.
  91. DDC_InvalidTimeValue = -6225, // The specified time value is invalid.
  92. DDC_ReplaceNotSupportedForSavedTDMSData = -6226,
  93. // The replace operation is not supported on data that has already been saved to a TDM Streaming file.
  94. DDC_PropertyDataTypeMismatch = -6227, // The data type of the property does not match the expected data type.
  95. DDC_ChannelDataTypeMismatch = -6228, // The data type of the channel does not match the expected data type.
  96. DDC_ErrorEnd = -6228, //
  97. DDC_ErrorForceSizeTo32Bits = 0xffffffff //
  98. } DDCError;
  99. //*****************************************************************************
  100. /// -> Object Management
  101. //*****************************************************************************
  102. int __stdcall DDC_CreateFile(const char* filePath,
  103. const char* fileType,
  104. const char* name,
  105. const char* description,
  106. const char* title,
  107. const char* author,
  108. DDCFileHandle* file);
  109. int __stdcall DDC_AddChannelGroup(DDCFileHandle file,
  110. const char* name,
  111. const char* description,
  112. DDCChannelGroupHandle* channelGroup);
  113. int __stdcall DDC_AddChannel(DDCChannelGroupHandle channelGroup,
  114. DDCDataType dataType,
  115. const char* name,
  116. const char* description,
  117. const char* unitString,
  118. DDCChannelHandle* channel);
  119. int __stdcall DDC_SaveFile(DDCFileHandle file);
  120. int __stdcall DDC_CloseFile(DDCFileHandle file);
  121. int __stdcall DDC_OpenFileEx(const char* filePath,
  122. const char* fileType,
  123. int readOnly,
  124. DDCFileHandle* file);
  125. //*****************************************************************************
  126. /// -> Advanced
  127. //*****************************************************************************
  128. int __stdcall DDC_RemoveChannelGroup(DDCChannelGroupHandle channelGroup);
  129. int __stdcall DDC_RemoveChannel(DDCChannelHandle channel);
  130. int __stdcall DDC_CloseChannelGroup(DDCChannelGroupHandle channelGroup);
  131. int __stdcall DDC_CloseChannel(DDCChannelHandle channel);
  132. //*****************************************************************************
  133. /// <- Advanced
  134. //*****************************************************************************
  135. //*****************************************************************************
  136. /// -> Obsolete
  137. //*****************************************************************************
  138. int __stdcall DDC_OpenFile(const char* filePath,
  139. const char* fileType,
  140. DDCFileHandle* file);
  141. //*****************************************************************************
  142. /// <- Obsolete
  143. //*****************************************************************************
  144. //*****************************************************************************
  145. /// <- Object Management
  146. //*****************************************************************************
  147. //*****************************************************************************
  148. /// -> Data Storage
  149. //*****************************************************************************
  150. int __stdcall DDC_SetDataValues(DDCChannelHandle channel,
  151. void* values,
  152. size_t numValues);
  153. int __stdcall DDC_SetDataValuesTimestampComponents(DDCChannelHandle channel,
  154. unsigned int year[],
  155. unsigned int month[],
  156. unsigned int day[],
  157. unsigned int hour[],
  158. unsigned int minute[],
  159. unsigned int second[],
  160. double milliSecond[],
  161. size_t numValues);
  162. int __stdcall DDC_AppendDataValues(DDCChannelHandle channel,
  163. void* values,
  164. size_t numValues);
  165. int __stdcall DDC_AppendDataValuesTimestampComponents(DDCChannelHandle channel,
  166. unsigned int year[],
  167. unsigned int month[],
  168. unsigned int day[],
  169. unsigned int hour[],
  170. unsigned int minute[],
  171. unsigned int second[],
  172. double milliSecond[],
  173. size_t numValues);
  174. int __stdcall DDC_ReplaceDataValues(DDCChannelHandle channel,
  175. size_t indexOfFirstValueToReplace,
  176. void* values,
  177. size_t numValues);
  178. int __stdcall DDC_ReplaceDataValuesTimestampComponents(DDCChannelHandle channel,
  179. size_t indexOfFirstValueToReplace,
  180. unsigned int year[],
  181. unsigned int month[],
  182. unsigned int day[],
  183. unsigned int hour[],
  184. unsigned int minute[],
  185. unsigned int second[],
  186. double milliSecond[],
  187. size_t numValues);
  188. //*****************************************************************************
  189. /// <- Data Storage
  190. //*****************************************************************************
  191. //*****************************************************************************
  192. /// -> Data Retrieval
  193. //*****************************************************************************
  194. //*****************************************************************************
  195. /// -> Enumeration
  196. //*****************************************************************************
  197. int __stdcall DDC_GetNumChannelGroups(DDCFileHandle file,
  198. unsigned int* numChannelGroups);
  199. int __stdcall DDC_GetChannelGroups(DDCFileHandle file,
  200. DDCChannelGroupHandle channelGroupsBuf[],
  201. size_t numChannelGroups);
  202. int __stdcall DDC_GetNumChannels(DDCChannelGroupHandle channelGroup,
  203. unsigned int* numChannels);
  204. int __stdcall DDC_GetChannels(DDCChannelGroupHandle channelGroup,
  205. DDCChannelHandle channelsBuf[],
  206. size_t numChannels);
  207. //*****************************************************************************
  208. /// <- Enumeration
  209. //*****************************************************************************
  210. int __stdcall DDC_GetNumDataValues(DDCChannelHandle channel,
  211. unsigned __int64* numValues);
  212. int __stdcall DDC_GetDataValues(DDCChannelHandle channel,
  213. size_t indexOfFirstValueToGet,
  214. size_t numValuesToGet,
  215. void* values);
  216. int __stdcall DDC_GetDataValuesTimestampComponents(DDCChannelHandle channel,
  217. size_t indexOfFirstValueToGet,
  218. size_t numValuesToGet,
  219. unsigned int year[],
  220. unsigned int month[],
  221. unsigned int day[],
  222. unsigned int hour[],
  223. unsigned int minute[],
  224. unsigned int second[],
  225. double milliSecond[],
  226. unsigned int weekDay[]);
  227. int __stdcall DDC_GetDataType(DDCChannelHandle channel,
  228. DDCDataType* dataType);
  229. //*****************************************************************************
  230. /// <- Data Retrieval
  231. //*****************************************************************************
  232. //*****************************************************************************
  233. /// -> Properties
  234. //*****************************************************************************
  235. //*****************************************************************************
  236. /// -> File
  237. //*****************************************************************************
  238. int __cdecl DDC_SetFileProperty(DDCFileHandle file,
  239. const char* property,
  240. ...);
  241. int __stdcall DDC_SetFilePropertyTimestampComponents(DDCFileHandle file,
  242. const char* property,
  243. unsigned int year,
  244. unsigned int month,
  245. unsigned int day,
  246. unsigned int hour,
  247. unsigned int minute,
  248. unsigned int second,
  249. double milliSecond);
  250. int __stdcall DDC_SetFilePropertyV(DDCFileHandle file,
  251. const char* property,
  252. va_list args);
  253. int __stdcall DDC_GetFileProperty(DDCFileHandle file,
  254. const char* property,
  255. void* value,
  256. size_t valueSizeInBytes);
  257. int __stdcall DDC_GetFilePropertyTimestampComponents(DDCFileHandle file,
  258. const char* property,
  259. unsigned int* year,
  260. unsigned int* month,
  261. unsigned int* day,
  262. unsigned int* hour,
  263. unsigned int* minute,
  264. unsigned int* second,
  265. double* milliSecond,
  266. unsigned int* weekDay);
  267. int __stdcall DDC_GetFileStringPropertyLength(DDCFileHandle file,
  268. const char* property,
  269. unsigned int* length);
  270. int __cdecl DDC_CreateFileProperty(DDCFileHandle file,
  271. const char* property,
  272. DDCDataType dataType,
  273. ...);
  274. int __stdcall DDC_CreateFilePropertyTimestampComponents(DDCFileHandle file,
  275. const char* property,
  276. unsigned int year,
  277. unsigned int month,
  278. unsigned int day,
  279. unsigned int hour,
  280. unsigned int minute,
  281. unsigned int second,
  282. double milliSecond);
  283. int __stdcall DDC_CreateFilePropertyV(DDCFileHandle file,
  284. const char* property,
  285. DDCDataType dataType,
  286. va_list args);
  287. int __stdcall DDC_FilePropertyExists(DDCFileHandle file,
  288. const char* property,
  289. int* exists);
  290. int __stdcall DDC_GetNumFileProperties(DDCFileHandle file,
  291. unsigned int* numProperties);
  292. int __stdcall DDC_GetFilePropertyNames(DDCFileHandle file,
  293. char** propertyNames,
  294. size_t numPropertyNames);
  295. int __stdcall DDC_GetFilePropertyType(DDCFileHandle file,
  296. const char* property,
  297. DDCDataType* dataType);
  298. //*****************************************************************************
  299. /// <- File
  300. //*****************************************************************************
  301. //*****************************************************************************
  302. /// -> Channel Group
  303. //*****************************************************************************
  304. int __cdecl DDC_SetChannelGroupProperty(DDCChannelGroupHandle channelGroup,
  305. const char* property,
  306. ...);
  307. int __stdcall DDC_SetChannelGroupPropertyTimestampComponents(DDCChannelGroupHandle channelGroup,
  308. const char* property,
  309. unsigned int year,
  310. unsigned int month,
  311. unsigned int day,
  312. unsigned int hour,
  313. unsigned int minute,
  314. unsigned int second,
  315. double milliSecond);
  316. int __stdcall DDC_SetChannelGroupPropertyV(DDCChannelGroupHandle channelGroup,
  317. const char* property,
  318. va_list args);
  319. int __stdcall DDC_GetChannelGroupProperty(DDCChannelGroupHandle channelGroup,
  320. const char* property,
  321. void* value,
  322. size_t valueSizeInBytes);
  323. int __stdcall DDC_GetChannelGroupPropertyTimestampComponents(DDCChannelGroupHandle channelGroup,
  324. const char* property,
  325. unsigned int* year,
  326. unsigned int* month,
  327. unsigned int* day,
  328. unsigned int* hour,
  329. unsigned int* minute,
  330. unsigned int* second,
  331. double* milliSecond,
  332. unsigned int* weekDay);
  333. int __stdcall DDC_GetChannelGroupStringPropertyLength(DDCChannelGroupHandle channelGroup,
  334. const char* property,
  335. unsigned int* length);
  336. int __cdecl DDC_CreateChannelGroupProperty(DDCChannelGroupHandle channelGroup,
  337. const char* property,
  338. DDCDataType dataType,
  339. ...);
  340. int __stdcall DDC_CreateChannelGroupPropertyTimestampComponents(DDCChannelGroupHandle channelGroup,
  341. const char* property,
  342. unsigned int year,
  343. unsigned int month,
  344. unsigned int day,
  345. unsigned int hour,
  346. unsigned int minute,
  347. unsigned int second,
  348. double milliSecond);
  349. int __stdcall DDC_CreateChannelGroupPropertyV(DDCChannelGroupHandle channelGroup,
  350. const char* property,
  351. DDCDataType dataType,
  352. va_list args);
  353. int __stdcall DDC_ChannelGroupPropertyExists(DDCChannelGroupHandle channelGroup,
  354. const char* property,
  355. int* exists);
  356. int __stdcall DDC_GetNumChannelGroupProperties(DDCChannelGroupHandle channelGroup,
  357. unsigned int* numProperties);
  358. int __stdcall DDC_GetChannelGroupPropertyNames(DDCChannelGroupHandle channelGroup,
  359. char** propertyNames,
  360. size_t numPropertyNames);
  361. int __stdcall DDC_GetChannelGroupPropertyType(DDCChannelGroupHandle channelGroup,
  362. const char* property,
  363. DDCDataType* dataType);
  364. //*****************************************************************************
  365. /// <- Channel Group
  366. //*****************************************************************************
  367. //*****************************************************************************
  368. /// -> Channel
  369. //*****************************************************************************
  370. int __cdecl DDC_SetChannelProperty(DDCChannelHandle channel,
  371. const char* property,
  372. ...);
  373. int __stdcall DDC_SetChannelPropertyTimestampComponents(DDCChannelHandle channel,
  374. const char* property,
  375. unsigned int year,
  376. unsigned int month,
  377. unsigned int day,
  378. unsigned int hour,
  379. unsigned int minute,
  380. unsigned int second,
  381. double milliSecond);
  382. int __stdcall DDC_SetChannelPropertyV(DDCChannelHandle channel,
  383. const char* property,
  384. va_list args);
  385. int __stdcall DDC_GetChannelProperty(DDCChannelHandle channel,
  386. const char* property,
  387. void* value,
  388. size_t valueSizeInBytes);
  389. int __stdcall DDC_GetChannelPropertyTimestampComponents(DDCChannelHandle channel,
  390. const char* property,
  391. unsigned int* year,
  392. unsigned int* month,
  393. unsigned int* day,
  394. unsigned int* hour,
  395. unsigned int* minute,
  396. unsigned int* second,
  397. double* milliSecond,
  398. unsigned int* weekDay);
  399. int __stdcall DDC_GetChannelStringPropertyLength(DDCChannelHandle channel,
  400. const char* property,
  401. unsigned int* length);
  402. int __cdecl DDC_CreateChannelProperty(DDCChannelHandle channel,
  403. const char* property,
  404. DDCDataType dataType,
  405. ...);
  406. int __stdcall DDC_CreateChannelPropertyTimestampComponents(DDCChannelHandle channel,
  407. const char* property,
  408. unsigned int year,
  409. unsigned int month,
  410. unsigned int day,
  411. unsigned int hour,
  412. unsigned int minute,
  413. unsigned int second,
  414. double milliSecond);
  415. int __stdcall DDC_CreateChannelPropertyV(DDCChannelHandle channel,
  416. const char* property,
  417. DDCDataType dataType,
  418. va_list args);
  419. int __stdcall DDC_ChannelPropertyExists(DDCChannelHandle channel,
  420. const char* property,
  421. int* exists);
  422. int __stdcall DDC_GetNumChannelProperties(DDCChannelHandle channel,
  423. unsigned int* numProperties);
  424. int __stdcall DDC_GetChannelPropertyNames(DDCChannelHandle channel,
  425. char** propertyNames,
  426. size_t numPropertyNames);
  427. int __stdcall DDC_GetChannelPropertyType(DDCChannelHandle channel,
  428. const char* property,
  429. DDCDataType* dataType);
  430. //*****************************************************************************
  431. /// <- Channel
  432. //*****************************************************************************
  433. //*****************************************************************************
  434. /// <- Properties
  435. //*****************************************************************************
  436. //*****************************************************************************
  437. /// -> Miscellaneous
  438. //*****************************************************************************
  439. const char* __stdcall DDC_GetLibraryErrorDescription(int errorCode);
  440. void __stdcall DDC_FreeMemory(void* memoryPointer);
  441. //*****************************************************************************
  442. /// <- Miscellaneous
  443. //*****************************************************************************
  444. //*****************************************************************************
  445. /// -> Separate type-safe functions for non-C users
  446. //*****************************************************************************
  447. int __stdcall DDC_SetDataValuesUInt8(DDCChannelHandle channel,
  448. unsigned char values[],
  449. size_t numValues);
  450. int __stdcall DDC_SetDataValuesInt16(DDCChannelHandle channel,
  451. short values[],
  452. size_t numValues);
  453. int __stdcall DDC_SetDataValuesInt32(DDCChannelHandle channel,
  454. long values[],
  455. size_t numValues);
  456. int __stdcall DDC_SetDataValuesFloat(DDCChannelHandle channel,
  457. float values[],
  458. size_t numValues);
  459. int __stdcall DDC_SetDataValuesDouble(DDCChannelHandle channel,
  460. double values[],
  461. size_t numValues);
  462. int __stdcall DDC_SetDataValuesString(DDCChannelHandle channel,
  463. const char* values[],
  464. size_t numValues);
  465. int __stdcall DDC_AppendDataValuesUInt8(DDCChannelHandle channel,
  466. unsigned char values[],
  467. size_t numValues);
  468. int __stdcall DDC_AppendDataValuesInt16(DDCChannelHandle channel,
  469. short values[],
  470. size_t numValues);
  471. int __stdcall DDC_AppendDataValuesInt32(DDCChannelHandle channel,
  472. long values[],
  473. size_t numValues);
  474. int __stdcall DDC_AppendDataValuesFloat(DDCChannelHandle channel,
  475. float values[],
  476. size_t numValues);
  477. int __stdcall DDC_AppendDataValuesDouble(DDCChannelHandle channel,
  478. double values[],
  479. size_t numValues);
  480. int __stdcall DDC_AppendDataValuesString(DDCChannelHandle channel,
  481. const char* values[],
  482. size_t numValues);
  483. int __stdcall DDC_ReplaceDataValuesUInt8(DDCChannelHandle channel,
  484. size_t indexOfFirstValueToReplace,
  485. unsigned char values[],
  486. size_t numValues);
  487. int __stdcall DDC_ReplaceDataValuesInt16(DDCChannelHandle channel,
  488. size_t indexOfFirstValueToReplace,
  489. short values[],
  490. size_t numValues);
  491. int __stdcall DDC_ReplaceDataValuesInt32(DDCChannelHandle channel,
  492. size_t indexOfFirstValueToReplace,
  493. long values[],
  494. size_t numValues);
  495. int __stdcall DDC_ReplaceDataValuesFloat(DDCChannelHandle channel,
  496. size_t indexOfFirstValueToReplace,
  497. float values[],
  498. size_t numValues);
  499. int __stdcall DDC_ReplaceDataValuesDouble(DDCChannelHandle channel,
  500. size_t indexOfFirstValueToReplace,
  501. double values[],
  502. size_t numValues);
  503. int __stdcall DDC_ReplaceDataValuesString(DDCChannelHandle channel,
  504. size_t indexOfFirstValueToReplace,
  505. const char* values[],
  506. size_t numValues);
  507. int __stdcall DDC_GetDataValuesUInt8(DDCChannelHandle channel,
  508. size_t indexOfFirstValueToGet,
  509. size_t numValuesToGet,
  510. unsigned char values[]);
  511. int __stdcall DDC_GetDataValuesInt16(DDCChannelHandle channel,
  512. size_t indexOfFirstValueToGet,
  513. size_t numValuesToGet,
  514. short values[]);
  515. int __stdcall DDC_GetDataValuesInt32(DDCChannelHandle channel,
  516. size_t indexOfFirstValueToGet,
  517. size_t numValuesToGet,
  518. long values[]);
  519. int __stdcall DDC_GetDataValuesFloat(DDCChannelHandle channel,
  520. size_t indexOfFirstValueToGet,
  521. size_t numValuesToGet,
  522. float values[]);
  523. int __stdcall DDC_GetDataValuesDouble(DDCChannelHandle channel,
  524. size_t indexOfFirstValueToGet,
  525. size_t numValuesToGet,
  526. double values[]);
  527. int __stdcall DDC_GetDataValuesString(DDCChannelHandle channel,
  528. size_t indexOfFirstValueToGet,
  529. size_t numValuesToGet,
  530. char* values[]);
  531. int __stdcall DDC_CreateFilePropertyUInt8(DDCFileHandle file,
  532. const char* property,
  533. unsigned char value);
  534. int __stdcall DDC_CreateFilePropertyInt16(DDCFileHandle file,
  535. const char* property,
  536. short value);
  537. int __stdcall DDC_CreateFilePropertyInt32(DDCFileHandle file,
  538. const char* property,
  539. long value);
  540. int __stdcall DDC_CreateFilePropertyFloat(DDCFileHandle file,
  541. const char* property,
  542. float value);
  543. int __stdcall DDC_CreateFilePropertyDouble(DDCFileHandle file,
  544. const char* property,
  545. double value);
  546. int __stdcall DDC_CreateFilePropertyString(DDCFileHandle file,
  547. const char* property,
  548. const char* value);
  549. int __stdcall DDC_SetFilePropertyUInt8(DDCFileHandle file,
  550. const char* property,
  551. unsigned char value);
  552. int __stdcall DDC_SetFilePropertyInt16(DDCFileHandle file,
  553. const char* property,
  554. short value);
  555. int __stdcall DDC_SetFilePropertyInt32(DDCFileHandle file,
  556. const char* property,
  557. long value);
  558. int __stdcall DDC_SetFilePropertyFloat(DDCFileHandle file,
  559. const char* property,
  560. float value);
  561. int __stdcall DDC_SetFilePropertyDouble(DDCFileHandle file,
  562. const char* property,
  563. double value);
  564. int __stdcall DDC_SetFilePropertyString(DDCFileHandle file,
  565. const char* property,
  566. const char* value);
  567. int __stdcall DDC_GetFilePropertyUInt8(DDCFileHandle file,
  568. const char* property,
  569. unsigned char* value);
  570. int __stdcall DDC_GetFilePropertyInt16(DDCFileHandle file,
  571. const char* property,
  572. short* value);
  573. int __stdcall DDC_GetFilePropertyInt32(DDCFileHandle file,
  574. const char* property,
  575. long* value);
  576. int __stdcall DDC_GetFilePropertyFloat(DDCFileHandle file,
  577. const char* property,
  578. float* value);
  579. int __stdcall DDC_GetFilePropertyDouble(DDCFileHandle file,
  580. const char* property,
  581. double* value);
  582. int __stdcall DDC_GetFilePropertyString(DDCFileHandle file,
  583. const char* property,
  584. char value[],
  585. size_t valueSize);
  586. int __stdcall DDC_CreateChannelGroupPropertyUInt8(DDCChannelGroupHandle channelGroup,
  587. const char* property,
  588. unsigned char value);
  589. int __stdcall DDC_CreateChannelGroupPropertyInt16(DDCChannelGroupHandle channelGroup,
  590. const char* property,
  591. short value);
  592. int __stdcall DDC_CreateChannelGroupPropertyInt32(DDCChannelGroupHandle channelGroup,
  593. const char* property,
  594. long value);
  595. int __stdcall DDC_CreateChannelGroupPropertyFloat(DDCChannelGroupHandle channelGroup,
  596. const char* property,
  597. float value);
  598. int __stdcall DDC_CreateChannelGroupPropertyDouble(DDCChannelGroupHandle channelGroup,
  599. const char* property,
  600. double value);
  601. int __stdcall DDC_CreateChannelGroupPropertyString(DDCChannelGroupHandle channelGroup,
  602. const char* property,
  603. const char* value);
  604. int __stdcall DDC_SetChannelGroupPropertyUInt8(DDCChannelGroupHandle channelGroup,
  605. const char* property,
  606. unsigned char value);
  607. int __stdcall DDC_SetChannelGroupPropertyInt16(DDCChannelGroupHandle channelGroup,
  608. const char* property,
  609. short value);
  610. int __stdcall DDC_SetChannelGroupPropertyInt32(DDCChannelGroupHandle channelGroup,
  611. const char* property,
  612. long value);
  613. int __stdcall DDC_SetChannelGroupPropertyFloat(DDCChannelGroupHandle channelGroup,
  614. const char* property,
  615. float value);
  616. int __stdcall DDC_SetChannelGroupPropertyDouble(DDCChannelGroupHandle channelGroup,
  617. const char* property,
  618. double value);
  619. int __stdcall DDC_SetChannelGroupPropertyString(DDCChannelGroupHandle channelGroup,
  620. const char* property,
  621. const char* value);
  622. int __stdcall DDC_GetChannelGroupPropertyUInt8(DDCChannelGroupHandle channelGroup,
  623. const char* property,
  624. unsigned char* value);
  625. int __stdcall DDC_GetChannelGroupPropertyInt16(DDCChannelGroupHandle channelGroup,
  626. const char* property,
  627. short* value);
  628. int __stdcall DDC_GetChannelGroupPropertyInt32(DDCChannelGroupHandle channelGroup,
  629. const char* property,
  630. long* value);
  631. int __stdcall DDC_GetChannelGroupPropertyFloat(DDCChannelGroupHandle channelGroup,
  632. const char* property,
  633. float* value);
  634. int __stdcall DDC_GetChannelGroupPropertyDouble(DDCChannelGroupHandle channelGroup,
  635. const char* property,
  636. double* value);
  637. int __stdcall DDC_GetChannelGroupPropertyString(DDCChannelGroupHandle channelGroup,
  638. const char* property,
  639. char value[],
  640. size_t valueSize);
  641. int __stdcall DDC_CreateChannelPropertyUInt8(DDCChannelHandle channel,
  642. const char* property,
  643. unsigned char value);
  644. int __stdcall DDC_CreateChannelPropertyInt16(DDCChannelHandle channel,
  645. const char* property,
  646. short value);
  647. int __stdcall DDC_CreateChannelPropertyInt32(DDCChannelHandle channel,
  648. const char* property,
  649. long value);
  650. int __stdcall DDC_CreateChannelPropertyFloat(DDCChannelHandle channel,
  651. const char* property,
  652. float value);
  653. int __stdcall DDC_CreateChannelPropertyDouble(DDCChannelHandle channel,
  654. const char* property,
  655. double value);
  656. int __stdcall DDC_CreateChannelPropertyString(DDCChannelHandle channel,
  657. const char* property,
  658. const char* value);
  659. int __stdcall DDC_SetChannelPropertyUInt8(DDCChannelHandle channel,
  660. const char* property,
  661. unsigned char value);
  662. int __stdcall DDC_SetChannelPropertyInt16(DDCChannelHandle channel,
  663. const char* property,
  664. short value);
  665. int __stdcall DDC_SetChannelPropertyInt32(DDCChannelHandle channel,
  666. const char* property,
  667. long value);
  668. int __stdcall DDC_SetChannelPropertyFloat(DDCChannelHandle channel,
  669. const char* property,
  670. float value);
  671. int __stdcall DDC_SetChannelPropertyDouble(DDCChannelHandle channel,
  672. const char* property,
  673. double value);
  674. int __stdcall DDC_SetChannelPropertyString(DDCChannelHandle channel,
  675. const char* property,
  676. const char* value);
  677. int __stdcall DDC_GetChannelPropertyUInt8(DDCChannelHandle channel,
  678. const char* property,
  679. unsigned char* value);
  680. int __stdcall DDC_GetChannelPropertyInt16(DDCChannelHandle channel,
  681. const char* property,
  682. short* value);
  683. int __stdcall DDC_GetChannelPropertyInt32(DDCChannelHandle channel, const
  684. char* property,
  685. long* value);
  686. int __stdcall DDC_GetChannelPropertyFloat(DDCChannelHandle channel,
  687. const char* property,
  688. float* value);
  689. int __stdcall DDC_GetChannelPropertyDouble(DDCChannelHandle channel,
  690. const char* property,
  691. double* value);
  692. int __stdcall DDC_GetChannelPropertyString(DDCChannelHandle channel,
  693. const char* property,
  694. char value[],
  695. size_t valueSize);
  696. int __stdcall DDC_GetFilePropertyNameFromIndex(DDCFileHandle file,
  697. size_t index,
  698. char propertyName[],
  699. size_t propertyNameSize);
  700. int __stdcall DDC_GetFilePropertyNameLengthFromIndex(DDCFileHandle file,
  701. size_t index,
  702. size_t* propertyNameLength);
  703. int __stdcall DDC_GetChannelGroupPropertyNameFromIndex(DDCChannelGroupHandle channelGroup,
  704. size_t index,
  705. char propertyName[],
  706. size_t propertyNameSize);
  707. int __stdcall DDC_GetChannelGroupPropertyNameLengthFromIndex(DDCChannelGroupHandle channelGroup,
  708. size_t index,
  709. size_t* propertyNameLength);
  710. int __stdcall DDC_GetChannelPropertyNameFromIndex(DDCChannelHandle channel,
  711. size_t index,
  712. char propertyName[],
  713. size_t propertyNameSize);
  714. int __stdcall DDC_GetChannelPropertyNameLengthFromIndex(DDCChannelHandle channel,
  715. size_t index,
  716. size_t* propertyNameLength);
  717. //*****************************************************************************
  718. /// -> Separate type-safe functions for non-C users
  719. //*****************************************************************************
  720. #ifdef __cplusplus
  721. }
  722. #endif
  723. #endif //!defined(_NILIBDDC_H)