Finished the GPContext stuff - changes all over the place. Basically,
gp_[file,camera]_progress has been replaced by gp_context_progress_*.
Well, we haven't release a gphoto2-2.0 yet, therefore I hope you don't
mind the API change...
* libgphoto2/gphoto2-camera.[c,h]: Added a GPContext parameter to
any function that can possibly communicate with the camera. That
makes every function cancellable (which is good), makes it possible
to report multiple errors during execution of a command, offers
several (nested) progress reports, and many other goodies.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3841 67ed7778-7388-44ab-90cf-0a291f65f57c
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/****************************************************************************
|
|
*
|
|
* File: util.h
|
|
*
|
|
* $Id$
|
|
****************************************************************************/
|
|
|
|
#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(Camera *camera,const char *msg, const unsigned char *buf, int len);
|
|
|
|
int is_thumbnail (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);
|
|
|
|
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:
|
|
*/
|