All - Rework config API to allow default/optional values
authorJohn Hodge <[email protected]>
Wed, 15 Apr 2015 06:24:57 +0000 (14:24 +0800)
committerJohn Hodge <[email protected]>
Wed, 15 Apr 2015 06:24:57 +0000 (14:24 +0800)
commit9caffbc7ed251136bab144a957058e7d9f470b00
treecb3c2d98e040dc61d730063f46f706830ec0b934
parentbc9985b6194aabd4439933925f50e249610577d0
All - Rework config API to allow default/optional values

- Now returns a boolean success, and takes a pointer in which to write the
  successfully parsed value (unchanged on failure)
- Also cleaned up argument processing to be flatter and slightly less hacky
src/client/main.c
src/common/config.c
src/common/config.h
src/server/common.h
src/server/main.c
src/server/server.c

UCC git Repository :: git.ucc.asn.au