rrplug 4.2.1

framework for R2Northstar plugins
Documentation
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
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
/* automatically generated by rust-bindgen 0.63.0 */

#[doc(inline)]
pub use root::*;

#[doc(hidden)]
#[allow(
    non_snake_case,
    non_camel_case_types,
    non_upper_case_globals,
    clippy::missing_safety_doc
)]
pub mod root {
    #[allow(unused_imports)]
    use self::super::root;
    const _VCRT_COMPILER_PREPROCESSOR: u32 = 1;
    const _SAL_VERSION: u32 = 20;
    const __SAL_H_VERSION: u32 = 180000000;
    const _USE_DECLSPECS_FOR_SAL: u32 = 0;
    const _USE_ATTRIBUTES_FOR_SAL: u32 = 0;
    const _CRT_PACKING: u32 = 8;
    const _HAS_EXCEPTIONS: u32 = 1;
    const _HAS_CXX17: u32 = 0;
    const _HAS_CXX20: u32 = 0;
    const _HAS_CXX23: u32 = 0;
    const _HAS_NODISCARD: u32 = 1;
    pub const COMMAND_COMPLETION_MAXITEMS: u32 = 64;
    pub const COMMAND_COMPLETION_ITEM_LENGTH: u32 = 128;
    type va_list = *mut ::std::os::raw::c_char;
    extern "C" {
        pub fn __va_start(arg1: *mut root::va_list, ...);
    }
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct __vcrt_va_list_is_reference {
        pub _address: u8,
    }
    pub const __vcrt_va_list_is_reference___the_value:
        root::__vcrt_va_list_is_reference__bindgen_ty_1 = false;
    pub type __vcrt_va_list_is_reference__bindgen_ty_1 = bool;
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct __vcrt_assert_va_start_is_not_reference {
        pub _address: u8,
    }
    pub type __vcrt_bool = bool;
    extern "C" {
        pub fn __security_init_cookie();
    }
    extern "C" {
        pub fn __security_check_cookie(_StackCookie: usize);
    }
    extern "C" {
        pub fn __report_gsfailure(_StackCookie: usize) -> !;
    }
    extern "C" {
        pub static mut __security_cookie: usize;
    }
    #[repr(C)]
    pub struct IConCommandBaseAccessor__bindgen_vtable(::std::os::raw::c_void);
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct IConCommandBaseAccessor {
        pub vtable_: *const IConCommandBaseAccessor__bindgen_vtable,
    }
    #[test]
    fn bindgen_test_layout_IConCommandBaseAccessor() {
        assert_eq!(
            ::std::mem::size_of::<IConCommandBaseAccessor>(),
            8usize,
            concat!("Size of: ", stringify!(IConCommandBaseAccessor))
        );
        assert_eq!(
            ::std::mem::align_of::<IConCommandBaseAccessor>(),
            8usize,
            concat!("Alignment of ", stringify!(IConCommandBaseAccessor))
        );
    }
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct CCommand {
        pub m_nArgc: i64,
        pub m_nArgv0Size: i64,
        pub m_pArgSBuffer: [::std::os::raw::c_char; 512usize],
        pub m_pArgvBuffer: [::std::os::raw::c_char; 512usize],
        pub m_ppArgv: [*const ::std::os::raw::c_char; 64usize],
    }
    pub const CCommand_COMMAND_MAX_ARGC: root::CCommand__bindgen_ty_1 = 64;
    pub const CCommand_COMMAND_MAX_LENGTH: root::CCommand__bindgen_ty_1 = 512;
    pub type CCommand__bindgen_ty_1 = ::std::os::raw::c_int;
    #[test]
    fn bindgen_test_layout_CCommand() {
        const UNINIT: ::std::mem::MaybeUninit<CCommand> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<CCommand>(),
            1552usize,
            concat!("Size of: ", stringify!(CCommand))
        );
        assert_eq!(
            ::std::mem::align_of::<CCommand>(),
            8usize,
            concat!("Alignment of ", stringify!(CCommand))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_nArgc) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(CCommand),
                "::",
                stringify!(m_nArgc)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_nArgv0Size) as usize - ptr as usize },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(CCommand),
                "::",
                stringify!(m_nArgv0Size)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pArgSBuffer) as usize - ptr as usize },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(CCommand),
                "::",
                stringify!(m_pArgSBuffer)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pArgvBuffer) as usize - ptr as usize },
            528usize,
            concat!(
                "Offset of field: ",
                stringify!(CCommand),
                "::",
                stringify!(m_pArgvBuffer)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_ppArgv) as usize - ptr as usize },
            1040usize,
            concat!(
                "Offset of field: ",
                stringify!(CCommand),
                "::",
                stringify!(m_ppArgv)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}?ArgC@CCommand@@QEBA_JXZ"]
        pub fn CCommand_ArgC(this: *const root::CCommand) -> i64;
    }
    extern "C" {
        #[link_name = "\u{1}?ArgV@CCommand@@QEBAPEAPEBDXZ"]
        pub fn CCommand_ArgV(this: *const root::CCommand) -> *mut *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?ArgS@CCommand@@QEBAPEBDXZ"]
        pub fn CCommand_ArgS(this: *const root::CCommand) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?GetCommandString@CCommand@@QEBAPEBDXZ"]
        pub fn CCommand_GetCommandString(
            this: *const root::CCommand,
        ) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?Arg@CCommand@@QEBAPEBDH@Z"]
        pub fn CCommand_Arg(
            this: *const root::CCommand,
            nIndex: ::std::os::raw::c_int,
        ) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?MaxCommandLength@CCommand@@SAHXZ"]
        pub fn CCommand_MaxCommandLength() -> ::std::os::raw::c_int;
    }
    impl CCommand {
        #[inline]
        pub unsafe fn ArgC(&self) -> i64 {
            CCommand_ArgC(self)
        }
        #[inline]
        pub unsafe fn ArgV(&self) -> *mut *const ::std::os::raw::c_char {
            CCommand_ArgV(self)
        }
        #[inline]
        pub unsafe fn ArgS(&self) -> *const ::std::os::raw::c_char {
            CCommand_ArgS(self)
        }
        #[inline]
        pub unsafe fn GetCommandString(&self) -> *const ::std::os::raw::c_char {
            CCommand_GetCommandString(self)
        }
        #[inline]
        pub unsafe fn Arg(&self, nIndex: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char {
            CCommand_Arg(self, nIndex)
        }
        #[inline]
        pub unsafe fn MaxCommandLength() -> ::std::os::raw::c_int {
            CCommand_MaxCommandLength()
        }
    }
    pub type FnCommandCallback_t =
        ::std::option::Option<unsafe extern "C" fn(command: *const root::CCommand)>;
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct ConCommandBase {
        pub m_pConCommandBaseVTable: *mut ::std::os::raw::c_void,
        pub m_pNext: *mut root::ConCommandBase,
        pub m_bRegistered: bool,
        pub pad_0011: [::std::os::raw::c_char; 7usize],
        pub m_pszName: *const ::std::os::raw::c_char,
        pub m_pszHelpString: *const ::std::os::raw::c_char,
        pub m_nFlags: ::std::os::raw::c_int,
        pub s_pConCommandBases: *mut root::ConCommandBase,
        pub s_pAccessor: *mut root::IConCommandBaseAccessor,
    }
    #[test]
    fn bindgen_test_layout_ConCommandBase() {
        const UNINIT: ::std::mem::MaybeUninit<ConCommandBase> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<ConCommandBase>(),
            64usize,
            concat!("Size of: ", stringify!(ConCommandBase))
        );
        assert_eq!(
            ::std::mem::align_of::<ConCommandBase>(),
            8usize,
            concat!("Alignment of ", stringify!(ConCommandBase))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pConCommandBaseVTable) as usize - ptr as usize },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(m_pConCommandBaseVTable)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pNext) as usize - ptr as usize },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(m_pNext)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_bRegistered) as usize - ptr as usize },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(m_bRegistered)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).pad_0011) as usize - ptr as usize },
            17usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(pad_0011)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pszName) as usize - ptr as usize },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(m_pszName)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pszHelpString) as usize - ptr as usize },
            32usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(m_pszHelpString)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_nFlags) as usize - ptr as usize },
            40usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(m_nFlags)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).s_pConCommandBases) as usize - ptr as usize },
            48usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(s_pConCommandBases)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).s_pAccessor) as usize - ptr as usize },
            56usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommandBase),
                "::",
                stringify!(s_pAccessor)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}?HasFlags@ConCommandBase@@QEAA_NH@Z"]
        pub fn ConCommandBase_HasFlags(
            this: *mut root::ConCommandBase,
            nFlags: ::std::os::raw::c_int,
        ) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?AddFlags@ConCommandBase@@QEAAXH@Z"]
        pub fn ConCommandBase_AddFlags(
            this: *mut root::ConCommandBase,
            nFlags: ::std::os::raw::c_int,
        );
    }
    extern "C" {
        #[link_name = "\u{1}?RemoveFlags@ConCommandBase@@QEAAXH@Z"]
        pub fn ConCommandBase_RemoveFlags(
            this: *mut root::ConCommandBase,
            nFlags: ::std::os::raw::c_int,
        );
    }
    extern "C" {
        #[link_name = "\u{1}?IsCommand@ConCommandBase@@QEBA_NXZ"]
        pub fn ConCommandBase_IsCommand(this: *const root::ConCommandBase) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?IsRegistered@ConCommandBase@@QEBA_NXZ"]
        pub fn ConCommandBase_IsRegistered(this: *const root::ConCommandBase) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?IsFlagSet@ConCommandBase@@QEBA_NH@Z"]
        pub fn ConCommandBase_IsFlagSet(
            this: *const root::ConCommandBase,
            nFlags: ::std::os::raw::c_int,
        ) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?IsFlagSet@ConCommandBase@@SA_NPEAV1@H@Z"]
        pub fn ConCommandBase_IsFlagSet1(
            pCommandBase: *mut root::ConCommandBase,
            nFlags: ::std::os::raw::c_int,
        ) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}?GetFlags@ConCommandBase@@QEBAHXZ"]
        pub fn ConCommandBase_GetFlags(this: *const root::ConCommandBase) -> ::std::os::raw::c_int;
    }
    extern "C" {
        #[link_name = "\u{1}?GetNext@ConCommandBase@@QEBAPEAV1@XZ"]
        pub fn ConCommandBase_GetNext(
            this: *const root::ConCommandBase,
        ) -> *mut root::ConCommandBase;
    }
    extern "C" {
        #[link_name = "\u{1}?GetHelpText@ConCommandBase@@QEBAPEBDXZ"]
        pub fn ConCommandBase_GetHelpText(
            this: *const root::ConCommandBase,
        ) -> *const ::std::os::raw::c_char;
    }
    extern "C" {
        #[link_name = "\u{1}?CopyString@ConCommandBase@@QEBAPEADPEBD@Z"]
        pub fn ConCommandBase_CopyString(
            this: *const root::ConCommandBase,
            szFrom: *const ::std::os::raw::c_char,
        ) -> *mut ::std::os::raw::c_char;
    }
    impl ConCommandBase {
        #[inline]
        pub unsafe fn HasFlags(&mut self, nFlags: ::std::os::raw::c_int) -> bool {
            ConCommandBase_HasFlags(self, nFlags)
        }
        #[inline]
        pub unsafe fn AddFlags(&mut self, nFlags: ::std::os::raw::c_int) {
            ConCommandBase_AddFlags(self, nFlags)
        }
        #[inline]
        pub unsafe fn RemoveFlags(&mut self, nFlags: ::std::os::raw::c_int) {
            ConCommandBase_RemoveFlags(self, nFlags)
        }
        #[inline]
        pub unsafe fn IsCommand(&self) -> bool {
            ConCommandBase_IsCommand(self)
        }
        #[inline]
        pub unsafe fn IsRegistered(&self) -> bool {
            ConCommandBase_IsRegistered(self)
        }
        #[inline]
        pub unsafe fn IsFlagSet(&self, nFlags: ::std::os::raw::c_int) -> bool {
            ConCommandBase_IsFlagSet(self, nFlags)
        }
        #[inline]
        pub unsafe fn IsFlagSet1(
            pCommandBase: *mut root::ConCommandBase,
            nFlags: ::std::os::raw::c_int,
        ) -> bool {
            ConCommandBase_IsFlagSet1(pCommandBase, nFlags)
        }
        #[inline]
        pub unsafe fn GetFlags(&self) -> ::std::os::raw::c_int {
            ConCommandBase_GetFlags(self)
        }
        #[inline]
        pub unsafe fn GetNext(&self) -> *mut root::ConCommandBase {
            ConCommandBase_GetNext(self)
        }
        #[inline]
        pub unsafe fn GetHelpText(&self) -> *const ::std::os::raw::c_char {
            ConCommandBase_GetHelpText(self)
        }
        #[inline]
        pub unsafe fn CopyString(
            &self,
            szFrom: *const ::std::os::raw::c_char,
        ) -> *mut ::std::os::raw::c_char {
            ConCommandBase_CopyString(self, szFrom)
        }
    }
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub struct ConCommand {
        pub _base: root::ConCommandBase,
        pub m_pCommandCallback: root::FnCommandCallback_t,
        pub m_pCompletionCallback: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::os::raw::c_char,
                arg2: *mut [::std::os::raw::c_char; 128usize],
            ) -> ::std::os::raw::c_int,
        >,
        pub m_nCallbackFlags: ::std::os::raw::c_int,
        pub pad_0054: [::std::os::raw::c_char; 4usize],
        pub unk0: ::std::os::raw::c_int,
        pub unk1: ::std::os::raw::c_int,
    }
    #[test]
    fn bindgen_test_layout_ConCommand() {
        const UNINIT: ::std::mem::MaybeUninit<ConCommand> = ::std::mem::MaybeUninit::uninit();
        let ptr = UNINIT.as_ptr();
        assert_eq!(
            ::std::mem::size_of::<ConCommand>(),
            96usize,
            concat!("Size of: ", stringify!(ConCommand))
        );
        assert_eq!(
            ::std::mem::align_of::<ConCommand>(),
            8usize,
            concat!("Alignment of ", stringify!(ConCommand))
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pCommandCallback) as usize - ptr as usize },
            64usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommand),
                "::",
                stringify!(m_pCommandCallback)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_pCompletionCallback) as usize - ptr as usize },
            72usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommand),
                "::",
                stringify!(m_pCompletionCallback)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).m_nCallbackFlags) as usize - ptr as usize },
            80usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommand),
                "::",
                stringify!(m_nCallbackFlags)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).pad_0054) as usize - ptr as usize },
            84usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommand),
                "::",
                stringify!(pad_0054)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).unk0) as usize - ptr as usize },
            88usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommand),
                "::",
                stringify!(unk0)
            )
        );
        assert_eq!(
            unsafe { ::std::ptr::addr_of!((*ptr).unk1) as usize - ptr as usize },
            92usize,
            concat!(
                "Offset of field: ",
                stringify!(ConCommand),
                "::",
                stringify!(unk1)
            )
        );
    }
    extern "C" {
        #[link_name = "\u{1}?Init@ConCommand@@QEAAXXZ"]
        pub fn ConCommand_Init(this: *mut root::ConCommand);
    }
    extern "C" {
        #[link_name = "\u{1}?IsCommand@ConCommand@@QEBA_NXZ"]
        pub fn ConCommand_IsCommand(this: *const root::ConCommand) -> bool;
    }
    extern "C" {
        #[link_name = "\u{1}??0ConCommand@@QEAA@XZ"]
        pub fn ConCommand_ConCommand(this: *mut root::ConCommand);
    }
    extern "C" {
        #[link_name = "\u{1}??0ConCommand@@QEAA@PEBD0HPEAX1@Z"]
        pub fn ConCommand_ConCommand1(
            this: *mut root::ConCommand,
            szName: *const ::std::os::raw::c_char,
            szHelpString: *const ::std::os::raw::c_char,
            nFlags: ::std::os::raw::c_int,
            pCallback: *mut ::std::os::raw::c_void,
            pCommandCompletionCallback: *mut ::std::os::raw::c_void,
        );
    }
    impl ConCommand {
        #[inline]
        pub unsafe fn Init(&mut self) {
            ConCommand_Init(self)
        }
        #[inline]
        pub unsafe fn IsCommand(&self) -> bool {
            ConCommand_IsCommand(self)
        }
        #[inline]
        pub unsafe fn new() -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            ConCommand_ConCommand(__bindgen_tmp.as_mut_ptr());
            __bindgen_tmp.assume_init()
        }
        #[inline]
        pub unsafe fn new1(
            szName: *const ::std::os::raw::c_char,
            szHelpString: *const ::std::os::raw::c_char,
            nFlags: ::std::os::raw::c_int,
            pCallback: *mut ::std::os::raw::c_void,
            pCommandCompletionCallback: *mut ::std::os::raw::c_void,
        ) -> Self {
            let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
            ConCommand_ConCommand1(
                __bindgen_tmp.as_mut_ptr(),
                szName,
                szHelpString,
                nFlags,
                pCallback,
                pCommandCompletionCallback,
            );
            __bindgen_tmp.assume_init()
        }
    }
    extern "C" {
        #[link_name = "\u{1}?RegisterConCommand@@YAXPEBDP6AXAEBVCCommand@@@Z0H@Z"]
        pub fn RegisterConCommand(
            name: *const ::std::os::raw::c_char,
            callback: ::std::option::Option<unsafe extern "C" fn(arg1: *const root::CCommand)>,
            helpString: *const ::std::os::raw::c_char,
            flags: ::std::os::raw::c_int,
        );
    }
    extern "C" {
        #[link_name = "\u{1}?RegisterConCommand@@YAXPEBDP6AXAEBVCCommand@@@Z0HP6AH0QEAY0IA@D@Z@Z"]
        pub fn RegisterConCommand1(
            name: *const ::std::os::raw::c_char,
            callback: ::std::option::Option<unsafe extern "C" fn(arg1: *const root::CCommand)>,
            helpString: *const ::std::os::raw::c_char,
            flags: ::std::os::raw::c_int,
            completionCallback: ::std::option::Option<
                unsafe extern "C" fn(
                    arg1: *const ::std::os::raw::c_char,
                    arg2: *mut [::std::os::raw::c_char; 128usize],
                ) -> ::std::os::raw::c_int,
            >,
        );
    }
    pub type ConCommandConstructorType = ::std::option::Option<
        unsafe extern "C" fn(
            newCommand: *mut root::ConCommand,
            name: *const ::std::os::raw::c_char,
            callback: root::FnCommandCallback_t,
            helpString: *const ::std::os::raw::c_char,
            flags: ::std::os::raw::c_int,
            parent: *mut ::std::os::raw::c_void,
        ),
    >;
    extern "C" {
        #[link_name = "\u{1}?ConCommandConstructor@@3P6AXPEAVConCommand@@PEBDP6AXAEBVCCommand@@@Z1HPEAX@ZEA"]
        pub static mut ConCommandConstructor: root::ConCommandConstructorType;
    }
}