diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2010-03-06 14:42:22 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2010-03-06 14:42:22 +0000 |
commit | 2f935edb8d7c185216fbf24469321c8fd03f068c (patch) | |
tree | cdfc1a6996b522ff5f3b41c570dbc4ac7d3d0472 /examples/context.c | |
parent | 96e59fbc51b26ca9efb230ffe47b1b2162c7f819 (diff) | |
download | libgphoto2-2f935edb8d7c185216fbf24469321c8fd03f068c.tar.gz |
use strings to pass out strings to frontends
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12735 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'examples/context.c')
-rw-r--r-- | examples/context.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/context.c b/examples/context.c index a21bdebb9..3a7d419f2 100644 --- a/examples/context.c +++ b/examples/context.c @@ -2,20 +2,16 @@ #include "samples.h" static void -ctx_error_func (GPContext *context, const char *format, va_list args, void *data) +ctx_error_func (GPContext *context, const char *str, void *data) { - fprintf (stderr, "\n"); - fprintf (stderr, "*** Contexterror *** \n"); - vfprintf (stderr, format, args); - fprintf (stderr, "\n"); + fprintf (stderr, "\n*** Contexterror *** \n%s\n",str); fflush (stderr); } static void -ctx_status_func (GPContext *context, const char *format, va_list args, void *data) +ctx_status_func (GPContext *context, const char *str, void *data) { - vfprintf (stderr, format, args); - fprintf (stderr, "\n"); + fprintf (stderr, "%s\n", str); fflush (stderr); } |