[Spice-devel] [PATCH spice-server v2] Remove core_public and core_interface_adapter globals usage

Jonathon Jongsma jjongsma at redhat.com
Tue Nov 15 16:32:03 UTC 2016


On Tue, 2016-11-15 at 10:34 +0000, Frediano Ziglio wrote:
> +    void (*channel_event)(const SpiceCoreInterfaceInternal *iface,
> int event, SpiceChannelEventInfo *info);
> +
> +    /* Implementation data.
> +     * Usually these fields are is implemented subclassing the
> object and
> +     * adding new fields, in this case the choices are limited and
> both
> +     * pointers so use an union to store all possible values.
> +     */
> +    union {
> +        GMainContext *main_context;
> +        SpiceCoreInterface *public_interface;
> +    };
>  };


see my comments/proposal that I just sent on the previous email thread.

Jonathon


More information about the Spice-devel mailing list