version 1.16, 2002/04/01 19:25:43
|
version 1.17, 2002/04/01 22:58:52
|
|
|
| |
~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; } |
| |
|
|
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; |
|
|
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 ; |
|
|
| |
| |
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) ; |
|
|
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 | |
|
|
} | } |
| |
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 )) |
{ | { |
|
|
} | } |
| |
} | } |
~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; |
}; | }; |
| |