Re: [Linuxptp-devel] [PATCH RFC v4 07/69] config: introduce a new API for reading configuration settings.

2015-08-21 Thread Keller, Jacob E
On Fri, 2015-08-21 at 10:38 +0200, Richard Cochran wrote: On Thu, Aug 20, 2015 at 10:25:23PM +, Keller, Jacob E wrote: If I understand this correctly, this means that a user passing a configuration file missing any option the program reads we will terminate the whole program instead of

Re: [Linuxptp-devel] [PATCH RFC v4 07/69] config: introduce a new API for reading configuration settings.

2015-08-21 Thread Richard Cochran
On Fri, Aug 21, 2015 at 03:42:08PM +, Keller, Jacob E wrote: So, what happens in the case of a configuration file that is missing a field? ie: a user provides a configuration file which doesn't have the item in it? Then the default value from the 'config_tab' table is used. Thanks,

Re: [Linuxptp-devel] [PATCH RFC v4 07/69] config: introduce a new API for reading configuration settings.

2015-08-21 Thread Richard Cochran
On Thu, Aug 20, 2015 at 10:25:23PM +, Keller, Jacob E wrote: If I understand this correctly, this means that a user passing a configuration file missing any option the program reads we will terminate the whole program instead of selecting the default? No, that is not how it works. The