Move dumpLibraryInfo() to Exiv2 namespace.

v0.27.3
Robin Mills 10 years ago
parent 40ffba6033
commit 60f4c18da7

@ -183,11 +183,14 @@ namespace Exiv2 {
@endcode @endcode
*/ */
EXIV2API bool testVersion(int major, int minor, int patch); EXIV2API bool testVersion(int major, int minor, int patch);
/*!
@brief dumpLibraryInfo implements the exiv2 option --version --verbose
used by exiv2 test suite to inspect libraries loaded at run-time
*/
EXIV2API void dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys);
} // namespace Exiv2 } // namespace Exiv2
// dumpLibraryInfo is general purpose and not in the Exiv2 namespace
// used by exiv2 test suite to inspect libraries loaded at run-time
EXIV2API void dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys);
#endif // VERSION_HPP_ #endif // VERSION_HPP_

@ -234,7 +234,7 @@ void Params::version(bool verbose,std::ostream& os) const
"Boston, MA 02110-1301 USA\n"); "Boston, MA 02110-1301 USA\n");
} }
if ( verbose ) dumpLibraryInfo(os,Params::instance().greps_); if ( verbose ) Exiv2::dumpLibraryInfo(os,Params::instance().greps_);
} }
void Params::usage(std::ostream& os) const void Params::usage(std::ostream& os) const

@ -168,7 +168,7 @@ static void output(std::ostream& os,const exv_grep_keys_t& greps,const char* nam
output(os,greps,name,stringStream.str()); output(os,greps,name,stringStream.str());
} }
void dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys) void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys)
{ {
string_v libs; // libs[0] == executable string_v libs; // libs[0] == executable

Loading…
Cancel
Save