os/graphics/graphicscomposition/openwfcompositionengine/adaptation/include/owfconfig.h
First public contribution.
     1 /* Copyright (c) 2009 The Khronos Group Inc.
 
     3  * Permission is hereby granted, free of charge, to any person obtaining a
 
     4  * copy of this software and/or associated documentation files (the
 
     5  * "Materials"), to deal in the Materials without restriction, including
 
     6  * without limitation the rights to use, copy, modify, merge, publish,
 
     7  * distribute, sublicense, and/or sell copies of the Materials, and to
 
     8  * permit persons to whom the Materials are furnished to do so, subject to
 
     9  * the following conditions:
 
    11  * The above copyright notice and this permission notice shall be included
 
    12  * in all copies or substantial portions of the Materials.
 
    14  * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 
    15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
    16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
    17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 
    18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 
    19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 
    20  * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 
    39 typedef void* OWF_CONF_DOCUMENT;
 
    40 typedef void* OWF_CONF_GROUP;
 
    41 typedef void* OWF_CONF_ELEMENT;
 
    43 OWF_API_CALL OWF_CONF_DOCUMENT
 
    44 OWF_Conf_GetGetDocument(const char* str);
 
    46 OWF_API_CALL OWF_CONF_GROUP
 
    47 OWF_Conf_GetRoot(OWF_CONF_DOCUMENT doc, const char* name);
 
    49 OWF_API_CALL OWF_CONF_ELEMENT
 
    50 OWF_Conf_GetElement(const OWF_CONF_GROUP cur,
 
    51                     const char* elementName);
 
    54 OWF_Conf_GetNbrElements(const OWF_CONF_GROUP cur,
 
    55                         const char* elementName);
 
    57 OWF_API_CALL OWF_CONF_ELEMENT
 
    58 OWF_Conf_GetNextElement(const OWF_CONF_ELEMENT cur,
 
    59                         const char* elementName);
 
    62 OWF_Conf_GetContenti(const OWF_CONF_ELEMENT cur, OWFint deflt);
 
    65 OWF_Conf_GetContentf(const OWF_CONF_ELEMENT cur, OWFfloat deflt);
 
    68 OWF_Conf_GetContentStr(const OWF_CONF_ELEMENT cur,
 
    72 OWF_Conf_GetElementContenti(const OWF_CONF_GROUP cur,
 
    73                             const char* elementName,
 
    77 OWF_Conf_GetElementContentf(const OWF_CONF_GROUP cur,
 
    78                             const char* elementName,
 
    81 /* \brief Get string element content
 
    83  * String must be free by  OWF_Conf_FreeContent() call;
 
    86 OWF_Conf_GetElementContentStr(const OWF_CONF_GROUP cur,
 
    87                               const char* elementName,
 
    91 OWF_Conf_Cleanup(OWF_CONF_DOCUMENT doc);
 
    94 OWF_Conf_FreeContent(char* str);
 
   102 #endif /* OWFCONFIG_H_ */