pbutils: Specify which string variables can be NULL
authorEdward Hervey <bilboed@bilboed.com>
Sun, 6 Feb 2011 11:08:14 +0000 (12:08 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 6 Feb 2011 11:08:14 +0000 (12:08 +0100)
Without this you can't pass None to the various methods/constructors

gst/pbutils.defs

index 14fb9ec..76c7ac3 100644 (file)
   (c-name "gst_encoding_profile_set_name")
   (return-type "none")
   (parameters
-    '("const-gchar*" "name")
+    '("const-gchar*" "name" (null-ok) (default "NULL"))
   )
 )
 
   (c-name "gst_encoding_profile_set_description")
   (return-type "none")
   (parameters
-    '("const-gchar*" "description")
+    '("const-gchar*" "description" (null-ok) (default "NULL"))
   )
 )
 
   (c-name "gst_encoding_profile_set_preset")
   (return-type "none")
   (parameters
-    '("const-gchar*" "preset")
+    '("const-gchar*" "preset" (null-ok) (default "NULL"))
   )
 )
 
   (c-name "gst_encoding_profile_set_restriction")
   (return-type "none")
   (parameters
-    '("GstCaps*" "restriction")
+    '("GstCaps*" "restriction" (null-ok) (default "NULL"))
   )
 )
 
   (parameters
     '("const-gchar*" "targetname")
     '("const-gchar*" "profilename")
-    '("const-gchar*" "category")
+    '("const-gchar*" "category" (null-ok) (default "NULL"))
   )
 )
 
   (is-constructor-of "GstEncodingContainerProfile")
   (return-type "GstEncodingContainerProfile*")
   (parameters
-    '("const-gchar*" "name")
-    '("const-gchar*" "description")
+    '("const-gchar*" "name" (null-ok) (default "NULL"))
+    '("const-gchar*" "description" (null-ok) (default "NULL"))
     '("GstCaps*" "format")
-    '("const-gchar*" "preset")
+    '("const-gchar*" "preset"(null-ok) (default "NULL"))
   )
 )
 
   (return-type "GstEncodingVideoProfile*")
   (parameters
     '("GstCaps*" "format")
-    '("const-gchar*" "preset")
+    '("const-gchar*" "preset" (null-ok) (default "NULL"))
     '("GstCaps*" "restriction")
     '("guint" "presence")
   )
   (return-type "GstEncodingAudioProfile*")
   (parameters
     '("GstCaps*" "format")
-    '("const-gchar*" "preset")
+    '("const-gchar*" "preset" (null-ok) (default "NULL"))
     '("GstCaps*" "restriction")
     '("guint" "presence")
   )