mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-27 10:25:49 +01:00
Added 'const' attribute to the file name parameter to load/save
This name is not modified by the callee functions (and it should not be anyway), so let's make it official in the internal functions
This commit is contained in:
committed by
Carlos R. Mafra
parent
225c99a6ca
commit
d1e1c13fa3
@@ -48,30 +48,30 @@ typedef enum {
|
||||
/*
|
||||
* Function for Loading in a specific format
|
||||
*/
|
||||
RImage *RLoadPPM(char *file_name);
|
||||
RImage *RLoadPPM(const char *file);
|
||||
|
||||
RImage *RLoadXPM(RContext *context, char *file);
|
||||
RImage *RLoadXPM(RContext *context, const char *file);
|
||||
|
||||
#ifdef USE_TIFF
|
||||
RImage *RLoadTIFF(char *file, int index);
|
||||
RImage *RLoadTIFF(const char *file, int index);
|
||||
#endif
|
||||
|
||||
#ifdef USE_PNG
|
||||
RImage *RLoadPNG(RContext *context, char *file);
|
||||
RImage *RLoadPNG(RContext *context, const char *file);
|
||||
#endif
|
||||
|
||||
#ifdef USE_JPEG
|
||||
RImage *RLoadJPEG(RContext *context, char *file);
|
||||
RImage *RLoadJPEG(RContext *context, const char *file);
|
||||
#endif
|
||||
|
||||
#ifdef USE_GIF
|
||||
RImage *RLoadGIF(char *file, int index);
|
||||
RImage *RLoadGIF(const char *file, int index);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Function for Saving in a specific format
|
||||
*/
|
||||
Bool RSaveXPM(RImage * image, char *filename);
|
||||
Bool RSaveXPM(RImage *image, const char *file);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user