Make the (very primitive) metadata handling use bufalloc().working_mob_2
commit3314377b910b89da979392f3e90342f2097ee157
authorNicolas Pennequin <nicolas.pennequin@free.fr>
Tue, 7 Aug 2007 21:27:59 +0000 (7 23:27 +0200)
committerNicolas Pennequin <nicolas.pennequin@free.fr>
Tue, 7 Aug 2007 21:27:59 +0000 (7 23:27 +0200)
tree33283e3a2f73c5113ba32394c5be354e88b3ce83
parent5b96945bd308339c2225106ff4d0aa6f3d96ddfc
Make the (very primitive) metadata handling use bufalloc().

Added read_metadata() which makes a few changes to the metadata that we get
from the files. The resulting buffer is then passed to bufalloc, which stores
it in the main buffer. print_metadata() becomes much simpler thanks to this.

This is a good example of how bufalloc is meant to be used.
Tested successfully on target and sim.
testplugin.c