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; }
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; }
// 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; }
void callback( int size, resultList *listpointer, void *data ) { resultList *sortedResultList = NULL ; sortedResultList = ( resultList * ) sortResult( listpointer ) ; printResultList( sortedResultList ) ; }
void callback( int size, resultList *listpointer, void *data ) { _debug( __FILE__, __LINE__, 5, "calling back..." ) ; printf( "%d record(s) found!\n", size ) ; printResultList( listpointer ) ; }
void callback( int size, resultList *listpointer, void *data ) { printResultList( listpointer ) ; }