On Thu, Aug 10, 2017 at 02:31:43PM -0700, Joe Stringer wrote:
> On 10 August 2017 at 11:41, Ben Pfaff wrote:
> > On Thu, Aug 10, 2017 at 01:01:32PM +0800, Gao Zhenyu wrote:
> >> Besides of that, I see many places consume the table class.
> >> Do you mind to make a macro helps to
On 10 August 2017 at 11:41, Ben Pfaff wrote:
> On Thu, Aug 10, 2017 at 01:01:32PM +0800, Gao Zhenyu wrote:
>> How about:
>> struct ovsdb_idl_table {
>> ...
>> const struct ovsdb_idl_table_class *table_class
>>
>> }
>>
>> struct ovsdb_idl {
>>
>> const struct
On Thu, Aug 10, 2017 at 01:01:32PM +0800, Gao Zhenyu wrote:
> How about:
> struct ovsdb_idl_table {
> ...
> const struct ovsdb_idl_table_class *table_class
>
> }
>
> struct ovsdb_idl {
>
> const struct ovsdb_idl_class *idl_class;
>
Why make it longer?
> Besides of that,
How about:
struct ovsdb_idl_table {
...
const struct ovsdb_idl_table_class *table_class
}
struct ovsdb_idl {
const struct ovsdb_idl_class *idl_class;
Besides of that, I see many places consume the table class.
Do you mind to make a macro helps to fetch the class?
Like: