(file) Return to ModuleController.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/ModuleController.h between version 1.16 and 1.17

version 1.16, 2002/04/01 19:25:43 version 1.17, 2002/04/01 22:58:52
Line 61 
Line 61 
  
             ~module_rep(void) ;             ~module_rep(void) ;
  
   
             Boolean operator == (const module_rep *rep) const             Boolean operator == (const module_rep *rep) const
             { if (rep == this ) return true; return false; }             { if (rep == this ) return true; return false; }
  
Line 87 
Line 86 
          private:          private:
             module_rep(void);             module_rep(void);
             module_rep(const module_rep & );             module_rep(const module_rep & );
             module_rep& operator= (const module_rep & rep)              module_rep & operator= (const module_rep & rep);
             {  
                if( this != &rep )  
                {  
                   _reference_count++;  
                }  
                return *this;  
             }  
   
             module_rep *operator=(const module_rep *rep)  
             {  
                if( this != rep)  
                {  
                   _reference_count++;  
                }  
                return this;  
             }  
  
  
             Mutex _thread_safety;             Mutex _thread_safety;
Line 145 
Line 128 
                      void (*async_callback)(Uint32, Message *, void *),                      void (*async_callback)(Uint32, Message *, void *),
                      void (*shutdown_notify)(Uint32 code, void *)) ;                      void (*shutdown_notify)(Uint32 code, void *)) ;
  
       ~pegasus_module(void);        pegasus_module(const pegasus_module & mod);
         pegasus_module & operator= (const pegasus_module & mod);
  
       virtual Boolean authorized(Uint32 operation);        ~pegasus_module(void);
       virtual Boolean authorized(void);  
  
       pegasus_module & operator= (const pegasus_module & mod);        virtual Boolean authorized(pegasus_base_identity *id, Uint32 operation);
       pegasus_module * operator= (const pegasus_module * mod);        virtual Boolean authorized(pegasus_base_identity *id);
  
       Boolean operator == (const pegasus_module *mod) const;       Boolean operator == (const pegasus_module *mod) const;
       Boolean operator == (const pegasus_module & mod) const ;       Boolean operator == (const pegasus_module & mod) const ;
Line 165 
Line 148 
  
  
    private:    private:
         pegasus_base_identity *_id;
       module_rep *_rep;       module_rep *_rep;
   
       pegasus_module(void);       pegasus_module(void);
       pegasus_module(const pegasus_module & mod);  
       Boolean _rcv_msg(Message *) ;       Boolean _rcv_msg(Message *) ;
       Message * _receive_message(Message *msg);       Message * _receive_message(Message *msg);
       void _send_async_callback(Uint32 msg_handle, Message *msg) ;       void _send_async_callback(Uint32 msg_handle, Message *msg) ;
Line 216 
Line 199 
             typedef pegasus_authorization_handle Base;             typedef pegasus_authorization_handle Base;
  
             client_handle(void)             client_handle(void)
                :Base(new pegasus_internal_identity(peg_credential_types::SERVICE)),                 :Base(),
                   _id(new pegasus_internal_identity(peg_credential_types::SERVICE)),
                 allowed_operations( GET_CLIENT_HANDLE |                 allowed_operations( GET_CLIENT_HANDLE |
                                     FIND_SERVICE |                                     FIND_SERVICE |
                                     FIND_MODULE_IN_SERVICE |                                     FIND_MODULE_IN_SERVICE |
Line 232 
Line 216 
             }             }
  
             client_handle(pegasus_base_identity *id)             client_handle(pegasus_base_identity *id)
                :Base(id)                 :Base(), _id(id)
             {             {
                if( id && (id->get_base_id_type() == peg_identity_types::INTERNAL ))                if( id && (id->get_base_id_type() == peg_identity_types::INTERNAL ))
                {                {
Line 248 
Line 232 
                }                }
  
             }             }
             ~client_handle(void);              ~client_handle(void)
               {
                  delete _id;
               }
   
             virtual Boolean authorized(Uint32 operation);             virtual Boolean authorized(Uint32 operation);
             virtual Boolean authorized(void);             virtual Boolean authorized(void);
  
          private:          private:
               pegasus_base_identity *_id;
             bitset<64> allowed_operations;             bitset<64> allowed_operations;
       };       };
  


Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2