[Kma-anyg] First (test-) module now fully working
Brought to you by:
bstard
|
From: Jarl v. K. <ja...@xs...> - 2004-04-01 12:45:53
|
Hi all, just a little update on the work I'm doing to get KMA to way it should become: ----- Initialization : Thu Apr 1 14:32:43 2004 | MODULE /usr/local/lib/libkma_testmodule.so loaded Thu Apr 1 14:32:43 2004 | MODULE TestModule about to initialize Thu Apr 1 14:32:43 2004 | MODULE Test Module is handling *.tst extension Thu Apr 1 14:32:43 2004 | MODULE Test Module is handling tst* pattern Thu Apr 1 14:32:43 2004 | MODULES activated Thu Apr 1 14:32:43 2004 | kma 0.3.2CVS for Kiss Firmware 2.8.3+subs started ----- LIST (the KiSS requests the contents of a folder) : Thu Apr 1 14:41:22 2004 | Scanning for extension in sourcename_path_file (/home//Movies/temp/test.tst) Thu Apr 1 14:41:22 2004 | MODULE looking for a module to handle extension tst Thu Apr 1 14:41:22 2004 | COMPARING module tst with extension tst Thu Apr 1 14:41:22 2004 | MODULE found module Test Module for extension tst Thu Apr 1 14:41:22 2004 | Added to source_tracker: kissname test.mpg, path /home//Movies/temp, file test.tst, path_file /home//Movies/temp/test.tst ----- SIZE (the KiSS requests the filesize) : Thu Apr 1 14:41:24 2004 | New command: SIZE /home//Movies/temp\test.mpg| Thu Apr 1 14:41:24 2004 | Looking for a module by kissname /home//Movies/temp/test.mpg.. Thu Apr 1 14:41:24 2004 | | Found kissname | Found a module Thu Apr 1 14:41:24 2004 | SIZE using module Test Module for /home//Movies/temp/test.mpg Thu Apr 1 14:41:24 2004 | MODULE TestModule fetching filesize for /home//Movies/temp/test.tst Thu Apr 1 14:41:24 2004 | SIZE /home//Movies/temp/test.mpg - REPLIED 000000819254156 ----- GET (the KiSS reuqests chunks of data of the source) : Thu Apr 1 14:41:24 2004 | GET: Using alternative file /home//Movies/temp/test.tst for requested /home//Movies/temp/test.tst Thu Apr 1 14:41:24 2004 | Looking for file /home//Movies/temp/test.tst in source_tracker.. Thu Apr 1 14:41:24 2004 | | Found filename | Found a module Thu Apr 1 14:41:24 2004 | Using module Test Module for /home//Movies/temp/test.tst Thu Apr 1 14:41:24 2004 | MODULE TestModule reading from /home//Movies/temp/test.tst, offset 0, length 64 Point is I changed the 'core' enough so now it: 1. initializes the modules, asks them which file extension the module handles 2. keeps track of the files (real name, name send to the kiss, and the module handling it) 3. call the module when the KiSS wants it's info (LIST, SIZE and GET) And it's working now. During to coming weeks I'll recode the various parts of the 'old' dp500serv code to the new KMA structure. I'll do some more testing before I'll commit this code to CVS, I'd like to keep CVS as clean as possible, and dont want it to be filled with unasable sources. Jarl |