On Tue, Jan 20, 2015 at 3:13 PM, Nicolas Jäger <jagernicolas@legtux.org> wrote:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">void
callback(
)
{
GList *plugin_list, *p;
GAsyncResult *result;
plugin_list = webkit_web_context_get_plugins_finish ( web_context,
result, nullptr );</div></blockquote><div><br></div><div>Hi,</div><br><div>The GAsyncResult you're passing to webkit_web_context_get_plugins_finish() is uninitialized. It's passed as the second argument to your callback, so you should declare at least that many parameters.</div><div><br></div><div>You should also pass a GError unless you're sure you want to silence errors. Something like this is typical:</div><div><br></div><div>void callback(GObject *source_object, GAsyncResult *res, gpointer user_data)</div><div>{</div><div> WebKitWebContext *web_context = WEBKIT_WEB_CONTEXT(source_object);</div><div> GError *error = nullptr;</div><div> GList *plugin_list = webkit_web_context_get_plugins_finish(web_context, res, &error);</div><div> if (error)</div><div> // handle error</div><div>}</div><div><br></div><div>Take a look at the documentation for GAsyncResult [1].</div><div><br></div><div>[1] <a href="https://developer.gnome.org/gio/stable/GAsyncResult.html">https://developer.gnome.org/gio/stable/GAsyncResult.html</a></div>