18
18
* c = hwloc_cpuset_t
19
19
* c = qvi_hwloc_bitmap_s
20
20
* d = qv_scope_create_hints_t
21
- * h = qvi_hwpool_s *
21
+ * h = qvi_hwpool *
22
22
* i = int
23
23
* s = char *
24
24
* s = std::string
@@ -122,7 +122,7 @@ template<>
122
122
inline void
123
123
qvi_bbuff_rmi_pack_type_picture (
124
124
std::string &picture,
125
- const qvi_hwpool_s *
125
+ const qvi_hwpool *
126
126
) {
127
127
picture += " h" ;
128
128
}
@@ -131,7 +131,7 @@ template<>
131
131
inline void
132
132
qvi_bbuff_rmi_pack_type_picture (
133
133
std::string &picture,
134
- qvi_hwpool_s *
134
+ qvi_hwpool *
135
135
) {
136
136
picture += " h" ;
137
137
}
@@ -140,7 +140,7 @@ template<>
140
140
inline void
141
141
qvi_bbuff_rmi_pack_type_picture (
142
142
std::string &picture,
143
- qvi_hwpool_s **
143
+ qvi_hwpool **
144
144
) {
145
145
picture += " h" ;
146
146
}
@@ -286,7 +286,7 @@ qvi_bbuff_rmi_get_picture
286
286
template <typename T>
287
287
inline int
288
288
qvi_bbuff_rmi_pack_item (
289
- qvi_bbuff_t *,
289
+ qvi_bbuff *,
290
290
T
291
291
);
292
292
@@ -295,7 +295,7 @@ qvi_bbuff_rmi_pack_item(
295
295
*/
296
296
inline int
297
297
qvi_bbuff_rmi_pack_item (
298
- qvi_bbuff_t *buff,
298
+ qvi_bbuff *buff,
299
299
size_t data
300
300
) {
301
301
return buff->append (&data, sizeof (data));
@@ -306,7 +306,7 @@ qvi_bbuff_rmi_pack_item(
306
306
*/
307
307
inline int
308
308
qvi_bbuff_rmi_pack_item (
309
- qvi_bbuff_t *buff,
309
+ qvi_bbuff *buff,
310
310
int data
311
311
) {
312
312
return buff->append (&data, sizeof (data));
@@ -317,7 +317,7 @@ qvi_bbuff_rmi_pack_item(
317
317
*/
318
318
inline int
319
319
qvi_bbuff_rmi_pack_item (
320
- qvi_bbuff_t *buff,
320
+ qvi_bbuff *buff,
321
321
qv_scope_create_hints_t data
322
322
) {
323
323
const int dai = (int )data;
@@ -329,7 +329,7 @@ qvi_bbuff_rmi_pack_item(
329
329
*/
330
330
inline int
331
331
qvi_bbuff_rmi_pack_item (
332
- qvi_bbuff_t *buff,
332
+ qvi_bbuff *buff,
333
333
qv_hw_obj_type_t data
334
334
) {
335
335
const int dai = (int )data;
@@ -341,7 +341,7 @@ qvi_bbuff_rmi_pack_item(
341
341
*/
342
342
inline int
343
343
qvi_bbuff_rmi_pack_item (
344
- qvi_bbuff_t *buff,
344
+ qvi_bbuff *buff,
345
345
qv_device_id_type_t data
346
346
) {
347
347
const int dai = (int )data;
@@ -353,7 +353,7 @@ qvi_bbuff_rmi_pack_item(
353
353
*/
354
354
inline int
355
355
qvi_bbuff_rmi_pack_item (
356
- qvi_bbuff_t *buff,
356
+ qvi_bbuff *buff,
357
357
qv_scope_intrinsic_t data
358
358
) {
359
359
const int dai = (int )data;
@@ -366,7 +366,7 @@ qvi_bbuff_rmi_pack_item(
366
366
*/
367
367
inline int
368
368
qvi_bbuff_rmi_pack_item (
369
- qvi_bbuff_t *buff,
369
+ qvi_bbuff *buff,
370
370
pid_t data
371
371
) {
372
372
const int dai = (int )data;
@@ -376,7 +376,7 @@ qvi_bbuff_rmi_pack_item(
376
376
377
377
inline int
378
378
qvi_bbuff_rmi_pack_item_impl (
379
- qvi_bbuff_t *buff,
379
+ qvi_bbuff *buff,
380
380
cstr_t data
381
381
) {
382
382
return buff->append (data, strlen (data) + 1 );
@@ -387,7 +387,7 @@ qvi_bbuff_rmi_pack_item_impl(
387
387
*/
388
388
inline int
389
389
qvi_bbuff_rmi_pack_item (
390
- qvi_bbuff_t *buff,
390
+ qvi_bbuff *buff,
391
391
const std::string &data
392
392
) {
393
393
return qvi_bbuff_rmi_pack_item_impl (buff, data.c_str ());
@@ -398,7 +398,7 @@ qvi_bbuff_rmi_pack_item(
398
398
*/
399
399
inline int
400
400
qvi_bbuff_rmi_pack_item (
401
- qvi_bbuff_t *buff,
401
+ qvi_bbuff *buff,
402
402
cstr_t data
403
403
) {
404
404
return qvi_bbuff_rmi_pack_item_impl (buff, data);
@@ -409,7 +409,7 @@ qvi_bbuff_rmi_pack_item(
409
409
*/
410
410
inline int
411
411
qvi_bbuff_rmi_pack_item (
412
- qvi_bbuff_t *buff,
412
+ qvi_bbuff *buff,
413
413
char *data
414
414
) {
415
415
return qvi_bbuff_rmi_pack_item_impl (buff, data);
@@ -420,7 +420,7 @@ qvi_bbuff_rmi_pack_item(
420
420
*/
421
421
inline int
422
422
qvi_bbuff_rmi_pack_item (
423
- qvi_bbuff_t *,
423
+ qvi_bbuff *,
424
424
qvi_bbuff_rmi_zero_msg_t
425
425
) {
426
426
return QV_SUCCESS;
@@ -431,7 +431,7 @@ qvi_bbuff_rmi_pack_item(
431
431
*/
432
432
inline int
433
433
qvi_bbuff_rmi_pack_item (
434
- qvi_bbuff_t *buff,
434
+ qvi_bbuff *buff,
435
435
qvi_bbuff_rmi_bytes_in_t data
436
436
) {
437
437
// We store size then data so unpack has an easier time, but keep
@@ -447,7 +447,7 @@ qvi_bbuff_rmi_pack_item(
447
447
*/
448
448
inline int
449
449
qvi_bbuff_rmi_pack_item_impl (
450
- qvi_bbuff_t *buff,
450
+ qvi_bbuff *buff,
451
451
hwloc_const_cpuset_t data
452
452
) {
453
453
// Protect against null data.
@@ -472,7 +472,7 @@ qvi_bbuff_rmi_pack_item_impl(
472
472
*/
473
473
inline int
474
474
qvi_bbuff_rmi_pack_item (
475
- qvi_bbuff_t *buff,
475
+ qvi_bbuff *buff,
476
476
hwloc_cpuset_t data
477
477
) {
478
478
return qvi_bbuff_rmi_pack_item_impl (buff, data);
@@ -483,7 +483,7 @@ qvi_bbuff_rmi_pack_item(
483
483
*/
484
484
inline int
485
485
qvi_bbuff_rmi_pack_item (
486
- qvi_bbuff_t *buff,
486
+ qvi_bbuff *buff,
487
487
const qvi_hwloc_bitmap_s &bitmap
488
488
) {
489
489
return qvi_bbuff_rmi_pack_item_impl (buff, bitmap.cdata ());
@@ -494,7 +494,7 @@ qvi_bbuff_rmi_pack_item(
494
494
*/
495
495
inline int
496
496
qvi_bbuff_rmi_pack_item (
497
- qvi_bbuff_t *buff,
497
+ qvi_bbuff *buff,
498
498
hwloc_const_cpuset_t data
499
499
) {
500
500
return qvi_bbuff_rmi_pack_item_impl (buff, data);
@@ -505,8 +505,8 @@ qvi_bbuff_rmi_pack_item(
505
505
*/
506
506
inline int
507
507
qvi_bbuff_rmi_pack_item (
508
- qvi_bbuff_t *buff,
509
- const qvi_hwpool_cpu_s &data
508
+ qvi_bbuff *buff,
509
+ const qvi_hwpool_cpu &data
510
510
) {
511
511
return data.packinto (buff);
512
512
}
@@ -516,37 +516,37 @@ qvi_bbuff_rmi_pack_item(
516
516
*/
517
517
inline int
518
518
qvi_bbuff_rmi_pack_item (
519
- qvi_bbuff_t *buff,
520
- qvi_hwpool_dev_s *data
519
+ qvi_bbuff *buff,
520
+ qvi_hwpool_dev *data
521
521
) {
522
522
return data->packinto (buff);
523
523
}
524
524
525
525
/* *
526
- * Packs qvi_hwpool_s *
526
+ * Packs qvi_hwpool *
527
527
*/
528
528
inline int
529
529
qvi_bbuff_rmi_pack_item_impl (
530
- qvi_bbuff_t *buff,
531
- const qvi_hwpool_s *data
530
+ qvi_bbuff *buff,
531
+ const qvi_hwpool *data
532
532
) {
533
533
return data->packinto (buff);
534
534
}
535
535
536
536
/* *
537
- * Packs qvi_hwpool_s *
537
+ * Packs qvi_hwpool *
538
538
*/
539
539
inline int
540
540
qvi_bbuff_rmi_pack_item (
541
- qvi_bbuff_t *buff,
542
- qvi_hwpool_s *data
541
+ qvi_bbuff *buff,
542
+ qvi_hwpool *data
543
543
) {
544
544
return qvi_bbuff_rmi_pack_item_impl (buff, data);
545
545
}
546
546
547
547
inline int
548
548
qvi_bbuff_rmi_pack (
549
- qvi_bbuff_t *
549
+ qvi_bbuff *
550
550
) {
551
551
// Base case
552
552
return QV_SUCCESS;
@@ -555,7 +555,7 @@ qvi_bbuff_rmi_pack(
555
555
template <typename T, typename ... Types>
556
556
inline int
557
557
qvi_bbuff_rmi_pack (
558
- qvi_bbuff_t *buff,
558
+ qvi_bbuff *buff,
559
559
T&& arg,
560
560
Types &&...args
561
561
) {
@@ -817,35 +817,35 @@ qvi_bbuff_rmi_unpack_item(
817
817
*/
818
818
inline int
819
819
qvi_bbuff_rmi_unpack_item (
820
- qvi_hwpool_cpu_s &cpu,
820
+ qvi_hwpool_cpu &cpu,
821
821
byte_t *buffpos,
822
822
size_t *bytes_written
823
823
) {
824
- return qvi_hwpool_cpu_s ::unpack (buffpos, bytes_written, cpu);
824
+ return qvi_hwpool_cpu ::unpack (buffpos, bytes_written, cpu);
825
825
}
826
826
827
827
/* *
828
828
* Unpacks qvi_hwpool_dev_s &
829
829
*/
830
830
inline int
831
831
qvi_bbuff_rmi_unpack_item (
832
- qvi_hwpool_dev_s &dev,
832
+ qvi_hwpool_dev &dev,
833
833
byte_t *buffpos,
834
834
size_t *bytes_written
835
835
) {
836
- return qvi_hwpool_dev_s ::unpack (buffpos, bytes_written, dev);
836
+ return qvi_hwpool_dev ::unpack (buffpos, bytes_written, dev);
837
837
}
838
838
839
839
/* *
840
- * Unpacks qvi_hwpool_s **
840
+ * Unpacks qvi_hwpool **
841
841
*/
842
842
inline int
843
843
qvi_bbuff_rmi_unpack_item (
844
- qvi_hwpool_s **hwp,
844
+ qvi_hwpool **hwp,
845
845
byte_t *buffpos,
846
846
size_t *bytes_written
847
847
) {
848
- return qvi_hwpool_s ::unpack (buffpos, bytes_written, hwp);
848
+ return qvi_hwpool ::unpack (buffpos, bytes_written, hwp);
849
849
}
850
850
851
851
/* *
0 commit comments