Changeset 2261 for trunk/gsdl/lib


Ignore:
Timestamp:
2001-04-03T02:13:26+12:00 (23 years ago)
Author:
say1
Message:

fixed a minor c initialisation bug

Location:
trunk/gsdl/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/corbaiface.h

    r2126 r2261  
    489489    virtual void collectionList( corbatext_tarray& collist, corbaComError& error ) = 0;
    490490    virtual void hasCollection( const corbatext_t& corbaCollection, CORBA::Boolean& has, corbaComError& error ) = 0;
    491     virtual CORBA::Boolean ping( const corbatext_t& collection, corbaComError& error ) = 0;
     491    virtual void ping( const corbatext_t& collection, CORBA::Boolean& wasSuccess, corbaComError& error ) = 0;
    492492    virtual void getDocument( const corbatext_t& collection, corbaDocRequest& request, corbaDocResponse& response, corbaComError& error ) = 0;
    493493    virtual void getCollectInfo( const corbatext_t& collection, corbaColInfoResponse& response, corbaComError& error ) = 0;
     
    513513    void collectionList( corbatext_tarray& collist, corbaComError& error );
    514514    void hasCollection( const corbatext_t& corbaCollection, CORBA::Boolean& has, corbaComError& error );
    515     CORBA::Boolean ping( const corbatext_t& collection, corbaComError& error );
     515    void ping( const corbatext_t& collection, CORBA::Boolean& wasSuccess, corbaComError& error );
    516516    void getDocument( const corbatext_t& collection, corbaDocRequest& request, corbaDocResponse& response, corbaComError& error );
    517517    void getCollectInfo( const corbatext_t& collection, corbaColInfoResponse& response, corbaComError& error );
  • trunk/gsdl/lib/corbaiface.mpp

    r2126 r2261  
    15011501
    15021502
    1503 CORBA::Boolean gsdlInterface::corbaiface_stub::ping( const gsdlInterface::corbatext_t& collection, gsdlInterface::corbaComError& error )
     1503void gsdlInterface::corbaiface_stub::ping( const gsdlInterface::corbatext_t& collection, CORBA::Boolean& wasSuccess, gsdlInterface::corbaComError& error )
    15041504{
    15051505  CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
     1506  CORBA::StaticAny _wasSuccess( CORBA::_stc_boolean, &wasSuccess );
    15061507  CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
    1507   CORBA::Boolean _res;
    1508   CORBA::StaticAny __res( CORBA::_stc_boolean, &_res );
    1509 
    15101508  CORBA::StaticRequest __req( this, "ping" );
    15111509  __req.add_in_arg( &_collection );
     1510  __req.add_inout_arg( &_wasSuccess );
    15121511  __req.add_inout_arg( &_error );
    1513   __req.set_result( &__res );
    15141512
    15151513  __req.invoke();
     
    15171515  mico_sii_throw( &__req,
    15181516    0);
    1519   return _res;
    15201517}
    15211518
  • trunk/gsdl/lib/corbaiface_skel.mpp

    r2127 r2261  
    6767        corbatext_t collection;
    6868        CORBA::StaticAny _collection( _marshaller_gsdlInterface_corbatext_t, &collection );
    69         corbaComError error;
    70         CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
    71 
    72         CORBA::Boolean _res;
    73         CORBA::StaticAny __res( CORBA::_stc_boolean, &_res );
    74         _req->add_in_arg( &_collection );
    75         _req->add_inout_arg( &_error );
    76         _req->set_result( &__res );
    77 
    78         if( !_req->read_args() )
    79           return true;
    80 
    81         _res = ping( collection, error );
     69        CORBA::Boolean wasSuccess;
     70        CORBA::StaticAny _wasSuccess( CORBA::_stc_boolean, &wasSuccess );
     71        corbaComError error;
     72        CORBA::StaticAny _error( _marshaller_gsdlInterface_corbaComError, &error );
     73
     74        _req->add_in_arg( &_collection );
     75        _req->add_inout_arg( &_wasSuccess );
     76        _req->add_inout_arg( &_error );
     77
     78        if( !_req->read_args() )
     79          return true;
     80
     81        ping( collection, wasSuccess, error );
    8282        _req->write_results();
    8383        return true;
Note: See TracChangeset for help on using the changeset viewer.