[OTP] Fix OACP Create procedure
[platform/core/connectivity/bluetooth-frwk.git] / bt-otp / bt-otpserver.h
index 498419f..0a80eb0 100755 (executable)
 
 #define BLE_DISABLED           "LeDisabled"
 #define PROPERTIES_CHANGED     "PropertiesChanged"
+#define OTC_DISCONNECTED       "OtcDisconnected"
 
+#define BT_MANAGER_PATH "/"
+#define BT_MANAGER_INTERFACE "org.freedesktop.DBus.ObjectManager"
 #define BT_BLUEZ_NAME "org.bluez"
+#define BT_DEVICE_INTERFACE "org.bluez.Device1"
+
+#define BT_OTC_INTERFACE_NAME  "org.projectx.otc_channel"
+
+#define HEADED_PLUGIN_FILEPATH "/usr/lib/bt-plugin-headed.so"
+#define HEADED_PLUGIN_FILEPATH64 "/usr/lib64/bt-plugin-headed.so"
+#define FILEPATH_ARCH_64 "/usr/lib64"
+
+#define BT_FILE_PATH_MAX_LEN 262
+#define BT_L2CAP_BUFFER_LEN 672
 
 #define BT_ADDRESS_STRING_SIZE 18
 
+#define BT_OTP_BASE_DIR_PATH "/home/owner/media/otp/"
+
+#define BT_OACP_MAX_TIMEOUT 10000 /* Timeout for OACP operation in msec */
+
 /* OTP Service and Chanracteristics UUID */
 #define OTP_UUID                       "1825"
 #define OTP_FEATURE_UUID               "2abd"
 
 #define OTP_CP_CCC_DESC_UUID           "2902"
 
-/* OTP Error codes */
-#define WRITE_REQUEST_REJECTED         0X80
-#define OBJECT_NOT_SELECTED            0X81
-#define CONCURRENCY_LIMIT_EXCEEDED     0X82
-#define OBJECT_NAME_ALREADY_EXISTS     0X83
-
 /* OTP Object Type Custom UUIDs */
 /* In SIG Assigned numbers not available */
 #define UNSUPPORTED_OBJECT_TYPE_UUID   "000019aa-0000-1001-8000-00805f9b34fb"
@@ -58,7 +69,8 @@
 
 /* Object Metadata Length */
 #define OTP_FEATURE_LENGTH             8
-#define ABSOLUTE_PATH_MAX_LENGTH       200
+#define OTP_INDICATION_LEN_WITHOUT_RESP        3
+#define OTP_INDICATION_LEN_WITH_RESP   7
 
 /* Object ID range defined by SIG. */
 #define OBJECT_START_ID        256