summaryrefslogtreecommitdiff
path: root/src/mfs_subr.c
AgeCommit message (Collapse)Author
2009-07-18- Comment unused variable.Ulf Lilleengen
2008-11-27- Missed fusever and makefile changes in the previous commit.Ulf Lilleengen
- Also put a consistent sorting on header includes: * System includes first * Then, standard C libraries * Then additiona libraries and our own headers.
2008-10-05- Don't (re-)scan the collection initiallyKjetil Ørbekk
(Scanning is really annoying with huge collections. Touch /.config to re-scan)
2008-09-14- Allow empty genre id3-fieldKjetil Ørbekk
2008-09-11- Fixed /GenresKjetil Ørbekk
- Added track number on songs in Genres/*/*
2008-09-11- Fixed track numbers in /Albums/*Kjetil Ørbekk
2008-09-08- Emacs modelinesKjetil Ørbekk
2008-09-08- Put db_path into musicfs.hKjetil Ørbekk
- Got ride of some warnings
2008-09-07- Moved mfs_cleanup_db code to its own fileKjetil Ørbekk
2008-09-07- Fix serialization of debug printouts.Ulf Lilleengen
- Add a MFS_DB_LOCK/UNLOCK which handles locking of the SQLITE database if SQLITE_THREADED compile option is not specified. - Remove duplicate open/close of database during initial scan.
2008-09-07- Handle closed twice.Ulf Lilleengen
2008-09-05- Added mfs_cleanup_db, to remove inactive pathsKjetil Ørbekk
2008-09-02- Added active-flag to database (convenient when scanning paths)Kjetil Ørbekk
- Disable active-flag on old directories
2008-09-02- Fixed handling of empty tagsKjetil Ørbekk
(in contrast to non-existing ones)
2008-08-18- Simplify some messy code.Ulf Lilleengen
2008-08-18Revert "- Add comment to bug."Ulf Lilleengen
This reverts commit c2289bd5e2bdb03230d75b7a05a3f053c1bafe6e.
2008-08-18- s/warn/DEBUG.Ulf Lilleengen
- Add suggstions to TODO. - Change enum starting point.
2008-08-18- Use enum instead of defines for lookup datatypes.Ulf Lilleengen
2008-08-17- Simplify mfs_file_data_from_path a lot and rename it to mfs_realpath, whichUlf Lilleengen
have the objective of looking up the real file path, given the musicfs path. Some thoughts: Instead of creating a function for each operation we want to do, this change adds a mfs_lookup_path which allocates a buffer with the real path of the file we're looking for. This way, we can do the operations we want on the path externally instead, which is a lot simpler when using it. This also gets rid of the file_data data structure, and just use a pointer pointer where one is to allocate the real path.
2008-08-16- Simplify mfs_get_home path, using asprintf, and remove potential usage of NULLUlf Lilleengen
pointers. - Don't use memory that might be NULL pointer after allocating trackno, as well as check if malloc returned NULL in escape.
2008-08-15Changed dbpath to ~/.mfs.dbKjetil Ørbekk
2008-08-15- Fixed traversingKjetil Ørbekk
- Added a special flag to give the lookup functions access to the DB handle.
2008-08-15- Added lookup functions for scanning pathsKjetil Ørbekk
2008-08-15- Fixed insert_path and reload_configKjetil Ørbekk
2008-08-15- Implemented mfs_reload_configKjetil Ørbekk
2008-08-15- Moved $HOME function to mfs_subrKjetil Ørbekk
2008-08-15- Helper function to add music pathKjetil Ørbekk
2008-08-14- Add musicpath specified on command lineKjetil Ørbekk
2008-08-14- Escaping string when querying sqliteKjetil Ørbekk
2008-08-14- Added license information (GPLv2)Kjetil Ørbekk