Logo Search packages:      
Sourcecode: libgphoto2 version File versions

gphoto2-context.h File Reference

Detailed Description

Context callback operation functions.

Copyright 2001 Lutz Müller <lutz@users.sourceforge.net>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file gphoto2-context.h.

#include <stdarg.h>

Go to the source code of this file.


typedef struct _GPContext GPContext
 The gphoto context structure.
typedef GPContextFeedback(* GPContextCancelFunc )(GPContext *context, void *data)
typedef void(* GPContextErrorFunc )(GPContext *context, const char *format, va_list args, void *data)
typedef enum _GPContextFeedback GPContextFeedback
 Return codes that can be returned by progress handling.
typedef void(* GPContextIdleFunc )(GPContext *context, void *data)
typedef void(* GPContextMessageFunc )(GPContext *context, const char *format, va_list args, void *data)
typedef unsigned int(* GPContextProgressStartFunc )(GPContext *context, float target, const char *format, va_list args, void *data)
typedef void(* GPContextProgressStopFunc )(GPContext *context, unsigned int id, void *data)
typedef void(* GPContextProgressUpdateFunc )(GPContext *context, unsigned int id, float current, void *data)
typedef GPContextFeedback(* GPContextQuestionFunc )(GPContext *context, const char *format, va_list args, void *data)
typedef void(* GPContextStatusFunc )(GPContext *context, const char *format, va_list args, void *data)


 Return codes that can be returned by progress handling. More...


GPContextFeedback gp_context_cancel (GPContext *context)
void gp_context_error (GPContext *context, const char *format,...)
void gp_context_idle (GPContext *context)
 Notify frontend of a brief idle time.
void gp_context_message (GPContext *context, const char *format,...)
 Print a message to the context.
GPContextgp_context_new (void)
 Creates a new context.
unsigned int gp_context_progress_start (GPContext *context, float target, const char *format,...)
 Start progress tracking.
void gp_context_progress_stop (GPContext *context, unsigned int id)
void gp_context_progress_update (GPContext *context, unsigned int id, float current)
GPContextFeedback gp_context_question (GPContext *context, const char *format,...)
 Ask frontend user a question.
void gp_context_ref (GPContext *context)
void gp_context_set_cancel_func (GPContext *context, GPContextCancelFunc func, void *data)
void gp_context_set_error_func (GPContext *context, GPContextErrorFunc func, void *data)
void gp_context_set_idle_func (GPContext *context, GPContextIdleFunc func, void *data)
void gp_context_set_message_func (GPContext *context, GPContextMessageFunc func, void *data)
void gp_context_set_progress_funcs (GPContext *context, GPContextProgressStartFunc start_func, GPContextProgressUpdateFunc update_func, GPContextProgressStopFunc stop_func, void *data)
void gp_context_set_question_func (GPContext *context, GPContextQuestionFunc func, void *data)
void gp_context_set_status_func (GPContext *context, GPContextStatusFunc func, void *data)
void gp_context_status (GPContext *context, const char *format,...)
void gp_context_unref (GPContext *context)
 Decrements reference count of a context.

Generated by  Doxygen 1.6.0   Back to index