summaryrefslogtreecommitdiff
path: root/Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs
diff options
context:
space:
mode:
authorinkyun.kil <inkyun.kil@samsung.com>2017-03-16 11:08:19 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2017-03-21 17:56:49 -0700
commit0dc8f51d8d2a8fa0e04ae442421c7ce16291282d (patch)
tree3ce25399c7d50782934d85c4087a43dede54e89d /Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs
parente4381f3350dddd62be556e41e7c259b37697efa9 (diff)
downloadapplication-0dc8f51d8d2a8fa0e04ae442421c7ce16291282d.tar.gz
application-0dc8f51d8d2a8fa0e04ae442421c7ce16291282d.tar.bz2
application-0dc8f51d8d2a8fa0e04ae442421c7ce16291282d.zip
Add new apis for getting information of recent applications.
Change-Id: Id72a7dc9089feeed0c57193b772bbac8b10f8474 Signed-off-by: inkyun.kil <inkyun.kil@samsung.com>
Diffstat (limited to 'Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs')
-rwxr-xr-xTizen.Applications.Common/Interop/Interop.ApplicationManager.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs b/Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs
index d93378a..e114c1b 100755
--- a/Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs
+++ b/Tizen.Applications.Common/Interop/Interop.ApplicationManager.cs
@@ -305,5 +305,43 @@ internal static partial class Interop
[DllImport(Libraries.AppManager, EntryPoint = "app_info_metadata_filter_foreach")]
internal static extern ErrorCode AppInfoMetadataFilterForeach(IntPtr handle, AppInfoFilterCallback callback, IntPtr userData);
//int app_info_metadata_filter_foreach (app_info_metadata_filter_h handle, app_info_filter_cb callback, void *user_data)
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct RuaRec
+ {
+ internal int id;
+ internal IntPtr pkgName;
+ internal IntPtr appPath;
+ internal IntPtr arg;
+ internal long launchTime;
+ internal IntPtr instanceId;
+ internal IntPtr instanceName;
+ internal IntPtr icon;
+ internal IntPtr uri;
+ };
+
+ [DllImport(Libraries.Rua, EntryPoint = "rua_history_get_rec")]
+ internal static extern ErrorCode RuaHistoryGetRecord(out RuaRec record, IntPtr table, int nRows, int nCols, int row);
+ //int rua_history_get_rec(struct rua_rec *rec, char** table, int nrows, int ncols, int row);
+
+ [DllImport(Libraries.Rua, EntryPoint = "rua_history_load_db")]
+ internal static extern ErrorCode RuaHistoryLoadDb(out IntPtr table, out int nRows, out int nCols);
+ //int rua_history_load_db(char*** table, int *nrows, int *ncols);
+
+ [DllImport(Libraries.Rua, EntryPoint = "rua_history_unload_db")]
+ internal static extern ErrorCode RuaHistoryUnLoadDb(ref IntPtr table);
+ //int rua_history_unload_db(char*** table);
+
+ [DllImport(Libraries.Rua, EntryPoint = "rua_delete_history_with_pkgname")]
+ internal static extern ErrorCode RuaDeleteHistoryWithPkgname(string pkgName);
+ //int rua_delete_history_with_pkgname(char* pkg_name);
+
+ [DllImport(Libraries.Rua, EntryPoint = "rua_delete_history_with_apppath")]
+ internal static extern ErrorCode RuaDeleteHistoryWithApppath(string appPath);
+ //int rua_delete_history_with_apppath(char* app_path);
+
+ [DllImport(Libraries.Rua, EntryPoint = "rua_clear_history")]
+ internal static extern ErrorCode RuaClearHistory();
+ //int rua_clear_history(void);
}
}