diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 10:49:51 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 10:49:51 +0100 |
commit | 90b866329e8962a3f1f03dc8172cf75ccc9d2b85 (patch) | |
tree | f5821cf78fd1784c904ec712dd258e59ce97066c /NEWS | |
parent | d3e54b627cd7d02d4544148949f29be821d71a1f (diff) | |
download | xine-lib-90b866329e8962a3f1f03dc8172cf75ccc9d2b85.tar.gz xine-lib-90b866329e8962a3f1f03dc8172cf75ccc9d2b85.tar.bz2 |
Replace get_identifier/get_description functions with strings.
This is the start of a new experimental branch, with the first objective being
the replacement of the get_description and get_identifier functions with
direct-access strings.
The reason for this change is to reduce code size and time of execution.
By replacing the functions with direct-access strings there is one less call
to be done in those cases where the description has to be fetched.
The solution is not yet definitive though, there are a couple of problems to
take care of:
- the use of N_() still makes it easy to internationalise the strings, but it
requires for the string to be found on libxine2 catalog, which is not
exactly a nice solution for external plugins;
- it would be simpler to re-use the id field in plugin_info_t, and then move
description there; it should reduce memory usage for the class structures;
- I'm not really aware of any reason why get_description and get_identifier
were used beside the idea of making i18n simpler.
This probably would break a couple of frontends, especially if they have some
internal plugins (like post-plugins), so it needs to be reviewed carefully
before merging in 1.2 branch. My current goal is to get this in before 1.2
though, rather than waiting for 1.3.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions