+ // Bluetooth OPP
+ // Opp Server
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_initialize")]
+ internal static extern int InitializeOppServer(string deviceAddress, PushRequestedCallback pushRequestedCb, IntPtr userData);
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_deinitialize")]
+ internal static extern int DinitializeOppServer();
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_initialize_by_connection_request")]
+ internal static extern int InitializeOppServerCustom(string deviceAddress, ConnectionRequestedCallback connectionRequestedCb, IntPtr userData);
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_accept")]
+ internal static extern int OppServerAcceptPush(TransferProgressCallback transferProgressCb, TransferFinishedCallback transferFinishedCb, string name, IntPtr userData, out int transferId);
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_reject")]
+ internal static extern int OppServerRejectPush();
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_cancel_transfer")]
+ internal static extern int OppServerCancelTransfer(int transferId);
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_server_set_destination")]
+ internal static extern int OppServerSetDestinationPath(string path);
+
+ // Opp Client
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_client_initialize")]
+ internal static extern int InitializeOppClient();
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_client_dinitialize")]
+ internal static extern int DeinitializeOppClient();
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_client_add_file")]
+ internal static extern int OppClientAddFile(string filePath);
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_client_clear_files")]
+ internal static extern int OppClientClearFiles();
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_client_cancel_push")]
+ internal static extern int OppClientCancelPush();
+
+ [DllImport(Libraries.Bluetooth, EntryPoint = "bt_opp_client_push_files")]
+ internal static extern int OppClientPushFile(string filePath, PushRespondedCallback pushRespondedCb, PushProgressCallback pushProgressCb, PushFinishedCallback pushFinishedCb, IntPtr userData);
+