[Spice-devel] [PATCH 1/5] rename red_dispatcher_ functions to red_qxl_
Frediano Ziglio
fziglio at redhat.com
Thu Mar 3 15:12:25 UTC 2016
>
> On Tue, Mar 01, 2016 at 12:42:20PM -0500, Frediano Ziglio wrote:
> > > with QXLState an internal structure as well (defined in reds.h), and
> > > RedDispatcher/RedQXL is one of the few members of this QXLState
> > > structure. Should they be merged?
> > >
> >
> > I think you should check patch 4/5 :)
>
> Ah indeed, missed that one. Don't you mean QXLState rather than
> RedsState in the shortlog though?
> With this commit, we end up with
> server/red-qxl.h:typedef struct QXLState RedQXL;
> server/spice-qxl.h:typedef struct QXLState QXLState;
> and
> struct QXLState {} in red-qxl.c which holds the data for what we call
> RedQXL throughout the file. I think it would be better to just use the
> QXLState name everywhere and avoid introducing yet another name (we
> already have QXLState, QXLInstance, QXLInterface, not having RedQXL in
> addition to all of this sounds better to me.
>
> Christophe
>
So would you like to have functions like qxl_state_set_mm_time and similar
and files like qxl-state.[ch] ?
I was lookin at similar implementation (the main one is record/play).
Here you have the struct SpiceRecordState which is defined "private" in
sound.c and functions like snd_record_/snd_playback_.
Would then make sense if the functions where just named qxl_ (like
qxl_set_mm_time) ?
So perhaps file names qxl.[ch] ?
Frediano
More information about the Spice-devel
mailing list