GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
dnsjit.lib.parseconf(3) FreeBSD Library Functions Manual dnsjit.lib.parseconf(3)

dnsjit.lib.parseconf - Parse simple config files


local conf = require("dnsjit.lib.parseconf").new()


conf:func("config_name", function(k,...)
print(k,...)
end)


conf:file(file)


print(conf:val("another_config_name"))

This module parses simple config files that are based on the config syntax of DSC, drool and parseconf helper library. Each config begins with a name followed by options and ends with a ;. Multiple configs can be given on the same line. Valid option types are number, float, string, quoted string. Comments can be added by prefixing the comment with #.


# Comment
number 12345;
float 123.456;
string string string;
quoted_string "string string string";
multi config; on one line;

Create a new Parseconf object.
Return the Log object to control logging of this instance or module.
Set a function to call when config name is found.
Parse the given file.
Parse the given line.
Get the value of a config name.

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

https://www.dns-oarc.net/

For issues and feature requests please use:

https://github.com/DNS-OARC/dnsjit/issues

For question and help please use:

admin@dns-oarc.net
1.4.0 dnsjit

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.