summaryrefslogtreecommitdiff
path: root/src/cms-static.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-08malloc + memset -> zallocPeter Hutterer1-2/+1
And for clients using the xmalloc helper, use xzalloc. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-06-05configure.ac: Enable AC_USE_SYSTEM_EXTENSIONSDaniel Stone1-4/+1
AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar macros to expose the largest extent of functionality supported by the underlying system. This is required since these macros are often limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually on some systems hide declarations which are not part of the X/Open spec. Since this goes into config.h rather than the command line, ensure all source is consistently including config.h before anything else, including system libraries. This doesn't need to be guarded by a HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org modular transition. Signed-off-by: Daniel Stone <daniel@fooishbar.org> [pq: rebased and converted more files]
2013-05-26cms-static: Don't crash on outputs with NULL nameKristian Høgsberg1-0/+2
2013-05-23cms-static: Convert cms-static to use new config parserKristian Høgsberg1-76/+16
Almost half of the logic here was about wrestling the silly config parser API.
2013-05-22cms-static: Use the right wl_listener for the output hotplug listenerKristian Høgsberg1-1/+2
2013-05-14config-parser: Honor XDG_CONFIG_DIRSOssama Othman1-2/+2
This set of changes adds support for searching for a given config file in the directories listed in $XDG_CONFIG_DIRS if it wasn't found in $XDG_CONFIG_HOME or ~/.config. This allows packages to install custom config files in /etc/xdg/weston, for example, thus allowing them to avoid dealing with home directories. To avoid a TOCTOU race the config file is actually open()ed during the search. Its file descriptor is returned and stored in the compositor for later use when performing subsequent config file parses. Signed-off-by: Ossama Othman <ossama.othman@intel.com>
2013-05-10Add initial color management framework codeRichard Hughes1-0/+174
ICC profiles can now be specified in weston.ini for each output, or a CMS implementation can optionally loaded from a pluggable module.