Kaydet (Commit) cbb86124 authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

Replace DBusGObjectPath with char to hopefully compile on older dbus-glib.

The typedef for DBusGObjectPath is only present in newer versions of dbus-glib.
It is equivalent to a gchar.

Change-Id: I1660234760fde7c7d88721f39d86a820c89040cc
üst 01129788
......@@ -64,7 +64,9 @@ void BluetoothServer::execute()
}
gboolean aResult;
DBusGObjectPath *aAdapterPath = NULL;
// The following should be a DBusGObjectPath, however the necessary
// typedef is missing in older version of dbus-glib.
char *aAdapterPath = NULL;
aResult = dbus_g_proxy_call( aManager, "DefaultAdapter", &aError,
G_TYPE_INVALID,
DBUS_TYPE_G_OBJECT_PATH, &aAdapterPath,
......
......@@ -65,14 +65,16 @@ DiscoveryService::~DiscoveryService()
void DiscoveryService::execute()
{
char aBuffer[BUFFER_SIZE];
fprintf( stderr,"Created\n" );
while ( true )
{
memset( aBuffer, 0, sizeof(char) * BUFFER_SIZE );
sockaddr_in aAddr;
socklen_t aLen = sizeof( aAddr );
fprintf( stderr,"REcing\n" );
recvfrom( mSocket, aBuffer, BUFFER_SIZE, 0, (sockaddr*) &aAddr, &aLen );
fprintf( stderr,"Reced\n" );
fprintf( stderr, "Received from\n" );
OString aString( aBuffer, strlen( "LOREMOTE_SEARCH" ) );
if ( aString.compareTo( "LOREMOTE_SEARCH" ) == 0 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment