From: Richard W.M. Jones Date: Fri, 15 Jul 2011 09:42:56 +0000 (+0100) Subject: guestfs.h: Add missing extern keyword before event functions. X-Git-Tag: 1.10.6~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b1e84c723d151d8b4685d64d5c089f1a9e3bfd1e;p=libguestfs.git guestfs.h: Add missing extern keyword before event functions. (cherry picked from commit 4b53a3737b76cad7aca407a0d9e37fed1d42ef69) --- diff --git a/generator/generator_c.ml b/generator/generator_c.ml index 1a16c9e..90b060c 100644 --- a/generator/generator_c.ml +++ b/generator/generator_c.ml @@ -427,13 +427,13 @@ typedef void (*guestfs_event_callback) ( #endif #define LIBGUESTFS_HAVE_SET_EVENT_CALLBACK 1 -int guestfs_set_event_callback (guestfs_h *g, - guestfs_event_callback cb, - uint64_t event_bitmask, - int flags, - void *opaque); +extern int guestfs_set_event_callback (guestfs_h *g, + guestfs_event_callback cb, + uint64_t event_bitmask, + int flags, + void *opaque); #define LIBGUESTFS_HAVE_DELETE_EVENT_CALLBACK 1 -void guestfs_delete_event_callback (guestfs_h *g, int event_handle); +extern void guestfs_delete_event_callback (guestfs_h *g, int event_handle); /* Old-style event handling. In new code use guestfs_set_event_callback. */ #ifndef GUESTFS_TYPEDEF_LOG_MESSAGE_CB