25 #ifndef __GPHOTO2_CONTEXT_H__
26 #define __GPHOTO2_CONTEXT_H__
61 typedef void (* GPContextIdleFunc) (
GPContext *context,
void *data);
62 typedef void (* GPContextErrorFunc) (
GPContext *context,
const char *format,
63 va_list args,
void *data)
65 __attribute__((__format__(printf,2,0)))
68 typedef void (* GPContextStatusFunc) (
GPContext *context,
const char *format,
69 va_list args,
void *data)
71 __attribute__((__format__(printf,2,0)))
74 typedef void (* GPContextMessageFunc) (
GPContext *context,
const char *format,
75 va_list args,
void *data)
77 __attribute__((__format__(printf,2,0)))
82 va_list args,
void *data)
84 __attribute__((__format__(printf,2,0)))
89 typedef unsigned int (* GPContextProgressStartFunc) (
GPContext *context,
92 va_list args,
void *data)
94 __attribute__((__format__(printf,3,0)))
97 typedef void (* GPContextProgressUpdateFunc) (
GPContext *context,
101 typedef void (* GPContextProgressStopFunc) (
GPContext *context,
106 void gp_context_set_idle_func (
GPContext *context,
107 GPContextIdleFunc func,
void *data);
108 void gp_context_set_progress_funcs (
GPContext *context,
109 GPContextProgressStartFunc start_func,
110 GPContextProgressUpdateFunc update_func,
111 GPContextProgressStopFunc stop_func,
113 void gp_context_set_error_func (
GPContext *context,
114 GPContextErrorFunc func,
void *data);
115 void gp_context_set_status_func (
GPContext *context,
116 GPContextStatusFunc func,
void *data);
117 void gp_context_set_question_func (
GPContext *context,
118 GPContextQuestionFunc func,
void *data);
119 void gp_context_set_cancel_func (
GPContext *context,
120 GPContextCancelFunc func,
void *data);
121 void gp_context_set_message_func (
GPContext *context,
122 GPContextMessageFunc func,
void *data);
126 void gp_context_error (
GPContext *context,
const char *format, ...)
128 __attribute__((__format__(printf,2,3)))
131 void gp_context_status (
GPContext *context,
const char *format, ...)
133 __attribute__((__format__(printf,2,3)))
138 __attribute__((__format__(printf,2,3)))
144 __attribute__((__format__(printf,2,3)))
149 const char *format, ...)
151 __attribute__((__format__(printf,3,4)))
154 void gp_context_progress_update (
GPContext *context,
unsigned int id,
156 void gp_context_progress_stop (
GPContext *context,
unsigned int id);