Imported Upstream version 1.7.0
[platform/upstream/augeas.git] / lenses / avahi.aug
1 (*
2 Module: Avahi
3  Avahi module for Augeas
4
5  Author: Athir Nuaimi <athir@nuaimi.com>
6
7  avahi-daemon.conf is a standard INI File.
8 *)
9
10 module Avahi =
11   autoload xfm
12
13 (************************************************************************
14  * Group: INI File settings
15  * avahi-daemon.conf only supports "# as commentary and "=" as separator
16  *************************************************************************)
17 (* View: comment *)
18 let comment    = IniFile.comment "#" "#"
19 (* View: sep *)
20 let sep        = IniFile.sep "=" "="
21
22 (************************************************************************
23  * Group: Entry
24  *************************************************************************)
25 (* View: entry *)
26 let entry   = IniFile.indented_entry IniFile.entry_re sep comment
27
28 (************************************************************************
29  * Group: Record
30  *************************************************************************)
31 (* View: title *)
32 let title   = IniFile.indented_title IniFile.record_re
33 (* View: record *)
34 let record  = IniFile.record title entry
35
36 (************************************************************************
37  * Group: Lens and filter
38  *************************************************************************)
39 (* View: lns *)
40 let lns     = IniFile.lns record comment
41
42 (* View: filter *)
43 let filter = (incl "/etc/avahi/avahi-daemon.conf")
44
45 let xfm = transform lns filter