added a const qualifier.

2006-06-06  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpcolorspace.[ch] (gimp_rgb_to_hsv4): added a
	const qualifier.
This commit is contained in:
Sven Neumann
2006-06-06 08:35:55 +00:00
committed by Sven Neumann
parent b18a520b3f
commit b163dd9579
3 changed files with 17 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2006-06-06 Sven Neumann <sven@gimp.org>
* libgimpcolor/gimpcolorspace.[ch] (gimp_rgb_to_hsv4): added a
const qualifier.
2006-06-06 Michael Natterer <mitch@gimp.org>
* app/tools/gimpnewrectselecttool.c

View File

@ -938,12 +938,11 @@ gimp_cmyk_to_rgb_int (gint *cyan,
* @saturation: Pointer to saturation channel (0..1)
* @value: Pointer to value channel (0..1)
**/
void
gimp_rgb_to_hsv4 (guchar *rgb,
gdouble *hue,
gdouble *saturation,
gdouble *value)
gimp_rgb_to_hsv4 (const guchar *rgb,
gdouble *hue,
gdouble *saturation,
gdouble *value)
{
gdouble red, green, blue;
gdouble h, s, v;
@ -1011,7 +1010,6 @@ gimp_rgb_to_hsv4 (guchar *rgb,
* @saturation: Saturation channel (0..1)
* @value: Value channel (0..1)
**/
void
gimp_hsv_to_rgb4 (guchar *rgb,
gdouble hue,

View File

@ -86,14 +86,14 @@ void gimp_hsl_to_rgb_int (gint *hue /* returns red *
/* gdouble functions */
void gimp_rgb_to_hsv4 (guchar *rgb,
gdouble *hue,
gdouble *saturation,
gdouble *value);
void gimp_hsv_to_rgb4 (guchar *rgb,
gdouble hue,
gdouble saturation,
gdouble value);
void gimp_rgb_to_hsv4 (const guchar *rgb,
gdouble *hue,
gdouble *saturation,
gdouble *value);
void gimp_hsv_to_rgb4 (guchar *rgb,
gdouble hue,
gdouble saturation,
gdouble value);
G_END_DECLS