You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
441 B

#include "util.h"
#include "test.h"
int chint_delete_Bom(tag_t rev)
{
LINFO<<"¿ªÊ¼É¾³ýBOMÊÓͼ";
AOM_lock(rev);
int n_bvrs;
tag_t *bvrs;
ITEM_rev_list_bom_view_revs(rev,&n_bvrs,&bvrs);
for(auto i=0;i<n_bvrs;i++)
{
char* name;
AOM_ask_value_string(bvrs[i],"object_name",&name);
ITEM_rev_delete_bvr(rev,bvrs[i]);
if(name)
MEM_free(name);
}
AOM_unlock(rev);
if(bvrs)
MEM_free(bvrs);
LINFO<<"BOMÊÓͼɾ³ý½áÊø";
return 0;
}