• Will Thompson's avatar
    Support functions which return GError · adcfe96d
    Will Thompson authored
    GStreamer has the following method:
      void gst_message_parse_error (
          GstMessage *message,
          GError **error,
          gchar **debug_message);
    With this patch, we marshal the GError out parameter as a GObject.GError
    exception, but return it rather than throwing it. The test cases cover
    two variations on the theme of the function above (one with (transfer
    full), as in GStreamer, and another with (transfer none)) as well as a
    function with return type GError *.
pygi-marshal-to-py.c 25.1 KB