[Pidgin] #10432: _PurpleDnsQueryData not available for PurpleDnsQueryUiOps implementations
Pidgin
trac at pidgin.im
Sat Oct 3 22:41:49 EDT 2009
#10432: _PurpleDnsQueryData not available for PurpleDnsQueryUiOps implementations
-------------------------+--------------------------------------------------
Reporter: jochendesmet | Type: defect
Status: new | Component: libpurple
Version: 2.6.2 | Keywords: DNS
-------------------------+--------------------------------------------------
PurpleDnsQueryUiOps defines the resolve_host function as
{{{
gboolean(*resolve_host)(PurpleDnsQueryData *query_data,
PurpleDnsQueryResolvedCallback resolved_cb,
PurpleDnsQueryFailedCallback failed_cb)
}}}
with a PurpleDnsQueryData* as first parameter. PurpleDnsQueryData is
defined as
{{{
typedef struct _PurpleDnsQueryData PurpleDnsQueryData;
}}}
in dnsquery.h; but the actual definition of struct _PurpleDnsQueryData is
in dnsquery.c, so it's not available for someone wanting to implement a
resolv_host function, leading to "use of undefined type
'_PurpleDnsQueryData'" compiler errors unless you manually copy the
definition from dnsquery.c into your own file.
I think the definition of struct _PurpleDnsQueryData should be moved to
dnsquery.h to resolve this.
--
Ticket URL: <http://developer.pidgin.im/ticket/10432>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list