On Mon, Jan 14, 2013 at 03:18:14PM +0100, Arvin Schnell wrote:
>
> Hi,
>
> please find attached a patch to make the new libbtrfs usable from
> C++ (at least for the parts snapper will likely need).
>
> Regards,
> Arvin
>
> --
> Arvin Schnell, <aschnell@xxxxxxx>
> Senior Software Engineer, Research & Development
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
> Maxfeldstraße 5
> 90409 Nürnberg
> Germany
> diff --git a/cmds-send.c b/cmds-send.c
> index 9b47e70..c51310a 100644
> --- a/cmds-send.c
> +++ b/cmds-send.c
> @@ -40,6 +40,10 @@
> #include "send.h"
> #include "send-utils.h"
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> static int g_verbose = 0;
>
> struct btrfs_send {
> @@ -654,3 +658,7 @@ int cmd_send(int argc, char **argv)
> {
> return cmd_send_start(argc, argv);
> }
> +
> +#ifdef __cplusplus
> +}
> +#endif
Hi Arvin,
Why exactly do we need this in a non-header file?
Thanks,
Ilya
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html