Esempio n. 1
0
static void removeDeviceCB(void* ctx, int nOfRes, OCProvisionResult_t* arr, bool hasError)
{
    if(!hasError)
    {
        OIC_LOG_V(INFO, TAG, "Remove Device SUCCEEDED - ctx: %s", (char*) ctx);
    }
    else
    {
        OIC_LOG_V(ERROR, TAG, "Remove Device FAILED - ctx: %s", (char*) ctx);
        printResultList((const OCProvisionResult_t*) arr, nOfRes);
    }
    g_doneCB = true;
}
Esempio n. 2
0
static void provisionDPCB(void* ctx, int nOfRes, OCProvisionResult_t* arr, bool hasError)
{
    if(!hasError)
    {
        OIC_LOG_V(INFO, TAG, "Provision Direct-Pairing SUCCEEDED - ctx: %s", (char*) ctx);
    }
    else
    {
        OIC_LOG_V(ERROR, TAG, "Provision Direct-Pairing FAILED - ctx: %s", (char*) ctx);
        printResultList((const OCProvisionResult_t*) arr, nOfRes);
    }
    g_doneCB = true;
}
Esempio n. 3
0
// callback function(s) for provisioning client using C-level provisioning API
static void ownershipTransferCB(void* ctx, int nOfRes, OCProvisionResult_t* arr, bool hasError)
{
    if(!hasError)
    {
        OIC_LOG_V(INFO, TAG, "Ownership Transfer SUCCEEDED - ctx: %s", (char*) ctx);
    }
    else
    {
        OIC_LOG_V(ERROR, TAG, "Ownership Transfer FAILED - ctx: %s", (char*) ctx);
        printResultList((const OCProvisionResult_t*) arr, nOfRes);
    }
    g_doneCB = true;
}
Esempio n. 4
0
void callback( int size, resultList *listpointer, void *data )
{	
	resultList *sortedResultList = NULL ;
	sortedResultList = ( resultList * ) sortResult( listpointer ) ;
	printResultList( sortedResultList ) ;	
}
Esempio n. 5
0
void callback( int size, resultList *listpointer, void *data )
{	
	_debug( __FILE__, __LINE__, 5, "calling back..." ) ;
	printf( "%d record(s) found!\n", size ) ;
	printResultList( listpointer ) ;
}
Esempio n. 6
0
void callback( int size, resultList *listpointer, void *data )
{	
	printResultList( listpointer ) ;	
}