gnomemm r1531 - in gstreamermm/trunk: . gstreamer/src



Author: jaalburqu
Date: Mon May 26 02:53:00 2008
New Revision: 1531
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1531&view=rev

Log:
2008-05-25  Josà Alburquerque  <jaalburqu svn gnome org>

	* gstreamer/src/bin.hg: Added get_children() and get_num_children().
	* gstreamer/src/clock.hg: Wrapped {MILLI,MICRO,NANO}_SECOND.
	* gstreamer/src/structure.hg: 
	* gstreamer/src/query.hg: Added method docs and _IGNORE for
	handwritten methods.

Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/gstreamer/src/bin.hg
   gstreamermm/trunk/gstreamer/src/clock.hg
   gstreamermm/trunk/gstreamer/src/query.hg
   gstreamermm/trunk/gstreamer/src/structure.hg

Modified: gstreamermm/trunk/gstreamer/src/bin.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/bin.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/bin.hg	Mon May 26 02:53:00 2008
@@ -197,6 +197,15 @@
 GstIterator*	gst_bin_iterate_all_by_interface (GstBin *bin, GType iface);
 */
 
+#m4 _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Element> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
+  /** Gets the bin's list of children.
+   */
+  _MEMBER_GET(children, children, Glib::ListHandle< Glib::RefPtr<Element> >, GList*)
+
+  /** Gets the number of children in the bin.
+   */
+  _MEMBER_GET(num_children, numchildren, int, int)
+
   _IGNORE(gst_bin_add, gst_bin_remove, gst_bin_add_many, gst_bin_remove_many)
 
 #m4 _CONVERSION(`GstElement*',`const Glib::RefPtr<Element>&', `Glib::wrap($3, true)')

Modified: gstreamermm/trunk/gstreamer/src/clock.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/clock.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/clock.hg	Mon May 26 02:53:00 2008
@@ -45,6 +45,18 @@
  */
 const ClockTime SECOND = GST_SECOND;
 
+/** Constant that defines one GStreamer millisecond.
+ */
+const ClockTime MILLI_SECOND = GST_MSECOND;
+
+/** Constant that defines one GStreamer microsecond.
+ */
+const ClockTime MICRO_SECOND = GST_USECOND;
+
+/** Constant that defines one GStreamer nanosecond.
+ */
+const ClockTime NANO_SECOND = GST_NSECOND;
+
 _WRAP_ENUM(ClockEntryType, GstClockEntryType)
 _WRAP_ENUM(ClockReturn, GstClockReturn)
 _WRAP_ENUM(ClockFlags, GstClockFlags)

Modified: gstreamermm/trunk/gstreamer/src/query.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/query.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/query.hg	Mon May 26 02:53:00 2008
@@ -32,8 +32,21 @@
 
 _WRAP_ENUM(QueryType, GstQueryType)
 
+/** Get a printable name for the given query type.
+ *
+ * @param query The query type.
+ * @return The name of the query.
+ */
 Glib::ustring get_name(QueryType t);
+_IGNORE(gst_query_type_get_name)
+
+/** Get the unique quark for the given query type.
+ *
+ * @param query The query type.
+ * @return The quark associated with the query type.
+ */
 Glib::QueryQuark get_quark(QueryType t);
+_IGNORE(gst_query_type_to_quark)
 
 struct QueryTypeDefinition
 {
@@ -56,6 +69,8 @@
   Structure get_structure() const;
 
 public:
+  /** Get the Gst::QueryType of the query.
+   */
   _MEMBER_GET(query_type, type, QueryType, GstQueryType)
 
   /** Wrap a GstQuery* in a C++ instance, creating an instance of a derived
@@ -71,7 +86,14 @@
 #m4 _CONVERSION(`const Glib::ArrayHandle<QueryType>&',`GstQueryType*',`(GstQueryType*)(($3).data())')
   _WRAP_METHOD(static bool query_types_contains(const Glib::ArrayHandle<QueryType>& types, QueryType type), gst_query_types_contains)
 
+  /** Get details about the given Gst::QueryType.
+   *
+   * @param type A Gst::QueryType.
+   * @param def A Gst::QueryTypeDefinition in which to store the details.
+   * @return true if successful, false otherwise.
+   */
   bool get_details(QueryType type, QueryTypeDefinition& def);
+  _IGNORE(gst_query_type_get_details)
 };
 
 //TODO: Modify create methods of derived Query classes to return

Modified: gstreamermm/trunk/gstreamer/src/structure.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/structure.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/structure.hg	Mon May 26 02:53:00 2008
@@ -377,7 +377,7 @@
    * this function returns false.
    */
   bool get_field(const Glib::ustring& fieldname, ClockTime& value) const;
-  _IGNORE(gst_structure_get_clocktime)
+  _IGNORE(gst_structure_get_clock_time)
 
   /** Gets the value of field @a fieldname with GType enum type @a enumtype
    * into integer @a value.  Caller is responsible for making sure the



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]