ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
res
res_itk.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
13
/* */
14
69
#define RES_RESERVE 0
70
#define RES_UNRESERVE 1
71
78
#define RES_RESERVE_AND_EXPORT 3
79
84
#define RES_Type "ImanReservation"
85
86
#define RES_checkout_msg "RES_checkout"
87
#define RES_checkin_msg "RES_checkin"
88
#define RES_cancel_checkout_msg "RES_cancel_checkout"
89
#define RES_transfer_checkout_msg "RES_transfer_checkout"
90
#define RES_notification_msg "RES_notification"
91
101
#define RES_EXPORT_FILE 1
102
105
#define RES_EXCLUSIVE_RESERVE 2
106
109
#define RES_EXCLUSIVE_LOCAL_RESERVE 3
110
116
#define RES_SHORT_TERM_RESERVE 5
117
126
#ifndef RES_ITK_H_INCLUDED
127
#define RES_ITK_H_INCLUDED
128
129
#include <
tc/tc_startup.h
>
130
#include <
ss/ss_const.h
>
131
#include <
tccore/workspaceobject.h
>
132
#include <res/libres_exports.h>
133
134
#ifdef __cplusplus
135
extern
"C"
{
136
#endif
137
142
extern
RES_API
int
RES_ask_reserved_object
(
143
tag_t
reservation_tag,
144
int
* tag_count,
145
tag_t
** reserved_object_tags
146
);
147
154
extern
RES_API
int
RES_ask_reason
(
155
tag_t
reservation_tag,
156
char
reason[
WSO_desc_size_c
+ 1]
157
);
158
159
163
extern
RES_API
int
RES_ask_reason2
(
164
tag_t
reservation_tag,
165
char
**reason
166
);
167
171
extern
RES_API
int
RES_ask_export_on_checkout
(
172
tag_t
reservation_tag,
173
logical
* export_flag
174
);
175
182
extern
RES_API
int
RES_ask_exp_directory
(
183
tag_t
reservation_tag,
184
char
directory[
SS_MAXPATHLEN
+ 1]
185
);
186
187
191
extern
RES_API
int
RES_ask_exp_directory2
(
192
tag_t
reservation_tag,
193
char
**directory
194
);
195
199
extern
RES_API
int
RES_ask_reservation_type
(
200
tag_t
reservation_tag,
201
int
* reservation_type
202
);
203
208
extern
RES_API
int
RES_ask_reservation_state
(
209
tag_t
reservation_tag,
210
int
* reservation_state
211
);
212
218
extern
RES_API
int
RES_extent_reservation
(
219
int
* tag_count,
220
tag_t
** reservation_tags
221
);
222
227
extern
RES_API
int
RES_find_reservations_by_user
(
228
tag_t
user_tag,
229
int
* tag_count,
230
tag_t
** reservation_tags
231
);
232
237
extern
RES_API
int
RES_find_reservations_by_group
(
238
tag_t
group_tag,
239
int
* tag_count,
240
tag_t
** reservation_tags
241
);
242
253
extern
RES_API
int
RES_who_checked_object_out
(
254
tag_t
object_tag,
255
tag_t
* user_tag,
256
tag_t
* group_tag
257
);
258
266
extern
RES_API
int
RES_checkout
(
267
tag_t
object_tag,
268
const
char
reason[
WSO_desc_size_c
+ 1],
269
const
char
change_id[
WSO_name_size_c
+ 1],
270
const
char
dir_name[
SS_MAXPATHLEN
+ 1],
271
int
reservation_type
273
);
274
275
280
extern
RES_API
int
RES_checkout2
(
281
tag_t
object_tag,
282
const
char
*reason,
283
const
char
*change_id,
284
const
char
*dir_name,
285
int
reservation_type
287
);
288
292
extern
RES_API
int
RES_checkin
(
293
tag_t
obj_tag
294
);
295
305
extern
RES_API
int
RES_cancel_checkout
(
306
tag_t
object_tag,
307
logical
copy_flag
309
);
310
316
extern
RES_API
int
RES_transfer_checkout
(
317
tag_t
object_tag,
319
tag_t
user_tag,
321
tag_t
group_tag
323
);
324
329
extern
RES_API
int
RES_list_checkout
(
330
tag_t
user_tag,
331
int
* tag_count,
332
tag_t
** object_tags
333
);
334
338
extern
RES_API
int
RES_is_checked_out
(
339
tag_t
object_tag,
340
logical
* is_reserved
341
);
342
354
extern
RES_API
int
RES_assert_object_modifiable
(
355
tag_t
object_tag
356
);
357
361
extern
RES_API
int
RES_ask_notifylist
(
362
tag_t
reservation_tag,
364
int
* no_users,
365
tag_t
** notifylist
367
);
368
372
extern
RES_API
int
RES_add_to_notifylist
(
373
tag_t
reservation_tag,
374
tag_t
user_tag
375
);
376
389
extern
RES_API
int
RES_remove_from_notifylist
(
390
tag_t
reservation_tag,
391
tag_t
user_tag
392
);
393
397
extern
RES_API
int
RES_ask_user
(
398
tag_t
reservation_tag,
399
tag_t
* user_tag
400
);
401
408
extern
RES_API
int
RES_ask_group
(
409
tag_t
reservation_tag,
410
tag_t
* group_tag
411
);
412
416
extern
RES_API
int
RES_ask_reservation_date
(
417
tag_t
reservation_tag,
418
date_t
* date
419
);
420
430
extern
RES_API
int
RES_ask_change_id
(
431
tag_t
reservation_tag,
433
char
change_id[
WSO_name_size_c
+ 1]
434
);
435
436
443
extern
RES_API
int
RES_ask_change_id2
(
444
tag_t
reservation_tag,
446
char
**change_id
447
);
448
454
extern
RES_API
int
RES_ask_reservation_object
(
455
tag_t
object_tag,
456
tag_t
* reservation_tag
457
);
458
464
extern
RES_API
int
RES_ask_audit_file
(
465
tag_t
object_tag,
466
tag_t
* file_tag
467
);
468
475
extern
RES_API
int
RES_ask_audit_history
(
476
tag_t
object_tag,
477
int
* event_count,
478
char
*** dates,
479
char
*** users,
480
char
*** actions,
481
char
*** change_ids,
482
char
*** reasons
483
);
484
499
extern
RES_API
int
RES_save_reservation
(
500
tag_t
reservation_tag,
501
logical
whether_to_unload
502
);
503
510
extern
RES_API
int
RES_init_module
();
511
521
extern
RES_API
int
RES_list_remote_checkout
(
522
tag_t
remote_site,
523
const
char
* remote_user,
524
const
char
* remote_group,
525
int
* tag_count,
526
tag_t
** object_tags
527
);
528
529
extern
RES_API
int
RES_list_replica_checkout
(
530
tag_t
remote_site,
531
tag_t
local_user_tag,
532
tag_t
local_group_tag,
533
int
* tag_count,
534
tag_t
** object_tags
535
);
536
537
extern
RES_API
int
RES_is_checked_out_by_remote_user
(
538
tag_t
object_tag,
539
logical
* is_reserved
540
);
541
542
extern
RES_API
int
RES_is_checked_out_replica
(
543
tag_t
object_tag,
544
logical
* is_reserved
545
);
546
547
extern
RES_API
int
RES_ask_remote_user_and_group
(
548
tag_t
reservation_tag,
549
char
** remote_user,
550
char
** remote_group
551
);
552
553
extern
RES_API
int
RES_ask_remote_site
(
554
tag_t
reservation_tag,
555
tag_t
* remote_site
556
);
557
562
extern
RES_API
int
RES_is_checkoutable
(
563
tag_t
object_tag,
564
logical
* is_checkoutable
565
);
568
#ifdef __cplusplus
569
}
570
#endif
571
572
#include <res/libres_undef.h>
573
574
#endif