git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@547 67ed7778-7388-44ab-90cf-0a291f65f57c
35 lines
565 B
C
35 lines
565 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <gphoto2.h>
|
|
|
|
int interface_update_status (char *status) {
|
|
|
|
printf("Status: %s\n", status);
|
|
return (GP_OK);
|
|
}
|
|
|
|
int interface_message (char *message) {
|
|
|
|
printf("Message: %s\n", message);
|
|
return (GP_OK);
|
|
}
|
|
|
|
int interface_confirm (char *message) {
|
|
|
|
char c;
|
|
|
|
printf("%s [y/n] ", message);
|
|
fflush(stdout);
|
|
c = getchar();
|
|
fflush(stdin);
|
|
return ((c=='y') || (c=='Y'));
|
|
}
|
|
|
|
int interface_update_progress (float percentage) {
|
|
|
|
if (percentage >= 0)
|
|
printf("Percent completed: %f\n", percentage);
|
|
return (GP_OK);
|
|
}
|