Hello,
I'm trying to get a signal from a program, KTorrent.
my sample code:
Code:
void getTorrentInfo(DBusGProxy* proxy,char* torrent)
{
printf("%s\n",torrent);
}
Code:
torrent = dbus_g_proxy_new_for_name_owner(conn,
"org.ktorrent.ktorrent",
"/org/ktorrent/ktorrent/core",
"org.ktorrent.core",&error);
if (error != NULL) {
#ifndef _SILENT
printf("Somethings wrong:dbus_g_proxy_new_for_name_owner(TORRENT)\n");
printf("%s\n",error->message);
#endif
conn = NULL;
return FALSE;
}
dbus_g_proxy_add_signal (torrent, "finished",G_TYPE_STRING);
dbus_g_proxy_connect_signal (torrent, "finished", G_CALLBACK (getTorrentInfo), NULL, NULL);
return TRUE;
the introspect for the signal says it passes a single string
but i get the error:
** (proccess:11184): WARNING **: No marshaller for signature of signal 'finished'
i know this works in python because this is a rewrite of a python program i wrote about a year ago.
I've searched this error, and haven't been able to come up with an answer, can someone help?
Thanks
Kevin