Paul Davis
b83142d89a
hand merge changes to PBD::Controllable from Ardour CC branch
2014-08-18 12:51:29 -04:00
John Emmas
40044bb8c1
Add newly introduced (MD5) sources to our MSVC project (also, add visibility stuff to the new MD5 class)
2014-08-17 21:12:27 -04:00
Paul Davis
226fd3e1b7
Add PBD::get_suffix() for ripping file suffixes from paths
2014-08-17 20:43:55 -04:00
Paul Davis
f5ac8d22fc
add operator-= variants for PBD::Searchpath
2014-08-17 20:43:42 -04:00
Paul Davis
deb6c227e7
add cleaned up MD5 C++ implementation for general use
2014-08-17 20:43:32 -04:00
Tim Mayberry
17a984aa30
Change PBD::get_files and PBD::get_paths to take a Searchpath instead of directory path
...
Both these functions use the internal function run_functor_for_paths
which takes a Searchpath so this avoids a temporary variable in cases
where a Searchpath is passed directly.
The usage is the same as the compiler will generate a temporary Searchpath
from a string(directory path) if necessary.
2014-08-17 18:42:33 -04:00
Tim Mayberry
1308cccd96
Add/Update docs in pbd/file_utils.h
2014-08-17 18:42:25 -04:00
Tim Mayberry
849adaf7e5
Rename PBD::get_files_in_directory to just PBD::get_files, change parameter order and fix docs
2014-08-17 18:42:08 -04:00
Tim Mayberry
b668c53c5c
Rename PBD::get_directory_contents to PBD::get_paths
...
shorter name and change order of parameters to match other functions
2014-08-17 18:42:01 -04:00
Tim Mayberry
5450da010b
Add function PBD::find_paths_matching_filter
2014-08-17 18:41:47 -04:00
Tim Mayberry
8864cfc626
Move functions in pbd/clear_dir.h/cc into pbd/file_utils.h/cc
...
Conflicts:
libs/pbd/clear_dir.cc
2014-08-17 18:41:13 -04:00
Tim Mayberry
dbcc1f1d39
Rename PBD::find_file_in_search_path to just PBD::find_file
...
saves a bit of typing and not necessary if you look at how it is used.
Conflicts:
gtk2_ardour/about.cc
gtk2_ardour/session_dialog.cc
libs/pbd/system_exec.cc
2014-08-17 18:36:02 -04:00
Tim Mayberry
093fb77b88
Use PBD::find_files_matching_pattern instead of other variations
2014-08-17 18:12:40 -04:00
Tim Mayberry
1a4fdf0b22
Add a variation of PBD::find_files_matching_pattern for convenience
2014-08-17 18:12:34 -04:00
Tim Mayberry
a6c2609068
Add new function PBD::find_files_matching_pattern
...
This new function is intended to replace the three existing
PBD::find_matching_files_* functions.
The order of parameters matches find_files_matching_regex and
find_files_matching_filter
2014-08-17 18:12:26 -04:00
Tim Mayberry
c126e8cc45
Change PBD::find_files_matching_regex and PBD::find_files_matching_filter to take a Searchpath
2014-08-17 18:12:19 -04:00
Tim Mayberry
9597f5468d
Remove limit parameter from PBD::find_files_matching_regex
...
This limit was not used or documented. The same functionality can be
performed when iterating through the results.
2014-08-17 18:12:09 -04:00
Tim Mayberry
ef6d6816aa
Remove parameters from PBD::find_files_matching_regex
...
The only users of this API always used the same options so just remove
them.
2014-08-17 18:12:04 -04:00
Tim Mayberry
1e442feb53
Add PBD::get_directory_contents to pbd/file_utils.h
2014-08-17 18:11:52 -04:00
Tim Mayberry
9b0308a6aa
Remove PathScanner class from libpbd
2014-08-17 15:32:50 -04:00
Tim Mayberry
2339fdc1aa
Add default arguments to match those in PathScanner::operator()
2014-08-17 15:32:29 -04:00
Tim Mayberry
e75f227fe3
Move member functions from PathScanner to functions in pbd/file_utils.h
...
This allows us to remove PathScanner source file and keep PathScanner class
as header only until it is removed
2014-08-17 15:32:25 -04:00
Tim Mayberry
2334880bc9
Move PathScanner::operator() into header
2014-08-17 15:32:20 -04:00
Tim Mayberry
7974046301
Remove unused methods in PathScanner
...
Now that these methods are only a few lines it doesn't make much sense
to keep them seeing as they are unused. There are also functions with
near identical functionality in pbd/file_utils.h
2014-08-17 15:32:16 -04:00
Tim Mayberry
b2eb0d80be
Rename PathScanner::run_scan_internal to PathScanner::find_files_matching_filter
2014-08-17 15:32:13 -04:00
Tim Mayberry
51fbb8a352
Remove PathScanner::run_scan and use PathScanner::run_scan_internal directly
2014-08-17 15:32:08 -04:00
Tim Mayberry
e5d4a16594
Add PathScanner::find_files_matching_regex and move regexp usage to one place
2014-08-17 15:32:01 -04:00
Tim Mayberry
144da83bc8
Remove member filter argument from PathScanner methods and use normal filter for regex
...
Also use regfree to free memory of compiled patterns
2014-08-17 15:31:56 -04:00
Tim Mayberry
ae22d60a42
Change PBD::PathScanner API to return results by value to avoid inadvertent memory leaks
...
Conflicts:
gtk2_ardour/session_dialog.cc
2014-08-17 15:31:49 -04:00
Robin Gareus
0c7c8fdad4
plug some leaks
2014-08-17 15:28:36 -04:00
Paul Davis
c934033e23
manually jump forward state of system_exec files to avoid various cherry-picking-related problems during merge with ardour
2014-08-16 17:53:33 -04:00
Tim Mayberry
7debf24b8a
Use COMPILER_MINGW define rather than __MINGW64__
...
This is necessary to build with win32 target using mingw-w64 version
on Fedora 19
2014-08-16 16:37:38 -04:00
Tim Mayberry
94759885e8
Reinstate code removed that allows building with mingw and the pthreads-win32 library
...
Newer versions of mingw-w64 can be built with an included pthread implementation
called winpthreads which uses an integer type for pthread_t but pthreads-win32 does
not.
2014-08-16 16:37:31 -04:00
John Emmas
6dd4d411b3
Add a couple of pthread helper macros
...
(to accommodate the fact that in ptw-win32, 'pthread_t' is subtlely different from its non-Windows counterparts)
Conflicts:
libs/pbd/MSVCpbd/pbd.vcproj
2014-08-16 16:34:17 -04:00
Grygorii Zharun
ce2a519afa
[Summary] Merging from GIT
...
[Details] Starting point:
Mar 24 2014, 11:47 PM
Commit: 87184ab80d
Target point:
Commit: 59e6694405
Apr 16 2014, 4:01 PM
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 453690]
2014-04-18 04:21:54 -05:00
Valeriy Kamyshniy
af1689c061
adding X attrib
...
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 446420]
2014-03-26 10:03:30 -05:00
Grygorii Zharun
f300eaba93
[Summary] Fixed MAC build
...
[Details] Added fixes to make the code cross platform compilable
[Reviewed by] N/A
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 446294]
2014-03-26 06:31:34 -05:00
Paul Davis
f565e47e71
remove silly old MacOS directories
2014-05-28 07:47:14 -04:00
Valeriy Kamyshniy
7c82486a12
[P4/git history rebuild] fix taken from a later Ardour commit. Read comment for details.
2014-05-27 23:00:43 -04:00
Robin Gareus
543099afba
rework SystemExec - use vfork wrapper (and lots of related stuff)
2014-03-13 16:58:07 +01:00
Paul Davis
f15932a5c2
fix #ifdef in localtime_r header (from Valeriy)
2014-03-12 09:39:16 -04:00
John Emmas
d52eb5bf23
A few days ago a #define got changed because the relevant section of code was no longer needed when building with mingw. However, it's not needed for msvc either (in fact, msvc won't compile it) so hopefully, the code fragment can be safely removed
2014-03-12 13:22:25 +00:00
Paul Davis
b6a9bf5d04
add PBD::downcase() functions to libpbd
2014-03-10 17:30:12 -04:00
Robin Gareus
07d5a389fa
add missing include to define LIBPBD_API (mingw build)
2014-03-09 21:05:17 +01:00
John Emmas
944c32346b
Add a couple of visibility specifiers that were missing
2014-03-08 11:29:52 +00:00
John Emmas
c7bc009b30
Use LIBPBD_TEMPLATE_API and LIBPBD_TEMPLATE_MEMBER_API where appropriate
2014-03-08 11:28:54 +00:00
Robin Gareus
912f07b919
mingw build fixes (tested with i686-w64-mingw32 on linux-x86_64)
2014-03-04 15:25:58 +01:00
Paul Davis
8040df1897
move export_search_path(), previously in gtk2_ardour/main.cc, into libs/pbd
2014-03-02 11:25:54 -05:00
Paul Davis
8ba449bc4e
remove fallback_folders code, add simpler more focused get_vst_search_path() and breakout get_win_special_folder() into its own file
2014-03-02 10:52:52 -05:00
Paul Davis
08c89809ee
REALLY REALLY CORRECT template export macros for libpbd
2014-03-01 22:31:47 -05:00