-
Notifications
You must be signed in to change notification settings - Fork 0
/
LibVlcMethods.cs
815 lines (564 loc) · 44.7 KB
/
LibVlcMethods.cs
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
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
using System;
using System.Runtime.InteropServices;
using System.Security;
namespace LibVlcWraper.WPF
{
public delegate IntPtr lock_cb(IntPtr opaque, IntPtr planes);
public delegate void unlock_cb(IntPtr opaque, IntPtr picture, IntPtr planes);
public delegate void VideoDisplayCB(IntPtr opaque, IntPtr picture);
[SuppressUnmanagedCodeSecurity]
public static class LibVlcMethods
{
#region libvlc.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern string libvlc_errmsg();
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_clearerr();
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] argv);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_release(IntPtr libvlc_instance_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_retain(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_add_intf(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_set_exit_handler(IntPtr p_instance, IntPtr callback, IntPtr opaque);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_wait(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_set_user_agent(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] name, [MarshalAs(UnmanagedType.LPArray)] byte[] http);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern string libvlc_get_version();
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_get_compiler();
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_get_changeset();
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_event_attach(IntPtr p_event_manager, libvlc_event_e i_event_type, IntPtr f_callback, IntPtr user_data);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_event_detach(IntPtr p_event_manager, libvlc_event_e i_event_type, IntPtr f_callback, IntPtr user_data);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_event_type_name(libvlc_event_e event_type);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern UInt32 libvlc_get_log_verbosity(IntPtr libvlc_instance_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_set_log_verbosity(IntPtr libvlc_instance_t, UInt32 level);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_log_open(IntPtr libvlc_instance_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_log_close(IntPtr libvlc_log_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern UInt32 libvlc_log_count(IntPtr libvlc_log_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_log_clear(IntPtr libvlc_log_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_log_get_iterator(IntPtr libvlc_log_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_log_iterator_free(IntPtr libvlc_log_iterator_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int32 libvlc_log_iterator_has_next(IntPtr libvlc_log_iterator_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_log_iterator_next(IntPtr libvlc_log_iterator_t, ref libvlc_log_message_t p_buffer);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_audio_filter_list_get(IntPtr p_instance);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_video_filter_list_get(IntPtr p_instance);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_module_description_list_release(IntPtr p_list);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int64 libvlc_clock();
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int64 libvlc_delay(Int64 pts);
[MinimalLibVlcVersion("2.1.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_log_subscribe(ref libvlc_log_subscriber sub, IntPtr callback, IntPtr data);
[MinimalLibVlcVersion("2.1.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_log_subscribe_file(ref libvlc_log_subscriber sub, IntPtr file);
[MinimalLibVlcVersion("2.1.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_log_unsubscribe(ref libvlc_log_subscriber sub);
#endregion
#region libvlc_media.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_new_location(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_mrl);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_new_locationx(IntPtr p_instance, [MarshalAs(UnmanagedType.LPStr)] string psz_mrl);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_new_path(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_mrl);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_new_as_node(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_mrl);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_add_option(IntPtr libvlc_media_inst, [MarshalAs(UnmanagedType.LPArray)] byte[] ppsz_options);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_add_option_flag(IntPtr p_md, [MarshalAs(UnmanagedType.LPArray)] byte[] ppsz_options, int i_flags);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_retain(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_release(IntPtr libvlc_media_inst);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_media_get_mrl(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_duplicate(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_media_get_meta(IntPtr p_md, libvlc_meta_t e_meta);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_set_meta(IntPtr p_md, libvlc_meta_t e_meta, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_value);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_save_meta(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern libvlc_state_t libvlc_media_get_state(IntPtr p_meta_desc);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_get_stats(IntPtr p_md, out libvlc_media_stats_t p_stats);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_subitems(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_event_manager(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int64 libvlc_media_get_duration(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_parse(IntPtr media);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_parse_async(IntPtr media);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_media_is_parsed(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_set_user_data(IntPtr p_md, IntPtr p_new_user_data);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_get_user_data(IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_get_tracks_info(IntPtr media, out IntPtr tracks);
#endregion
#region libvlc_media_discoverer.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_discoverer_new_from_name(IntPtr p_inst, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_discoverer_release(IntPtr p_mdis);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_media_discoverer_localized_name(IntPtr p_mdis);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_discoverer_media_list(IntPtr p_mdis);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_discoverer_event_manager(IntPtr p_mdis);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_discoverer_is_running(IntPtr p_mdis);
#endregion
#region libvlc_media_library.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_library_new(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_library_release(IntPtr p_mlib);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_library_retain(IntPtr p_mlib);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_library_load(IntPtr p_mlib);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_library_media_list(IntPtr p_mlib);
#endregion
#region libvlc_media_player.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_player_new(IntPtr p_libvlc_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_player_new_from_media(IntPtr libvlc_media);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_release(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_retain(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_player_get_media(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_media(IntPtr libvlc_media_player_t, IntPtr libvlc_media_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_player_event_manager(IntPtr libvlc_media_player_t);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_media_player_is_playing(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_play(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_pause(IntPtr mp, int do_pause);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_pause(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_stop(IntPtr libvlc_mediaplayer);
//[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
//public static extern void libvlc_video_set_callbacks(IntPtr mp, IntPtr @lock, IntPtr unlock, IntPtr display, IntPtr opaque);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_callbacks(IntPtr mp, LockEventHandler @lock, UnlockEventHandler unlock, DisplayEventHandler display, IntPtr opaque);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_format(IntPtr mp, [MarshalAs(UnmanagedType.LPArray)] char[] chroma, int width, int height, int pitch);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_hwnd(IntPtr libvlc_mediaplayer, IntPtr libvlc_drawable);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_player_get_hwnd(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int64 libvlc_media_player_get_length(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int64 libvlc_media_player_get_time(IntPtr libvlc_mediaplayer);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_time(IntPtr libvlc_mediaplayer, Int64 time);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern float libvlc_media_player_get_position(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_position(IntPtr p_mi, float f_pos);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_chapter(IntPtr p_mi, int i_chapter);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_get_chapter(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_get_chapter_count(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_media_player_will_play(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_get_chapter_count_for_title(IntPtr p_mi, int i_title);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_set_title(IntPtr p_mi, int i_title);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_get_title(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_get_title_count(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_previous_chapter(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_next_chapter(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern float libvlc_media_player_get_rate(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_set_rate(IntPtr p_mi, float rate);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern libvlc_state_t libvlc_media_player_get_state(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern float libvlc_media_player_get_fps(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_player_has_vout(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_media_player_is_seekable(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_media_player_can_pause(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_next_frame(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_track_description_release(IntPtr p_track_description);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_toggle_fullscreen(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_set_fullscreen(IntPtr p_mi, bool b_fullscreen);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_get_fullscreen(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_key_input(IntPtr p_mi, bool on);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_mouse_input(IntPtr p_mi, bool on);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_size(IntPtr p_mi, int num, out int px, out int py);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_cursor(IntPtr p_mi, uint num, out int px, out int py);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern float libvlc_video_get_scale(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_scale(IntPtr p_mi, float f_factor);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_video_get_aspect_ratio(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_aspect_ratio(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_aspect);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_spu(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_spu_count(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_video_get_spu_description(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_set_spu(IntPtr p_mi, int i_spu);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_set_subtitle_file(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_subtitle);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_video_get_title_description(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_video_get_chapter_description(IntPtr p_mi, int i_title);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_video_get_crop_geometry(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_crop_geometry(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_geometry);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_teletext(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_teletext(IntPtr p_mi, int i_page);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_toggle_teletext(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_track_count(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_video_get_track_description(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_track(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_set_track(IntPtr p_mi, int i_track);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_take_snapshot(IntPtr p_mi, uint stream, [MarshalAs(UnmanagedType.LPArray)] byte[] filePath, UInt32 i_width, UInt32 i_height);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_deinterlace(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_mode);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_marquee_int(IntPtr p_mi, libvlc_video_marquee_option_t option);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_video_get_marquee_string(IntPtr p_mi, libvlc_video_marquee_option_t option);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_marquee_int(IntPtr p_mi, libvlc_video_marquee_option_t option, int i_val);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_marquee_string(IntPtr p_mi, libvlc_video_marquee_option_t option, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_text);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_logo_int(IntPtr p_mi, libvlc_video_logo_option_t option);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_logo_int(IntPtr p_mi, libvlc_video_logo_option_t option, int value);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_logo_string(IntPtr p_mi, libvlc_video_logo_option_t option, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_value);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_adjust_int(IntPtr p_mi, libvlc_video_adjust_option_t option);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_adjust_int(IntPtr p_mi, libvlc_video_adjust_option_t option, int value);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern float libvlc_video_get_adjust_float(IntPtr p_mi, libvlc_video_adjust_option_t option);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_adjust_float(IntPtr p_mi, libvlc_video_adjust_option_t option, float value);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_audio_output_list_get(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_output_list_release(IntPtr p_list);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_output_set(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_output_device_count(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_audio_output);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_audio_output_device_longname(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_audio_output, int i_device);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.AnsiBStr)]
public static extern string libvlc_audio_output_device_id(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_audio_output, int i_device);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_output_device_set(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_audio_output, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_device_id);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern libvlc_audio_output_device_types_t libvlc_audio_output_get_device_type(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_output_set_device_type(IntPtr p_mi, libvlc_audio_output_device_types_t device_type);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_toggle_mute(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_get_volume(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_set_volume(IntPtr p_mi, int volume);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_set_mute(IntPtr p_mi, bool mute);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern bool libvlc_audio_get_mute(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_get_track_count(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_audio_get_track_description(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_get_track(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_set_track(IntPtr p_mi, int i_track);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern libvlc_audio_output_channel_t libvlc_audio_get_channel(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_set_channel(IntPtr p_mi, libvlc_audio_output_channel_t channel);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern Int64 libvlc_audio_get_delay(IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_audio_set_delay(IntPtr p_mi, Int64 i_delay);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_player_navigate(IntPtr p_mi, libvlc_navigate_mode_t navigate);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_video_set_format_callbacks(IntPtr p_mi, IntPtr setup, IntPtr cleanup);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_set_callbacks(IntPtr p_mi, IntPtr play, IntPtr pause, IntPtr resume, IntPtr flush, IntPtr drain, IntPtr opaque);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_set_volume_callback(IntPtr p_mi, IntPtr volume);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_set_format_callbacks(IntPtr p_mi, IntPtr setup, IntPtr cleanup);
[MinimalLibVlcVersion("1.2.0")]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_audio_set_format(IntPtr p_mi, [MarshalAs(UnmanagedType.LPArray)] byte[] format, int rate, int channels);
#endregion
#region libvlc_media_list.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_list_new(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_release(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_retain(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_set_media(IntPtr p_ml, IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_list_media(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_add_media(IntPtr p_ml, IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_insert_media(IntPtr p_ml, IntPtr p_md, int i_pos);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_remove_index(IntPtr p_ml, int i_pos);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_count(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_list_item_at_index(IntPtr p_ml, int i_pos);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_index_of_item(IntPtr p_ml, IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_is_readonly(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_lock(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_unlock(IntPtr p_ml);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_list_event_manager(IntPtr p_ml);
#endregion
#region libvlc_media_list_player.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_list_player_new(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_release(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_media_list_player_event_manager(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_set_media_player(IntPtr p_mlp, IntPtr p_mi);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_set_media_list(IntPtr p_mlp, IntPtr p_mlist);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_play(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_pause(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_player_is_playing(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern libvlc_state_t libvlc_media_list_player_get_state(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_player_play_item_at_index(IntPtr p_mlp, int i_index);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_player_play_item(IntPtr p_mlp, IntPtr p_md);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_stop(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_player_next(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_media_list_player_previous(IntPtr p_mlp);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_media_list_player_set_playback_mode(IntPtr p_mlp, libvlc_playback_mode_t e_mode);
#endregion
#region libvlc_vlm.h
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern void libvlc_vlm_release(IntPtr p_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_add_broadcast(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_input,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_output,
int i_options,
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] ppsz_options,
int b_enabled,
int b_loop);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_add_vod(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_input,
int i_options,
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] ppsz_options,
int b_enabled,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_mux);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_del_media(IntPtr p_instance, [MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_set_enabled(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
int b_enabled);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_set_output(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_output);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_set_input(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_input);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_add_input(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_input);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_set_loop(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
int b_loop);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_set_mux(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_mux);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_change_media(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_input,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_output,
int i_options,
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] ppsz_options,
int b_enabled,
int b_loop);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_play_media(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_stop_media(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_pause_media(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_seek_media(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
float f_percentage);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.LPStr)]
public static extern string libvlc_vlm_show_media(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern float libvlc_vlm_get_media_instance_position(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_get_media_instance_time(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_get_media_instance_length(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_get_media_instance_rate(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name,
int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_get_media_instance_title(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name, int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_get_media_instance_chapter(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name, int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_vlm_get_media_instance_seekable(IntPtr p_instance,
[MarshalAs(UnmanagedType.LPArray)] byte[] psz_name, int i_instance);
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr libvlc_vlm_get_event_manager(IntPtr p_instance);
#endregion
}
}