1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
|
{$INLINE ON}
{$MACRO ON}
{$define Rsc := }
(***********************************************************************
*
* Copyright (c) 1998-2000 Palm, Inc. or its subsidiaries.
* All rights reserved.
*
* File: ConnectionMgr.h
*
* Release: Palm OS SDK 4.0 (63220)
*
* Description:
* Connection Manager Interface. The Connection Manager allows
* other applications to access, add, and delete connection profiles
* contained in the Connection Panel.
*
* History:
* 8/19/98 ADH Initial Implementation
* 03/01/2000 PPL Rewrite API for New Connection Manager
* 03/30/2000 PPL Constant change from cncXXXX to kCncXXXX
* and # defining old names (cncXXXX) for compatibility.
* 10/19/00 PPL Update the header with GuideLines
* 10/20/00 PPL Remove CncProfileBroacast - The notification it sent
* is always in usage.
* 10/23/00 PPL Update Connection Manager API
* 11/06/2000 PPL Use the CncProfileId abstract type for profileIDs
*
***********************************************************************)
unit connectionmgr;
interface
uses palmos, coretraps, errorbase, datamgr, modemmgr;
(***********************************************************************
* Definition
***********************************************************************)
type
CncProfileID = UInt32;
(***********************************************************************
* Connection Profile Broadcasting
***********************************************************************)
const
kCncProfileNotifyCurrentVersion = 1;
type
CncProfileNotifyDetailsTag = record
// In: version - This definition is version 1 (kCncProfileNotifyCurrentVersion)
// later versions should include all the fields of version 1 plus
// any additional fields of CncProfileNotifyDetailsType
version: UInt16;
// In: Broacasted Profile ID
profileID: CncProfileID;
// In: Device Kind of the profile
deviceKind: UInt16;
// In: Resquested Action
request: UInt16;
end;
CncProfileNotifyDetailsType = CncProfileNotifyDetailsTag;
(***********************************************************************
* Constants
***********************************************************************)
const
kCncProfileInvalidId = CncProfileID(0);
// Request's modifiers flags
const
kCncNotifyBecomeCurrentModifier = $8000; // Change the Client current settings
kCncNotifyAlertUserModifier = $4000; // ask for Client UI
kNotifyRequestMofifiersMask = kCncNotifyBecomeCurrentModifier or kCncNotifyAlertUserModifier;
// Requests
kCncNotifyCreateRequest = 1; // the profile has been created
kCncNotifyModifyRequest = 2; // the profile has been modified
kCncNotifyDeleteRequest = 3; // the profile has been deleted
kCncNotifyUpdateListRequest = 4; // the profile has been deleted
(***********************************************************************
* Connection Profile ParamID Definition Macros and Constants
***********************************************************************)
const
kCncParamOSRange = $0000; // bit #15 set at 0
kCncParamThirdPartiesRange = $8000; // bit #15 set at 1
kCncParamFixedLength = $0000; // bit #14 set to 0
kCncParamVariableLength = $4000; // bit #14 set to 1
kCncParamIDMask = $07FF; // bit #0 to #10 set to 1 (11 bits)
kCncParamTypeMask = $7800; // bit #11 to #14 set to 1 (4 bits)
// parameter type definition macros
kCncParamFixedLen = $00; // higth bit of 4 set to 0
kCncParamVariableLen = $08; // higth bit of 4 set to 1
//#define CncDefineParameterType( variableBit , typeOrder) ( ( (variableBit) | (typeOrder) ) << 11)
// bit number is comprised between 0 and 31
// #define CncDefineSystemFlagMask(bitnum) (1 << (bitnum))
const
kCncParamSystemFlag = (kCncParamFixedLen or 0) shl 11; // 0x0000
kCncParamUInt8 = (kCncParamFixedLen or 1) shl 11; // 0x0800
kCncParamUInt16 = (kCncParamFixedLen or 2) shl 11; // 0x1000
kCncParamUInt32 = (kCncParamFixedLen or 3) shl 11; // 0x1800
// [free slot from 4 to 7]
kCncParamUInt8Size = SizeOf(UInt8);
kCncParamUInt16Size = SizeOf(UInt16);
kCncParamUInt32Size = SizeOf(UInt32);
kCncParamSystemFlagSize = kCncParamUInt8Size;
kCncParamString = (kCncParamVariableLen or 1) shl 11; // 0x4800
kCncParamBuffer = (kCncParamVariableLen or 2) shl 11; // 0x5000
// [free slot from 3 to 7]
// full Parameter ID definition macro
(*
#define CncDefineParamID(parameterRange, parameterType, parameterID) ( (parameterRange) | (parameterType) | (parameterID) )
#define CncIsSystemRange(parameterID) ( ( (parameterID) & kCncParamThirdPartiesRange) != kCncParamThirdPartiesRange)
#define CncIsThirdPartiesRange(parameterID) ( ( (parameterID) & kCncParamThirdPartiesRange ) == kCncParamThirdPartiesRange)
#define CncIsFixedLengthParamType(parameterID) ( ( (parameterID) & kCncParamVariableLength) != kCncParamVariableLength )
#define CncIsVariableLengthParamType(parameterID) ( ( (parameterID) & kCncParamVariableLength ) == kCncParamVariableLength)
#define CncGetTrueParamID(parameterID) ( (parameterID) & kCncParamIDMask)
#define CncGetParamType(parameterID) ( (parameterID) & kCncParamTypeMask)
#define CncIsSystemFlags(parameterID) ( ! (CncGetParamType( (parameterID) ) ) )
#define CncGetSystemFlagBitnum(parameterID) CncGetTrueParamID(parameterID)
*)
// Some tests
(***********************************************************************
* Cnc Manager Feature
***********************************************************************)
const
kCncFtrCncMgrCreator = Rsc('cmgr');
kCncFtrCncMgrVersion = 0;
kCncMgrVersion = $00040001; // 4.0 = 4->high 0->low
// feature index 1 and 2 are reserved
(***********************************************************************
* Parameter size values
***********************************************************************)
const
// 22 for compatibility
kCncProfileNameSize = 22;
// 81 defined in ModemMgr.h
kCncProfileUsualInitStringSize = mdmCmdBufSize;
// 81 defined in ModemMgr.h
kCncProfileClassicResetStringSize = mdmCmdSize; // Old size was 8
kCncProfileUsualResetStringSize = mdmCmdBufSize;
(***********************************************************************
* Parameters values
***********************************************************************)
// device kinds
kCncDeviceKindSerial = 0;
kCncDeviceKindModem = 1;
kCncDeviceKindPhone = 2;
kCncDeviceKindLocalNetwork = 3;
// Old flow controls
kCncFlowControlAuto = 0;
kCncFlowControlOFF = 1;
kCncFlowControlON = 2;
kCncProfileVersion = 4;
(***********************************************************************
* Error Codes
***********************************************************************)
kCncErrAddProfileFailed = cncErrorClass or $01; // Add profile attempt failed
kCncErrProfileListFull = cncErrorClass or $02; // Add attempt failed because the
// profile list is full.
kCncErrGetProfileFailed = cncErrorClass or $03; // Get profile attempt failed
kCncErrDBAccessFailed = cncErrorClass or $04; // Connection database not found or access failed
kCncErrGetProfileListFailed = cncErrorClass or $05; // Could not get profile list
kCncErrProfileReadOnly = cncErrorClass or $06; // The profile can not be altered
kCncErrProfileNotFound = cncErrorClass or $07; // The profile could not be found
// New API error code
kCncErrProfileParamNotFound = cncErrorClass or $08; // The profile parameter could not be found
kCncErrProfileParamReadOnly = cncErrorClass or $09; // The profile parameter can only be read
kCncErrProfileParamNameHasChange = cncErrorClass or $0a; // The profile parameter Name has been modified to be unique
kCncErrProfileGetParamFailed = cncErrorClass or $0b; // failed to get a parameter in a profile
kCncErrProfileSetParamFailed = cncErrorClass or $0c; // failed to Set a parameter in a profile
kCncErrProfileBadParamSize = cncErrorClass or $0d; // failed to Set a parameter in a profile
kCncErrProfileBadSystemFlagBitnum = cncErrorClass or $0e; // the bit num of a system flag is not comprise between 0 and 31
(***********************************************************************
* Parameters ID and Sizes
***********************************************************************)
const
// void param has a size of zero bytes
kCncNoParam = 0;
kCncNoParamSize = 0;
// 22 bytes limited - for compatibility
kCncParamName = kCncParamOSRange or kCncParamString or 1;
kCncParamNameMaxSize = kCncProfileNameSize;
kCncParamPort = kCncParamOSRange or kCncParamUInt32 or 2;
kCncParamPortSize = kCncParamUInt32Size;
kCncParamBaud = kCncParamOSRange or kCncParamUInt32 or 3;
kCncParamBaudSize = kCncParamUInt32Size;
kCncParamVolume = kCncParamOSRange or kCncParamUInt16 or 4;
kCncParamVolumeSize = kCncParamUInt16Size;
kCncParamFlowControl = kCncParamOSRange or kCncParamUInt16 or 5;
kCncParamFlowControlSize = kCncParamUInt16Size;
// New piece of info - communication time Out (CTS)
kCncParamTimeOut = kCncParamOSRange or kCncParamUInt32 or 6;
kCncParamTimeOutSize = kCncParamUInt32Size;
kCncParamInitString = kCncParamOSRange or kCncParamString or 7;
kCncParamInitStringMaxSize = mdmCmdBufSize;
kCncParamResetString = kCncParamOSRange or kCncParamString or 8;
kCncParamResetStringMaxSize = mdmCmdBufSize;
// New piece of info - extented device kind cf kCncDeviveXXX after
kCncParamDeviceKind = kCncParamOSRange or kCncParamUInt16 or 9;
kCncParamDeviceKindSize = kCncParamUInt16Size;
// country index for the profile
kCncParamCountryIndex = kCncParamOSRange or kCncParamUInt16 or 11;
kCncParamCountryIndexSize = kCncParamUInt16Size;
// dialing mode, old pulse param
kCncParamDialingMode = kCncParamOSRange or kCncParamUInt8 or 12;
kCncParamDialingModeSize = kCncParamUInt8Size;
kCncParamVersion = kCncParamOSRange or kCncParamUInt8 or 13;
kCncParamVersionSize = kCncParamUInt8Size;
kCncParamReceiveTimeOut = kCncParamOSRange or kCncParamUInt32 or 14;
kCncParamReceiveTimeOutSize = kCncParamUInt32Size;
// International Reset string (count [strings])
kCncParamIntlModemResetStringList = kCncParamOSRange or kCncParamBuffer or 15;
// International country string (count [strings])
kCncParamIntlModemCountryStringList = kCncParamOSRange or kCncParamBuffer or 16;
// special parameters : system flags
// the meaning of these parameters is for the connection panel
// up to 32 flags system flag will be possible
// bit numbering
kCncParamReadOnlyBit = 0;
kCncParamInvisibleBit = 1;
kCncParamNonEditableBit = 2;
kCncParamNoDetailsBit = 3;
kCncParamLockedBit = 4;
kCncParamReservedBit5 = 5;
kCncParamReservedBit6 = 6;
kCncParamReservedBit7 = 7;
kCncParamReservedBit8 = 8;
kCncParamReservedBit9 = 9;
kCncParamReservedBit10 = 10;
kCncParamReservedBit11 = 11;
kCncParamReservedBit12 = 12;
kCncParamReservedBit13 = 13;
kCncParamReservedBit14 = 14;
kCncParamReservedBit15 = 15;
kCncParamSystemBit16 = 16;
kCncParamSystemBit17 = 17;
kCncParamReservedBit18 = 18;
kCncParamReservedBit19 = 19;
kCncParamReservedBit20 = 20;
kCncParamReservedBit21 = 21;
kCncParamReservedBit22 = 22;
kCncParamReservedBit23 = 23;
kCncParamReservedBit24 = 24;
kCncParamReservedBit25 = 25;
kCncParamReservedBit26 = 26;
kCncParamReservedBit27 = 27;
kCncParamReservedBit28 = 28;
kCncParamReservedBit29 = 29;
kCncParamReservedBit30 = 30;
kCncParamReservedBit31 = 31;
kCncParamSystemFlagsNum = $07FF;
// the following parameter handles the system flags as an UInt32 integer (all the flags, at once)
kCncParamSystemFlags = kCncParamOSRange or kCncParamSystemFlag or kCncParamSystemFlagsNum;
kCncParamSystemFlagsSize = kCncParamUInt32Size;
// bit parameters definition : to handle flags bit per bit
kCncParamReadOnly = kCncParamOSRange or kCncParamSystemFlag or 0;
kCncParamReadOnlySize = kCncParamSystemFlagSize;
kCncParamInvisible = kCncParamOSRange or kCncParamSystemFlag or 1;
kCncParamInvisibleSize = kCncParamSystemFlagSize;
kCncParamNonEditable = kCncParamOSRange or kCncParamSystemFlag or 2;
kCncParamNonEditableSize = kCncParamSystemFlagSize;
kCncParamNoDetails = kCncParamOSRange or kCncParamSystemFlag or 3;
kCncParamNoDetailsSize = kCncParamSystemFlagSize;
kCncParamLocked = kCncParamOSRange or kCncParamSystemFlag or 4;
kCncParamLockedSize = kCncParamSystemFlagSize;
(* Bluetooth parameter IDs - New pieces of info *)
// 48 bit blue Tooth address (BD_ADDR) - This address is derived from the IEEE802 standard
kCncParamBluetoothDeviceAddr = kCncParamOSRange or kCncParamBuffer or 50;
kCncParamBluetoothDeviceAddrSize = 8;
// Bluetooth device name - 248 bytes coded according to the UTF-8 standard at max + NULL terninaison
kCncParamBluetoothDeviceName = kCncParamOSRange or kCncParamString or 51;
kCncParamBluetoothDeviceNameMaxSize = 249;
// Caution : system parameter range ID from 80 to 200 are reserved for telephony services
// and should never be reused by any other component
(***********************************************************************
* Telephony Manager parameter
***********************************************************************)
(* TT-AT specific parameters *)
// New piece gathering several parts (uses the serial manager flags cf SerialMgr.h )
kCncParamSerialPortFlags = kCncParamOSRange or kCncParamUInt32 or 84;
kCncParamSerialPortFlagsSize = kCncParamUInt32Size;
// Telephony Task type - mobile telephony
kCncParamTTType = kCncParamOSRange or kCncParamUInt32 or 90;
kCncParamTTTypeSize = kCncParamUInt32Size;
// Telephony Task Creator - mobile telephony
kCncParamTTCreator = kCncParamOSRange or kCncParamUInt32 or 91;
kCncParamTTCreatorSize = kCncParamUInt32Size;
// Phone Driver Name - mobile telephony
kCncParam_PSDName = kCncParamOSRange or kCncParamString or 92;
kCncParam_PSDNameSize = dmDBNameLength;
// Phone Driver creator - mobile telephony
kCncParam_PSDCreator = kCncParamOSRange or kCncParamUInt32 or 93;
kCncParam_PSDCreatorSize = kCncParamUInt32Size;
// Phone Driver type - mobile telephony
kCncParam_PSDType = kCncParamOSRange or kCncParamUInt32 or 94;
kCncParam_PSDTypeSize = kCncParamUInt32Size;
// Phone Driver Param Buffer - mobile telephony
kCncParam_PSDParameterBuffer = kCncParamOSRange or kCncParamBuffer or 100;
(***********************************************************************
* New Connection Manager trap selectors
***********************************************************************)
sysTrapCncMgrProfileSettingGet = 1;
sysTrapCncMgrProfileSettingSet = 2;
sysTrapCncMgrProfileGetCurrent = 3;
sysTrapCncMgrProfileSetCurrent = 4;
sysTrapCncMgrProfileGetIDFromName = 5;
sysTrapCncMgrProfileCreate = 6;
sysTrapCncMgrProfileDelete = 7;
sysTrapCncMgrProfileGetIDFromIndex = 8;
sysTrapCncMgrProfileGetIndex = 9;
sysTrapCncMgrProfileCount = 10;
sysTrapCncMgrProfileOpenDB = 11;
sysTrapCncMgrProfileCloseDB = 12;
(***********************************************************************
* Connection Manager Library Macros
***********************************************************************)
(***********************************************************************
* New Connection Mgr API
***********************************************************************)
function CncProfileSettingGet(profileId: CncProfileID; paramId: UInt16; paramBufferP: Pointer; var ioParamSizeP: UInt16): Err;
function CncProfileSettingSet(iProfileId: CncProfileID; paramId: UInt16; const paramBufferP: Pointer; paramSize: UInt16): Err;
function CncProfileSetCurrent(profileId: CncProfileID): Err;
function CncProfileGetCurrent(var profileIdP: CncProfileID): Err;
function CncProfileGetIDFromName(const profileNameP: PChar; var profileIdP: CncProfileID): Err;
function CncProfileCreate(var profileIdP: CncProfileID): Err;
function CncProfileDelete(profileId: CncProfileID): Err;
function CncProfileGetIDFromIndex(index: UInt16; var profileIdP: CncProfileID): Err;
function CncProfileGetIndex(profileId: CncProfileID; var indexP: UInt16): Err;
function CncProfileCount(var profilesCountP: UInt16): Err;
function CncProfileOpenDB: Err;
function CncProfileCloseDB: Err;
(***********************************************************************
* Old Connection Mgr API, For compatibility only
***********************************************************************)
const
// Maximum size for a Connection Profile Name
cncProfileNameSize = 22;
// Error Codes
cncErrAddProfileFailed = cncErrorClass or 1; // Add profile attempt failed
cncErrProfileListFull = cncErrorClass or 2; // Add attempt failed because the
// profile list is full.
cncErrGetProfileFailed = cncErrorClass or 3; // Get profile attempt failed
cncErrConDBNotFound = cncErrorClass or 4; // Connection database not found
cncErrGetProfileListFailed = cncErrorClass or 5; // Could not get profile list
cncErrProfileReadOnly = cncErrorClass or 6; // The profile can not be altered
cncErrProfileNotFound = cncErrorClass or 7; // The profile could not be found
// Functions
function CncGetProfileList(var nameListPPP: PCharPtr; var countP: UInt16): Err; syscall sysTrapCncGetProfileList;
function CncGetProfileInfo(name: PChar; var port, baud: UInt32; var volume, handShake: UInt16;
initString: PChar; var resetString: Char; var isModem, isPulse: Boolean): Err; syscall sysTrapCncGetProfileInfo;
function CncAddProfile(name: PChar; port, baud: UInt32; volum, handShake: UInt16;
const initString, resetString: PChar; isMode, isPulse: Boolean): Err; syscall sysTrapCncAddProfile;
function CncDeleteProfile(const name: PChar): Err; syscall sysTrapCncDeleteProfile;
implementation
function __CncProfileSettingGet(profileId: CncProfileID; paramId: UInt16; paramBufferP: Pointer; var ioParamSizeP: UInt16): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileSettingSet(iProfileId: CncProfileID; paramId: UInt16; const paramBufferP: Pointer; paramSize: UInt16): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileSetCurrent(profileId: CncProfileID): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileGetCurrent(var profileIdP: CncProfileID): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileGetIDFromName(const profileNameP: PChar; var profileIdP: CncProfileID): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileCreate(var profileIdP: CncProfileID): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileDelete(profileId: CncProfileID): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileGetIDFromIndex(index: UInt16; var profileIdP: CncProfileID): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileGetIndex(profileId: CncProfileID; var indexP: UInt16): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileCount(var profilesCountP: UInt16): Err; syscall sysTrapCncMgrDispatch;
function __CncProfileOpenDB: Err; syscall sysTrapCncMgrDispatch;
function __CncProfileCloseDB: Err; syscall sysTrapCncMgrDispatch;
function CncProfileSettingGet(profileId: CncProfileID; paramId: UInt16; paramBufferP: Pointer; var ioParamSizeP: UInt16): Err;
begin
asm
move.l #$sysTrapCncMgrProfileSettingGet, D2
end;
CncProfileSettingGet := __CncProfileSettingGet(profileId, paramId, paramBufferP, ioParamSizeP);
end;
function CncProfileSettingSet(iProfileId: CncProfileID; paramId: UInt16; const paramBufferP: Pointer; paramSize: UInt16): Err;
begin
asm
move.l #$sysTrapCncMgrProfileSettingSet, D2
end;
CncProfileSettingSet := __CncProfileSettingSet(iProfileId, paramId, paramBufferP, paramSize);
end;
function CncProfileSetCurrent(profileId: CncProfileID): Err;
begin
asm
move.l #$sysTrapCncMgrProfileSetCurrent, D2
end;
CncProfileSetCurrent := __CncProfileSetCurrent(profileId);
end;
function CncProfileGetCurrent(var profileIdP: CncProfileID): Err;
begin
asm
move.l #$sysTrapCncMgrProfileGetCurrent, D2;
end;
CncProfileGetCurrent := __CncProfileGetCurrent(profileIdP);
end;
function CncProfileGetIDFromName(const profileNameP: PChar; var profileIdP: CncProfileID): Err;
begin
asm
move.l #$sysTrapCncMgrProfileGetIDFromName, D2;
end;
CncProfileGetIDFromName := __CncProfileGetIDFromName(profileNameP, profileIdP);
end;
function CncProfileCreate(var profileIdP: CncProfileID): Err;
begin
asm
move.l #$sysTrapCncMgrProfileCreate, D2;
end;
CncProfileCreate := __CncProfileCreate(profileIdP);
end;
function CncProfileDelete(profileId: CncProfileID): Err;
begin
asm
move.l #$sysTrapCncMgrProfileDelete, D2;
end;
CncProfileDelete := __CncProfileDelete(profileId);
end;
function CncProfileGetIDFromIndex(index: UInt16; var profileIdP: CncProfileID): Err;
begin
asm
move.l #$sysTrapCncMgrProfileGetIDFromIndex, D2;
end;
CncProfileGetIDFromIndex := __CncProfileGetIDFromIndex(index, profileIdP);
end;
function CncProfileGetIndex(profileId: CncProfileID; var indexP: UInt16): Err;
begin
asm
move.l #$sysTrapCncMgrProfileGetIndex, D2;
end;
CncProfileGetIndex := __CncProfileGetIndex(profileID, indexP);
end;
function CncProfileCount(var profilesCountP: UInt16): Err;
begin
asm
move.l #$sysTrapCncMgrProfileCount, D2
end;
CncProfileCount := __CncProfileCount(profilesCountP);
end;
function CncProfileOpenDB: Err;
begin
asm
move.l #$sysTrapCncMgrProfileOpenDB, D2;
end;
CncProfileOpenDB := __CncProfileOpenDB;
end;
function CncProfileCloseDB: Err;
begin
asm
move.l #$sysTrapCncMgrProfileCloseDB, D2;
end;
CnCProfileCloseDB := __CncProfileCloseDB;
end;
end.
|