libseed-list passing a NULL-terminated array of Quarks



Hey Seeders,

Trying put together Telepathy bindings for Javascript, and I've started
with some basic introspection of telepathy-glib.

Here is a function I would like to call:
/**
 * tp_account_manager_prepare_async:
 * @manager: a #TpAccountManager
 * @features: (array zero-terminated=1) (allow-none): a 0-terminated list of
 * features, or %NULL
 * @callback: (allow-none): a callback to call when the request is satisfied
 * @user_data: (allow-none): data to pass to @callback
 */
void
tp_account_manager_prepare_async (TpAccountManager *manager,
    const GQuark *features,
    GAsyncReadyCallback callback,
    gpointer user_data)
{

Which has been introspected to:

      <method name="prepare_async" c:identifier="tp_account_manager_prepare_async">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="features" transfer-ownership="none" allow-none="1">
            <array c:type="GQuark*">
              <type name="GLib.Quark"/>
            </array>
          </parameter>
          <parameter name="callback" transfer-ownership="none" allow-none="1">
            <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
          </parameter>
          <parameter name="user_data" transfer-ownership="none" allow-none="1">
            <type name="any" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>

I make this call in Seed:

var am = TpGLib.AccountManager.dup();
var q = TpGLib.AccountManager.get_feature_quark_core();

am.prepare_async([q], ready_callback);

And get this error:
** (seed:24252): CRITICAL **: ArgumentError. Unable to make argument 1 for function: prepare_async.

Help?


-- 
Danielle Madeley

Collabora Ltd., Melbourne, Australia
http://www.collabora.co.uk/



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