<?xml version="1.0" standalone="yes"?>
<!DOCTYPE driconf [
   <!ELEMENT driconf      (device+)>
   <!ELEMENT device       (application | engine)+>
   <!ATTLIST device       driver CDATA #IMPLIED>
   <!ELEMENT application  (option+)>
   <!ATTLIST application  name CDATA #REQUIRED
                          executable CDATA #IMPLIED
                          executable_regexp CDATA #IMPLIED
                          sha1 CDATA #IMPLIED
                          application_name_match CDATA #IMPLIED
                          application_versions CDATA #IMPLIED>
   <!ELEMENT engine       (option+)>

   <!-- engine_name_match: A regexp matching the engine name -->
   <!-- engine_versions: A version in range format
             (version 1 to 4 : "1:4") -->

   <!ATTLIST engine       engine_name_match CDATA #REQUIRED
                          engine_versions CDATA #REQUIRED>

   <!ELEMENT option       EMPTY>
   <!ATTLIST option       name CDATA #REQUIRED
                          value CDATA #REQUIRED>
]>

<driconf>
    <device>
        <application name="Application 1" executable="app1">
            <option name="mesa_drirc_option" value="1" />
        </application>

        <application name="Application 2" executable="app2">
            <option name="mesa_drirc_option" value="2" />
        </application>

        <application name="Application 2" application_name_match="Versioned App.*" application_versions="0:1">
            <option name="mesa_drirc_option" value="3" />
        </application>

        <application name="Application 2" application_name_match="Versioned App.*" application_versions="2:3">
            <option name="mesa_drirc_option" value="4" />
        </application>

        <engine engine_name_match="Versioned Engine.*" engine_versions="0:1">
            <option name="mesa_drirc_option" value="5" />
        </engine>
        <engine engine_name_match="Versioned Engine.*" engine_versions="2:3">
            <option name="mesa_drirc_option" value="6" />
        </engine>

        <application name="Application 2" executable_regexp="app2v[0-4]">
            <option name="mesa_drirc_option" value="7" />
        </application>
        <application name="Application 2" executable_regexp="app2v[5-9]">
            <option name="mesa_drirc_option" value="8" />
        </application>
    </device>
</driconf>
