[Patch] updated: Add JSON and XML output to pciconf (libxo support - D1206)

Phil Shafer phil at juniper.net
Wed Dec 10 19:36:01 UTC 2014


Konstantin Belousov writes:
>If it is required that the name be identical, it makes more sense
>to require some handle to be passed to functions instead of the string.
>I.e. either there should be some atom-like calls which convert string
>to identifier, or first call should return handle passed to consequent
>calls.

The library supports "do the right thing" mode, where it records
the open tag value and doesn't need the user to provide it:

http://juniper.github.io/libxo/libxo-manual.html#dtrt-mode

I could enable this by default and use it when NULL is passed for
an instance name.

Thanks,
 Phil


More information about the freebsd-hackers mailing list