<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add object name parsing to pa_config_parser"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88830">88830</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add object name parsing to pa_config_parser
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>love
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tanuk@iki.fi
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>