gphoto2-file.c (libgphoto2-2.5.26.tar.bz2) | : | gphoto2-file.c (libgphoto2-2.5.27.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
* License along with this library; if not, write to the | * License along with this library; if not, write to the | |||
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |||
* Boston, MA 02110-1301 USA | * Boston, MA 02110-1301 USA | |||
* | * | |||
* \note | * \note | |||
* This file contains internal functions. Use of these functions from | * This file contains internal functions. Use of these functions from | |||
* external software modules is considered <strong>deprecated</strong>. | * external software modules is considered <strong>deprecated</strong>. | |||
*/ | */ | |||
#define _POSIX_SOURCE | #define _POSIX_SOURCE | |||
#define _DEFAULT_SOURCE | #define _DEFAULT_SOURCE | |||
#define _DARWIN_C_SOURCE | ||||
#include "config.h" | #include "config.h" | |||
#include <gphoto2/gphoto2-file.h> | #include <gphoto2/gphoto2-file.h> | |||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <errno.h> | #include <errno.h> | |||
#include <string.h> | #include <string.h> | |||
#include <sys/stat.h> | #include <sys/stat.h> | |||
#include <utime.h> | #include <utime.h> | |||
skipping to change at line 1081 | skipping to change at line 1082 | |||
GP_MIME_PNG, "png", | GP_MIME_PNG, "png", | |||
GP_MIME_PPM, "ppm", | GP_MIME_PPM, "ppm", | |||
GP_MIME_PGM, "pgm", | GP_MIME_PGM, "pgm", | |||
GP_MIME_PNM, "pnm", | GP_MIME_PNM, "pnm", | |||
GP_MIME_TIFF, "tif", | GP_MIME_TIFF, "tif", | |||
GP_MIME_WAV, "wav", | GP_MIME_WAV, "wav", | |||
GP_MIME_BMP, "bmp", | GP_MIME_BMP, "bmp", | |||
GP_MIME_AVI, "avi", | GP_MIME_AVI, "avi", | |||
GP_MIME_CRW, "crw", | GP_MIME_CRW, "crw", | |||
GP_MIME_CR2, "cr2", | GP_MIME_CR2, "cr2", | |||
GP_MIME_CR3, "cr3", | ||||
GP_MIME_NEF, "nef", | GP_MIME_NEF, "nef", | |||
GP_MIME_TXT, "txt", | GP_MIME_TXT, "txt", | |||
NULL}; | NULL}; | |||
C_PARAMS (file); | C_PARAMS (file); | |||
GP_LOG_D ("Adjusting file name for mime type '%s'...", file->mime_type); | GP_LOG_D ("Adjusting file name for mime type '%s'...", file->mime_type); | |||
for (x = 0; table[x]; x += 2) | for (x = 0; table[x]; x += 2) | |||
if (!strcmp (file->mime_type, table[x])) { | if (!strcmp (file->mime_type, table[x])) { | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |