Files
libgphoto2/frontends/command-line/interface.c
Lutz Mueller 648a547376 2001-10-08 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-frontend.h
        * libgphoto2/frontend.c: Removed
        * command-line
        * include/Makefile.am
        * libgphoto2: Remove references to above


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2445 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-08 10:16:52 +00:00

41 lines
630 B
C

#include <stdio.h>
#include <stdlib.h>
#include <gphoto2.h>
#include "interface.h"
extern int glob_stdout;
extern int glob_quiet;
void
status_func (Camera *camera, const char *status, void *data)
{
if (glob_quiet)
return;
if (strcmp (status, ""));
printf ("Status: %s\n", status);
}
void
message_func (Camera *camera, const char *message, void *data)
{
if (glob_quiet)
return;
printf ("Message: %s\n", message);
}
void
progress_func (Camera *camera, float percentage, void *data)
{
if (glob_quiet)
return;
if (percentage >= 0) {
printf ("Percent completed: %02.01f\r", percentage);
fflush(stdout);
}
}