3141
3554
ListIterator itr = NULL;
3142
3555
acct_association_cond_t *object = (acct_association_cond_t *)in;
3144
if(rpc_version >= 3) {
3557
if(rpc_version >= 5) {
3559
pack32(NO_VAL, buffer);
3560
pack32(NO_VAL, buffer);
3562
pack32(NO_VAL, buffer);
3564
pack32(NO_VAL, buffer);
3565
pack32(NO_VAL, buffer);
3566
pack32(NO_VAL, buffer);
3567
pack32(NO_VAL, buffer);
3568
pack32(NO_VAL, buffer);
3569
pack32(NO_VAL, buffer);
3571
pack32(NO_VAL, buffer);
3573
pack32(NO_VAL, buffer);
3574
pack32(NO_VAL, buffer);
3575
pack32(NO_VAL, buffer);
3576
pack32(NO_VAL, buffer);
3577
pack32(NO_VAL, buffer);
3578
pack32(NO_VAL, buffer);
3580
pack32(NO_VAL, buffer);
3581
pack32(NO_VAL, buffer);
3583
pack32(NO_VAL, buffer);
3585
pack_time(0, buffer);
3586
pack_time(0, buffer);
3588
pack32(NO_VAL, buffer);
3599
if(object->acct_list)
3600
count = list_count(object->acct_list);
3602
pack32(count, buffer);
3603
if(count && count != NO_VAL) {
3604
itr = list_iterator_create(object->acct_list);
3605
while((tmp_info = list_next(itr))) {
3606
packstr(tmp_info, buffer);
3608
list_iterator_destroy(itr);
3612
if(object->cluster_list)
3613
count = list_count(object->cluster_list);
3615
pack32(count, buffer);
3616
if(count && count != NO_VAL) {
3617
itr = list_iterator_create(object->cluster_list);
3618
while((tmp_info = list_next(itr))) {
3619
packstr(tmp_info, buffer);
3621
list_iterator_destroy(itr);
3625
if(object->fairshare_list)
3626
count = list_count(object->fairshare_list);
3628
pack32(count, buffer);
3629
if(count && count != NO_VAL) {
3630
itr = list_iterator_create(object->fairshare_list);
3631
while((tmp_info = list_next(itr))) {
3632
packstr(tmp_info, buffer);
3634
list_iterator_destroy(itr);
3638
if(object->grp_cpu_mins_list)
3639
count = list_count(object->grp_cpu_mins_list);
3641
pack32(count, buffer);
3642
if(count && count != NO_VAL) {
3643
itr = list_iterator_create(object->grp_cpu_mins_list);
3644
while((tmp_info = list_next(itr))) {
3645
packstr(tmp_info, buffer);
3647
list_iterator_destroy(itr);
3651
if(object->grp_cpus_list)
3652
count = list_count(object->grp_cpus_list);
3654
pack32(count, buffer);
3655
if(count && count != NO_VAL) {
3656
itr = list_iterator_create(object->grp_cpus_list);
3657
while((tmp_info = list_next(itr))) {
3658
packstr(tmp_info, buffer);
3660
list_iterator_destroy(itr);
3664
if(object->grp_jobs_list)
3665
count = list_count(object->grp_jobs_list);
3667
pack32(count, buffer);
3668
if(count && count != NO_VAL) {
3669
itr = list_iterator_create(object->grp_jobs_list);
3670
while((tmp_info = list_next(itr))) {
3671
packstr(tmp_info, buffer);
3673
list_iterator_destroy(itr);
3677
if(object->grp_nodes_list)
3678
count = list_count(object->grp_nodes_list);
3680
pack32(count, buffer);
3681
if(count && count != NO_VAL) {
3682
itr = list_iterator_create(object->grp_nodes_list);
3683
while((tmp_info = list_next(itr))) {
3684
packstr(tmp_info, buffer);
3686
list_iterator_destroy(itr);
3690
if(object->grp_submit_jobs_list)
3691
count = list_count(object->grp_submit_jobs_list);
3693
pack32(count, buffer);
3694
if(count && count != NO_VAL) {
3695
itr = list_iterator_create(
3696
object->grp_submit_jobs_list);
3697
while((tmp_info = list_next(itr))) {
3698
packstr(tmp_info, buffer);
3700
list_iterator_destroy(itr);
3704
if(object->grp_wall_list)
3705
count = list_count(object->grp_wall_list);
3707
pack32(count, buffer);
3708
if(count && count != NO_VAL) {
3709
itr = list_iterator_create(object->grp_wall_list);
3710
while((tmp_info = list_next(itr))) {
3711
packstr(tmp_info, buffer);
3713
list_iterator_destroy(itr);
3718
count = list_count(object->id_list);
3720
pack32(count, buffer);
3721
if(count && count != NO_VAL) {
3722
itr = list_iterator_create(object->id_list);
3723
while((tmp_info = list_next(itr))) {
3724
packstr(tmp_info, buffer);
3729
if(object->max_cpu_mins_pj_list)
3730
count = list_count(object->max_cpu_mins_pj_list);
3732
pack32(count, buffer);
3733
if(count && count != NO_VAL) {
3734
itr = list_iterator_create(
3735
object->max_cpu_mins_pj_list);
3736
while((tmp_info = list_next(itr))) {
3737
packstr(tmp_info, buffer);
3739
list_iterator_destroy(itr);
3742
if(object->max_cpus_pj_list)
3743
count = list_count(object->max_cpus_pj_list);
3745
pack32(count, buffer);
3746
if(count && count != NO_VAL) {
3747
itr = list_iterator_create(object->max_cpus_pj_list);
3748
while((tmp_info = list_next(itr))) {
3749
packstr(tmp_info, buffer);
3751
list_iterator_destroy(itr);
3754
if(object->max_jobs_list)
3755
count = list_count(object->max_jobs_list);
3757
pack32(count, buffer);
3758
if(count && count != NO_VAL) {
3759
itr = list_iterator_create(object->max_jobs_list);
3760
while((tmp_info = list_next(itr))) {
3761
packstr(tmp_info, buffer);
3763
list_iterator_destroy(itr);
3766
if(object->max_nodes_pj_list)
3767
count = list_count(object->max_nodes_pj_list);
3769
pack32(count, buffer);
3770
if(count && count != NO_VAL) {
3771
itr = list_iterator_create(object->max_nodes_pj_list);
3772
while((tmp_info = list_next(itr))) {
3773
packstr(tmp_info, buffer);
3775
list_iterator_destroy(itr);
3778
if(object->max_submit_jobs_list)
3779
count = list_count(object->max_submit_jobs_list);
3781
pack32(count, buffer);
3782
if(count && count != NO_VAL) {
3783
itr = list_iterator_create(
3784
object->max_submit_jobs_list);
3785
while((tmp_info = list_next(itr))) {
3786
packstr(tmp_info, buffer);
3788
list_iterator_destroy(itr);
3791
if(object->max_wall_pj_list)
3792
count = list_count(object->max_wall_pj_list);
3794
pack32(count, buffer);
3795
if(count && count != NO_VAL) {
3796
itr = list_iterator_create(object->max_wall_pj_list);
3797
while((tmp_info = list_next(itr))) {
3798
packstr(tmp_info, buffer);
3800
list_iterator_destroy(itr);
3804
if(object->partition_list)
3805
count = list_count(object->partition_list);
3807
pack32(count, buffer);
3808
if(count && count != NO_VAL) {
3809
itr = list_iterator_create(object->partition_list);
3810
while((tmp_info = list_next(itr))) {
3811
packstr(tmp_info, buffer);
3813
list_iterator_destroy(itr);
3817
if(object->parent_acct_list)
3818
count = list_count(object->parent_acct_list);
3820
pack32(count, buffer);
3821
if(count && count != NO_VAL) {
3822
itr = list_iterator_create(object->parent_acct_list);
3823
while((tmp_info = list_next(itr))) {
3824
packstr(tmp_info, buffer);
3826
list_iterator_destroy(itr);
3830
if(object->qos_list)
3831
count = list_count(object->qos_list);
3833
pack32(count, buffer);
3835
if(count && count != NO_VAL) {
3836
itr = list_iterator_create(object->qos_list);
3837
while((tmp_info = list_next(itr))) {
3838
packstr(tmp_info, buffer);
3840
list_iterator_destroy(itr);
3844
pack_time(object->usage_end, buffer);
3845
pack_time(object->usage_start, buffer);
3847
if(object->user_list)
3848
count = list_count(object->user_list);
3850
pack32(count, buffer);
3851
if(count && count != NO_VAL) {
3852
itr = list_iterator_create(object->user_list);
3853
while((tmp_info = list_next(itr))) {
3854
packstr(tmp_info, buffer);
3856
list_iterator_destroy(itr);
3860
pack16(object->with_usage, buffer);
3861
pack16(object->with_deleted, buffer);
3862
pack16(object->with_raw_qos, buffer);
3863
pack16(object->with_sub_accts, buffer);
3864
pack16(object->without_parent_info, buffer);
3865
pack16(object->without_parent_limits, buffer);
3866
} else if(rpc_version >= 3) {
3146
3868
pack32(NO_VAL, buffer);
3147
3869
pack32(NO_VAL, buffer);
3598
4320
char *tmp_info = NULL;
3599
4321
*object = object_ptr;
3601
if(rpc_version >= 3) {
3602
safe_unpack32(&count, buffer);
3603
if(count != NO_VAL) {
3604
object_ptr->acct_list =
3605
list_create(slurm_destroy_char);
3606
for(i=0; i<count; i++) {
3607
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3609
list_append(object_ptr->acct_list, tmp_info);
3612
safe_unpack32(&count, buffer);
3613
if(count != NO_VAL) {
3614
object_ptr->cluster_list =
3615
list_create(slurm_destroy_char);
3616
for(i=0; i<count; i++) {
3617
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3619
list_append(object_ptr->cluster_list,
3624
safe_unpack32(&count, buffer);
3625
if(count != NO_VAL) {
3626
object_ptr->fairshare_list =
3627
list_create(slurm_destroy_char);
3628
for(i=0; i<count; i++) {
3629
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3631
list_append(object_ptr->fairshare_list,
3636
safe_unpack32(&count, buffer);
3637
if(count != NO_VAL) {
3638
object_ptr->grp_cpu_mins_list =
3639
list_create(slurm_destroy_char);
3640
for(i=0; i<count; i++) {
3641
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3643
list_append(object_ptr->grp_cpu_mins_list,
3647
safe_unpack32(&count, buffer);
3648
if(count != NO_VAL) {
3649
object_ptr->grp_cpus_list =
3650
list_create(slurm_destroy_char);
3651
for(i=0; i<count; i++) {
3652
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3654
list_append(object_ptr->grp_cpus_list,
3658
safe_unpack32(&count, buffer);
3659
if(count != NO_VAL) {
3660
object_ptr->grp_jobs_list =
3661
list_create(slurm_destroy_char);
3662
for(i=0; i<count; i++) {
3663
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3665
list_append(object_ptr->grp_jobs_list,
3669
safe_unpack32(&count, buffer);
3670
if(count != NO_VAL) {
3671
object_ptr->grp_nodes_list =
3672
list_create(slurm_destroy_char);
3673
for(i=0; i<count; i++) {
3674
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3676
list_append(object_ptr->grp_nodes_list,
3680
safe_unpack32(&count, buffer);
3681
if(count != NO_VAL) {
3682
object_ptr->grp_submit_jobs_list =
3683
list_create(slurm_destroy_char);
3684
for(i=0; i<count; i++) {
3685
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3687
list_append(object_ptr->grp_submit_jobs_list,
3691
safe_unpack32(&count, buffer);
3692
if(count != NO_VAL) {
3693
object_ptr->grp_wall_list =
3694
list_create(slurm_destroy_char);
3695
for(i=0; i<count; i++) {
3696
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3698
list_append(object_ptr->grp_wall_list,
3703
safe_unpack32(&count, buffer);
3704
if(count != NO_VAL) {
3705
object_ptr->id_list = list_create(slurm_destroy_char);
3706
for(i=0; i<count; i++) {
3707
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3709
list_append(object_ptr->id_list, tmp_info);
3713
safe_unpack32(&count, buffer);
3714
if(count != NO_VAL) {
3715
object_ptr->max_cpu_mins_pj_list =
3716
list_create(slurm_destroy_char);
3717
for(i=0; i<count; i++) {
3718
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3720
list_append(object_ptr->max_cpu_mins_pj_list,
3724
safe_unpack32(&count, buffer);
3725
if(count != NO_VAL) {
3726
object_ptr->max_cpus_pj_list =
3727
list_create(slurm_destroy_char);
3728
for(i=0; i<count; i++) {
3729
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3731
list_append(object_ptr->max_cpus_pj_list,
3735
safe_unpack32(&count, buffer);
3736
if(count != NO_VAL) {
3737
object_ptr->max_jobs_list =
3738
list_create(slurm_destroy_char);
3739
for(i=0; i<count; i++) {
3740
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3742
list_append(object_ptr->max_jobs_list,
3746
safe_unpack32(&count, buffer);
3747
if(count != NO_VAL) {
3748
object_ptr->max_nodes_pj_list =
3749
list_create(slurm_destroy_char);
3750
for(i=0; i<count; i++) {
3751
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3753
list_append(object_ptr->max_nodes_pj_list,
3757
safe_unpack32(&count, buffer);
3758
if(count != NO_VAL) {
3759
object_ptr->max_submit_jobs_list =
3760
list_create(slurm_destroy_char);
3761
for(i=0; i<count; i++) {
3762
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3764
list_append(object_ptr->max_submit_jobs_list,
3768
safe_unpack32(&count, buffer);
3769
if(count != NO_VAL) {
3770
object_ptr->max_wall_pj_list =
3771
list_create(slurm_destroy_char);
3772
for(i=0; i<count; i++) {
3773
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3775
list_append(object_ptr->max_wall_pj_list,
3780
safe_unpack32(&count, buffer);
3781
if(count != NO_VAL) {
3782
object_ptr->partition_list =
3783
list_create(slurm_destroy_char);
3784
for(i=0; i<count; i++) {
3785
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3787
list_append(object_ptr->partition_list,
3792
safe_unpack32(&count, buffer);
3793
if(count != NO_VAL) {
3794
object_ptr->parent_acct_list =
3795
list_create(slurm_destroy_char);
3796
for(i=0; i<count; i++) {
3797
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3799
list_append(object_ptr->parent_acct_list,
3804
safe_unpack32(&count, buffer);
3805
if(count != NO_VAL) {
3806
object_ptr->qos_list = list_create(slurm_destroy_char);
3807
for(i=0; i<count; i++) {
3808
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
3810
list_append(object_ptr->qos_list, tmp_info);
3814
safe_unpack32(&object_ptr->usage_end, buffer);
3815
safe_unpack32(&object_ptr->usage_start, buffer);
4323
if(rpc_version >= 5) {
4324
safe_unpack32(&count, buffer);
4325
if(count != NO_VAL) {
4326
object_ptr->acct_list =
4327
list_create(slurm_destroy_char);
4328
for(i=0; i<count; i++) {
4329
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4331
list_append(object_ptr->acct_list, tmp_info);
4334
safe_unpack32(&count, buffer);
4335
if(count != NO_VAL) {
4336
object_ptr->cluster_list =
4337
list_create(slurm_destroy_char);
4338
for(i=0; i<count; i++) {
4339
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4341
list_append(object_ptr->cluster_list,
4346
safe_unpack32(&count, buffer);
4347
if(count != NO_VAL) {
4348
object_ptr->fairshare_list =
4349
list_create(slurm_destroy_char);
4350
for(i=0; i<count; i++) {
4351
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4353
list_append(object_ptr->fairshare_list,
4358
safe_unpack32(&count, buffer);
4359
if(count != NO_VAL) {
4360
object_ptr->grp_cpu_mins_list =
4361
list_create(slurm_destroy_char);
4362
for(i=0; i<count; i++) {
4363
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4365
list_append(object_ptr->grp_cpu_mins_list,
4369
safe_unpack32(&count, buffer);
4370
if(count != NO_VAL) {
4371
object_ptr->grp_cpus_list =
4372
list_create(slurm_destroy_char);
4373
for(i=0; i<count; i++) {
4374
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4376
list_append(object_ptr->grp_cpus_list,
4380
safe_unpack32(&count, buffer);
4381
if(count != NO_VAL) {
4382
object_ptr->grp_jobs_list =
4383
list_create(slurm_destroy_char);
4384
for(i=0; i<count; i++) {
4385
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4387
list_append(object_ptr->grp_jobs_list,
4391
safe_unpack32(&count, buffer);
4392
if(count != NO_VAL) {
4393
object_ptr->grp_nodes_list =
4394
list_create(slurm_destroy_char);
4395
for(i=0; i<count; i++) {
4396
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4398
list_append(object_ptr->grp_nodes_list,
4402
safe_unpack32(&count, buffer);
4403
if(count != NO_VAL) {
4404
object_ptr->grp_submit_jobs_list =
4405
list_create(slurm_destroy_char);
4406
for(i=0; i<count; i++) {
4407
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4409
list_append(object_ptr->grp_submit_jobs_list,
4413
safe_unpack32(&count, buffer);
4414
if(count != NO_VAL) {
4415
object_ptr->grp_wall_list =
4416
list_create(slurm_destroy_char);
4417
for(i=0; i<count; i++) {
4418
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4420
list_append(object_ptr->grp_wall_list,
4425
safe_unpack32(&count, buffer);
4426
if(count != NO_VAL) {
4427
object_ptr->id_list = list_create(slurm_destroy_char);
4428
for(i=0; i<count; i++) {
4429
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4431
list_append(object_ptr->id_list, tmp_info);
4435
safe_unpack32(&count, buffer);
4436
if(count != NO_VAL) {
4437
object_ptr->max_cpu_mins_pj_list =
4438
list_create(slurm_destroy_char);
4439
for(i=0; i<count; i++) {
4440
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4442
list_append(object_ptr->max_cpu_mins_pj_list,
4446
safe_unpack32(&count, buffer);
4447
if(count != NO_VAL) {
4448
object_ptr->max_cpus_pj_list =
4449
list_create(slurm_destroy_char);
4450
for(i=0; i<count; i++) {
4451
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4453
list_append(object_ptr->max_cpus_pj_list,
4457
safe_unpack32(&count, buffer);
4458
if(count != NO_VAL) {
4459
object_ptr->max_jobs_list =
4460
list_create(slurm_destroy_char);
4461
for(i=0; i<count; i++) {
4462
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4464
list_append(object_ptr->max_jobs_list,
4468
safe_unpack32(&count, buffer);
4469
if(count != NO_VAL) {
4470
object_ptr->max_nodes_pj_list =
4471
list_create(slurm_destroy_char);
4472
for(i=0; i<count; i++) {
4473
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4475
list_append(object_ptr->max_nodes_pj_list,
4479
safe_unpack32(&count, buffer);
4480
if(count != NO_VAL) {
4481
object_ptr->max_submit_jobs_list =
4482
list_create(slurm_destroy_char);
4483
for(i=0; i<count; i++) {
4484
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4486
list_append(object_ptr->max_submit_jobs_list,
4490
safe_unpack32(&count, buffer);
4491
if(count != NO_VAL) {
4492
object_ptr->max_wall_pj_list =
4493
list_create(slurm_destroy_char);
4494
for(i=0; i<count; i++) {
4495
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4497
list_append(object_ptr->max_wall_pj_list,
4502
safe_unpack32(&count, buffer);
4503
if(count != NO_VAL) {
4504
object_ptr->partition_list =
4505
list_create(slurm_destroy_char);
4506
for(i=0; i<count; i++) {
4507
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4509
list_append(object_ptr->partition_list,
4514
safe_unpack32(&count, buffer);
4515
if(count != NO_VAL) {
4516
object_ptr->parent_acct_list =
4517
list_create(slurm_destroy_char);
4518
for(i=0; i<count; i++) {
4519
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4521
list_append(object_ptr->parent_acct_list,
4526
safe_unpack32(&count, buffer);
4527
if(count != NO_VAL) {
4528
object_ptr->qos_list = list_create(slurm_destroy_char);
4529
for(i=0; i<count; i++) {
4530
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4532
list_append(object_ptr->qos_list, tmp_info);
4536
safe_unpack_time(&object_ptr->usage_end, buffer);
4537
safe_unpack_time(&object_ptr->usage_start, buffer);
4539
safe_unpack32(&count, buffer);
4540
if(count != NO_VAL) {
4541
object_ptr->user_list =
4542
list_create(slurm_destroy_char);
4543
for(i=0; i<count; i++) {
4544
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4546
list_append(object_ptr->user_list, tmp_info);
4550
safe_unpack16(&object_ptr->with_usage, buffer);
4551
safe_unpack16(&object_ptr->with_deleted, buffer);
4552
safe_unpack16(&object_ptr->with_raw_qos, buffer);
4553
safe_unpack16(&object_ptr->with_sub_accts, buffer);
4554
safe_unpack16(&object_ptr->without_parent_info, buffer);
4555
safe_unpack16(&object_ptr->without_parent_limits, buffer);
4556
} else if(rpc_version >= 3) {
4557
safe_unpack32(&count, buffer);
4558
if(count != NO_VAL) {
4559
object_ptr->acct_list =
4560
list_create(slurm_destroy_char);
4561
for(i=0; i<count; i++) {
4562
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4564
list_append(object_ptr->acct_list, tmp_info);
4567
safe_unpack32(&count, buffer);
4568
if(count != NO_VAL) {
4569
object_ptr->cluster_list =
4570
list_create(slurm_destroy_char);
4571
for(i=0; i<count; i++) {
4572
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4574
list_append(object_ptr->cluster_list,
4579
safe_unpack32(&count, buffer);
4580
if(count != NO_VAL) {
4581
object_ptr->fairshare_list =
4582
list_create(slurm_destroy_char);
4583
for(i=0; i<count; i++) {
4584
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4586
list_append(object_ptr->fairshare_list,
4591
safe_unpack32(&count, buffer);
4592
if(count != NO_VAL) {
4593
object_ptr->grp_cpu_mins_list =
4594
list_create(slurm_destroy_char);
4595
for(i=0; i<count; i++) {
4596
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4598
list_append(object_ptr->grp_cpu_mins_list,
4602
safe_unpack32(&count, buffer);
4603
if(count != NO_VAL) {
4604
object_ptr->grp_cpus_list =
4605
list_create(slurm_destroy_char);
4606
for(i=0; i<count; i++) {
4607
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4609
list_append(object_ptr->grp_cpus_list,
4613
safe_unpack32(&count, buffer);
4614
if(count != NO_VAL) {
4615
object_ptr->grp_jobs_list =
4616
list_create(slurm_destroy_char);
4617
for(i=0; i<count; i++) {
4618
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4620
list_append(object_ptr->grp_jobs_list,
4624
safe_unpack32(&count, buffer);
4625
if(count != NO_VAL) {
4626
object_ptr->grp_nodes_list =
4627
list_create(slurm_destroy_char);
4628
for(i=0; i<count; i++) {
4629
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4631
list_append(object_ptr->grp_nodes_list,
4635
safe_unpack32(&count, buffer);
4636
if(count != NO_VAL) {
4637
object_ptr->grp_submit_jobs_list =
4638
list_create(slurm_destroy_char);
4639
for(i=0; i<count; i++) {
4640
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4642
list_append(object_ptr->grp_submit_jobs_list,
4646
safe_unpack32(&count, buffer);
4647
if(count != NO_VAL) {
4648
object_ptr->grp_wall_list =
4649
list_create(slurm_destroy_char);
4650
for(i=0; i<count; i++) {
4651
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4653
list_append(object_ptr->grp_wall_list,
4658
safe_unpack32(&count, buffer);
4659
if(count != NO_VAL) {
4660
object_ptr->id_list = list_create(slurm_destroy_char);
4661
for(i=0; i<count; i++) {
4662
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4664
list_append(object_ptr->id_list, tmp_info);
4668
safe_unpack32(&count, buffer);
4669
if(count != NO_VAL) {
4670
object_ptr->max_cpu_mins_pj_list =
4671
list_create(slurm_destroy_char);
4672
for(i=0; i<count; i++) {
4673
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4675
list_append(object_ptr->max_cpu_mins_pj_list,
4679
safe_unpack32(&count, buffer);
4680
if(count != NO_VAL) {
4681
object_ptr->max_cpus_pj_list =
4682
list_create(slurm_destroy_char);
4683
for(i=0; i<count; i++) {
4684
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4686
list_append(object_ptr->max_cpus_pj_list,
4690
safe_unpack32(&count, buffer);
4691
if(count != NO_VAL) {
4692
object_ptr->max_jobs_list =
4693
list_create(slurm_destroy_char);
4694
for(i=0; i<count; i++) {
4695
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4697
list_append(object_ptr->max_jobs_list,
4701
safe_unpack32(&count, buffer);
4702
if(count != NO_VAL) {
4703
object_ptr->max_nodes_pj_list =
4704
list_create(slurm_destroy_char);
4705
for(i=0; i<count; i++) {
4706
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4708
list_append(object_ptr->max_nodes_pj_list,
4712
safe_unpack32(&count, buffer);
4713
if(count != NO_VAL) {
4714
object_ptr->max_submit_jobs_list =
4715
list_create(slurm_destroy_char);
4716
for(i=0; i<count; i++) {
4717
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4719
list_append(object_ptr->max_submit_jobs_list,
4723
safe_unpack32(&count, buffer);
4724
if(count != NO_VAL) {
4725
object_ptr->max_wall_pj_list =
4726
list_create(slurm_destroy_char);
4727
for(i=0; i<count; i++) {
4728
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4730
list_append(object_ptr->max_wall_pj_list,
4735
safe_unpack32(&count, buffer);
4736
if(count != NO_VAL) {
4737
object_ptr->partition_list =
4738
list_create(slurm_destroy_char);
4739
for(i=0; i<count; i++) {
4740
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4742
list_append(object_ptr->partition_list,
4747
safe_unpack32(&count, buffer);
4748
if(count != NO_VAL) {
4749
object_ptr->parent_acct_list =
4750
list_create(slurm_destroy_char);
4751
for(i=0; i<count; i++) {
4752
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4754
list_append(object_ptr->parent_acct_list,
4759
safe_unpack32(&count, buffer);
4760
if(count != NO_VAL) {
4761
object_ptr->qos_list = list_create(slurm_destroy_char);
4762
for(i=0; i<count; i++) {
4763
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4765
list_append(object_ptr->qos_list, tmp_info);
4769
safe_unpack32(&uint32_tmp, buffer);
4770
object_ptr->usage_end = uint32_tmp;
4771
safe_unpack32(&uint32_tmp, buffer);
4772
object_ptr->usage_start = uint32_tmp;
3817
4774
safe_unpack32(&count, buffer);
3818
4775
if(count != NO_VAL) {
3963
4922
ListIterator itr = NULL;
3964
4923
acct_job_cond_t *object = (acct_job_cond_t *)in;
3966
if(rpc_version >= 4) {
4925
if(rpc_version >= 5) {
4927
pack32(NO_VAL, buffer);
4928
pack32(NO_VAL, buffer);
4929
pack32(NO_VAL, buffer);
4931
pack32(NO_VAL, buffer);
4932
pack32(NO_VAL, buffer);
4933
pack32(NO_VAL, buffer);
4934
pack32(NO_VAL, buffer);
4935
pack32(NO_VAL, buffer);
4936
pack_time(0, buffer);
4937
pack_time(0, buffer);
4939
pack32(NO_VAL, buffer);
4940
pack32(NO_VAL, buffer);
4946
if(object->acct_list)
4947
count = list_count(object->acct_list);
4949
pack32(count, buffer);
4950
if(count && count != NO_VAL) {
4951
itr = list_iterator_create(object->acct_list);
4952
while((tmp_info = list_next(itr))) {
4953
packstr(tmp_info, buffer);
4955
list_iterator_destroy(itr);
4959
if(object->associd_list)
4960
count = list_count(object->associd_list);
4962
pack32(count, buffer);
4963
if(count && count != NO_VAL) {
4964
itr = list_iterator_create(object->associd_list);
4965
while((tmp_info = list_next(itr))) {
4966
packstr(tmp_info, buffer);
4971
if(object->cluster_list)
4972
count = list_count(object->cluster_list);
4974
pack32(count, buffer);
4975
if(count && count != NO_VAL) {
4976
itr = list_iterator_create(object->cluster_list);
4977
while((tmp_info = list_next(itr))) {
4978
packstr(tmp_info, buffer);
4980
list_iterator_destroy(itr);
4984
pack16(object->duplicates, buffer);
4986
if(object->groupid_list)
4987
count = list_count(object->groupid_list);
4989
pack32(count, buffer);
4990
if(count && count != NO_VAL) {
4991
itr = list_iterator_create(object->groupid_list);
4992
while((tmp_info = list_next(itr))) {
4993
packstr(tmp_info, buffer);
4998
if(object->partition_list)
4999
count = list_count(object->partition_list);
5001
pack32(count, buffer);
5002
if(count && count != NO_VAL) {
5003
itr = list_iterator_create(object->partition_list);
5004
while((tmp_info = list_next(itr))) {
5005
packstr(tmp_info, buffer);
5007
list_iterator_destroy(itr);
5011
if(object->resv_list)
5012
count = list_count(object->resv_list);
5014
pack32(count, buffer);
5015
if(count && count != NO_VAL) {
5016
itr = list_iterator_create(object->resv_list);
5017
while((tmp_info = list_next(itr))) {
5018
packstr(tmp_info, buffer);
5020
list_iterator_destroy(itr);
5024
if(object->resvid_list)
5025
count = list_count(object->resvid_list);
5027
pack32(count, buffer);
5028
if(count && count != NO_VAL) {
5029
itr = list_iterator_create(object->resvid_list);
5030
while((tmp_info = list_next(itr))) {
5031
packstr(tmp_info, buffer);
5033
list_iterator_destroy(itr);
5037
if(object->step_list)
5038
count = list_count(object->step_list);
5040
pack32(count, buffer);
5041
if(count && count != NO_VAL) {
5042
itr = list_iterator_create(object->step_list);
5043
while((job = list_next(itr))) {
5044
pack_jobacct_selected_step(job, rpc_version,
5047
list_iterator_destroy(itr);
5051
if(object->state_list)
5052
count = list_count(object->state_list);
5054
pack32(count, buffer);
5055
if(count && count != NO_VAL) {
5056
itr = list_iterator_create(object->state_list);
5057
while((tmp_info = list_next(itr))) {
5058
packstr(tmp_info, buffer);
5060
list_iterator_destroy(itr);
5064
pack_time(object->usage_end, buffer);
5065
pack_time(object->usage_start, buffer);
5067
packstr(object->used_nodes, buffer);
5069
if(object->userid_list)
5070
count = list_count(object->userid_list);
5072
pack32(count, buffer);
5073
if(count && count != NO_VAL) {
5074
itr = list_iterator_create(object->userid_list);
5075
while((tmp_info = list_next(itr))) {
5076
packstr(tmp_info, buffer);
5078
list_iterator_destroy(itr);
5082
pack32(count, buffer);
5083
if(count && count != NO_VAL) {
5084
itr = list_iterator_create(object->wckey_list);
5085
while((tmp_info = list_next(itr))) {
5086
packstr(tmp_info, buffer);
5088
list_iterator_destroy(itr);
5092
pack16(object->without_steps, buffer);
5093
pack16(object->without_usage_truncation, buffer);
5094
} else if(rpc_version >= 4) {
3968
5096
pack32(NO_VAL, buffer);
3969
5097
pack32(NO_VAL, buffer);
4241
5369
*object = object_ptr;
4243
if(rpc_version >= 4) {
4244
safe_unpack32(&count, buffer);
4245
if(count != NO_VAL) {
4246
object_ptr->acct_list = list_create(slurm_destroy_char);
4247
for(i=0; i<count; i++) {
4248
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4250
list_append(object_ptr->acct_list, tmp_info);
4254
safe_unpack32(&count, buffer);
4255
if(count != NO_VAL) {
4256
object_ptr->associd_list =
4257
list_create(slurm_destroy_char);
4258
for(i=0; i<count; i++) {
4259
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4261
list_append(object_ptr->associd_list, tmp_info);
4265
safe_unpack32(&count, buffer);
4266
if(count != NO_VAL) {
4267
object_ptr->cluster_list =
4268
list_create(slurm_destroy_char);
4269
for(i=0; i<count; i++) {
4270
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4272
list_append(object_ptr->cluster_list, tmp_info);
4276
safe_unpack16(&object_ptr->duplicates, buffer);
4278
safe_unpack32(&count, buffer);
4279
if(count != NO_VAL) {
4280
object_ptr->groupid_list =
4281
list_create(slurm_destroy_char);
4282
for(i=0; i<count; i++) {
4283
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4285
list_append(object_ptr->groupid_list, tmp_info);
4289
safe_unpack32(&count, buffer);
4290
if(count != NO_VAL) {
4291
object_ptr->partition_list =
4292
list_create(slurm_destroy_char);
4293
for(i=0; i<count; i++) {
4294
safe_unpackstr_xmalloc(&tmp_info,
4295
&uint32_tmp, buffer);
4296
list_append(object_ptr->partition_list,
4301
safe_unpack32(&count, buffer);
4302
if(count != NO_VAL) {
4303
object_ptr->step_list =
4304
list_create(destroy_jobacct_selected_step);
4305
for(i=0; i<count; i++) {
4306
unpack_jobacct_selected_step(&job, rpc_version,
4308
list_append(object_ptr->step_list, job);
4312
safe_unpack32(&count, buffer);
4313
if(count != NO_VAL) {
4314
object_ptr->state_list =
4315
list_create(slurm_destroy_char);
4316
for(i=0; i<count; i++) {
4317
safe_unpackstr_xmalloc(&tmp_info,
4318
&uint32_tmp, buffer);
4319
list_append(object_ptr->state_list, tmp_info);
4323
safe_unpack32(&object_ptr->usage_end, buffer);
4324
safe_unpack32(&object_ptr->usage_start, buffer);
5371
if(rpc_version >= 5) {
5372
safe_unpack32(&count, buffer);
5373
if(count != NO_VAL) {
5374
object_ptr->acct_list = list_create(slurm_destroy_char);
5375
for(i=0; i<count; i++) {
5376
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5378
list_append(object_ptr->acct_list, tmp_info);
5382
safe_unpack32(&count, buffer);
5383
if(count != NO_VAL) {
5384
object_ptr->associd_list =
5385
list_create(slurm_destroy_char);
5386
for(i=0; i<count; i++) {
5387
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5389
list_append(object_ptr->associd_list, tmp_info);
5393
safe_unpack32(&count, buffer);
5394
if(count != NO_VAL) {
5395
object_ptr->cluster_list =
5396
list_create(slurm_destroy_char);
5397
for(i=0; i<count; i++) {
5398
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5400
list_append(object_ptr->cluster_list, tmp_info);
5404
safe_unpack16(&object_ptr->duplicates, buffer);
5406
safe_unpack32(&count, buffer);
5407
if(count != NO_VAL) {
5408
object_ptr->groupid_list =
5409
list_create(slurm_destroy_char);
5410
for(i=0; i<count; i++) {
5411
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5413
list_append(object_ptr->groupid_list, tmp_info);
5417
safe_unpack32(&count, buffer);
5418
if(count != NO_VAL) {
5419
object_ptr->partition_list =
5420
list_create(slurm_destroy_char);
5421
for(i=0; i<count; i++) {
5422
safe_unpackstr_xmalloc(&tmp_info,
5423
&uint32_tmp, buffer);
5424
list_append(object_ptr->partition_list,
5429
safe_unpack32(&count, buffer);
5430
if(count != NO_VAL) {
5431
object_ptr->resv_list =
5432
list_create(slurm_destroy_char);
5433
for(i=0; i<count; i++) {
5434
safe_unpackstr_xmalloc(&tmp_info,
5435
&uint32_tmp, buffer);
5436
list_append(object_ptr->resv_list,
5441
safe_unpack32(&count, buffer);
5442
if(count != NO_VAL) {
5443
object_ptr->resvid_list =
5444
list_create(slurm_destroy_char);
5445
for(i=0; i<count; i++) {
5446
safe_unpackstr_xmalloc(&tmp_info,
5447
&uint32_tmp, buffer);
5448
list_append(object_ptr->resvid_list,
5453
safe_unpack32(&count, buffer);
5454
if(count != NO_VAL) {
5455
object_ptr->step_list =
5456
list_create(destroy_jobacct_selected_step);
5457
for(i=0; i<count; i++) {
5458
unpack_jobacct_selected_step(&job, rpc_version,
5460
list_append(object_ptr->step_list, job);
5464
safe_unpack32(&count, buffer);
5465
if(count != NO_VAL) {
5466
object_ptr->state_list =
5467
list_create(slurm_destroy_char);
5468
for(i=0; i<count; i++) {
5469
safe_unpackstr_xmalloc(&tmp_info,
5470
&uint32_tmp, buffer);
5471
list_append(object_ptr->state_list, tmp_info);
5475
safe_unpack_time(&object_ptr->usage_end, buffer);
5476
safe_unpack_time(&object_ptr->usage_start, buffer);
5478
safe_unpackstr_xmalloc(&object_ptr->used_nodes,
5479
&uint32_tmp, buffer);
5481
safe_unpack32(&count, buffer);
5482
if(count != NO_VAL) {
5483
object_ptr->userid_list =
5484
list_create(slurm_destroy_char);
5485
for(i=0; i<count; i++) {
5486
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5488
list_append(object_ptr->userid_list, tmp_info);
5492
safe_unpack32(&count, buffer);
5493
if(count != NO_VAL) {
5494
object_ptr->wckey_list =
5495
list_create(slurm_destroy_char);
5496
for(i=0; i<count; i++) {
5497
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5499
list_append(object_ptr->wckey_list, tmp_info);
5503
safe_unpack16(&object_ptr->without_steps, buffer);
5504
safe_unpack16(&object_ptr->without_usage_truncation, buffer);
5505
} else if(rpc_version >= 4) {
5506
safe_unpack32(&count, buffer);
5507
if(count != NO_VAL) {
5508
object_ptr->acct_list = list_create(slurm_destroy_char);
5509
for(i=0; i<count; i++) {
5510
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5512
list_append(object_ptr->acct_list, tmp_info);
5516
safe_unpack32(&count, buffer);
5517
if(count != NO_VAL) {
5518
object_ptr->associd_list =
5519
list_create(slurm_destroy_char);
5520
for(i=0; i<count; i++) {
5521
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5523
list_append(object_ptr->associd_list, tmp_info);
5527
safe_unpack32(&count, buffer);
5528
if(count != NO_VAL) {
5529
object_ptr->cluster_list =
5530
list_create(slurm_destroy_char);
5531
for(i=0; i<count; i++) {
5532
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5534
list_append(object_ptr->cluster_list, tmp_info);
5538
safe_unpack16(&object_ptr->duplicates, buffer);
5540
safe_unpack32(&count, buffer);
5541
if(count != NO_VAL) {
5542
object_ptr->groupid_list =
5543
list_create(slurm_destroy_char);
5544
for(i=0; i<count; i++) {
5545
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5547
list_append(object_ptr->groupid_list, tmp_info);
5551
safe_unpack32(&count, buffer);
5552
if(count != NO_VAL) {
5553
object_ptr->partition_list =
5554
list_create(slurm_destroy_char);
5555
for(i=0; i<count; i++) {
5556
safe_unpackstr_xmalloc(&tmp_info,
5557
&uint32_tmp, buffer);
5558
list_append(object_ptr->partition_list,
5563
safe_unpack32(&count, buffer);
5564
if(count != NO_VAL) {
5565
object_ptr->step_list =
5566
list_create(destroy_jobacct_selected_step);
5567
for(i=0; i<count; i++) {
5568
unpack_jobacct_selected_step(&job, rpc_version,
5570
list_append(object_ptr->step_list, job);
5574
safe_unpack32(&count, buffer);
5575
if(count != NO_VAL) {
5576
object_ptr->state_list =
5577
list_create(slurm_destroy_char);
5578
for(i=0; i<count; i++) {
5579
safe_unpackstr_xmalloc(&tmp_info,
5580
&uint32_tmp, buffer);
5581
list_append(object_ptr->state_list, tmp_info);
5585
safe_unpack32(&uint32_tmp, buffer);
5586
object_ptr->usage_end = uint32_tmp;
5587
safe_unpack32(&uint32_tmp, buffer);
5588
object_ptr->usage_start = uint32_tmp;
4326
5590
safe_unpack32(&count, buffer);
4327
5591
if(count != NO_VAL) {
4744
6251
char *tmp_info = NULL;
4746
6253
*object = object_ptr;
4747
if (rpc_version >= 3) {
4748
safe_unpack32(&count, buffer);
4749
if(count != NO_VAL) {
4750
object_ptr->acct_list =
4751
list_create(slurm_destroy_char);
4752
for(i=0; i<count; i++) {
4753
safe_unpackstr_xmalloc(&tmp_info,
4754
&uint32_tmp, buffer);
4755
list_append(object_ptr->acct_list, tmp_info);
4759
safe_unpack32(&count, buffer);
4760
if(count != NO_VAL) {
4761
object_ptr->action_list =
4762
list_create(slurm_destroy_char);
4763
for(i=0; i<count; i++) {
4764
safe_unpackstr_xmalloc(&tmp_info,
4765
&uint32_tmp, buffer);
4766
list_append(object_ptr->action_list, tmp_info);
4770
safe_unpack32(&count, buffer);
4771
if(count != NO_VAL) {
4772
object_ptr->actor_list =
4773
list_create(slurm_destroy_char);
4774
for(i=0; i<count; i++) {
4775
safe_unpackstr_xmalloc(&tmp_info,
4776
&uint32_tmp, buffer);
4777
list_append(object_ptr->actor_list, tmp_info);
4781
safe_unpack32(&count, buffer);
4782
if(count != NO_VAL) {
4783
object_ptr->cluster_list =
4784
list_create(slurm_destroy_char);
4785
for(i=0; i<count; i++) {
4786
safe_unpackstr_xmalloc(&tmp_info,
4787
&uint32_tmp, buffer);
4788
list_append(object_ptr->cluster_list, tmp_info);
4792
safe_unpack32(&count, buffer);
4793
if(count != NO_VAL) {
4794
object_ptr->id_list = list_create(slurm_destroy_char);
4795
for(i=0; i<count; i++) {
4796
safe_unpackstr_xmalloc(&tmp_info,
4797
&uint32_tmp, buffer);
4798
list_append(object_ptr->id_list, tmp_info);
4802
safe_unpack32(&count, buffer);
4803
if(count != NO_VAL) {
4804
object_ptr->info_list =
4805
list_create(slurm_destroy_char);
4806
for(i=0; i<count; i++) {
4807
safe_unpackstr_xmalloc(&tmp_info,
4808
&uint32_tmp, buffer);
4809
list_append(object_ptr->info_list, tmp_info);
4813
safe_unpack32(&count, buffer);
4814
if(count != NO_VAL) {
4815
object_ptr->name_list =
4816
list_create(slurm_destroy_char);
4817
for(i=0; i<count; i++) {
4818
safe_unpackstr_xmalloc(&tmp_info,
4819
&uint32_tmp, buffer);
4820
list_append(object_ptr->name_list, tmp_info);
4824
safe_unpack32(&object_ptr->time_end, buffer);
4825
safe_unpack32(&object_ptr->time_start, buffer);
6254
if (rpc_version >= 5) {
6255
safe_unpack32(&count, buffer);
6256
if(count != NO_VAL) {
6257
object_ptr->acct_list =
6258
list_create(slurm_destroy_char);
6259
for(i=0; i<count; i++) {
6260
safe_unpackstr_xmalloc(&tmp_info,
6261
&uint32_tmp, buffer);
6262
list_append(object_ptr->acct_list, tmp_info);
6266
safe_unpack32(&count, buffer);
6267
if(count != NO_VAL) {
6268
object_ptr->action_list =
6269
list_create(slurm_destroy_char);
6270
for(i=0; i<count; i++) {
6271
safe_unpackstr_xmalloc(&tmp_info,
6272
&uint32_tmp, buffer);
6273
list_append(object_ptr->action_list, tmp_info);
6277
safe_unpack32(&count, buffer);
6278
if(count != NO_VAL) {
6279
object_ptr->actor_list =
6280
list_create(slurm_destroy_char);
6281
for(i=0; i<count; i++) {
6282
safe_unpackstr_xmalloc(&tmp_info,
6283
&uint32_tmp, buffer);
6284
list_append(object_ptr->actor_list, tmp_info);
6288
safe_unpack32(&count, buffer);
6289
if(count != NO_VAL) {
6290
object_ptr->cluster_list =
6291
list_create(slurm_destroy_char);
6292
for(i=0; i<count; i++) {
6293
safe_unpackstr_xmalloc(&tmp_info,
6294
&uint32_tmp, buffer);
6295
list_append(object_ptr->cluster_list, tmp_info);
6299
safe_unpack32(&count, buffer);
6300
if(count != NO_VAL) {
6301
object_ptr->id_list = list_create(slurm_destroy_char);
6302
for(i=0; i<count; i++) {
6303
safe_unpackstr_xmalloc(&tmp_info,
6304
&uint32_tmp, buffer);
6305
list_append(object_ptr->id_list, tmp_info);
6309
safe_unpack32(&count, buffer);
6310
if(count != NO_VAL) {
6311
object_ptr->info_list =
6312
list_create(slurm_destroy_char);
6313
for(i=0; i<count; i++) {
6314
safe_unpackstr_xmalloc(&tmp_info,
6315
&uint32_tmp, buffer);
6316
list_append(object_ptr->info_list, tmp_info);
6320
safe_unpack32(&count, buffer);
6321
if(count != NO_VAL) {
6322
object_ptr->name_list =
6323
list_create(slurm_destroy_char);
6324
for(i=0; i<count; i++) {
6325
safe_unpackstr_xmalloc(&tmp_info,
6326
&uint32_tmp, buffer);
6327
list_append(object_ptr->name_list, tmp_info);
6331
safe_unpack_time(&object_ptr->time_end, buffer);
6332
safe_unpack_time(&object_ptr->time_start, buffer);
6334
safe_unpack32(&count, buffer);
6335
if(count != NO_VAL) {
6336
object_ptr->user_list =
6337
list_create(slurm_destroy_char);
6338
for(i=0; i<count; i++) {
6339
safe_unpackstr_xmalloc(&tmp_info,
6340
&uint32_tmp, buffer);
6341
list_append(object_ptr->user_list, tmp_info);
6345
safe_unpack16(&object_ptr->with_assoc_info, buffer);
6346
} else if (rpc_version >= 3) {
6347
safe_unpack32(&count, buffer);
6348
if(count != NO_VAL) {
6349
object_ptr->acct_list =
6350
list_create(slurm_destroy_char);
6351
for(i=0; i<count; i++) {
6352
safe_unpackstr_xmalloc(&tmp_info,
6353
&uint32_tmp, buffer);
6354
list_append(object_ptr->acct_list, tmp_info);
6358
safe_unpack32(&count, buffer);
6359
if(count != NO_VAL) {
6360
object_ptr->action_list =
6361
list_create(slurm_destroy_char);
6362
for(i=0; i<count; i++) {
6363
safe_unpackstr_xmalloc(&tmp_info,
6364
&uint32_tmp, buffer);
6365
list_append(object_ptr->action_list, tmp_info);
6369
safe_unpack32(&count, buffer);
6370
if(count != NO_VAL) {
6371
object_ptr->actor_list =
6372
list_create(slurm_destroy_char);
6373
for(i=0; i<count; i++) {
6374
safe_unpackstr_xmalloc(&tmp_info,
6375
&uint32_tmp, buffer);
6376
list_append(object_ptr->actor_list, tmp_info);
6380
safe_unpack32(&count, buffer);
6381
if(count != NO_VAL) {
6382
object_ptr->cluster_list =
6383
list_create(slurm_destroy_char);
6384
for(i=0; i<count; i++) {
6385
safe_unpackstr_xmalloc(&tmp_info,
6386
&uint32_tmp, buffer);
6387
list_append(object_ptr->cluster_list, tmp_info);
6391
safe_unpack32(&count, buffer);
6392
if(count != NO_VAL) {
6393
object_ptr->id_list = list_create(slurm_destroy_char);
6394
for(i=0; i<count; i++) {
6395
safe_unpackstr_xmalloc(&tmp_info,
6396
&uint32_tmp, buffer);
6397
list_append(object_ptr->id_list, tmp_info);
6401
safe_unpack32(&count, buffer);
6402
if(count != NO_VAL) {
6403
object_ptr->info_list =
6404
list_create(slurm_destroy_char);
6405
for(i=0; i<count; i++) {
6406
safe_unpackstr_xmalloc(&tmp_info,
6407
&uint32_tmp, buffer);
6408
list_append(object_ptr->info_list, tmp_info);
6412
safe_unpack32(&count, buffer);
6413
if(count != NO_VAL) {
6414
object_ptr->name_list =
6415
list_create(slurm_destroy_char);
6416
for(i=0; i<count; i++) {
6417
safe_unpackstr_xmalloc(&tmp_info,
6418
&uint32_tmp, buffer);
6419
list_append(object_ptr->name_list, tmp_info);
6423
safe_unpack32(&uint32_tmp, buffer);
6424
object_ptr->time_end = uint32_tmp;
6425
safe_unpack32(&uint32_tmp, buffer);
6426
object_ptr->time_start = uint32_tmp;
4827
6428
safe_unpack32(&count, buffer);
4828
6429
if(count != NO_VAL) {
4889
6492
ListIterator itr = NULL;
4890
6493
acct_wckey_cond_t *object = (acct_wckey_cond_t *)in;
4893
pack32(NO_VAL, buffer);
4894
pack32(NO_VAL, buffer);
4896
pack32(NO_VAL, buffer);
4897
pack32(NO_VAL, buffer);
4899
pack32(NO_VAL, buffer);
4900
pack32(NO_VAL, buffer);
4907
if(object->cluster_list)
4908
count = list_count(object->cluster_list);
4910
pack32(count, buffer);
4911
if(count && count != NO_VAL) {
4912
itr = list_iterator_create(object->cluster_list);
4913
while((tmp_info = list_next(itr))) {
4914
packstr(tmp_info, buffer);
4916
list_iterator_destroy(itr);
4921
count = list_count(object->id_list);
4923
pack32(count, buffer);
4924
if(count && count != NO_VAL) {
4925
itr = list_iterator_create(object->id_list);
4926
while((tmp_info = list_next(itr))) {
4927
packstr(tmp_info, buffer);
4932
if(object->name_list)
4933
count = list_count(object->name_list);
4935
pack32(count, buffer);
4936
if(count && count != NO_VAL) {
4937
itr = list_iterator_create(object->name_list);
4938
while((tmp_info = list_next(itr))) {
4939
packstr(tmp_info, buffer);
4941
list_iterator_destroy(itr);
4945
pack32(object->usage_end, buffer);
4946
pack32(object->usage_start, buffer);
4948
if(object->user_list)
4949
count = list_count(object->user_list);
4951
pack32(count, buffer);
4952
if(count && count != NO_VAL) {
4953
itr = list_iterator_create(object->user_list);
4954
while((tmp_info = list_next(itr))) {
4955
packstr(tmp_info, buffer);
4957
list_iterator_destroy(itr);
4961
pack16(object->with_usage, buffer);
4962
pack16(object->with_deleted, buffer);
6494
if(rpc_version >= 5) {
6496
pack32(NO_VAL, buffer);
6497
pack32(NO_VAL, buffer);
6498
pack32(NO_VAL, buffer);
6500
pack_time(0, buffer);
6501
pack_time(0, buffer);
6503
pack32(NO_VAL, buffer);
6510
if(object->cluster_list)
6511
count = list_count(object->cluster_list);
6513
pack32(count, buffer);
6514
if(count && count != NO_VAL) {
6515
itr = list_iterator_create(object->cluster_list);
6516
while((tmp_info = list_next(itr))) {
6517
packstr(tmp_info, buffer);
6519
list_iterator_destroy(itr);
6524
count = list_count(object->id_list);
6526
pack32(count, buffer);
6527
if(count && count != NO_VAL) {
6528
itr = list_iterator_create(object->id_list);
6529
while((tmp_info = list_next(itr))) {
6530
packstr(tmp_info, buffer);
6535
if(object->name_list)
6536
count = list_count(object->name_list);
6538
pack32(count, buffer);
6539
if(count && count != NO_VAL) {
6540
itr = list_iterator_create(object->name_list);
6541
while((tmp_info = list_next(itr))) {
6542
packstr(tmp_info, buffer);
6544
list_iterator_destroy(itr);
6548
pack_time(object->usage_end, buffer);
6549
pack_time(object->usage_start, buffer);
6551
if(object->user_list)
6552
count = list_count(object->user_list);
6554
pack32(count, buffer);
6555
if(count && count != NO_VAL) {
6556
itr = list_iterator_create(object->user_list);
6557
while((tmp_info = list_next(itr))) {
6558
packstr(tmp_info, buffer);
6560
list_iterator_destroy(itr);
6564
pack16(object->with_usage, buffer);
6565
pack16(object->with_deleted, buffer);
6568
pack32(NO_VAL, buffer);
6569
pack32(NO_VAL, buffer);
6570
pack32(NO_VAL, buffer);
6575
pack32(NO_VAL, buffer);
6582
if(object->cluster_list)
6583
count = list_count(object->cluster_list);
6585
pack32(count, buffer);
6586
if(count && count != NO_VAL) {
6587
itr = list_iterator_create(object->cluster_list);
6588
while((tmp_info = list_next(itr))) {
6589
packstr(tmp_info, buffer);
6591
list_iterator_destroy(itr);
6596
count = list_count(object->id_list);
6598
pack32(count, buffer);
6599
if(count && count != NO_VAL) {
6600
itr = list_iterator_create(object->id_list);
6601
while((tmp_info = list_next(itr))) {
6602
packstr(tmp_info, buffer);
6607
if(object->name_list)
6608
count = list_count(object->name_list);
6610
pack32(count, buffer);
6611
if(count && count != NO_VAL) {
6612
itr = list_iterator_create(object->name_list);
6613
while((tmp_info = list_next(itr))) {
6614
packstr(tmp_info, buffer);
6616
list_iterator_destroy(itr);
6620
pack32(object->usage_end, buffer);
6621
pack32(object->usage_start, buffer);
6623
if(object->user_list)
6624
count = list_count(object->user_list);
6626
pack32(count, buffer);
6627
if(count && count != NO_VAL) {
6628
itr = list_iterator_create(object->user_list);
6629
while((tmp_info = list_next(itr))) {
6630
packstr(tmp_info, buffer);
6632
list_iterator_destroy(itr);
6636
pack16(object->with_usage, buffer);
6637
pack16(object->with_deleted, buffer);
4965
6641
extern int unpack_acct_wckey_cond(void **object, uint16_t rpc_version,
4974
6650
*object = object_ptr;
4976
safe_unpack32(&count, buffer);
4977
if(count != NO_VAL) {
4978
object_ptr->cluster_list =
4979
list_create(slurm_destroy_char);
4980
for(i=0; i<count; i++) {
4981
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4983
list_append(object_ptr->cluster_list,
4988
safe_unpack32(&count, buffer);
4989
if(count != NO_VAL) {
4990
object_ptr->id_list = list_create(slurm_destroy_char);
4991
for(i=0; i<count; i++) {
4992
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
4994
list_append(object_ptr->id_list, tmp_info);
4998
safe_unpack32(&count, buffer);
4999
if(count != NO_VAL) {
5000
object_ptr->name_list =
5001
list_create(slurm_destroy_char);
5002
for(i=0; i<count; i++) {
5003
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5005
list_append(object_ptr->name_list, tmp_info);
5009
safe_unpack32(&object_ptr->usage_end, buffer);
5010
safe_unpack32(&object_ptr->usage_start, buffer);
5012
safe_unpack32(&count, buffer);
5013
if(count != NO_VAL) {
5014
object_ptr->user_list =
5015
list_create(slurm_destroy_char);
5016
for(i=0; i<count; i++) {
5017
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
5019
list_append(object_ptr->user_list, tmp_info);
5023
safe_unpack16(&object_ptr->with_usage, buffer);
5024
safe_unpack16(&object_ptr->with_deleted, buffer);
6652
if(rpc_version >= 5) {
6653
safe_unpack32(&count, buffer);
6654
if(count != NO_VAL) {
6655
object_ptr->cluster_list =
6656
list_create(slurm_destroy_char);
6657
for(i=0; i<count; i++) {
6658
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6660
list_append(object_ptr->cluster_list,
6665
safe_unpack32(&count, buffer);
6666
if(count != NO_VAL) {
6667
object_ptr->id_list = list_create(slurm_destroy_char);
6668
for(i=0; i<count; i++) {
6669
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6671
list_append(object_ptr->id_list, tmp_info);
6675
safe_unpack32(&count, buffer);
6676
if(count != NO_VAL) {
6677
object_ptr->name_list =
6678
list_create(slurm_destroy_char);
6679
for(i=0; i<count; i++) {
6680
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6682
list_append(object_ptr->name_list, tmp_info);
6686
safe_unpack_time(&object_ptr->usage_end, buffer);
6687
safe_unpack_time(&object_ptr->usage_start, buffer);
6689
safe_unpack32(&count, buffer);
6690
if(count != NO_VAL) {
6691
object_ptr->user_list =
6692
list_create(slurm_destroy_char);
6693
for(i=0; i<count; i++) {
6694
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6696
list_append(object_ptr->user_list, tmp_info);
6700
safe_unpack16(&object_ptr->with_usage, buffer);
6701
safe_unpack16(&object_ptr->with_deleted, buffer);
6703
safe_unpack32(&count, buffer);
6704
if(count != NO_VAL) {
6705
object_ptr->cluster_list =
6706
list_create(slurm_destroy_char);
6707
for(i=0; i<count; i++) {
6708
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6710
list_append(object_ptr->cluster_list,
6715
safe_unpack32(&count, buffer);
6716
if(count != NO_VAL) {
6717
object_ptr->id_list = list_create(slurm_destroy_char);
6718
for(i=0; i<count; i++) {
6719
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6721
list_append(object_ptr->id_list, tmp_info);
6725
safe_unpack32(&count, buffer);
6726
if(count != NO_VAL) {
6727
object_ptr->name_list =
6728
list_create(slurm_destroy_char);
6729
for(i=0; i<count; i++) {
6730
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6732
list_append(object_ptr->name_list, tmp_info);
6736
safe_unpack32(&uint32_tmp, buffer);
6737
object_ptr->usage_end = uint32_tmp;
6738
safe_unpack32(&uint32_tmp, buffer);
6739
object_ptr->usage_start = uint32_tmp;
6741
safe_unpack32(&count, buffer);
6742
if(count != NO_VAL) {
6743
object_ptr->user_list =
6744
list_create(slurm_destroy_char);
6745
for(i=0; i<count; i++) {
6746
safe_unpackstr_xmalloc(&tmp_info, &uint32_tmp,
6748
list_append(object_ptr->user_list, tmp_info);
6752
safe_unpack16(&object_ptr->with_usage, buffer);
6753
safe_unpack16(&object_ptr->with_deleted, buffer);
5026
6755
return SLURM_SUCCESS;