2 * Automatically generated, do not edit this file directly
5 #ifndef __MOONLIGHT_C_BINDING_H__
6 #define __MOONLIGHT_C_BINDING_H__
20 class ASFMarkerDecoder
;
24 class AssemblyPartCollection
;
29 class BeginStoryboard
;
40 class CodecDownloader
;
42 class CollectionChangedEventArgs
;
43 class CollectionItemChangedEventArgs
;
45 class ColorAnimationUsingKeyFrames
;
47 class ColorKeyFrameCollection
;
48 class ColumnDefinition
;
49 class ColumnDefinitionCollection
;
50 class ContentChangedEventArgs
;
53 class ControlTemplate
;
55 class CursorPositionChangedEventArgs
;
57 class DeepZoomImageTileSource
;
58 class DependencyObject
;
59 class DependencyObjectCollection
;
61 class DiscreteColorKeyFrame
;
62 class DiscreteDoubleKeyFrame
;
63 class DiscreteObjectKeyFrame
;
64 class DiscretePointKeyFrame
;
65 class DispatcherTimer
;
66 class DoubleCollection
;
67 class DoubleAnimation
;
68 class DoubleAnimationUsingKeyFrames
;
70 class DoubleKeyFrameCollection
;
72 class DownloadProgressEventArgs
;
73 class DrawingAttributes
;
74 class EasingColorKeyFrame
;
75 class EasingDoubleKeyFrame
;
76 class EasingFunctionBase
;
77 class EasingPointKeyFrame
;
80 class EllipseGeometry
;
83 class EventListenerProxy
;
86 class ExponentialEase
;
88 class ExternalDecoder
;
89 class ExternalDemuxer
;
91 class ExternalPartCollection
;
96 class FrameworkElement
;
97 class FrameworkTemplate
;
98 class GeneralTransform
;
100 class GeometryCollection
;
105 class GradientStopCollection
;
107 class HitTestCollection
;
108 class IImageConverter
;
111 class ImageErrorEventArgs
;
120 class InlineCollection
;
122 class InternalDownloader
;
123 class ItemCollection
;
126 class KeyFrameCollection
;
128 class LayoutInformation
;
130 class LinearColorKeyFrame
;
131 class LinearDoubleKeyFrame
;
132 class LinearGradientBrush
;
133 class LinearPointKeyFrame
;
137 class ManagedStreamSource
;
138 class ManualTimeSource
;
139 class MarkerReachedEventArgs
;
142 class MatrixTransform
;
144 class MediaAttribute
;
145 class MediaAttributeCollection
;
148 class MediaDisposeObjectClosure
;
151 class MediaGetFrameClosure
;
153 class MediaMarkerFoundClosure
;
155 class MediaReportFrameCompletedClosure
;
156 class MediaReportSeekCompletedClosure
;
157 class MediaSeekClosure
;
161 class MmsPlaylistEntry
;
162 class MmsSecondDownloader
;
164 class MouseButtonEventArgs
;
165 class MouseEventArgs
;
166 class MouseWheelEventArgs
;
168 class MultiScaleImage
;
169 class MultiScaleSubImage
;
170 class MultiScaleSubImageCollection
;
171 class MultiScaleTileSource
;
174 class ObjectAnimationUsingKeyFrames
;
175 class ObjectKeyFrame
;
176 class ObjectKeyFrameCollection
;
177 class OutOfBrowserSettings
;
179 class ParallelTimeline
;
180 class ParserErrorEventArgs
;
181 class PassThroughDecoder
;
185 class PathFigureCollection
;
188 class PathSegmentCollection
;
192 class PointCollection
;
193 class PointAnimation
;
194 class PointAnimationUsingKeyFrames
;
196 class PointKeyFrameCollection
;
197 class PolyBezierSegment
;
200 class PolyLineSegment
;
201 class PolyQuadraticBezierSegment
;
204 class ProgressEventArgs
;
205 class ProgressiveSource
;
206 class PropertyChangedEventArgs
;
208 class QuadraticBezierSegment
;
212 class RadialGradientBrush
;
214 class RectangleGeometry
;
215 class RenderingEventArgs
;
216 class ResourceDictionary
;
217 class ResourceDictionaryCollection
;
218 class RotateTransform
;
219 class RoutedEventArgs
;
221 class RowDefinitionCollection
;
223 class ScaleTransform
;
226 class SetterBaseCollection
;
229 class SizeChangedEventArgs
;
231 class SolidColorBrush
;
232 class SplineColorKeyFrame
;
233 class SplineDoubleKeyFrame
;
234 class SplinePointKeyFrame
;
237 class StrokeCollection
;
241 class StylusPointCollection
;
243 class SystemTimeSource
;
247 class TextBoxModelChangedEventArgs
;
249 class TextChangedEventArgs
;
252 class TimelineCollection
;
254 class TimelineMarker
;
255 class TimelineMarkerCollection
;
259 class TransformCollection
;
260 class TransformGroup
;
261 class TranslateTransform
;
262 class TriggerCollection
;
264 class TriggerActionCollection
;
267 class UIElementCollection
;
268 class UnmanagedMatrix
;
273 class WriteableBitmap
;
281 class AnimationClock
;
282 class AnimationStorage
;
288 class ASFDemuxerInfo
;
289 class ASFFrameReader
;
290 class ASFMarkerDecoder
;
291 class ASFMarkerDecoderInfo
;
296 class AssemblyPartCollection
;
298 class ASXDemuxerInfo
;
304 class AutoCreatePropertyValueProvider
;
307 class BeginStoryboard
;
320 class CodecDownloader
;
322 class CollectionChangedEventArgs
;
323 class CollectionItemChangedEventArgs
;
324 class CollectionIterator
;
325 class ColorAnimation
;
326 class ColorAnimationUsingKeyFrames
;
328 class ColorKeyFrameCollection
;
329 class ColumnDefinition
;
330 class ColumnDefinitionCollection
;
331 class ContentChangedEventArgs
;
332 class ContentControl
;
333 class ContentDescription
;
334 class ContentDescriptionList
;
336 class ControlTemplate
;
339 class CursorPositionChangedEventArgs
;
342 class DeepTreeWalker
;
343 class DeepZoomImageTileSource
;
344 class DefaultValuePropertyValueProvider
;
346 class DependencyObject
;
347 class DependencyObjectCollection
;
348 class DependencyProperty
;
350 class DeploymentStack
;
352 class DiscreteColorKeyFrame
;
353 class DiscreteDoubleKeyFrame
;
354 class DiscreteObjectKeyFrame
;
355 class DiscretePointKeyFrame
;
356 class DispatcherTimer
;
357 class DoubleAnimation
;
358 class DoubleAnimationUsingKeyFrames
;
359 class DoubleCollection
;
360 class DoubleKeyFrame
;
361 class DoubleKeyFrameCollection
;
363 class DownloaderRequest
;
364 class DownloaderResponse
;
365 class DownloadProgressEventArgs
;
366 class DrawingAttributes
;
367 class EasingColorKeyFrame
;
368 class EasingDoubleKeyFrame
;
369 class EasingFunctionBase
;
370 class EasingPointKeyFrame
;
373 class EllipseGeometry
;
374 class ErrorEventArgs
;
376 class EventListenerProxy
;
379 class ExponentialEase
;
381 class ExternalDecoder
;
382 class ExternalDecoderInfo
;
383 class ExternalDemuxer
;
385 class ExternalPartCollection
;
387 class FfmpegDecoderInfo
;
389 class FileDownloader
;
393 class FrameworkElement
;
394 class FrameworkElementProvider
;
395 class FrameworkTemplate
;
396 class GeneralTransform
;
398 class GeometryCollection
;
403 class GradientStopCollection
;
407 class HitTestCollection
;
409 class IImageConverter
;
412 class ImageErrorEventArgs
;
419 class InheritedPropertyValueProvider
;
422 class InlineCollection
;
424 class InternalDownloader
;
425 class ItemCollection
;
426 class ITextAttributes
;
430 class KeyFrameCollection
;
432 class LayoutInformation
;
434 class LinearColorKeyFrame
;
435 class LinearDoubleKeyFrame
;
436 class LinearGradientBrush
;
437 class LinearPointKeyFrame
;
442 class LocalPropertyValueProvider
;
443 class ManagedStreamSource
;
444 class ManualTimeSource
;
445 class MarkerReachedEventArgs
;
448 class MatrixTransform
;
450 class MediaAttribute
;
451 class MediaAttributeCollection
;
454 class MediaDisposeObjectClosure
;
456 class MediaElementPropertyValueProvider
;
458 class MediaGetFrameClosure
;
461 class MediaMarkerFoundClosure
;
463 class MediaReportFrameCompletedClosure
;
464 class MediaReportSeekCompletedClosure
;
465 class MediaSeekClosure
;
466 class MediaThreadPool
;
471 class MmsPlaylistEntry
;
472 class MmsSecondDownloader
;
475 class MoonlightConfiguration
;
478 class MoonWindowless
;
479 class MouseButtonEventArgs
;
480 class MouseEventArgs
;
481 class MouseWheelEventArgs
;
483 class Mp3DemuxerInfo
;
484 class Mp3FrameReader
;
485 class MultiScaleImage
;
486 class MultiScaleImagePropertyValueProvider
;
487 class MultiScaleSubImage
;
488 class MultiScaleSubImageCollection
;
489 class MultiScaleTileSource
;
492 class NPStreamRequest
;
494 class NullDecoderInfo
;
495 class ObjectAnimationUsingKeyFrames
;
496 class ObjectKeyFrame
;
497 class ObjectKeyFrameCollection
;
499 class OutOfBrowserSettings
;
501 class ParallelTimeline
;
502 class ParserErrorEventArgs
;
503 class PassThroughDecoder
;
504 class PassThroughDecoderInfo
;
508 class PathFigureCollection
;
511 class PathSegmentCollection
;
516 class PlaylistParser
;
517 class PlaylistParserInternal
;
519 class PluginDownloader
;
520 class PluginInstance
;
521 class PluginXamlLoader
;
522 class PointAnimation
;
523 class PointAnimationUsingKeyFrames
;
524 class PointCollection
;
526 class PointKeyFrameCollection
;
527 class PolyBezierSegment
;
530 class PolyLineSegment
;
531 class PolyQuadraticBezierSegment
;
534 class ProgressEventArgs
;
535 class ProgressiveSource
;
536 class PropertyChangedEventArgs
;
537 class PropertyValueProvider
;
540 class QuadraticBezierSegment
;
545 class RadialGradientBrush
;
547 class RectangleGeometry
;
549 class RenderingEventArgs
;
551 class ResourceDictionary
;
552 class ResourceDictionaryCollection
;
553 class RotateTransform
;
554 class RoutedEventArgs
;
556 class RowDefinitionCollection
;
558 class ScaleTransform
;
561 class SetterBaseCollection
;
564 class SizeChangedEventArgs
;
566 class SolidColorBrush
;
567 class SplineColorKeyFrame
;
568 class SplineDoubleKeyFrame
;
569 class SplinePointKeyFrame
;
573 class StrokeCollection
;
575 class StylePropertyValueProvider
;
578 class StylusPointCollection
;
580 class SystemTimeSource
;
581 class TabNavigationWalker
;
585 class TextBoxModelChangedEventArgs
;
587 class TextChangedEventArgs
;
589 class TextFontDescription
;
591 class TextLayoutAttributes
;
595 class TimelineCollection
;
597 class TimelineMarker
;
598 class TimelineMarkerCollection
;
601 class ToggleNotifyListener
;
603 class TransformCollection
;
604 class TransformGroup
;
605 class TranslateTransform
;
607 class TriggerActionCollection
;
609 class TriggerCollection
;
613 class UIElementCollection
;
615 class UnmanagedMatrix
;
621 class VisualTreeWalker
;
622 class WriteableBitmap
;
627 class YUVConverterInfo
;
629 struct asf_bitrate_mutual_exclusion
;
630 struct asf_codec_list
;
631 struct asf_content_description
;
633 struct asf_error_correction
;
634 struct asf_error_correction_data
;
635 struct asf_extended_content_description
;
636 struct asf_extended_stream_name
;
637 struct asf_extended_stream_properties
;
638 struct asf_file_properties
;
641 struct asf_header_extension
;
643 struct asf_marker_entry
;
644 struct asf_multiple_payloads
;
646 struct asf_payload_extension_system
;
647 struct asf_payload_parsing_information
;
648 struct asf_script_command
;
649 struct asf_script_command_entry
;
650 struct asf_single_payload
;
651 struct asf_stream_bitrate_properties
;
652 struct asf_stream_properties
;
653 struct asf_video_stream_data
;
655 struct ASFFrameReaderData
;
656 struct ASFFrameReaderIndex
;
658 struct BITMAPINFOHEADER
;
662 struct FontFaceExtents
;
672 struct ManagedStreamCallbacks
;
673 struct ManagedTypeInfo
;
674 struct MmsDataPacket
;
676 struct MmsHeaderReason
;
678 struct MoonlightCollectionObject
;
679 struct MoonlightCollectionType
;
680 struct MoonlightContentObject
;
681 struct MoonlightContentType
;
682 struct MoonlightControlObject
;
683 struct MoonlightControlType
;
684 struct MoonlightCornerRadius
;
685 struct MoonlightCornerRadiusType
;
686 struct MoonlightDependencyObjectObject
;
687 struct MoonlightDependencyObjectType
;
688 struct MoonlightDownloaderObject
;
689 struct MoonlightDownloaderType
;
690 struct MoonlightDownloadProgressEventArgs
;
691 struct MoonlightDownloadProgressEventArgsType
;
692 struct MoonlightDuration
;
693 struct MoonlightDurationType
;
694 struct MoonlightErrorEventArgs
;
695 struct MoonlightErrorEventArgsType
;
696 struct MoonlightEventArgs
;
697 struct MoonlightEventArgsType
;
698 struct MoonlightEventObjectObject
;
699 struct MoonlightEventObjectType
;
700 struct MoonlightGridLength
;
701 struct MoonlightGridLengthType
;
702 struct MoonlightImageBrushObject
;
703 struct MoonlightImageBrushType
;
704 struct MoonlightImageObject
;
705 struct MoonlightImageType
;
706 struct MoonlightKeyEventArgsObject
;
707 struct MoonlightKeyEventArgsType
;
708 struct MoonlightKeyTime
;
709 struct MoonlightKeyTimeType
;
710 struct MoonlightMarkerReachedEventArgsObject
;
711 struct MoonlightMarkerReachedEventArgsType
;
712 struct MoonlightMediaElementObject
;
713 struct MoonlightMediaElementType
;
714 struct MoonlightMouseEventArgsObject
;
715 struct MoonlightMouseEventArgsType
;
716 struct MoonlightMultiScaleImageObject
;
717 struct MoonlightMultiScaleImageType
;
718 struct MoonlightObject
;
719 struct MoonlightObjectType
;
720 struct MoonlightPasswordBoxObject
;
721 struct MoonlightPasswordBoxType
;
722 struct MoonlightPoint
;
723 struct MoonlightPointType
;
724 struct MoonlightRect
;
725 struct MoonlightRectType
;
726 struct MoonlightRoutedEventArgs
;
727 struct MoonlightRoutedEventArgsType
;
728 struct MoonlightScriptableObjectObject
;
729 struct MoonlightScriptableObjectType
;
730 struct MoonlightScriptControlObject
;
731 struct MoonlightScriptControlType
;
732 struct MoonlightSettingsObject
;
733 struct MoonlightSettingsType
;
734 struct MoonlightStoryboardObject
;
735 struct MoonlightStoryboardType
;
736 struct MoonlightStrokeCollectionObject
;
737 struct MoonlightStrokeCollectionType
;
738 struct MoonlightStrokeObject
;
739 struct MoonlightStrokeType
;
740 struct MoonlightStylusInfoObject
;
741 struct MoonlightStylusInfoType
;
742 struct MoonlightStylusPointCollectionObject
;
743 struct MoonlightStylusPointCollectionType
;
744 struct MoonlightTextBlockObject
;
745 struct MoonlightTextBlockType
;
746 struct MoonlightTextBoxObject
;
747 struct MoonlightTextBoxType
;
748 struct MoonlightThickness
;
749 struct MoonlightThicknessType
;
750 struct MoonlightTimeSpan
;
751 struct MoonlightTimeSpanType
;
752 struct MoonlightUIElementObject
;
753 struct MoonlightUIElementType
;
754 struct MoonNameIdMapping
;
756 struct MpegFrameHeader
;
757 struct MpegVBRHeader
;
761 struct RepeatBehavior
;
764 struct TextLayoutGlyphCluster
;
765 struct TextLayoutLine
;
766 struct TextLayoutRun
;
771 struct WAVEFORMATEXTENSIBLE
;
772 struct XamlCallbackData
;
773 struct XamlLoaderCallbacks
;
775 typedef void ( * ApplyDefaultStyleCallback
) ( FrameworkElement
* fwe
, ManagedTypeInfo
* key
) ;
776 typedef void ( * ApplyStyleCallback
) ( FrameworkElement
* fwe
, Style
* style
) ;
777 typedef void * ( * ConvertKeyframeValueCallback
) ( int kind
, DependencyProperty
* property
, Value
* original
, Value
* converted
) ;
778 typedef ManagedStreamCallbacks ( * GetResourceCallback
) ( const char * resourceBase
, const char * name
) ;
779 typedef void ( * TickCallHandler
) ( EventObject
* object
) ;
780 typedef void ( * EventHandler
) ( EventObject
* sender
, EventArgs
* args
, gpointer closure
) ;
781 typedef void ( * ToggleNotifyHandler
) ( EventObject
* sender
, bool isLastRef
) ;
782 typedef void ( * PropertyChangeHandler
) ( DependencyObject
* sender
, PropertyChangedEventArgs
* args
, MoonError
* error
, gpointer closure
) ;
783 typedef void ( * DownloaderResponseHeaderCallback
) ( gpointer context
, const char * header
, const char * value
) ;
784 typedef void ( * DownloaderWriteFunc
) ( void * buf
, gint32 offset
, gint32 n
, gpointer cb_data
) ;
785 typedef void ( * DownloaderNotifySizeFunc
) ( gint64 size
, gpointer cb_data
) ;
786 typedef gpointer ( * DownloaderCreateStateFunc
) ( Downloader
* dl
) ;
787 typedef void ( * DownloaderDestroyStateFunc
) ( gpointer state
) ;
788 typedef void ( * DownloaderOpenFunc
) ( gpointer state
, const char * verb
, const char * uri
, bool custom_header_support
, bool disable_cache
) ;
789 typedef void ( * DownloaderSendFunc
) ( gpointer state
) ;
790 typedef void ( * DownloaderAbortFunc
) ( gpointer state
) ;
791 typedef void ( * DownloaderHeaderFunc
) ( gpointer state
, const char * header
, const char * value
) ;
792 typedef void ( * DownloaderBodyFunc
) ( gpointer state
, void * body
, guint32 length
) ;
793 typedef gpointer ( * DownloaderCreateWebRequestFunc
) ( const char * method
, const char * uri
, gpointer context
) ;
794 typedef void ( * DownloaderSetResponseHeaderCallbackFunc
) ( gpointer state
, DownloaderResponseHeaderCallback callback
, gpointer context
) ;
795 typedef DownloaderResponse
* ( * DownloaderGetResponseFunc
) ( gpointer state
) ;
796 typedef guint32 ( * DownloaderResponseStartedHandler
) ( DownloaderResponse
* response
, gpointer context
) ;
797 typedef guint32 ( * DownloaderResponseDataAvailableHandler
) ( DownloaderResponse
* response
, gpointer context
, char * buffer
, guint32 length
) ;
798 typedef guint32 ( * DownloaderResponseFinishedHandler
) ( DownloaderResponse
* response
, gpointer context
, bool success
, gpointer data
, const char * uri
) ;
799 typedef double ( * EasingFunction
) ( double normalizedTime
) ;
800 typedef Size ( * MeasureOverrideCallback
) ( Size availableSize
) ;
801 typedef Size ( * ArrangeOverrideCallback
) ( Size finalSize
) ;
802 typedef UIElement
* ( * GetDefaultTemplateCallback
) ( FrameworkElement
* element
) ;
803 typedef void ( * LoadedCallback
) ( FrameworkElement
* element
) ;
804 typedef void ( * CloseDemuxerCallback
) ( void * instance
) ;
805 typedef void ( * GetDiagnosticAsyncCallback
) ( void * instance
, int diagnosticKind
) ;
806 typedef void ( * GetFrameAsyncCallback
) ( void * instance
, int mediaStreamType
) ;
807 typedef void ( * OpenDemuxerAsyncCallback
) ( void * instance
, IMediaDemuxer
* demuxer
) ;
808 typedef void ( * SeekAsyncCallback
) ( void * instance
, guint64 seekToTime
) ;
809 typedef void ( * SwitchMediaStreamAsyncCallback
) ( void * instance
, IMediaStream
* mediaStreamDescription
) ;
810 typedef void ( * ExternalDecoder_DecodeFrameAsyncCallback
) ( void * instance
, MediaFrame
* frame
) ;
811 typedef void ( * ExternalDecoder_OpenDecoderAsyncCallback
) ( void * instance
) ;
812 typedef void ( * ExternalDecoder_CleanupCallback
) ( void * instance
, MediaFrame
* frame
) ;
813 typedef void ( * ExternalDecoder_CleanStateCallback
) ( void * instance
) ;
814 typedef bool ( * ExternalDecoder_HasDelayedFrameCallback
) ( void * instance
) ;
815 typedef void ( * ExternalDecoder_DisposeCallback
) ( void * instance
) ;
816 typedef void ( * ExternalDecoder_DtorCallback
) ( void * instance
) ;
817 typedef bool ( * ExternalDecoderInfo_SupportsCallback
) ( void * instance
, const char * codec
) ;
818 typedef IMediaDecoder
* ( * ExternalDecoderInfo_Create
) ( void * instance
, Media
* media
, IMediaStream
* stream
) ;
819 typedef void ( * ExternalDecoderInfo_dtor
) ( void * instance
) ;
820 typedef bool ( * get_image_uri_func
) ( int level
, int posX
, int posY
, Uri
* uri
, void * user_data
) ;
821 typedef gint64 TimeSpan
;
829 /* @GeneratePInvoke */
830 void *plugin_instance_evaluate (PluginInstance
*instance
, const char *code
);
832 /* @GeneratePInvoke */
833 gint32
plugin_instance_get_actual_height (PluginInstance
*instance
);
835 /* @GeneratePInvoke */
836 gint32
plugin_instance_get_actual_width (PluginInstance
*instance
);
838 /* @GeneratePInvoke */
839 bool plugin_instance_get_allow_html_popup_window (PluginInstance
*instance
);
841 /* @GeneratePInvoke */
842 void *plugin_instance_get_browser_host (PluginInstance
*instance
);
844 /* @GeneratePInvoke */
845 bool plugin_instance_get_enable_html_access (PluginInstance
*instance
);
847 /* @GeneratePInvoke */
848 const char *plugin_instance_get_init_params (PluginInstance
*instance
);
850 /* @GeneratePInvoke */
851 const char *plugin_instance_get_source (PluginInstance
*instance
);
853 /* @GeneratePInvoke */
854 const char *plugin_instance_get_source_location (PluginInstance
*instance
);
856 /* @GeneratePInvoke */
857 const char *plugin_instance_get_source_location_original (PluginInstance
*instance
);
859 /* @GeneratePInvoke */
860 const char *plugin_instance_get_source_original (PluginInstance
*instance
);
862 /* @GeneratePInvoke */
863 Surface
*plugin_instance_get_surface (PluginInstance
*instance
);
865 /* @GeneratePInvoke */
866 bool plugin_instance_get_windowless (PluginInstance
*instance
);
868 /* @GeneratePInvoke */
869 void plugin_instance_report_exception (PluginInstance
*instance
, char *msg
, char *details
, char* *stack_trace
, int num_frames
);