From: Miguel F. <mfr...@gm...> - 2004-12-08 17:34:49
|
Hi Michael, On Thu, 18 Nov 2004 22:23:02 +0100, Michael Roitzsch <mr...@us...> wrote: > > this is the one thing i think we must either do now, or not at all. it > > is not entirely true that front ends need not to be changed, because > > some might be accessing xine's config entries in order to provide more > > friendly configuration options to the user. iirc totem does that for > > speaker configuration (surround, 5.1 and stuff). > > > > so, if we rename the config entries some frontends might broke. i > > think we must try not to change existing config during the stables > > series. > > You are right. Maybe we should start a little survey about what config entry > names the frontends rely on so that I can get an impression on the amount. If > it's just a few ones, we could easily provide backward compatibility by > emulating the old entries. ok, i did some greping: xine-ui: "input.file_hidden_files", "input.file_origin_path", "dxr3.videoout_mode". kaffeine: "input.cdda_device", "input.vcd_device", "input.dvd_device", "misc.spu_font", "misc.save_dir". totem: "input.cdda_use_cddb", "input.http_proxy_host", "input.http_proxy_host", "input.http_proxy_port", "input.http_proxy_user", "input.http_proxy_password", "audio.alsa_hw_mixer", "video.num_buffers", "input.dvd_device", "input.vcd_device", "vcd.default_device", "input.cdda_device", "codec.win32_path", "codec.real_codecs_path", "post.goom_fps", "post.goom_width", "post.goom_height", "input.v4l_video_device_path" as you see, if we change these entries, an emulation MUST be provided. the idea is: we rename all entries as you propose (i looked again over your list and i agree), therefore all config are registered with new names. xine_config_get_xxx_entry will show only new names. xine_config_lookup_entry() must then be provided with a simple translation table so any old key will be automatically translated to the new one (the frontend won't even notice it). please note that translation table should, imho, contain all the old key names not a few ones. so... do you have time for implementing this? Miguel |