Re: [PATCH v2 2/3] trailers: export action enums and corresponding lookup functions

2017-07-17 Thread Junio C Hamano
Christian Couder writes: > On Thu, Jul 13, 2017 at 12:21 AM, Paolo Bonzini wrote: > >> diff --git a/trailer.h b/trailer.h >> index e90ba1270..f306bf059 100644 >> --- a/trailer.h >> +++ b/trailer.h >> @@ -1,11 +1,33 @@ >> #ifndef TRAILER_H >>

Re: [PATCH v2 2/3] trailers: export action enums and corresponding lookup functions

2017-07-13 Thread Christian Couder
On Thu, Jul 13, 2017 at 12:21 AM, Paolo Bonzini wrote: > diff --git a/trailer.h b/trailer.h > index e90ba1270..f306bf059 100644 > --- a/trailer.h > +++ b/trailer.h > @@ -1,11 +1,33 @@ > #ifndef TRAILER_H > #define TRAILER_H > > +enum action_where { > + WHERE_END, > +

[PATCH v2 2/3] trailers: export action enums and corresponding lookup functions

2017-07-12 Thread Paolo Bonzini
From: Paolo Bonzini Separate the mechanical changes out of the next patch. The functions are changed to take a pointer to enum, because struct conf_info is not going to be public. Set the default values explicitly in default_conf_info, since they are not anymore close to