git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9742 67ed7778-7388-44ab-90cf-0a291f65f57c
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/****************************************************************************
|
|
*
|
|
* File: util.h
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef _CANON_UTIL_H
|
|
#define _CANON_UTIL_H
|
|
|
|
#include "gphoto2-endian.h"
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
/****************************************************************************
|
|
*
|
|
* prototypes
|
|
*
|
|
****************************************************************************/
|
|
void dump_hex ( FILE *fp, void *buffer, int length );
|
|
|
|
int is_thumbnail (const char *name);
|
|
int is_audio (const char *name);
|
|
int is_image (const char *name);
|
|
int is_movie (const char *name);
|
|
int is_jpeg (const char *name);
|
|
int is_crw (const char *name);
|
|
int is_cr2 (const char *name);
|
|
|
|
const char *filename2mimetype(const char *filename);
|
|
|
|
#endif /* _CANON_UTIL_H */
|
|
|
|
/****************************************************************************
|
|
*
|
|
* End of file: util.h
|
|
*
|
|
****************************************************************************/
|
|
|
|
/*
|
|
* Local Variables:
|
|
* c-file-style:"linux"
|
|
* indent-tabs-mode:t
|
|
* End:
|
|
*/
|