Split out documentation into subfolders.
[platform/upstream/gstreamer.git] / markdown / pwg / advanced / interfaces.md
similarity index 97%
rename from pwg-advanced-interfaces.md
rename to markdown/pwg/advanced/interfaces.md
index 55a1111..b6ddfe6 100644 (file)
@@ -5,7 +5,7 @@ title: Interfaces
 # Interfaces
 
 Previously, in the chapter [Adding
-Properties](pwg-building-args.md), we have introduced the concept of
+Properties](pwg/building/args.md), we have introduced the concept of
 GObject properties of controlling an element's behaviour. This is very
 powerful, but it has two big disadvantages: first of all, it is too
 generic, and second, it isn't dynamic.
@@ -62,7 +62,7 @@ GType
 gst_my_filter_get_type (void)
 {
   static GType my_filter_type = 0;
-                                                                                
+
   if (!my_filter_type) {
     static const GTypeInfo my_filter_info = {
       sizeof (GstMyFilterClass),
@@ -98,7 +98,7 @@ gst_my_filter_some_interface_init (GstSomeInterface *iface)
 {
   /* here, you would set virtual function pointers in the interface */
 }
-    
+
 ```
 
 Or more
@@ -111,7 +111,7 @@ G_DEFINE_TYPE_WITH_CODE (GstMyFilter, gst_my_filter,GST_TYPE_ELEMENT,
      G_IMPLEMENT_INTERFACE (GST_TYPE_SOME_INTERFACE,
             gst_my_filter_some_interface_init));
 
-    
+
 ```
 
 ## URI interface
@@ -166,7 +166,7 @@ gst_my_filter_set_window_handle (GstVideoOverlay *overlay, guintptr handle)
 
   if (my_filter->window)
     gst_my_filter_destroy_window (my_filter->window);
-    
+
   my_filter->window = handle;
 }
 
@@ -175,7 +175,7 @@ gst_my_filter_xoverlay_init (GstVideoOverlayClass *iface)
 {
   iface->set_window_handle = gst_my_filter_set_window_handle;
 }
-    
+
 ```
 
 You will also need to use the interface methods to post messages when
@@ -203,16 +203,15 @@ gst_my_filter_sink_set_caps (GstMyFilter *my_filter, GstCaps *caps)
   if (!ret) return FALSE;
 
   gst_video_overlay_prepare_window_handle (GST_VIDEO_OVERLAY (my_filter));
-  
+
   if (!my_filter->window)
     my_filter->window = gst_my_filter_create_window (my_filter, width, height);
 
   ...
 }
-    
+
 ```
 
 ## Navigation Interface
 
 WRITEME
-