gst/gstmessage.override (_wrap_gst_message_tp_repr): Add a repr for messages.

Original commit message from CVS:
2005-10-18  Andy Wingo  <wingo@pobox.com>

* gst/gstmessage.override (_wrap_gst_message_tp_repr): Add a repr
for messages.
This commit is contained in:
Andy Wingo 2005-10-18 10:02:41 +00:00
parent bb5e728f97
commit 9cd2add463
3 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-10-18 Andy Wingo <wingo@pobox.com>
* gst/gstmessage.override (_wrap_gst_message_tp_repr): Add a repr
for messages.
2005-10-14 Edward Hervey <edward@fluendo.com>
* gst/gst.defs:

2
common

@ -1 +1 @@
Subproject commit 3a9d355b657cf710011aa1eaadd64f6723527e14
Subproject commit 1cb5d7b76a01c711674c752015089e70c394fa99

View file

@ -20,6 +20,26 @@
* Author: Johan Dahlin <johan@gnome.org>
*/
%%
override-slot GstMessage.tp_repr
static PyObject *
_wrap_gst_message_tp_repr (PyGstMiniObject *self)
{
GstMessage *msg;
gchar *repr;
PyObject *ret;
g_assert (self);
msg = GST_MESSAGE (self->obj);
g_assert (msg);
repr = g_strdup_printf ("<gst.Message %s at %p>",
gst_message_type_get_name (GST_MESSAGE_TYPE (msg)), msg);
ret = PyString_FromStringAndSize(repr, strlen (repr));
g_free (repr);
return ret;
}
%%
override gst_message_parse_state_changed noargs
static PyObject *