summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-08-18Revert "- Add comment to bug."Ulf Lilleengen
This reverts commit c2289bd5e2bdb03230d75b7a05a3f053c1bafe6e.
2008-08-18- Remember to lseek to correct offset.Ulf Lilleengen
- Fix a bug where SEEK_CUR was used instead of SEEK_SET. This was also the reason I didn't add lseek when reading a file in the first place, because i got buggy behaviour. So, using SEEK_SET corrected this.
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- Check for NULL pointer when looking up HOME path.Ulf Lilleengen
2008-08-17- Remember to free memory after path lookup.Ulf Lilleengen
- Don't close if fd is 0, which it might be if not assigned.
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- Use the fi->fh filehandle to store the file descriptor, so we don't need toUlf Lilleengen
run an sql query each time we want to read a block from the file. This should improve performance significantly. Currently, it's not done for config file reading, but if not for performance reasons, we should perhaps change it to be "correct" in the file system way of doing things.
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-15- Reloading config when .config is changedKjetil Ørbekk
2008-08-15Changed dbpath to ~/.mfs.dbKjetil Ørbekk
2008-08-15- Removed the musicfolder argumentKjetil Ø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-15- Aligned codeKjetil Ørbekk
2008-08-15- More vnops (to make vim behave)Kjetil Ørbekk
2008-08-15- mfs_read for /.configKjetil Ørbekk
2008-08-15- Started working on ~/.mfsrc as config fileKjetil Ørbekk
2008-08-15- Added vnops needed for writing .configKjetil Ørbekk
2008-08-15- Renamed /paths to /.configKjetil Ørbekk
2008-08-14- Added /pathsKjetil Ørbekk
- Return an informative message when reading from it
2008-08-14- Add musicpath specified on command lineKjetil Ørbekk
2008-08-14- Escaping string when querying sqliteKjetil Ørbekk
2008-08-14- More renamingKjetil Ørbekk
2008-08-14- Added license information (GPLv2)Kjetil Ørbekk
2008-08-14- Renamed mp3fs to musicfsKjetil Ørbekk
2008-08-13- Adding track number on Artist browsingKjetil Ørbekk
(Too much SQL magic!)
2008-08-13- Fixed track handling on scanKjetil Ørbekk
2008-08-13- Add track number on import [Rune Hammersland]Kjetil Ørbekk
2008-08-13Changed format of filenames in /TracksKjetil Ørbekk
2008-08-13- Added extensions to all files via sql queriesKjetil Ørbekk
2008-08-13- Reverted mp3_basename, using sqlite tricks to obtain the sameKjetil Ørbekk
Revert "- Use mp3_basename and sqlite to add extensions to filenames" This reverts commit d2727a60c0b2d6967d9cce3ca2696e1cab79e322. Revert "- Added mp3_basename" This reverts commit 2635d332f07ee1691a785d543f7ccbde2eeb99f0.
2008-08-13- Use mp3_basename and sqlite to add extensions to filenamesKjetil Ørbekk
2008-08-13- Added mp3_basenameKjetil Ørbekk
2008-08-12- Added extension and mtime to dbschema and scanning codeKjetil Ørbekk
mtime: preparation for updating files already in the db extension: to include extension in the mp3fs hierarchy
2008-08-12- Restructured mp3_getattrKjetil Ørbekk
2008-08-12- Using mp3_file_data_for_path to open and read files.Kjetil Ørbekk
- Reading in Artists work (but size is still always 512, so it won't read entire files)
2008-08-12- Added mp3_file_data_for_path, to reuse code for opening and readingKjetil Ørbekk
a given path.
2008-08-12- Added Artist/* to mp3_openKjetil Ørbekk
- Cleaned up the mp3_open code a bit
2008-08-09- Add lookup for album directory.Ulf Lilleengen
2008-08-09- Change lookup_fn to return values, so we can stop the lookup_finish loop onUlf Lilleengen
the SQL results.
2008-08-09- Add support for reading a file in /Tracks directory.Ulf Lilleengen
- Make use of the generic lookup framework to create functions which open and stat files. - Make getattr a bit generic and use the lookup stuff.
2008-08-09- Rename list to lookup, and change it, so a generic lookup callback thatUlf Lilleengen
will be called with the retrieved data can be specified. - Add filepath to the database schema.
2008-08-09- Add /Albums as a directory entry in the root tree.Ulf Lilleengen
2008-08-09- Split mp3_list into three functions performing initialization, adding data andUlf Lilleengen
finishing (thus running the query).
2008-08-05- Abstract out the methods listing artists and genre into their own functions.Ulf Lilleengen
- Use a format string in mp3_list to determine what type of arguments to be bound to the sqlite3 statement. This got a bit uglier than expected, so it may be removed later. But it's the best we've got for now. This revision have not been tested to work.