--- /dev/null
+<manifest>
+ <define>
+ <domain name="app-svc"/>
+ <provide>
+ <label name="app-svc::db"/>
+ </provide>
+ </define>
+ <request>
+ <domain name="app-svc"/>
+ </request>
+ <assign>
+ <filesystem path="/usr/lib/libappsvc.so.0" label="_"/>
+ <filesystem path="/usr/lib/libappsvc.so.0.1.0" label="_"/>
+ </assign>
+</manifest>
* @param[out] pkg_name package name retreived by appsvc_get_list
* @param[out] data user-supplied data
*/
-typedef int (*appsvc_info_iter_fn)(const char *pkg_name, void *data);
+typedef int (*appsvc_info_iter_fn)(const char *appid, void *data);
typedef int (*appsvc_host_res_fn)(void *data);
* @endcode
*
*/
-int appsvc_set_pkgname(bundle *b, const char *pkg_name);
+/* Deprecated API */
+int appsvc_set_pkgname(bundle *b, const char *pkg_name); // __attribute__((deprecated));
/**
* @endcode
*
*/
-const char *appsvc_get_pkgname(bundle *b);
+/* Deprecated API */
+const char *appsvc_get_pkgname(bundle *b); // __attribute__((deprecated));
/**
* @par Description:
* None
*
*/
-int appsvc_is_defapp(const char *pkg_name);
+int appsvc_is_defapp(const char *appid);
/**
#sbs-git:slp/pkgs/a/app-svc app-svc 0.1.19 de68cdc468eaded317b4f5be9cdafebb01639aa0
Name: app-svc
Summary: App svc
-Version: 0.1.27
+Version: 0.1.33
Release: 1
Group: System/Libraries
License: Apache License, Version 2.0
chown 0:5000 /opt/dbspace/.appsvc.db-journal
chmod 664 /opt/dbspace/.appsvc.db
chmod 664 /opt/dbspace/.appsvc.db-journal
+chsmack -a 'app-svc::db' opt/dbspace/.appsvc.db
+chsmack -a 'app-svc::db' opt/dbspace/.appsvc.db-journal
%postun -p /sbin/ldconfig
%files
+%manifest app-svc.manifest
%defattr(-,root,root,-)
/opt/share/appsvc_db.sql
/usr/bin/appsvc_test
return ret;
pkgname = info.pkgname;
- _D("op - %s / mime - %s / shceme - %s\n", info.op, info.mime, info.scheme);
+ _D("op - %s / mime - %s / shceme - %s\n", info.op, info.origin_mime, info.scheme);
/* explict*/
if(pkgname) {
}
if(info.uri_r_info) {
- pkgname = _svc_db_get_app(info.op, info.mime, info.uri_r_info);
+ pkgname = _svc_db_get_app(info.op, info.origin_mime, info.uri_r_info);
if(pkgname==NULL){
__get_list_with_condition_mime_extened(info.op, info.uri_r_info,
}
}
- pkgname = _svc_db_get_app(info.op, info.mime, info.scheme);
+ pkgname = _svc_db_get_app(info.op, info.origin_mime, info.scheme);
if(pkgname==NULL){
__get_list_with_condition_mime_extened(info.op, info.scheme,