Re: [PATCH] libxtables: Add exit_error cb to xtables_globals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 2009-02-10 04:29, jamal wrote:

>Suggestion from Jan. Building up to compiling most basic app..
>

I looked through this and wondered - how do we want to model
the ownership of the structure?

For example, one possibility (which you did) is that
xtables_globals is defined in the program, and libxtables
takes a pointer/reference to it during xtables_set_params.

Alternatively, libxtables could collect the globals in
a struct (defined in xtables.c), and programs override
it at will, either by setting variables directly,
like it is currently done with xtables_program_name,
or by use of a function;

Any preference on which approach to choose?
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux