mco_uda_delete_all

Delete all objects of the specified class.

Prototype

 
    MCO_RET mco_uda_delete_all(	/*IN*/ mco_trans_h t, unsigned short struct_no );
 

Arguments

t A handle of an open transaction

struct_no

The class number (must be between 0 and mco_dict_struct_count() - 1)

Description

This function deletes all objects of the specified class.

Return Codes

MCO_S_OK All objects of the specified class were successfully deleted

Example

 
    Application snippet:
        
     
    int main(int argc, char* argv[])
    {
        MCO_RET rc;
        mco_db_h db;
        mco_trans_h t;
        unsigned int struct_no = 1;
        ...
         
        rc = mco_trans_start(db, MCO_READ_WRITE, MCO_TRANS_FOREGROUND, &t);
        if ( MCO_S_OK == rc )
        {
            rc = mco_uda_delete_all(t, struct_no);
        
            rc = mco_trans_commit(t);
        }
        ...
    }
     
 

Files

Header file:
mcouda.h
Source file:
mcouda.c
Library:
libmcouda.a