Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: some propositions
From: Benoit Midy (bmidy_at_guddland.lu)
Date: 2002-06-21


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,all

I'd like to propose to update the following structure to store the directory entries :

in file: apps\tree.c

struct entry {
  bool file; /* true if file, false if dir */
  char name[TREE_MAX_FILENAMELEN];
};

I want to add a field to store the file extension, so it will we easy to
call a function according to the filetype (bmp laodder for the .bmp , mp3 player for the .mp3 , playlist loader for the .m3u and a txt viewver for the .txt

in file: apps\tree.c

...

        switch(button) {
..

            case TREE_ENTER:
...

                    else {

                        playing = 1;
                        playtune(buf);
                        playing = 0;
                    }
....

So we could had a switch according to the file extension and then call what is needed

I think itr could be very usefull

Benoit Midy
Guddland Digital S.A.
Luxembourg
Tel: (352) 50 35 21 / 360
mailto:bmidy_at_guddland.lu
http://www.guddland.lu

- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGPfreeware 5.0i OS/2 for non-commercial use
Comment: PGP 5.0 for OS/2

mQGiBDyDfMcRBADLVPAhBLnmSnUqyjiSWQ8x8PMCSf8ubQUmmV+wA6z6khXr6J1k
OEZjE/YfVZu+Y/dDbXAuEgCSSFCK1aCo9AbjK5o1Kkl5M/L8UxbnxqzTwyjk7hQM
HewPLLzkNFwZXYRJs6C+OAkH7s8Vi4MBPAloPAA9SLXtMcQkskwyr4EwUwCg/8F8
asG+/fbaaLCoGxYVrteye98D+wSrZyPEqMFBVPlRHz66csPFRMuv1r9Yihs+fD50
VAUQM+GRkfin85LWkSG5OYHY/xp5YjrU2TsyF/4+CQICHw8qTBX+nZcFX9pTdGXj
QlI/XqcnErVT7fRU2CdFMcQu4k9ceZvjZ9dFiS6jqiXth0PRmPh4plPTAWP94Wet
eFRsA/9JF6gHgZkaRfBV8ycyeEKcrQZmmzVHc7wRjIXgHyKfinL8zb7njiQqmT8A
MRJgfMUSFcL9OjKgtSeH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P
NA7ZGAz1E/HI3hqE248nGZMFUaxUpTsJfzxu7lTR5Y/e3xPsJ0PEbokfB58TeIEo
hADllTt7zOwjw32Rt2aJnxrNixespYmzomu83EYC8kmEPp9DWtE41H2eaTIlrfD4
1IEwnKvwZbCUAMnpUmjpgEmtEGd/W/33Tjf+pVnnJxHkIe0cyGcKbDxZ/DEgHn39
u7xrkrgRZzEwekrZxh0LOEPAfiQ3heWJFy+LC7/tf6+JAD8DBRg8g33ha5JcdI4z
/V0RAl/9AKCh5kMZbcVSakyyKPMB0co8dKfCLgCgzUdPxbW+1RGY4+SPszsIfTRd
HWA=
=gwEj
- -----END PGP PUBLIC KEY BLOCK-----

PGP Public Key Fingerprint= 0738 A5F3 C24E 9EAC 21F5 40BE 6B92 5C74 8E33 FD5D

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i OS/2 for non-commercial use
Comment: PGP 5.0 for OS/2
Charset: cp850

wj8DBQE9EyM+a5JcdI4z/V0RAgoxAJ9CAKbZfqg/9I4XT4jNBsVpVlPexgCfUe2C
vQ0ONxpEwYK5qebn8P0K59Y=
=VqIt
-----END PGP SIGNATURE-----



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa