[pulseaudio-tickets] [Bug 88830] New: Add object name parsing to pa_config_parser

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 27 09:42:42 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88830

            Bug ID: 88830
           Summary: Add object name parsing to pa_config_parser
           Product: PulseAudio
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Keywords: love
          Severity: normal
          Priority: medium
         Component: core
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: tanuk at iki.fi
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Some configuration files support the following pattern:

    [SomeObjectType foo]
    somekey = somevalue

    [SomeObjectType bar]
    somekey = someothervalue

In the above example, "SomeObjectType" identifies a type for an object, and
"foo" and "bar" identify the object. Currently pa_config_parser doesn't
understand anything about this, however; it just sees that there are two
section with names "SomeObjectType foo" and "SomeObjectType bar". This means
that parsing the object names is pushed to the code that is using
pa_config_parser. The object names are parsed every time a config value
assignment is done, which is redundant work, and makes the parsing more
complicated, and it also prevents us from printing the line number of the
section header when a missing or invalid object name is encountered.

So, pa_config_parser should be extended so that it natively understands the
concept of object names in section headers, so that the users of
pa_config_parser can easily fetch the object name without having to parse it
themselves.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150127/13a46f8c/attachment.html>


More information about the pulseaudio-bugs mailing list