diff options
author | iliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-16 13:48:13 +0000 |
---|---|---|
committer | iliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-16 13:48:13 +0000 |
commit | 37e86d16e460284fa8b94b8473939737b07bf5ec (patch) | |
tree | 65134368ec6647628de2cdb2fef41e4f1e7b9068 /ACE/ace/Service_Gestalt.inl | |
parent | 4fb80ab534d43169dd6810f741980e66c7c9ce0f (diff) | |
download | ATCD-37e86d16e460284fa8b94b8473939737b07bf5ec.tar.gz |
ChangeLogTag: Fri Feb 16 13:38:04 UTC 2007 Iliyan Jeliazkov <iliyan@ociweb.com>
Diffstat (limited to 'ACE/ace/Service_Gestalt.inl')
-rw-r--r-- | ACE/ace/Service_Gestalt.inl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ACE/ace/Service_Gestalt.inl b/ACE/ace/Service_Gestalt.inl index c6258728c65..db9e9ad6d80 100644 --- a/ACE/ace/Service_Gestalt.inl +++ b/ACE/ace/Service_Gestalt.inl @@ -48,4 +48,23 @@ ACE_Service_Gestalt::open (int argc, ignore_debug_flag); } +/// Searches for a service object declaration in the local repo, only + +ACE_INLINE int +ACE_Service_Gestalt::find (const ACE_TCHAR name[], + const ACE_Service_Type **srp, + int ignore_suspended) const +{ + // Closing the gestalt will have disassociated it from the + // repository. If the repository used to be owned by the gestalt, it + // will also have been destroyed - so just check for repo_ before + // doing anything with it. + if (this->repo_ != 0) + return this->repo_->find (name, srp, ignore_suspended); + + return 0; +} + + + ACE_END_VERSIONED_NAMESPACE_DECL |