1 // Copyright 2016 by Samsung Electronics, Inc.,
3 // This software is the confidential and proprietary information
4 // of Samsung Electronics, Inc. ("Confidential Information"). You
5 // shall not disclose such Confidential Information and shall use
6 // it only in accordance with the terms of the license agreement
7 // you entered into with Samsung.
10 using System.Runtime.InteropServices;
11 using Tizen.Applications;
12 using Tizen.Account.AccountManager;
14 internal static partial class Interop
16 internal static partial class Manager
18 [DllImport(Libraries.SyncManager, EntryPoint = "sync_manager_on_demand_sync_job")]
19 internal static extern int RequestOnDemandSyncJob(SafeAccountHandle account, string syncJobName, int syncOption, SafeBundleHandle syncJobUserData, out int syncJobId);
21 [DllImport(Libraries.SyncManager, EntryPoint = "sync_manager_add_periodic_sync_job")]
22 internal static extern int AddPeriodicSyncJob(SafeAccountHandle account, string syncJobName, int syncPeriod, int syncOption, SafeBundleHandle syncJobUserData, out int syncJobId);
24 [DllImport(Libraries.SyncManager, EntryPoint = "sync_manager_add_data_change_sync_job")]
25 internal static extern int AddDataChangeSyncJob(SafeAccountHandle account, string syncCapability, int syncOption, SafeBundleHandle syncJobUserData, out int syncJobId);
27 [DllImport(Libraries.SyncManager, EntryPoint = "sync_manager_remove_sync_job")]
28 internal static extern int RemoveSyncJob(int syncJobId);
30 [DllImport(Libraries.SyncManager, EntryPoint = "sync_manager_foreach_sync_job")]
31 internal static extern int ForeachSyncJob(SyncManagerSyncJobCallback syncJobCb, IntPtr userData);
33 [UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
34 internal delegate bool SyncManagerSyncJobCallback(IntPtr account, string syncJobName, string syncCapability, int syncJobId, IntPtr syncJobUserData, IntPtr userData);