src/axl_async_bbapi.c
/* Called from AXL_Create
 * BBTransferHandle and BBTransferDef are created and stored */
Called from AXL_Create
BBTransferHandle and BBTransferDef are created and stored
Called from AXL_Create BBTransferHandle and BBTransferDef are created and stored
int axl_async_create_bbapi(int id)
{
#ifdef HAVE_BBAPI
    if (this_is_a_post_stage_node()) {
        return AXL_SUCCESS;
    }
    BBTransferDef_t* tdef;
    int rc = BB_CreateTransferDef(&tdef);
    if (rc) {
        return bb_check(rc);
    }
    BBTAG bbtag = axl_get_unique_tag();
    BBTransferHandle_t thandle;
    rc = BB_GetTransferHandle(bbtag, 1, NULL, &thandle);
    if (rc) {
        return bb_check(rc);
    }
    kvtree* file_list = axl_kvtrees[id];
    kvtree_util_set_unsigned_long(file_list, AXL_BBAPI_KEY_TRANSFERHANDLE, (unsigned long) thandle);
    kvtree_util_set_ptr(file_list, AXL_BBAPI_KEY_TRANSFERDEF, tdef);
    return bb_check(rc);
#endif
    return AXL_FAILURE;
}
int axl_async_create_bbapi ( int id ) { #ifdef HAVE_BBAPI if ( this_is_a_post_stage_node ( ) ) { return AXL_SUCCESS ; } BBTransferDef_t * tdef ; int rc = BB_CreateTransferDef ( & tdef ) ; if ( rc ) { return bb_check ( rc ) ; } BBTAG bbtag = axl_get_unique_tag ( ) ; BBTransferHandle_t thandle ; rc = BB_GetTransferHandle ( bbtag , 1 , NULL , & thandle ) ; if ( rc ) { return bb_check ( rc ) ; } kvtree * file_list = axl_kvtrees [ id ] ; kvtree_util_set_unsigned_long ( file_list , AXL_BBAPI_KEY_TRANSFERHANDLE , ( unsigned long ) thandle ) ; kvtree_util_set_ptr ( file_list , AXL_BBAPI_KEY_TRANSFERDEF , tdef ) ; return bb_check ( rc ) ; #endif return AXL_FAILURE ; }
Called from AXL_Create
 BBTransferHandle and BBTransferDef are created and stored
Called from AXL_Create BBTransferHandle and BBTransferDef are created and stored
/* If failed to create definition then return error. There is no cleanup necessary. */ /* allocate a new transfer handle,
     * include AXL transfer id in IBM BB tag */ /* If transfer handle call failed then return. Do not record anything. */ /* record transfer handle and definition */