Logo Search packages:      
Sourcecode: ardour version File versions  Download package

std::string Glib::build_filename ( const std::string &  elem1,
const std::string &  elem2 
)

Creates a filename from two elements using the correct separator for filenames. No attempt is made to force the resulting filename to be an absolute path. If the first element is a relative path, the result will be a relative path.

Parameters:
elem1 First path element.
elem2 Second path element.
Returns:
The resulting path.

Definition at line 150 of file miscutils.cc.

References Glib::build_path().

Referenced by ImageFrameSocketHandler::handle_session_name_request().

{
  const char *const elements[] = { elem1.c_str(), elem2.c_str(), 0 };
  return build_path(G_DIR_SEPARATOR_S, elements);                                          
}


Generated by  Doxygen 1.6.0   Back to index