app: Use a properly typed callback function
This fixes a compiler warning with the typeless proto arg.
This commit is contained in:
@ -441,7 +441,7 @@ gimp_composite_regression_timer_report (char *name, double t1, double t2)
|
|||||||
* Return value:
|
* Return value:
|
||||||
**/
|
**/
|
||||||
double
|
double
|
||||||
gimp_composite_regression_time_function (gulong iterations, void (*func)(), GimpCompositeContext *ctx)
|
gimp_composite_regression_time_function (gulong iterations, GimpCompositeRegressionFunc func, GimpCompositeContext *ctx)
|
||||||
{
|
{
|
||||||
struct timeval t0;
|
struct timeval t0;
|
||||||
struct timeval t1;
|
struct timeval t1;
|
||||||
|
|||||||
@ -85,6 +85,8 @@ typedef struct
|
|||||||
} gimp_rgba32_t;
|
} gimp_rgba32_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef void (*GimpCompositeRegressionFunc) (GimpCompositeContext *ctx);
|
||||||
|
|
||||||
extern void gimp_composite_regression_print_vector (guchar vector[],
|
extern void gimp_composite_regression_print_vector (guchar vector[],
|
||||||
GimpPixelFormat format,
|
GimpPixelFormat format,
|
||||||
gulong n_pixels);
|
gulong n_pixels);
|
||||||
@ -103,7 +105,7 @@ extern void gimp_composite_regression_print_vector_rgba8 (gimp_rgba8_t v[],
|
|||||||
|
|
||||||
|
|
||||||
extern double gimp_composite_regression_time_function (gulong iterations,
|
extern double gimp_composite_regression_time_function (gulong iterations,
|
||||||
void (*func)(),
|
GimpCompositeRegressionFunc func,
|
||||||
GimpCompositeContext *ctx);
|
GimpCompositeContext *ctx);
|
||||||
extern int gimp_composite_regression_comp_rgba8 (char *str,
|
extern int gimp_composite_regression_comp_rgba8 (char *str,
|
||||||
gimp_rgba8_t *rgba8A,
|
gimp_rgba8_t *rgba8A,
|
||||||
|
|||||||
Reference in New Issue
Block a user