%files rsc-mgr
%manifest %{name}-rsc-mgr.manifest
%attr(0644,root,root) %{_libdir}/libaul-rsc-mgr.so.*
+%{_datadir}/aul/res.xsd
%files rsc-mgr-devel
%{_includedir}/aul/rsc-mgr/*.h
CONFIGURE_FILE(${TARGET_AUL_RSC_MGR}.pc.in ${TARGET_AUL_RSC_MGR}.pc @ONLY)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET_AUL_RSC_MGR}.pc
DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res.xsd DESTINATION ${SHARE_INSTALL_PREFIX}/aul/)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
DESTINATION include/aul/rsc-mgr
#include <bundle.h>
#include "aul_rsc_mgr_internal.h"
-#include "aul_rsc_mgr_schema.h"
static char *__get_attribute(xmlNode *xml_node, const char *name)
{
return 0;
}
+#define SCHEMA_FILE SHARE_PREFIX"/res.xsd"
static int __validate_schema(const char *path)
{
xmlSchemaParserCtxt *parser_ctxt;
xmlSchemaValidCtxt *valid_ctxt;
int ret;
- parser_ctxt = xmlSchemaNewMemParserCtxt(res_schema, sizeof(res_schema));
+ parser_ctxt = xmlSchemaNewParserCtxt(SCHEMA_FILE);
if (parser_ctxt == NULL) {
LOGE("failed to create parser context");
return -1;
+++ /dev/null
-#ifndef __AUL_RSC_MGR_SCHEMA_H__
-#define __AUL_RSC_MGR_SCHEMA_H__
-
-static const char res_schema[] =
-"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
-"<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" elementFormDefault=\"qualified\" targetNamespace=\"http://tizen.org/ns/rm\" xmlns:packages=\"http://tizen.org/ns/rm\">"
-" <xs:import namespace=\"http://www.w3.org/XML/1998/namespace\"/>"
-" <xs:element name=\"res\">"
-" <xs:complexType>"
-" <xs:all>"
-" <xs:element name=\"group-image\" type=\"packages:GroupContainer\" maxOccurs=\"1\" minOccurs=\"0\"/>"
-" <xs:element name=\"group-layout\" type=\"packages:GroupContainer\" maxOccurs=\"1\" minOccurs=\"0\"/>"
-" <xs:element name=\"group-sound\" type=\"packages:GroupContainer\" maxOccurs=\"1\" minOccurs=\"0\"/>"
-" <xs:element name=\"group-bin\" type=\"packages:GroupContainer\" maxOccurs=\"1\" minOccurs=\"0\"/>"
-" </xs:all>"
-" </xs:complexType>"
-" </xs:element>"
-" <xs:complexType name=\"GroupContainer\">"
-" <xs:sequence>"
-" <xs:element name=\"node\" maxOccurs=\"unbounded\" minOccurs=\"0\">"
-" <xs:complexType>"
-" <xs:attribute name=\"folder\" type=\"xs:string\" use=\"required\"/>"
-" <xs:attribute name=\"screen-dpi\" type=\"xs:integer\"/>"
-" <xs:attribute name=\"screen-dpi-range\" type=\"xs:string\"/>"
-" <xs:attribute name=\"screen-width-range\" type=\"xs:string\"/>"
-" <xs:attribute name=\"screen-large\" type=\"xs:boolean\"/>"
-" <xs:attribute name=\"screen-bpp\" type=\"xs:integer\"/>"
-" <xs:attribute name=\"platform-version\" type=\"xs:string\"/>"
-" <xs:attribute name=\"language\" type=\"xs:string\"/>"
-" </xs:complexType>"
-" </xs:element>"
-" </xs:sequence>"
-" <xs:attribute name=\"folder\" type=\"xs:string\" use=\"required\"/>"
-" </xs:complexType>"
-"</xs:schema>";
-
-#endif
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://tizen.org/ns/rm" xmlns:packages="http://tizen.org/ns/rm">
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
+ <xs:element name="res">
+ <xs:complexType>
+ <xs:all>
+ <xs:element name="group-image" type="packages:GroupContainer" maxOccurs="1" minOccurs="0"/>
+ <xs:element name="group-layout" type="packages:GroupContainer" maxOccurs="1" minOccurs="0"/>
+ <xs:element name="group-sound" type="packages:GroupContainer" maxOccurs="1" minOccurs="0"/>
+ <xs:element name="group-bin" type="packages:GroupContainer" maxOccurs="1" minOccurs="0"/>
+ </xs:all>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="GroupContainer">
+ <xs:sequence>
+ <xs:element name="node" maxOccurs="unbounded" minOccurs="0">
+ <xs:complexType>
+ <xs:attribute name="folder" type="xs:string" use="required"/>
+ <xs:attribute name="screen-dpi" type="xs:integer"/>
+ <xs:attribute name="screen-dpi-range" type="xs:string"/>
+ <xs:attribute name="screen-width-range" type="xs:string"/>
+ <xs:attribute name="screen-large" type="xs:boolean"/>
+ <xs:attribute name="screen-bpp" type="xs:integer"/>
+ <xs:attribute name="platform-version" type="xs:string"/>
+ <xs:attribute name="language" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="folder" type="xs:string" use="required"/>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file