diff --git a/configs/10.0/entrypoints.h b/configs/10.0/entrypoints.h index 27bf83f0..4cdff767 100644 --- a/configs/10.0/entrypoints.h +++ b/configs/10.0/entrypoints.h @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -61,6 +62,8 @@ #include #include #include +#include +#include #include #include #include @@ -110,35 +113,52 @@ #include #include #include +#include #include #include #include #include #include -#include //deprecated +#include //deprecated +#include //deprecated #include +#include #include #include #include #include +#include #include #include //deprecated +#include +#include #include +#include +#include //deprecated #include +#include #include //deprecated #include -#include //deprecated +#include +#include //deprecated +#include //deprecated +#include //deprecated #include +#include #include +#include #include #include //deprecated #include #include #include #include +#include #include #include +#include #include +#include #include #include #include @@ -146,6 +166,7 @@ // Network #include //deprecated #include +#include #include #include #include @@ -237,6 +258,7 @@ #include #include #include +#include #include #include #include @@ -244,6 +266,7 @@ // UI #include +#include // UIX #include diff --git a/configs/10.0/ffigen_capi_base_common.yaml b/configs/10.0/ffigen_capi_base_common.yaml index 8c41478a..dd3bb7b2 100644 --- a/configs/10.0/ffigen_capi_base_common.yaml +++ b/configs/10.0/ffigen_capi_base_common.yaml @@ -17,6 +17,7 @@ headers: include-directives: - '**/tizen.h' - '**/tizen_error.h' + - '**tizen_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_media_controller.yaml b/configs/10.0/ffigen_capi_media_controller.yaml index 7263c1fe..f57b6212 100644 --- a/configs/10.0/ffigen_capi_media_controller.yaml +++ b/configs/10.0/ffigen_capi_media_controller.yaml @@ -19,6 +19,7 @@ headers: - '**/media_controller_metadata.h' - '**/media_controller_playlist.h' - '**/media_controller_server.h' + - '**/media_controller_type.h' library-imports: bundle: 'generated_bindings_bundle.dart' diff --git a/configs/10.0/ffigen_capi_media_metadata_editor.yaml b/configs/10.0/ffigen_capi_media_metadata_editor.yaml index b413659f..d1bd23d8 100644 --- a/configs/10.0/ffigen_capi_media_metadata_editor.yaml +++ b/configs/10.0/ffigen_capi_media_metadata_editor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_editor.h' + - '**/metadata_editor_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_media_metadata_extractor.yaml b/configs/10.0/ffigen_capi_media_metadata_extractor.yaml index 5ed6c0c4..01e46f65 100644 --- a/configs/10.0/ffigen_capi_media_metadata_extractor.yaml +++ b/configs/10.0/ffigen_capi_media_metadata_extractor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_extractor.h' + - '**/metadata_extractor_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_media_screen_mirroring.yaml b/configs/10.0/ffigen_capi_media_screen_mirroring.yaml index 004e4579..7d8ba6e9 100644 --- a/configs/10.0/ffigen_capi_media_screen_mirroring.yaml +++ b/configs/10.0/ffigen_capi_media_screen_mirroring.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/scmirroring_sink.h' + - '**/scmirroring_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_media_sound_pool.yaml b/configs/10.0/ffigen_capi_media_sound_pool.yaml index 5575bcf6..b9c8ded4 100644 --- a/configs/10.0/ffigen_capi_media_sound_pool.yaml +++ b/configs/10.0/ffigen_capi_media_sound_pool.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/sound_pool.h' + - '**/sound_pool_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_media_thumbnail_util.yaml b/configs/10.0/ffigen_capi_media_thumbnail_util.yaml index 81bf5baa..a117146d 100644 --- a/configs/10.0/ffigen_capi_media_thumbnail_util.yaml +++ b/configs/10.0/ffigen_capi_media_thumbnail_util.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/thumbnail_util.h' + - '**/thumbnail_util_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_network_bluetooth.yaml b/configs/10.0/ffigen_capi_network_bluetooth.yaml index 971b55c2..219c325e 100644 --- a/configs/10.0/ffigen_capi_network_bluetooth.yaml +++ b/configs/10.0/ffigen_capi_network_bluetooth.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/bluetooth.h' + - '**/bluetooth_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_capi_system_info.yaml b/configs/10.0/ffigen_capi_system_info.yaml index 17904957..797bf967 100644 --- a/configs/10.0/ffigen_capi_system_info.yaml +++ b/configs/10.0/ffigen_capi_system_info.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/system_info.h' + - '**/system_info_type.h' compiler-opts: - '-m32' diff --git a/configs/10.0/ffigen_mv_barcode_detector.yaml b/configs/10.0/ffigen_mv_barcode_detector.yaml index 61b647f6..3464e60b 100644 --- a/configs/10.0/ffigen_mv_barcode_detector.yaml +++ b/configs/10.0/ffigen_mv_barcode_detector.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_barcode_detect.h' + - '**/mv_barcode_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/10.0/ffigen_mv_barcode_generator.yaml b/configs/10.0/ffigen_mv_barcode_generator.yaml index 2c8e8978..c8bb50a2 100644 --- a/configs/10.0/ffigen_mv_barcode_generator.yaml +++ b/configs/10.0/ffigen_mv_barcode_generator.yaml @@ -91,3 +91,6 @@ enums: rename: '_+(.*)': '$1' 'mv_barcode_type_e': '_mv_barcode_type_e' + 'mv_barcode_qr_mode_e': '_mv_barcode_qr_mode_e' + 'mv_barcode_qr_ecc_e': '_mv_barcode_qr_ecc_e' + 'mv_barcode_image_format_e': '_mv_barcode_image_format_e' diff --git a/configs/10.0/ffigen_mv_face.yaml b/configs/10.0/ffigen_mv_face.yaml index 2905dc10..c982d20f 100644 --- a/configs/10.0/ffigen_mv_face.yaml +++ b/configs/10.0/ffigen_mv_face.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_face.h' + - '**/mv_face_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/10.0/ffigen_mv_image.yaml b/configs/10.0/ffigen_mv_image.yaml index d2bea52f..86d0d37d 100644 --- a/configs/10.0/ffigen_mv_image.yaml +++ b/configs/10.0/ffigen_mv_image.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_image.h' + - '**/mv_image_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/10.0/ffigen_mv_inference.yaml b/configs/10.0/ffigen_mv_inference.yaml index 8f77cfe5..8451ceec 100644 --- a/configs/10.0/ffigen_mv_inference.yaml +++ b/configs/10.0/ffigen_mv_inference.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_inference.h' + - '**/mv_inference_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/10.0/ffigen_mv_landmark_detection.yaml b/configs/10.0/ffigen_mv_landmark_detection.yaml index e5e0b8b2..20d2de90 100644 --- a/configs/10.0/ffigen_mv_landmark_detection.yaml +++ b/configs/10.0/ffigen_mv_landmark_detection.yaml @@ -19,6 +19,8 @@ headers: include-directives: - '**/mv_facial_landmark.h' - '**/mv_facial_landmark_type.h' + - '**/mv_pose_landmark.h' + - '**/mv_pose_landmark_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/10.0/ffigen_tbm.yaml b/configs/10.0/ffigen_tbm.yaml index 5b7e2637..68ef4dd4 100644 --- a/configs/10.0/ffigen_tbm.yaml +++ b/configs/10.0/ffigen_tbm.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/tbm_surface.h' + - '**/tbm_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/entrypoints.h b/configs/6.0/entrypoints.h index c607db8a..93bf0b06 100644 --- a/configs/6.0/entrypoints.h +++ b/configs/6.0/entrypoints.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -52,6 +53,8 @@ #include #include #include +#include +#include #include #include #include @@ -62,6 +65,7 @@ // Base #include #include +#include // Content #include @@ -76,6 +80,7 @@ // Location #include +#include #include // Messaging @@ -91,35 +96,46 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include +#include #include #include #include +#include #include #include +#include #include +#include #include +#include #include #include #include #include #include +#include #include #include +#include #include #include +#include #include #include // Network #include #include +#include #include #include #include @@ -212,6 +228,7 @@ #include #include #include +#include #include #include #include @@ -221,6 +238,7 @@ #include #include #include +#include // UIX #include diff --git a/configs/6.0/ffigen_capi_base_common.yaml b/configs/6.0/ffigen_capi_base_common.yaml index 52df124a..05d478e1 100644 --- a/configs/6.0/ffigen_capi_base_common.yaml +++ b/configs/6.0/ffigen_capi_base_common.yaml @@ -17,6 +17,7 @@ headers: include-directives: - '**/tizen.h' - '**/tizen_error.h' + - '**tizen_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_geofence_manager.yaml b/configs/6.0/ffigen_capi_geofence_manager.yaml index 937a01fe..196bb441 100644 --- a/configs/6.0/ffigen_capi_geofence_manager.yaml +++ b/configs/6.0/ffigen_capi_geofence_manager.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/geofence_manager.h' + - '**/geofence_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_media_controller.yaml b/configs/6.0/ffigen_capi_media_controller.yaml index ac9e95c7..b4c20950 100644 --- a/configs/6.0/ffigen_capi_media_controller.yaml +++ b/configs/6.0/ffigen_capi_media_controller.yaml @@ -19,6 +19,7 @@ headers: - '**/media_controller_metadata.h' - '**/media_controller_playlist.h' - '**/media_controller_server.h' + - '**/media_controller_type.h' library-imports: bundle: 'generated_bindings_bundle.dart' diff --git a/configs/6.0/ffigen_capi_media_metadata_editor.yaml b/configs/6.0/ffigen_capi_media_metadata_editor.yaml index 3813fb1a..9984d1cf 100644 --- a/configs/6.0/ffigen_capi_media_metadata_editor.yaml +++ b/configs/6.0/ffigen_capi_media_metadata_editor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_editor.h' + - '**/metadata_editor_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_media_metadata_extractor.yaml b/configs/6.0/ffigen_capi_media_metadata_extractor.yaml index 3aa6e76b..bea9a46d 100644 --- a/configs/6.0/ffigen_capi_media_metadata_extractor.yaml +++ b/configs/6.0/ffigen_capi_media_metadata_extractor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_extractor.h' + - '**/metadata_extractor_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_media_screen_mirroring.yaml b/configs/6.0/ffigen_capi_media_screen_mirroring.yaml index fffc5a63..a573bf57 100644 --- a/configs/6.0/ffigen_capi_media_screen_mirroring.yaml +++ b/configs/6.0/ffigen_capi_media_screen_mirroring.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/scmirroring_sink.h' + - '**/scmirroring_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_media_sound_pool.yaml b/configs/6.0/ffigen_capi_media_sound_pool.yaml index cca195a7..2e63bce6 100644 --- a/configs/6.0/ffigen_capi_media_sound_pool.yaml +++ b/configs/6.0/ffigen_capi_media_sound_pool.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/sound_pool.h' + - '**/sound_pool_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_media_thumbnail_util.yaml b/configs/6.0/ffigen_capi_media_thumbnail_util.yaml index 2fadbcdb..6a63edcb 100644 --- a/configs/6.0/ffigen_capi_media_thumbnail_util.yaml +++ b/configs/6.0/ffigen_capi_media_thumbnail_util.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/thumbnail_util.h' + - '**/thumbnail_util_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_network_bluetooth.yaml b/configs/6.0/ffigen_capi_network_bluetooth.yaml index 70e03583..d8336316 100644 --- a/configs/6.0/ffigen_capi_network_bluetooth.yaml +++ b/configs/6.0/ffigen_capi_network_bluetooth.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/bluetooth.h' + - '**/bluetooth_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_capi_system_info.yaml b/configs/6.0/ffigen_capi_system_info.yaml index 15ae4022..c808ff28 100644 --- a/configs/6.0/ffigen_capi_system_info.yaml +++ b/configs/6.0/ffigen_capi_system_info.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/system_info.h' + - '**/system_info_type.h' compiler-opts: - '-m32' diff --git a/configs/6.0/ffigen_mv_barcode_detector.yaml b/configs/6.0/ffigen_mv_barcode_detector.yaml index 0ad0a0e3..b1bc16aa 100644 --- a/configs/6.0/ffigen_mv_barcode_detector.yaml +++ b/configs/6.0/ffigen_mv_barcode_detector.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_barcode_detect.h' + - '**/mv_barcode_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.0/ffigen_mv_barcode_generator.yaml b/configs/6.0/ffigen_mv_barcode_generator.yaml index f8522f86..6dfb7559 100644 --- a/configs/6.0/ffigen_mv_barcode_generator.yaml +++ b/configs/6.0/ffigen_mv_barcode_generator.yaml @@ -91,3 +91,6 @@ enums: rename: '_+(.*)': '$1' 'mv_barcode_type_e': '_mv_barcode_type_e' + 'mv_barcode_qr_mode_e': '_mv_barcode_qr_mode_e' + 'mv_barcode_qr_ecc_e': '_mv_barcode_qr_ecc_e' + 'mv_barcode_image_format_e': '_mv_barcode_image_format_e' diff --git a/configs/6.0/ffigen_mv_face.yaml b/configs/6.0/ffigen_mv_face.yaml index 1f18e650..a0aa70f7 100644 --- a/configs/6.0/ffigen_mv_face.yaml +++ b/configs/6.0/ffigen_mv_face.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_face.h' + - '**/mv_face_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.0/ffigen_mv_image.yaml b/configs/6.0/ffigen_mv_image.yaml index d09ad52c..109d1752 100644 --- a/configs/6.0/ffigen_mv_image.yaml +++ b/configs/6.0/ffigen_mv_image.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_image.h' + - '**/mv_image_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.0/ffigen_mv_inference.yaml b/configs/6.0/ffigen_mv_inference.yaml index 6bc39304..0d6d8868 100644 --- a/configs/6.0/ffigen_mv_inference.yaml +++ b/configs/6.0/ffigen_mv_inference.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_inference.h' + - '**/mv_inference_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.0/ffigen_tbm.yaml b/configs/6.0/ffigen_tbm.yaml index e658f18c..f607f763 100644 --- a/configs/6.0/ffigen_tbm.yaml +++ b/configs/6.0/ffigen_tbm.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/tbm_surface.h' + - '**/tbm_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/entrypoints.h b/configs/6.5/entrypoints.h index dd248ede..d355c9d0 100644 --- a/configs/6.5/entrypoints.h +++ b/configs/6.5/entrypoints.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -63,6 +64,8 @@ #include #include #include +#include +#include #include #include #include @@ -73,6 +76,7 @@ // Base #include #include +#include // Content #include @@ -87,6 +91,7 @@ // Location #include +#include #include // Machine Learning @@ -107,29 +112,39 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include +#include #include #include #include +#include #include #include +#include #include +#include #include +#include #include #include #include #include #include +#include #include #include +#include #include #include +#include #include #include #include @@ -137,6 +152,7 @@ // Network #include #include +#include #include #include #include @@ -228,6 +244,7 @@ #include #include #include +#include #include #include #include @@ -237,6 +254,7 @@ #include #include #include +#include // UIX #include diff --git a/configs/6.5/ffigen_capi_base_common.yaml b/configs/6.5/ffigen_capi_base_common.yaml index b8fed26d..14fc7609 100644 --- a/configs/6.5/ffigen_capi_base_common.yaml +++ b/configs/6.5/ffigen_capi_base_common.yaml @@ -17,6 +17,7 @@ headers: include-directives: - '**/tizen.h' - '**/tizen_error.h' + - '**tizen_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_geofence_manager.yaml b/configs/6.5/ffigen_capi_geofence_manager.yaml index 9a400124..1bfdcaf1 100644 --- a/configs/6.5/ffigen_capi_geofence_manager.yaml +++ b/configs/6.5/ffigen_capi_geofence_manager.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/geofence_manager.h' + - '**/geofence_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_media_controller.yaml b/configs/6.5/ffigen_capi_media_controller.yaml index 9293796b..2dd83a80 100644 --- a/configs/6.5/ffigen_capi_media_controller.yaml +++ b/configs/6.5/ffigen_capi_media_controller.yaml @@ -19,6 +19,7 @@ headers: - '**/media_controller_metadata.h' - '**/media_controller_playlist.h' - '**/media_controller_server.h' + - '**/media_controller_type.h' library-imports: bundle: 'generated_bindings_bundle.dart' diff --git a/configs/6.5/ffigen_capi_media_metadata_editor.yaml b/configs/6.5/ffigen_capi_media_metadata_editor.yaml index 5cbc6a1d..d6b7a121 100644 --- a/configs/6.5/ffigen_capi_media_metadata_editor.yaml +++ b/configs/6.5/ffigen_capi_media_metadata_editor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_editor.h' + - '**/metadata_editor_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_media_metadata_extractor.yaml b/configs/6.5/ffigen_capi_media_metadata_extractor.yaml index 2f3e8028..adf445ba 100644 --- a/configs/6.5/ffigen_capi_media_metadata_extractor.yaml +++ b/configs/6.5/ffigen_capi_media_metadata_extractor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_extractor.h' + - '**/metadata_extractor_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_media_screen_mirroring.yaml b/configs/6.5/ffigen_capi_media_screen_mirroring.yaml index afb1e2d1..a3917556 100644 --- a/configs/6.5/ffigen_capi_media_screen_mirroring.yaml +++ b/configs/6.5/ffigen_capi_media_screen_mirroring.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/scmirroring_sink.h' + - '**/scmirroring_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_media_sound_pool.yaml b/configs/6.5/ffigen_capi_media_sound_pool.yaml index 54105396..93539301 100644 --- a/configs/6.5/ffigen_capi_media_sound_pool.yaml +++ b/configs/6.5/ffigen_capi_media_sound_pool.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/sound_pool.h' + - '**/sound_pool_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_media_thumbnail_util.yaml b/configs/6.5/ffigen_capi_media_thumbnail_util.yaml index 10050b92..cdce0a1e 100644 --- a/configs/6.5/ffigen_capi_media_thumbnail_util.yaml +++ b/configs/6.5/ffigen_capi_media_thumbnail_util.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/thumbnail_util.h' + - '**/thumbnail_util_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_network_bluetooth.yaml b/configs/6.5/ffigen_capi_network_bluetooth.yaml index 67029a26..4842ff47 100644 --- a/configs/6.5/ffigen_capi_network_bluetooth.yaml +++ b/configs/6.5/ffigen_capi_network_bluetooth.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/bluetooth.h' + - '**/bluetooth_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_capi_system_info.yaml b/configs/6.5/ffigen_capi_system_info.yaml index 5fcf5d24..08ab255f 100644 --- a/configs/6.5/ffigen_capi_system_info.yaml +++ b/configs/6.5/ffigen_capi_system_info.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/system_info.h' + - '**/system_info_type.h' compiler-opts: - '-m32' diff --git a/configs/6.5/ffigen_mv_barcode_detector.yaml b/configs/6.5/ffigen_mv_barcode_detector.yaml index d97dab94..eeb23806 100644 --- a/configs/6.5/ffigen_mv_barcode_detector.yaml +++ b/configs/6.5/ffigen_mv_barcode_detector.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_barcode_detect.h' + - '**/mv_barcode_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.5/ffigen_mv_barcode_generator.yaml b/configs/6.5/ffigen_mv_barcode_generator.yaml index b3b73d1b..faa62285 100644 --- a/configs/6.5/ffigen_mv_barcode_generator.yaml +++ b/configs/6.5/ffigen_mv_barcode_generator.yaml @@ -93,3 +93,6 @@ enums: rename: '_+(.*)': '$1' 'mv_barcode_type_e': '_mv_barcode_type_e' + 'mv_barcode_qr_mode_e': '_mv_barcode_qr_mode_e' + 'mv_barcode_qr_ecc_e': '_mv_barcode_qr_ecc_e' + 'mv_barcode_image_format_e': '_mv_barcode_image_format_e' \ No newline at end of file diff --git a/configs/6.5/ffigen_mv_face.yaml b/configs/6.5/ffigen_mv_face.yaml index fbc0b77e..33c9974f 100644 --- a/configs/6.5/ffigen_mv_face.yaml +++ b/configs/6.5/ffigen_mv_face.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_face.h' + - '**/mv_face_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.5/ffigen_mv_image.yaml b/configs/6.5/ffigen_mv_image.yaml index a00a2913..810ad04e 100644 --- a/configs/6.5/ffigen_mv_image.yaml +++ b/configs/6.5/ffigen_mv_image.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_image.h' + - '**/mv_image_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.5/ffigen_mv_inference.yaml b/configs/6.5/ffigen_mv_inference.yaml index 56dbfed5..1ecbd991 100644 --- a/configs/6.5/ffigen_mv_inference.yaml +++ b/configs/6.5/ffigen_mv_inference.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_inference.h' + - '**/mv_inference_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/6.5/ffigen_tbm.yaml b/configs/6.5/ffigen_tbm.yaml index 9c2a28c6..6ff2cf68 100644 --- a/configs/6.5/ffigen_tbm.yaml +++ b/configs/6.5/ffigen_tbm.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/tbm_surface.h' + - '**/tbm_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/entrypoints.h b/configs/7.0/entrypoints.h index dfaa8556..267af5f5 100644 --- a/configs/7.0/entrypoints.h +++ b/configs/7.0/entrypoints.h @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -64,6 +65,8 @@ #include #include #include +#include +#include #include #include #include @@ -73,6 +76,7 @@ // Base #include #include +#include // Content #include @@ -85,6 +89,7 @@ // Location #include +#include #include // Machine Learning @@ -107,6 +112,7 @@ #include #include #include +#include #include #include #include @@ -114,26 +120,36 @@ #include #include #include +#include #include +#include #include #include #include #include +#include #include #include #include +#include +#include #include +#include #include +#include #include #include #include #include #include #include +#include #include #include +#include #include #include +#include #include #include #include @@ -141,6 +157,7 @@ // Network #include #include +#include #include #include #include @@ -234,6 +251,7 @@ #include #include #include +#include #include #include #include @@ -243,6 +261,7 @@ #include #include #include +#include // UIX #include diff --git a/configs/7.0/ffigen_capi_base_common.yaml b/configs/7.0/ffigen_capi_base_common.yaml index f915abe7..0896b8c6 100644 --- a/configs/7.0/ffigen_capi_base_common.yaml +++ b/configs/7.0/ffigen_capi_base_common.yaml @@ -17,6 +17,7 @@ headers: include-directives: - '**/tizen.h' - '**/tizen_error.h' + - '**tizen_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_geofence_manager.yaml b/configs/7.0/ffigen_capi_geofence_manager.yaml index 15f1bbb7..6ea548d5 100644 --- a/configs/7.0/ffigen_capi_geofence_manager.yaml +++ b/configs/7.0/ffigen_capi_geofence_manager.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/geofence_manager.h' + - '**/geofence_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_media_controller.yaml b/configs/7.0/ffigen_capi_media_controller.yaml index 74f0e91d..b575fe43 100644 --- a/configs/7.0/ffigen_capi_media_controller.yaml +++ b/configs/7.0/ffigen_capi_media_controller.yaml @@ -19,6 +19,7 @@ headers: - '**/media_controller_metadata.h' - '**/media_controller_playlist.h' - '**/media_controller_server.h' + - '**/media_controller_type.h' library-imports: bundle: 'generated_bindings_bundle.dart' diff --git a/configs/7.0/ffigen_capi_media_metadata_editor.yaml b/configs/7.0/ffigen_capi_media_metadata_editor.yaml index ff84ea40..02e56f3c 100644 --- a/configs/7.0/ffigen_capi_media_metadata_editor.yaml +++ b/configs/7.0/ffigen_capi_media_metadata_editor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_editor.h' + - '**/metadata_editor_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_media_metadata_extractor.yaml b/configs/7.0/ffigen_capi_media_metadata_extractor.yaml index 3af945c9..6c329cb7 100644 --- a/configs/7.0/ffigen_capi_media_metadata_extractor.yaml +++ b/configs/7.0/ffigen_capi_media_metadata_extractor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_extractor.h' + - '**/metadata_extractor_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_media_screen_mirroring.yaml b/configs/7.0/ffigen_capi_media_screen_mirroring.yaml index 403e547a..c057692d 100644 --- a/configs/7.0/ffigen_capi_media_screen_mirroring.yaml +++ b/configs/7.0/ffigen_capi_media_screen_mirroring.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/scmirroring_sink.h' + - '**/scmirroring_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_media_sound_pool.yaml b/configs/7.0/ffigen_capi_media_sound_pool.yaml index a7358c64..800b3730 100644 --- a/configs/7.0/ffigen_capi_media_sound_pool.yaml +++ b/configs/7.0/ffigen_capi_media_sound_pool.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/sound_pool.h' + - '**/sound_pool_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_media_thumbnail_util.yaml b/configs/7.0/ffigen_capi_media_thumbnail_util.yaml index 7c1110b9..da510ab2 100644 --- a/configs/7.0/ffigen_capi_media_thumbnail_util.yaml +++ b/configs/7.0/ffigen_capi_media_thumbnail_util.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/thumbnail_util.h' + - '**/thumbnail_util_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_network_bluetooth.yaml b/configs/7.0/ffigen_capi_network_bluetooth.yaml index 27447805..2137327a 100644 --- a/configs/7.0/ffigen_capi_network_bluetooth.yaml +++ b/configs/7.0/ffigen_capi_network_bluetooth.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/bluetooth.h' + - '**/bluetooth_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_capi_system_info.yaml b/configs/7.0/ffigen_capi_system_info.yaml index 0508045b..38549ee4 100644 --- a/configs/7.0/ffigen_capi_system_info.yaml +++ b/configs/7.0/ffigen_capi_system_info.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/system_info.h' + - '**/system_info_type.h' compiler-opts: - '-m32' diff --git a/configs/7.0/ffigen_mv_barcode_detector.yaml b/configs/7.0/ffigen_mv_barcode_detector.yaml index 8cd20671..53446386 100644 --- a/configs/7.0/ffigen_mv_barcode_detector.yaml +++ b/configs/7.0/ffigen_mv_barcode_detector.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_barcode_detect.h' + - '**/mv_barcode_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/7.0/ffigen_mv_barcode_generator.yaml b/configs/7.0/ffigen_mv_barcode_generator.yaml index 53eb93a0..9b0d6c7f 100644 --- a/configs/7.0/ffigen_mv_barcode_generator.yaml +++ b/configs/7.0/ffigen_mv_barcode_generator.yaml @@ -92,3 +92,6 @@ enums: rename: '_+(.*)': '$1' 'mv_barcode_type_e': '_mv_barcode_type_e' + 'mv_barcode_qr_mode_e': '_mv_barcode_qr_mode_e' + 'mv_barcode_qr_ecc_e': '_mv_barcode_qr_ecc_e' + 'mv_barcode_image_format_e': '_mv_barcode_image_format_e' \ No newline at end of file diff --git a/configs/7.0/ffigen_mv_face.yaml b/configs/7.0/ffigen_mv_face.yaml index 1861c5a1..24acccc6 100644 --- a/configs/7.0/ffigen_mv_face.yaml +++ b/configs/7.0/ffigen_mv_face.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_face.h' + - '**/mv_face_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/7.0/ffigen_mv_image.yaml b/configs/7.0/ffigen_mv_image.yaml index 365fa25b..81af5580 100644 --- a/configs/7.0/ffigen_mv_image.yaml +++ b/configs/7.0/ffigen_mv_image.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_image.h' + - '**/mv_image_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/7.0/ffigen_mv_inference.yaml b/configs/7.0/ffigen_mv_inference.yaml index 22f4d75a..26dbde69 100644 --- a/configs/7.0/ffigen_mv_inference.yaml +++ b/configs/7.0/ffigen_mv_inference.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_inference.h' + - '**/mv_inference_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/7.0/ffigen_tbm.yaml b/configs/7.0/ffigen_tbm.yaml index 80cc660a..5ed3f0df 100644 --- a/configs/7.0/ffigen_tbm.yaml +++ b/configs/7.0/ffigen_tbm.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/tbm_surface.h' + - '**/tbm_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/entrypoints.h b/configs/8.0/entrypoints.h index 95f06e6a..13db7b81 100644 --- a/configs/8.0/entrypoints.h +++ b/configs/8.0/entrypoints.h @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -64,6 +65,8 @@ #include #include #include +#include +#include #include #include #include @@ -109,6 +112,7 @@ #include #include #include +#include #include #include #include @@ -116,26 +120,36 @@ #include #include #include +#include #include +#include #include #include #include #include +#include #include #include #include +#include +#include #include +#include #include +#include #include #include #include #include #include #include +#include #include #include +#include #include //deprecated #include +#include #include #include #include @@ -143,6 +157,7 @@ // Network #include #include +#include #include #include #include @@ -236,6 +251,7 @@ #include #include #include +#include #include #include #include @@ -244,6 +260,7 @@ // UI #include // deprecated #include +#include // UIX #include diff --git a/configs/8.0/ffigen_capi_base_common.yaml b/configs/8.0/ffigen_capi_base_common.yaml index bf281436..01912d75 100644 --- a/configs/8.0/ffigen_capi_base_common.yaml +++ b/configs/8.0/ffigen_capi_base_common.yaml @@ -17,6 +17,7 @@ headers: include-directives: - '**/tizen.h' - '**/tizen_error.h' + - '**tizen_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_geofence_manager.yaml b/configs/8.0/ffigen_capi_geofence_manager.yaml index ed90f332..6a78d9ab 100644 --- a/configs/8.0/ffigen_capi_geofence_manager.yaml +++ b/configs/8.0/ffigen_capi_geofence_manager.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/geofence_manager.h' + - '**/geofence_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_media_controller.yaml b/configs/8.0/ffigen_capi_media_controller.yaml index 8ff6564d..fb012d69 100644 --- a/configs/8.0/ffigen_capi_media_controller.yaml +++ b/configs/8.0/ffigen_capi_media_controller.yaml @@ -19,6 +19,7 @@ headers: - '**/media_controller_metadata.h' - '**/media_controller_playlist.h' - '**/media_controller_server.h' + - '**/media_controller_type.h' library-imports: bundle: 'generated_bindings_bundle.dart' diff --git a/configs/8.0/ffigen_capi_media_metadata_editor.yaml b/configs/8.0/ffigen_capi_media_metadata_editor.yaml index 775fa6ab..1954d09b 100644 --- a/configs/8.0/ffigen_capi_media_metadata_editor.yaml +++ b/configs/8.0/ffigen_capi_media_metadata_editor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_editor.h' + - '**/metadata_editor_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_media_metadata_extractor.yaml b/configs/8.0/ffigen_capi_media_metadata_extractor.yaml index 7ead07bf..a4334210 100644 --- a/configs/8.0/ffigen_capi_media_metadata_extractor.yaml +++ b/configs/8.0/ffigen_capi_media_metadata_extractor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_extractor.h' + - '**/metadata_extractor_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_media_screen_mirroring.yaml b/configs/8.0/ffigen_capi_media_screen_mirroring.yaml index 0d7175ab..6a3498f0 100644 --- a/configs/8.0/ffigen_capi_media_screen_mirroring.yaml +++ b/configs/8.0/ffigen_capi_media_screen_mirroring.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/scmirroring_sink.h' + - '**/scmirroring_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_media_sound_pool.yaml b/configs/8.0/ffigen_capi_media_sound_pool.yaml index 67fb0827..9b431645 100644 --- a/configs/8.0/ffigen_capi_media_sound_pool.yaml +++ b/configs/8.0/ffigen_capi_media_sound_pool.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/sound_pool.h' + - '**/sound_pool_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_media_thumbnail_util.yaml b/configs/8.0/ffigen_capi_media_thumbnail_util.yaml index f4b54c0a..d3074fc5 100644 --- a/configs/8.0/ffigen_capi_media_thumbnail_util.yaml +++ b/configs/8.0/ffigen_capi_media_thumbnail_util.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/thumbnail_util.h' + - '**/thumbnail_util_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_network_bluetooth.yaml b/configs/8.0/ffigen_capi_network_bluetooth.yaml index f5c96f00..265b448d 100644 --- a/configs/8.0/ffigen_capi_network_bluetooth.yaml +++ b/configs/8.0/ffigen_capi_network_bluetooth.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/bluetooth.h' + - '**/bluetooth_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_capi_system_info.yaml b/configs/8.0/ffigen_capi_system_info.yaml index c2a43e80..e81f29f6 100644 --- a/configs/8.0/ffigen_capi_system_info.yaml +++ b/configs/8.0/ffigen_capi_system_info.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/system_info.h' + - '**/system_info_type.h' compiler-opts: - '-m32' diff --git a/configs/8.0/ffigen_mv_barcode_detector.yaml b/configs/8.0/ffigen_mv_barcode_detector.yaml index f7fe175a..704a197c 100644 --- a/configs/8.0/ffigen_mv_barcode_detector.yaml +++ b/configs/8.0/ffigen_mv_barcode_detector.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_barcode_detect.h' + - '**/mv_barcode_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/8.0/ffigen_mv_barcode_generator.yaml b/configs/8.0/ffigen_mv_barcode_generator.yaml index 576889c5..7a6645e5 100644 --- a/configs/8.0/ffigen_mv_barcode_generator.yaml +++ b/configs/8.0/ffigen_mv_barcode_generator.yaml @@ -92,3 +92,6 @@ enums: rename: '_+(.*)': '$1' 'mv_barcode_type_e': '_mv_barcode_type_e' + 'mv_barcode_qr_mode_e': '_mv_barcode_qr_mode_e' + 'mv_barcode_qr_ecc_e': '_mv_barcode_qr_ecc_e' + 'mv_barcode_image_format_e': '_mv_barcode_image_format_e' \ No newline at end of file diff --git a/configs/8.0/ffigen_mv_face.yaml b/configs/8.0/ffigen_mv_face.yaml index d1142ceb..ed569191 100644 --- a/configs/8.0/ffigen_mv_face.yaml +++ b/configs/8.0/ffigen_mv_face.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_face.h' + - '**/mv_face_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/8.0/ffigen_mv_image.yaml b/configs/8.0/ffigen_mv_image.yaml index af04c1c0..7c5867de 100644 --- a/configs/8.0/ffigen_mv_image.yaml +++ b/configs/8.0/ffigen_mv_image.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_image.h' + - '**/mv_image_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/8.0/ffigen_mv_inference.yaml b/configs/8.0/ffigen_mv_inference.yaml index 9db5e990..d273a9b7 100644 --- a/configs/8.0/ffigen_mv_inference.yaml +++ b/configs/8.0/ffigen_mv_inference.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_inference.h' + - '**/mv_inference_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/8.0/ffigen_tbm.yaml b/configs/8.0/ffigen_tbm.yaml index 24ff11f4..f3d2fecc 100644 --- a/configs/8.0/ffigen_tbm.yaml +++ b/configs/8.0/ffigen_tbm.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/tbm_surface.h' + - '**/tbm_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/entrypoints.h b/configs/9.0/entrypoints.h index 6a0bc030..e7dd297c 100644 --- a/configs/9.0/entrypoints.h +++ b/configs/9.0/entrypoints.h @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -64,6 +65,8 @@ #include #include #include +#include +#include #include #include #include @@ -112,35 +115,52 @@ #include #include #include +#include #include #include #include #include #include -#include //deprecated +#include //deprecated +#include //deprecated #include +#include #include #include #include #include +#include #include #include //deprecated +#include +#include #include +#include +#include //deprecated #include +#include #include //deprecated #include -#include //deprecated +#include +#include //deprecated +#include //deprecated +#include //deprecated #include +#include #include +#include #include #include //deprecated #include #include #include #include +#include #include #include +#include #include +#include #include #include #include @@ -148,6 +168,7 @@ // Network #include //deprecated #include +#include #include #include #include @@ -245,6 +266,7 @@ #include #include #include +#include #include #include #include @@ -253,6 +275,7 @@ // UI #include // deprecated #include +#include // UIX #include diff --git a/configs/9.0/ffigen_capi_base_common.yaml b/configs/9.0/ffigen_capi_base_common.yaml index 252028ed..89d81e44 100644 --- a/configs/9.0/ffigen_capi_base_common.yaml +++ b/configs/9.0/ffigen_capi_base_common.yaml @@ -17,6 +17,7 @@ headers: include-directives: - '**/tizen.h' - '**/tizen_error.h' + - '**tizen_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_geofence_manager.yaml b/configs/9.0/ffigen_capi_geofence_manager.yaml index 6689a61a..df19e214 100644 --- a/configs/9.0/ffigen_capi_geofence_manager.yaml +++ b/configs/9.0/ffigen_capi_geofence_manager.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/geofence_manager.h' + - '**/geofence_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_media_controller.yaml b/configs/9.0/ffigen_capi_media_controller.yaml index cd717257..eeb3864d 100644 --- a/configs/9.0/ffigen_capi_media_controller.yaml +++ b/configs/9.0/ffigen_capi_media_controller.yaml @@ -19,6 +19,7 @@ headers: - '**/media_controller_metadata.h' - '**/media_controller_playlist.h' - '**/media_controller_server.h' + - '**/media_controller_type.h' library-imports: bundle: 'generated_bindings_bundle.dart' diff --git a/configs/9.0/ffigen_capi_media_metadata_editor.yaml b/configs/9.0/ffigen_capi_media_metadata_editor.yaml index d300c32a..5cd66d69 100644 --- a/configs/9.0/ffigen_capi_media_metadata_editor.yaml +++ b/configs/9.0/ffigen_capi_media_metadata_editor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_editor.h' + - '**/metadata_editor_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_media_metadata_extractor.yaml b/configs/9.0/ffigen_capi_media_metadata_extractor.yaml index 26cc1bb8..a0c8960d 100644 --- a/configs/9.0/ffigen_capi_media_metadata_extractor.yaml +++ b/configs/9.0/ffigen_capi_media_metadata_extractor.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/metadata_extractor.h' + - '**/metadata_extractor_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_media_screen_mirroring.yaml b/configs/9.0/ffigen_capi_media_screen_mirroring.yaml index 5c5ef645..a9b59d49 100644 --- a/configs/9.0/ffigen_capi_media_screen_mirroring.yaml +++ b/configs/9.0/ffigen_capi_media_screen_mirroring.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/scmirroring_sink.h' + - '**/scmirroring_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_media_sound_pool.yaml b/configs/9.0/ffigen_capi_media_sound_pool.yaml index 2b689a9d..434fcf1d 100644 --- a/configs/9.0/ffigen_capi_media_sound_pool.yaml +++ b/configs/9.0/ffigen_capi_media_sound_pool.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/sound_pool.h' + - '**/sound_pool_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_media_thumbnail_util.yaml b/configs/9.0/ffigen_capi_media_thumbnail_util.yaml index a59c38f2..80737131 100644 --- a/configs/9.0/ffigen_capi_media_thumbnail_util.yaml +++ b/configs/9.0/ffigen_capi_media_thumbnail_util.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/thumbnail_util.h' + - '**/thumbnail_util_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_network_bluetooth.yaml b/configs/9.0/ffigen_capi_network_bluetooth.yaml index fed8de76..a63a9dd2 100644 --- a/configs/9.0/ffigen_capi_network_bluetooth.yaml +++ b/configs/9.0/ffigen_capi_network_bluetooth.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/bluetooth.h' + - '**/bluetooth_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_capi_system_info.yaml b/configs/9.0/ffigen_capi_system_info.yaml index ffb136ef..98205b92 100644 --- a/configs/9.0/ffigen_capi_system_info.yaml +++ b/configs/9.0/ffigen_capi_system_info.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/system_info.h' + - '**/system_info_type.h' compiler-opts: - '-m32' diff --git a/configs/9.0/ffigen_mv_barcode_detector.yaml b/configs/9.0/ffigen_mv_barcode_detector.yaml index ce0f4725..c51772be 100644 --- a/configs/9.0/ffigen_mv_barcode_detector.yaml +++ b/configs/9.0/ffigen_mv_barcode_detector.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_barcode_detect.h' + - '**/mv_barcode_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/9.0/ffigen_mv_barcode_generator.yaml b/configs/9.0/ffigen_mv_barcode_generator.yaml index 2a183e53..54eb4781 100644 --- a/configs/9.0/ffigen_mv_barcode_generator.yaml +++ b/configs/9.0/ffigen_mv_barcode_generator.yaml @@ -95,3 +95,6 @@ enums: rename: '_+(.*)': '$1' 'mv_barcode_type_e': '_mv_barcode_type_e' + 'mv_barcode_qr_mode_e': '_mv_barcode_qr_mode_e' + 'mv_barcode_qr_ecc_e': '_mv_barcode_qr_ecc_e' + 'mv_barcode_image_format_e': '_mv_barcode_image_format_e' diff --git a/configs/9.0/ffigen_mv_face.yaml b/configs/9.0/ffigen_mv_face.yaml index 3e01eb15..3e16916f 100644 --- a/configs/9.0/ffigen_mv_face.yaml +++ b/configs/9.0/ffigen_mv_face.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_face.h' + - '**/mv_face_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/9.0/ffigen_mv_image.yaml b/configs/9.0/ffigen_mv_image.yaml index 3add22e3..93931ec7 100644 --- a/configs/9.0/ffigen_mv_image.yaml +++ b/configs/9.0/ffigen_mv_image.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_image.h' + - '**/mv_image_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/9.0/ffigen_mv_inference.yaml b/configs/9.0/ffigen_mv_inference.yaml index 9d2847cc..f5691539 100644 --- a/configs/9.0/ffigen_mv_inference.yaml +++ b/configs/9.0/ffigen_mv_inference.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/mv_inference.h' + - '**/mv_inference_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/9.0/ffigen_mv_landmark_detection.yaml b/configs/9.0/ffigen_mv_landmark_detection.yaml index f629ee65..f812e2b7 100644 --- a/configs/9.0/ffigen_mv_landmark_detection.yaml +++ b/configs/9.0/ffigen_mv_landmark_detection.yaml @@ -19,6 +19,8 @@ headers: include-directives: - '**/mv_facial_landmark.h' - '**/mv_facial_landmark_type.h' + - '**/mv_pose_landmark.h' + - '**/mv_pose_landmark_type.h' library-imports: mv_common: 'generated_bindings_mv_common.dart' diff --git a/configs/9.0/ffigen_tbm.yaml b/configs/9.0/ffigen_tbm.yaml index 82390164..53a441b6 100644 --- a/configs/9.0/ffigen_tbm.yaml +++ b/configs/9.0/ffigen_tbm.yaml @@ -16,6 +16,7 @@ headers: - 'entrypoints.h' include-directives: - '**/tbm_surface.h' + - '**/tbm_type.h' compiler-opts: - '-m32' diff --git a/lib/src/bindings/10.0/generated_bindings_capi_base_common.dart b/lib/src/bindings/10.0/generated_bindings_capi_base_common.dart index 1f1d021f..23d098ca 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_base_common.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_base_common.dart @@ -386,6 +386,8 @@ abstract class tizen_error_e { static const int TIZEN_ERROR_END_OF_COLLECTION = -1073741819; } +const int NULL = 0; + const int TIZEN_ERROR_MAX_PLATFORM_ERROR = 0; const int TIZEN_ERROR_MIN_PLATFORM_ERROR = -1073741824; diff --git a/lib/src/bindings/10.0/generated_bindings_capi_media_controller.dart b/lib/src/bindings/10.0/generated_bindings_capi_media_controller.dart index 5622ec67..4de5be3a 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_media_controller.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_media_controller.dart @@ -6452,6 +6452,535 @@ class Tizen100CapiMediaController { .asFunction)>(); } +/// @brief Enumeration for the media controller error. +/// @since_tizen 2.4 +abstract class mc_error_e { + /// < Successful + static const int MEDIA_CONTROLLER_ERROR_NONE = 0; + + /// < Invalid parameter + static const int MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int MEDIA_CONTROLLER_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED = -13; + + /// < Limited by server application (since 5.5) + static const int MEDIA_CONTROLLER_ERROR_ABILITY_LIMITED_BY_SERVER_APP = + -50462719; +} + +/// @brief Enumeration for the media controller server state. +/// @since_tizen 2.4 +/// +/// @see mc_client_get_latest_server_info() +/// @see mc_server_state_updated_cb() +abstract class mc_server_state_e { + /// < None state + static const int MC_SERVER_STATE_NONE = 0; + + /// < Activate state + static const int MC_SERVER_STATE_ACTIVATE = 1; + + /// < Deactivate state + static const int MC_SERVER_STATE_DEACTIVATE = 2; +} + +/// @brief Enumeration for the media meta info. +/// @since_tizen 2.4 +/// +/// @see mc_server_set_metadata() +/// @see mc_server_add_item_to_playlist() +/// @see mc_metadata_get() +abstract class mc_meta_e { + /// < Title + static const int MC_META_MEDIA_TITLE = 0; + + /// < Artist + static const int MC_META_MEDIA_ARTIST = 1; + + /// < Album + static const int MC_META_MEDIA_ALBUM = 2; + + /// < Author + static const int MC_META_MEDIA_AUTHOR = 3; + + /// < Genre + static const int MC_META_MEDIA_GENRE = 4; + + /// < Duration + static const int MC_META_MEDIA_DURATION = 5; + + /// < Date + static const int MC_META_MEDIA_DATE = 6; + + /// < Copyright + static const int MC_META_MEDIA_COPYRIGHT = 7; + + /// < Description + static const int MC_META_MEDIA_DESCRIPTION = 8; + + /// < Track Number + static const int MC_META_MEDIA_TRACK_NUM = 9; + + /// < Picture. Album Art + static const int MC_META_MEDIA_PICTURE = 10; + + /// < Season (Since 5.5) + static const int MC_META_MEDIA_SEASON = 11; + + /// < Episode (Since 5.5) + static const int MC_META_MEDIA_EPISODE = 12; + + /// < Content resolution (Since 5.5) + static const int MC_META_MEDIA_RESOLUTION = 13; +} + +/// @brief Enumeration for the media playback state of the media controller server. +/// @since_tizen 2.4 +/// +/// @see mc_server_set_playback_state() +/// @see mc_client_get_playback_state() +abstract class mc_playback_states_e { + /// < None + static const int MC_PLAYBACK_STATE_NONE = 0; + + /// < Playing + static const int MC_PLAYBACK_STATE_PLAYING = 1; + + /// < Paused + static const int MC_PLAYBACK_STATE_PAUSED = 2; + + /// < Stopped + static const int MC_PLAYBACK_STATE_STOPPED = 3; + + /// < Moving to the next item (Since 4.0) + static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; + + /// < Moving to the previous item (Since 4.0) + static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; + + /// < Fast forwarding (Since 4.0) + static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; + + /// < Rewinding (Since 4.0) + static const int MC_PLAYBACK_STATE_REWINDING = 11; + + /// < Connecting (Since 6.0) + static const int MC_PLAYBACK_STATE_CONNECTING = 12; + + /// < Buffering (Since 6.0) + static const int MC_PLAYBACK_STATE_BUFFERING = 13; + + /// < Error (Since 6.0) + static const int MC_PLAYBACK_STATE_ERROR = 14; +} + +/// @brief Enumeration for the media playback action. +/// @details Media controller clients can control media controller server's playback by calling mc_client_send_playback_action_cmd() or mc_client_send_playlist_cmd(). \n +/// Media controller servers have to set proper playback ability by using mc_server_set_playback_ability(). +/// @since_tizen 4.0 +/// +/// @see mc_server_set_playback_ability() +/// @see mc_client_send_playback_action_cmd() +/// @see mc_client_send_playlist_cmd() +/// @see mc_playback_action_is_supported() +/// @see mc_server_playback_action_cmd_received_cb() +/// @see mc_server_playlist_cmd_received_cb() +abstract class mc_playback_action_e { + /// < Play + static const int MC_PLAYBACK_ACTION_PLAY = 0; + + /// < Pause + static const int MC_PLAYBACK_ACTION_PAUSE = 1; + + /// < Stop + static const int MC_PLAYBACK_ACTION_STOP = 2; + + /// < Next item + static const int MC_PLAYBACK_ACTION_NEXT = 3; + + /// < Previous item + static const int MC_PLAYBACK_ACTION_PREV = 4; + + /// < Fast forward + static const int MC_PLAYBACK_ACTION_FAST_FORWARD = 5; + + /// < Rewind + static const int MC_PLAYBACK_ACTION_REWIND = 6; + + /// < Play/Pause toggle + static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; +} + +/// @brief Enumeration for the shuffle mode of the media controller server. +/// @since_tizen 2.4 +/// +/// @see mc_server_update_shuffle_mode() +/// @see mc_server_shuffle_mode_cmd_received_cb() +/// @see mc_client_get_server_shuffle_mode() +/// @see mc_client_send_shuffle_mode_cmd() +/// @see mc_shuffle_mode_updated_cb() +abstract class mc_shuffle_mode_e { + /// < Shuffle mode on + static const int MC_SHUFFLE_MODE_ON = 0; + + /// < Shuffle mode off + static const int MC_SHUFFLE_MODE_OFF = 1; +} + +/// @brief Enumeration for the repeat mode of the media controller server. +/// @since_tizen 2.4 +/// +/// @see mc_server_update_repeat_mode() +/// @see mc_server_repeat_mode_cmd_received_cb() +/// @see mc_client_get_server_repeat_mode() +/// @see mc_client_send_repeat_mode_cmd() +/// @see mc_repeat_mode_updated_cb() +abstract class mc_repeat_mode_e { + /// < Repeat mode on for all media + static const int MC_REPEAT_MODE_ON = 0; + + /// < Repeat mode off + static const int MC_REPEAT_MODE_OFF = 1; + + /// < Repeat mode on for one media (Since 4.0) + static const int MC_REPEAT_MODE_ONE_MEDIA = 2; +} + +/// @brief Enumeration for the subscription type of the media controller client. +/// @since_tizen 2.4 +/// +/// @see mc_client_subscribe() +/// @see mc_client_unsubscribe() +/// @see mc_client_foreach_server_subscribed() +abstract class mc_subscription_type_e { + /// < Server state + static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; + + /// < Playback + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; + + /// < Metadata + static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; + + /// < Shuffle mode + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; + + /// < Repeat mode + static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; + + /// < Playlist (Since 4.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; + + /// < Playback ability (Since 5.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; + + /// < Ability support (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; + + /// < Display mode ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; + + /// < Display rotation ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; +} + +/// @brief Enumeration for the playlist update mode. +/// @details Media controller clients can know the playlist change status of the media controller server by calling mc_client_set_playlist_updated_cb(). \n +/// @since_tizen 4.0 +/// +/// @see mc_client_set_playlist_updated_cb() +/// @see mc_playlist_updated_cb() +/// @see mc_server_update_playlist_done() +/// @see mc_server_delete_playlist() +abstract class mc_playlist_update_mode_e { + /// < Create or Update playlist + static const int MC_PLAYLIST_UPDATED = 0; + + /// < Remove playlist + static const int MC_PLAYLIST_REMOVED = 1; +} + +/// @brief Enumeration for the content type of the media content by the media controller server. +/// @details Media controller clients can use this to know the playback status of the media controller server. \n +/// And media controller clients can also use to search for the content provided by the media controller server. +/// @since_tizen 5.0 +/// +/// @see mc_server_set_playback_content_type() +/// @see mc_client_get_playback_content_type() +/// @see mc_search_set_condition() +abstract class mc_content_type_e { + /// < Image content type + static const int MC_CONTENT_TYPE_IMAGE = 0; + + /// < Video content type + static const int MC_CONTENT_TYPE_VIDEO = 1; + + /// < Music content type + static const int MC_CONTENT_TYPE_MUSIC = 2; + + /// < Other content type + static const int MC_CONTENT_TYPE_OTHER = 3; + + /// < Not decided + static const int MC_CONTENT_TYPE_UNDECIDED = 4; +} + +/// @brief Enumeration for the content age rating of the media content by the media controller server. +/// @since_tizen 5.0 +/// +/// @see mc_server_set_content_age_rating() +/// @see mc_client_get_age_rating() +abstract class mc_content_age_rating_e { + /// < Suitable for all ages + static const int MC_CONTENT_RATING_ALL = 0; + + /// < Suitable for ages 1 and up + static const int MC_CONTENT_RATING_1_PLUS = 1; + + /// < Suitable for ages 2 and up + static const int MC_CONTENT_RATING_2_PLUS = 2; + + /// < Suitable for ages 3 and up + static const int MC_CONTENT_RATING_3_PLUS = 3; + + /// < Suitable for ages 4 and up + static const int MC_CONTENT_RATING_4_PLUS = 4; + + /// < Suitable for ages 5 and up + static const int MC_CONTENT_RATING_5_PLUS = 5; + + /// < Suitable for ages 6 and up + static const int MC_CONTENT_RATING_6_PLUS = 6; + + /// < Suitable for ages 7 and up + static const int MC_CONTENT_RATING_7_PLUS = 7; + + /// < Suitable for ages 8 and up + static const int MC_CONTENT_RATING_8_PLUS = 8; + + /// < Suitable for ages 9 and up + static const int MC_CONTENT_RATING_9_PLUS = 9; + + /// < Suitable for ages 10 and up + static const int MC_CONTENT_RATING_10_PLUS = 10; + + /// < Suitable for ages 11 and up + static const int MC_CONTENT_RATING_11_PLUS = 11; + + /// < Suitable for ages 12 and up + static const int MC_CONTENT_RATING_12_PLUS = 12; + + /// < Suitable for ages 13 and up + static const int MC_CONTENT_RATING_13_PLUS = 13; + + /// < Suitable for ages 14 and up + static const int MC_CONTENT_RATING_14_PLUS = 14; + + /// < Suitable for ages 15 and up + static const int MC_CONTENT_RATING_15_PLUS = 15; + + /// < Suitable for ages 16 and up + static const int MC_CONTENT_RATING_16_PLUS = 16; + + /// < Suitable for ages 17 and up + static const int MC_CONTENT_RATING_17_PLUS = 17; + + /// < Suitable for ages 18 and up + static const int MC_CONTENT_RATING_18_PLUS = 18; + + /// < Suitable for ages 19 and up + static const int MC_CONTENT_RATING_19_PLUS = 19; +} + +/// @brief Enumeration for the support of the ability by the media controller server. +/// @since_tizen 5.0 +/// +/// @remarks The media controller server should set the proper abilities. \n +/// Only then can media controller clients send the appropriate control commands. +/// +/// @see mc_server_set_playback_ability() +/// @see mc_server_set_ability_support() +/// @see mc_server_set_display_mode_ability() +/// @see mc_server_set_display_rotation_ability() +/// @see mc_client_get_server_ability_support() +/// @see mc_ability_support_updated_cb() +/// @see mc_playback_action_is_supported() +abstract class mc_ability_support_e { + /// < Supported + static const int MC_ABILITY_SUPPORTED_YES = 0; + + /// < Not supported + static const int MC_ABILITY_SUPPORTED_NO = 1; + + /// < Not decided + static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +} + +/// @brief Enumeration for the ability of the media controller server. +/// @since_tizen 5.5 +/// +/// @see mc_server_set_ability_support() +/// @see mc_client_get_server_ability_support() +/// @see mc_ability_support_updated_cb() +abstract class mc_ability_e { + /// < Shuffle + static const int MC_ABILITY_SHUFFLE = 0; + + /// < Repeat + static const int MC_ABILITY_REPEAT = 1; + + /// < Playback Position + static const int MC_ABILITY_PLAYBACK_POSITION = 2; + + /// < Playlist + static const int MC_ABILITY_PLAYLIST = 3; + + /// < Custom command from a client + static const int MC_ABILITY_CLIENT_CUSTOM = 4; + + /// < Search + static const int MC_ABILITY_SEARCH = 5; + + /// < Subtitles display + static const int MC_ABILITY_SUBTITLES = 6; + + /// < 360 content mode display + static const int MC_ABILITY_360_MODE = 7; +} + +/// @brief Enumeration for the search category. +/// @details Media controller clients can use this to search for the content provided by the media controller server. +/// @since_tizen 5.0 +/// +/// @see mc_search_set_condition() +abstract class mc_search_category_e { + /// < No search category + static const int MC_SEARCH_NO_CATEGORY = 0; + + /// < Search by content title + static const int MC_SEARCH_TITLE = 1; + + /// < Search by content artist + static const int MC_SEARCH_ARTIST = 2; + + /// < Search by content album + static const int MC_SEARCH_ALBUM = 3; + + /// < Search by content genre + static const int MC_SEARCH_GENRE = 4; + + /// < Search by Time Place Occasion + static const int MC_SEARCH_TPO = 5; +} + +/// @brief Enumeration for the display mode of the media controller server. +/// @since_tizen 5.5 +/// +/// @see mc_server_update_display_mode() +/// @see mc_server_display_mode_cmd_received_cb() +/// @see mc_client_get_server_display_mode() +/// @see mc_client_send_display_mode_cmd() +/// @see mc_display_mode_updated_cb() +abstract class mc_display_mode_e { + /// < Letter box + static const int MC_DISPLAY_MODE_LETTER_BOX = 1; + + /// < Origin size + static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; + + /// < Full-screen + static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; + + /// < Cropped full-screen + static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; +} + +/// @brief Enumeration for the display rotation of the media controller server. +/// @since_tizen 5.5 +/// +/// @see mc_server_update_display_rotation() +/// @see mc_server_display_rotation_cmd_received_cb() +/// @see mc_client_get_server_display_rotation() +/// @see mc_client_send_display_rotation_cmd() +/// @see mc_display_rotation_updated_cb() +abstract class mc_display_rotation_e { + /// < Display is not rotated + static const int MC_DISPLAY_ROTATION_NONE = 1; + + /// < Display is rotated 90 degrees + static const int MC_DISPLAY_ROTATION_90 = 2; + + /// < Display is rotated 180 degrees + static const int MC_DISPLAY_ROTATION_180 = 4; + + /// < Display is rotated 270 degrees + static const int MC_DISPLAY_ROTATION_270 = 8; +} + +/// @brief The result codes of the reply for the command or the event. +/// @since_tizen 6.0 +/// +/// @see mc_cmd_reply_received_cb() +/// @see mc_client_send_event_reply() +/// @see mc_server_event_reply_received_cb() +/// @see mc_server_send_cmd_reply() +abstract class mc_result_code_e { + /// < The command or the event has been successfully completed. + static const int MC_RESULT_CODE_SUCCESS = 0; + + /// < The command or the event had already been completed. + static const int MC_RESULT_CODE_ALREADY_DONE = 200; + + /// < The command or the event is aborted by some external event (e.g. aborted play command by incoming call). + static const int MC_RESULT_CODE_ABORTED = 300; + + /// < The command or the event is denied due to application policy (e.g. cannot rewind in recording). + static const int MC_RESULT_CODE_DENIED = 301; + + /// < The command or the event is not supported. + static const int MC_RESULT_CODE_NOT_SUPPORTED = 302; + + /// < The command or the event is out of supported range or the limit is reached. + static const int MC_RESULT_CODE_INVALID = 303; + + /// < Timeout has occurred. + static const int MC_RESULT_CODE_TIMEOUT = 400; + + /// < The application has failed. + static const int MC_RESULT_CODE_APP_FAILED = 401; + + /// < The command or the event has failed because the application has no media. + static const int MC_RESULT_CODE_NO_MEDIA = 402; + + /// < The command or the event has failed because there is no audio output device. + static const int MC_RESULT_CODE_NO_AUDIO_OUTPUT_DEVICE = 403; + + /// < The command or the event has failed because there is no peer. + static const int MC_RESULT_CODE_NO_PEER = 404; + + /// < The network has failed. + static const int MC_RESULT_CODE_NETWORK_FAILED = 500; + + /// < The application needs to have an account to which it's logged in. + static const int MC_RESULT_CODE_NO_ACCOUNT = 600; + + /// < The application could not log in. + static const int MC_RESULT_CODE_LOGIN_FAILED = 601; + + /// < Unknown error. + static const int MC_RESULT_CODE_UNKNOWN = 2147483647; +} + /// @brief The structure type for the media controller playlist handle. /// @since_tizen 4.0 typedef mc_playlist_h = ffi.Pointer; @@ -6519,175 +7048,14 @@ typedef mc_playlist_cbFunction = ffi.Bool Function( typedef Dartmc_playlist_cbFunction = bool Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the media meta info. -/// @since_tizen 2.4 -/// -/// @see mc_server_set_metadata() -/// @see mc_server_add_item_to_playlist() -/// @see mc_metadata_get() -abstract class mc_meta_e { - /// < Title - static const int MC_META_MEDIA_TITLE = 0; - - /// < Artist - static const int MC_META_MEDIA_ARTIST = 1; - - /// < Album - static const int MC_META_MEDIA_ALBUM = 2; - - /// < Author - static const int MC_META_MEDIA_AUTHOR = 3; - - /// < Genre - static const int MC_META_MEDIA_GENRE = 4; - - /// < Duration - static const int MC_META_MEDIA_DURATION = 5; - - /// < Date - static const int MC_META_MEDIA_DATE = 6; - - /// < Copyright - static const int MC_META_MEDIA_COPYRIGHT = 7; - - /// < Description - static const int MC_META_MEDIA_DESCRIPTION = 8; - - /// < Track Number - static const int MC_META_MEDIA_TRACK_NUM = 9; - - /// < Picture. Album Art - static const int MC_META_MEDIA_PICTURE = 10; - - /// < Season (Since 5.5) - static const int MC_META_MEDIA_SEASON = 11; - - /// < Episode (Since 5.5) - static const int MC_META_MEDIA_EPISODE = 12; - - /// < Content resolution (Since 5.5) - static const int MC_META_MEDIA_RESOLUTION = 13; -} - /// @brief The structure type for the media controller ability handle. /// @since_tizen 5.0 typedef mc_playback_ability_h = ffi.Pointer; -/// @brief Enumeration for the media playback action. -/// @details Media controller clients can control media controller server's playback by calling mc_client_send_playback_action_cmd() or mc_client_send_playlist_cmd(). \n -/// Media controller servers have to set proper playback ability by using mc_server_set_playback_ability(). -/// @since_tizen 4.0 -/// -/// @see mc_server_set_playback_ability() -/// @see mc_client_send_playback_action_cmd() -/// @see mc_client_send_playlist_cmd() -/// @see mc_playback_action_is_supported() -/// @see mc_server_playback_action_cmd_received_cb() -/// @see mc_server_playlist_cmd_received_cb() -abstract class mc_playback_action_e { - /// < Play - static const int MC_PLAYBACK_ACTION_PLAY = 0; - - /// < Pause - static const int MC_PLAYBACK_ACTION_PAUSE = 1; - - /// < Stop - static const int MC_PLAYBACK_ACTION_STOP = 2; - - /// < Next item - static const int MC_PLAYBACK_ACTION_NEXT = 3; - - /// < Previous item - static const int MC_PLAYBACK_ACTION_PREV = 4; - - /// < Fast forward - static const int MC_PLAYBACK_ACTION_FAST_FORWARD = 5; - - /// < Rewind - static const int MC_PLAYBACK_ACTION_REWIND = 6; - - /// < Play/Pause toggle - static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; -} - -/// @brief Enumeration for the support of the ability by the media controller server. -/// @since_tizen 5.0 -/// -/// @remarks The media controller server should set the proper abilities. \n -/// Only then can media controller clients send the appropriate control commands. -/// -/// @see mc_server_set_playback_ability() -/// @see mc_server_set_ability_support() -/// @see mc_server_set_display_mode_ability() -/// @see mc_server_set_display_rotation_ability() -/// @see mc_client_get_server_ability_support() -/// @see mc_ability_support_updated_cb() -/// @see mc_playback_action_is_supported() -abstract class mc_ability_support_e { - /// < Supported - static const int MC_ABILITY_SUPPORTED_YES = 0; - - /// < Not supported - static const int MC_ABILITY_SUPPORTED_NO = 1; - - /// < Not decided - static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; -} - /// @brief The structure type for the media controller search handle. /// @since_tizen 5.0 typedef mc_search_h = ffi.Pointer; -/// @brief Enumeration for the content type of the media content by the media controller server. -/// @details Media controller clients can use this to know the playback status of the media controller server. \n -/// And media controller clients can also use to search for the content provided by the media controller server. -/// @since_tizen 5.0 -/// -/// @see mc_server_set_playback_content_type() -/// @see mc_client_get_playback_content_type() -/// @see mc_search_set_condition() -abstract class mc_content_type_e { - /// < Image content type - static const int MC_CONTENT_TYPE_IMAGE = 0; - - /// < Video content type - static const int MC_CONTENT_TYPE_VIDEO = 1; - - /// < Music content type - static const int MC_CONTENT_TYPE_MUSIC = 2; - - /// < Other content type - static const int MC_CONTENT_TYPE_OTHER = 3; - - /// < Not decided - static const int MC_CONTENT_TYPE_UNDECIDED = 4; -} - -/// @brief Enumeration for the search category. -/// @details Media controller clients can use this to search for the content provided by the media controller server. -/// @since_tizen 5.0 -/// -/// @see mc_search_set_condition() -abstract class mc_search_category_e { - /// < No search category - static const int MC_SEARCH_NO_CATEGORY = 0; - - /// < Search by content title - static const int MC_SEARCH_TITLE = 1; - - /// < Search by content artist - static const int MC_SEARCH_ARTIST = 2; - - /// < Search by content album - static const int MC_SEARCH_ALBUM = 3; - - /// < Search by content genre - static const int MC_SEARCH_GENRE = 4; - - /// < Search by Time Place Occasion - static const int MC_SEARCH_TPO = 5; -} - /// @brief Called for every search condition information in the obtained list of search. /// @details Iterates over a search list. /// @@ -6752,22 +7120,6 @@ typedef Dartmc_server_state_updated_cbFunction = void Function( int state, ffi.Pointer user_data); -/// @brief Enumeration for the media controller server state. -/// @since_tizen 2.4 -/// -/// @see mc_client_get_latest_server_info() -/// @see mc_server_state_updated_cb() -abstract class mc_server_state_e { - /// < None state - static const int MC_SERVER_STATE_NONE = 0; - - /// < Activate state - static const int MC_SERVER_STATE_ACTIVATE = 1; - - /// < Deactivate state - static const int MC_SERVER_STATE_DEACTIVATE = 2; -} - /// @brief Called when the playback information of the media controller server is updated. /// @since_tizen 2.4 /// @@ -6853,65 +7205,30 @@ typedef Dartmc_shuffle_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the shuffle mode of the media controller server. -/// @since_tizen 2.4 -/// -/// @see mc_server_update_shuffle_mode() -/// @see mc_server_shuffle_mode_cmd_received_cb() -/// @see mc_client_get_server_shuffle_mode() -/// @see mc_client_send_shuffle_mode_cmd() -/// @see mc_shuffle_mode_updated_cb() -abstract class mc_shuffle_mode_e { - /// < Shuffle mode on - static const int MC_SHUFFLE_MODE_ON = 0; - - /// < Shuffle mode off - static const int MC_SHUFFLE_MODE_OFF = 1; -} - /// @brief Called when the repeat mode of the media controller server is updated. /// @since_tizen 4.0 /// /// @remarks The callback is called in the dbus event loop.\n /// The @a server_name should not be released by the application. \n /// The @a server_name can be used only in the callback. To use outside, make a copy. -/// -/// @param[in] server_name The app_id of the media controller server which sent the notification -/// @param[in] mode The repeat mode of the updated media controller server -/// @param[in] user_data The user data passed from the mc_client_set_repeat_mode_updated_cb() function -/// -/// @pre mc_client_set_repeat_mode_updated_cb() -/// -/// @see mc_client_set_repeat_mode_updated_cb() -typedef mc_repeat_mode_updated_cb - = ffi.Pointer>; -typedef mc_repeat_mode_updated_cbFunction = ffi.Void Function( - ffi.Pointer server_name, - ffi.Int32 mode, - ffi.Pointer user_data); -typedef Dartmc_repeat_mode_updated_cbFunction = void Function( - ffi.Pointer server_name, - int mode, - ffi.Pointer user_data); - -/// @brief Enumeration for the repeat mode of the media controller server. -/// @since_tizen 2.4 -/// -/// @see mc_server_update_repeat_mode() -/// @see mc_server_repeat_mode_cmd_received_cb() -/// @see mc_client_get_server_repeat_mode() -/// @see mc_client_send_repeat_mode_cmd() -/// @see mc_repeat_mode_updated_cb() -abstract class mc_repeat_mode_e { - /// < Repeat mode on for all media - static const int MC_REPEAT_MODE_ON = 0; - - /// < Repeat mode off - static const int MC_REPEAT_MODE_OFF = 1; - - /// < Repeat mode on for one media (Since 4.0) - static const int MC_REPEAT_MODE_ONE_MEDIA = 2; -} +/// +/// @param[in] server_name The app_id of the media controller server which sent the notification +/// @param[in] mode The repeat mode of the updated media controller server +/// @param[in] user_data The user data passed from the mc_client_set_repeat_mode_updated_cb() function +/// +/// @pre mc_client_set_repeat_mode_updated_cb() +/// +/// @see mc_client_set_repeat_mode_updated_cb() +typedef mc_repeat_mode_updated_cb + = ffi.Pointer>; +typedef mc_repeat_mode_updated_cbFunction = ffi.Void Function( + ffi.Pointer server_name, + ffi.Int32 mode, + ffi.Pointer user_data); +typedef Dartmc_repeat_mode_updated_cbFunction = void Function( + ffi.Pointer server_name, + int mode, + ffi.Pointer user_data); /// @brief Called when the playback ability support of the media controller server is updated. /// @since_tizen 5.0 @@ -6967,38 +7284,6 @@ typedef Dartmc_ability_support_updated_cbFunction = void Function( int support, ffi.Pointer user_data); -/// @brief Enumeration for the ability of the media controller server. -/// @since_tizen 5.5 -/// -/// @see mc_server_set_ability_support() -/// @see mc_client_get_server_ability_support() -/// @see mc_ability_support_updated_cb() -abstract class mc_ability_e { - /// < Shuffle - static const int MC_ABILITY_SHUFFLE = 0; - - /// < Repeat - static const int MC_ABILITY_REPEAT = 1; - - /// < Playback Position - static const int MC_ABILITY_PLAYBACK_POSITION = 2; - - /// < Playlist - static const int MC_ABILITY_PLAYLIST = 3; - - /// < Custom command from a client - static const int MC_ABILITY_CLIENT_CUSTOM = 4; - - /// < Search - static const int MC_ABILITY_SEARCH = 5; - - /// < Subtitles display - static const int MC_ABILITY_SUBTITLES = 6; - - /// < 360 content mode display - static const int MC_ABILITY_360_MODE = 7; -} - /// @brief Called when a media controller server's supported items for an ability is updated. /// @since_tizen 5.5 /// @@ -7092,22 +7377,6 @@ typedef Dartmc_playlist_updated_cbFunction = void Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the playlist update mode. -/// @details Media controller clients can know the playlist change status of the media controller server by calling mc_client_set_playlist_updated_cb(). \n -/// @since_tizen 4.0 -/// -/// @see mc_client_set_playlist_updated_cb() -/// @see mc_playlist_updated_cb() -/// @see mc_server_update_playlist_done() -/// @see mc_server_delete_playlist() -abstract class mc_playlist_update_mode_e { - /// < Create or Update playlist - static const int MC_PLAYLIST_UPDATED = 0; - - /// < Remove playlist - static const int MC_PLAYLIST_REMOVED = 1; -} - /// @brief Called when the status of a media controller server's boolean attribute (subtitles or 360 mode) is updated. /// @since_tizen 5.5 /// @@ -7155,28 +7424,6 @@ typedef Dartmc_display_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the display mode of the media controller server. -/// @since_tizen 5.5 -/// -/// @see mc_server_update_display_mode() -/// @see mc_server_display_mode_cmd_received_cb() -/// @see mc_client_get_server_display_mode() -/// @see mc_client_send_display_mode_cmd() -/// @see mc_display_mode_updated_cb() -abstract class mc_display_mode_e { - /// < Letter box - static const int MC_DISPLAY_MODE_LETTER_BOX = 1; - - /// < Origin size - static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; - - /// < Full-screen - static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; - - /// < Cropped full-screen - static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; -} - /// @brief Called when a media controller server's display rotation is updated. /// @since_tizen 5.5 /// @@ -7200,28 +7447,6 @@ typedef Dartmc_display_rotation_updated_cbFunction = void Function( int rotation, ffi.Pointer user_data); -/// @brief Enumeration for the display rotation of the media controller server. -/// @since_tizen 5.5 -/// -/// @see mc_server_update_display_rotation() -/// @see mc_server_display_rotation_cmd_received_cb() -/// @see mc_client_get_server_display_rotation() -/// @see mc_client_send_display_rotation_cmd() -/// @see mc_display_rotation_updated_cb() -abstract class mc_display_rotation_e { - /// < Display is not rotated - static const int MC_DISPLAY_ROTATION_NONE = 1; - - /// < Display is rotated 90 degrees - static const int MC_DISPLAY_ROTATION_90 = 2; - - /// < Display is rotated 180 degrees - static const int MC_DISPLAY_ROTATION_180 = 4; - - /// < Display is rotated 270 degrees - static const int MC_DISPLAY_ROTATION_270 = 8; -} - /// @brief Called when receiving custom event from media controller servers. /// @since_tizen 4.0 /// @@ -7257,44 +7482,6 @@ typedef Dartmc_client_custom_event_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @brief Enumeration for the subscription type of the media controller client. -/// @since_tizen 2.4 -/// -/// @see mc_client_subscribe() -/// @see mc_client_unsubscribe() -/// @see mc_client_foreach_server_subscribed() -abstract class mc_subscription_type_e { - /// < Server state - static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; - - /// < Playback - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; - - /// < Metadata - static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; - - /// < Shuffle mode - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; - - /// < Repeat mode - static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; - - /// < Playlist (Since 4.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; - - /// < Playback ability (Since 5.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; - - /// < Ability support (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; - - /// < Display mode ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; - - /// < Display rotation ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; -} - /// @brief Called when requesting the list of subscribed servers. /// @since_tizen 2.4 /// @@ -7318,113 +7505,6 @@ typedef mc_subscribed_server_cbFunction = ffi.Bool Function( typedef Dartmc_subscribed_server_cbFunction = bool Function( ffi.Pointer server_name, ffi.Pointer user_data); -/// @brief Enumeration for the media playback state of the media controller server. -/// @since_tizen 2.4 -/// -/// @see mc_server_set_playback_state() -/// @see mc_client_get_playback_state() -abstract class mc_playback_states_e { - /// < None - static const int MC_PLAYBACK_STATE_NONE = 0; - - /// < Playing - static const int MC_PLAYBACK_STATE_PLAYING = 1; - - /// < Paused - static const int MC_PLAYBACK_STATE_PAUSED = 2; - - /// < Stopped - static const int MC_PLAYBACK_STATE_STOPPED = 3; - - /// < Moving to the next item (Since 4.0) - static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; - - /// < Moving to the previous item (Since 4.0) - static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; - - /// < Fast forwarding (Since 4.0) - static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; - - /// < Rewinding (Since 4.0) - static const int MC_PLAYBACK_STATE_REWINDING = 11; - - /// < Connecting (Since 6.0) - static const int MC_PLAYBACK_STATE_CONNECTING = 12; - - /// < Buffering (Since 6.0) - static const int MC_PLAYBACK_STATE_BUFFERING = 13; - - /// < Error (Since 6.0) - static const int MC_PLAYBACK_STATE_ERROR = 14; -} - -/// @brief Enumeration for the content age rating of the media content by the media controller server. -/// @since_tizen 5.0 -/// -/// @see mc_server_set_content_age_rating() -/// @see mc_client_get_age_rating() -abstract class mc_content_age_rating_e { - /// < Suitable for all ages - static const int MC_CONTENT_RATING_ALL = 0; - - /// < Suitable for ages 1 and up - static const int MC_CONTENT_RATING_1_PLUS = 1; - - /// < Suitable for ages 2 and up - static const int MC_CONTENT_RATING_2_PLUS = 2; - - /// < Suitable for ages 3 and up - static const int MC_CONTENT_RATING_3_PLUS = 3; - - /// < Suitable for ages 4 and up - static const int MC_CONTENT_RATING_4_PLUS = 4; - - /// < Suitable for ages 5 and up - static const int MC_CONTENT_RATING_5_PLUS = 5; - - /// < Suitable for ages 6 and up - static const int MC_CONTENT_RATING_6_PLUS = 6; - - /// < Suitable for ages 7 and up - static const int MC_CONTENT_RATING_7_PLUS = 7; - - /// < Suitable for ages 8 and up - static const int MC_CONTENT_RATING_8_PLUS = 8; - - /// < Suitable for ages 9 and up - static const int MC_CONTENT_RATING_9_PLUS = 9; - - /// < Suitable for ages 10 and up - static const int MC_CONTENT_RATING_10_PLUS = 10; - - /// < Suitable for ages 11 and up - static const int MC_CONTENT_RATING_11_PLUS = 11; - - /// < Suitable for ages 12 and up - static const int MC_CONTENT_RATING_12_PLUS = 12; - - /// < Suitable for ages 13 and up - static const int MC_CONTENT_RATING_13_PLUS = 13; - - /// < Suitable for ages 14 and up - static const int MC_CONTENT_RATING_14_PLUS = 14; - - /// < Suitable for ages 15 and up - static const int MC_CONTENT_RATING_15_PLUS = 15; - - /// < Suitable for ages 16 and up - static const int MC_CONTENT_RATING_16_PLUS = 16; - - /// < Suitable for ages 17 and up - static const int MC_CONTENT_RATING_17_PLUS = 17; - - /// < Suitable for ages 18 and up - static const int MC_CONTENT_RATING_18_PLUS = 18; - - /// < Suitable for ages 19 and up - static const int MC_CONTENT_RATING_19_PLUS = 19; -} - /// @brief Called when requesting the list of created servers. /// @since_tizen 2.4 /// @@ -7825,3 +7905,5 @@ typedef Dartmc_server_search_cmd_received_cbFunction = void Function( ffi.Pointer request_id, mc_search_h search, ffi.Pointer user_data); + +const int MEDIA_CONTROLLER_ERROR_CLASS = -50462720; diff --git a/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_editor.dart b/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_editor.dart index 468004b1..f5df7ef9 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_editor.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_editor.dart @@ -378,9 +378,34 @@ class Tizen100CapiMediaMetadataEditor { /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @deprecated Deprecated since 9.0. -/// @brief The handle of media metadata. +/// @brief The enumerations of media metadata error. /// @since_tizen 2.4 -typedef metadata_editor_h = ffi.Pointer; +abstract class metadata_editor_error_e { + /// < Successful + static const int METADATA_EDITOR_ERROR_NONE = 0; + + /// < Invalid parameter + static const int METADATA_EDITOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EDITOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File not exist + static const int METADATA_EDITOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EDITOR_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported type + static const int METADATA_EDITOR_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Invalid internal operation + static const int METADATA_EDITOR_ERROR_OPERATION_FAILED = -27000831; + + /// < Update not possible (Since 6.0) + static const int METADATA_EDITOR_ERROR_METADATA_UPDATE_NOT_POSSIBLE = + -27000830; +} /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @deprecated Deprecated since 9.0. @@ -426,3 +451,11 @@ abstract class metadata_editor_attr_e { /// < Unsynchronized lyric static const int METADATA_EDITOR_ATTR_UNSYNCLYRICS = 12; } + +/// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE +/// @deprecated Deprecated since 9.0. +/// @brief The handle of media metadata. +/// @since_tizen 2.4 +typedef metadata_editor_h = ffi.Pointer; + +const int METADATA_EDITOR_ERROR_CLASS = -27000832; diff --git a/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_extractor.dart b/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_extractor.dart index 463a8c8b..a54a4289 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_extractor.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_media_metadata_extractor.dart @@ -386,11 +386,27 @@ class Tizen100CapiMediaMetadataExtractor { } /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE -/// @brief The metadata extractor handle. +/// @brief Enumeration for metadata extractor error. /// @since_tizen 2.3 -typedef metadata_extractor_h = ffi.Pointer; +abstract class metadata_extractor_error_e { + /// < Successful + static const int METADATA_EXTRACTOR_ERROR_NONE = 0; -final class metadata_extractor_s extends ffi.Opaque {} + /// < Invalid parameter + static const int METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EXTRACTOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File does not exist + static const int METADATA_EXTRACTOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED = -13; + + /// < Invalid internal operation + static const int METADATA_EXTRACTOR_ERROR_OPERATION_FAILED = -26411007; +} /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE /// @brief Enumeration for attribute. @@ -504,3 +520,12 @@ abstract class metadata_extractor_attr_e { /// < Stitched type. (0:None, 1:Non-stitched, 2:stitched) (Since 9.0) static const int METADATA_360_STITCHED = 35; } + +final class metadata_extractor_s extends ffi.Opaque {} + +/// @ingroup CAPI_METADATA_EXTRACTOR_MODULE +/// @brief The metadata extractor handle. +/// @since_tizen 2.3 +typedef metadata_extractor_h = ffi.Pointer; + +const int METADATA_EXTRACTOR_ERROR_CLASS = -26411008; diff --git a/lib/src/bindings/10.0/generated_bindings_capi_media_screen_mirroring.dart b/lib/src/bindings/10.0/generated_bindings_capi_media_screen_mirroring.dart index 889d7ea2..c7323a94 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_media_screen_mirroring.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_media_screen_mirroring.dart @@ -1059,30 +1059,6 @@ class Tizen100CapiMediaScreenMirroring { int Function(scmirroring_sink_h, ffi.Pointer)>(); } -/// @brief The handle to the screen mirroring sink. -/// @since_tizen 2.4 -typedef scmirroring_sink_h = ffi.Pointer; - -/// @brief Called when state of screen mirroring sink handle is changed. -/// @since_tizen 2.4 -/// -/// @details This callback is called for state and error of screen mirroring sink will be delivered together. -/// Error can be handled by return value of CAPIs. so there is no need to handle it here. -/// -/// @param[in] error The error code -/// @param[in] state The screen mirroring sink state -/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function -/// -/// @pre scmirroring_sink_create() -/// -/// @see scmirroring_sink_create() -typedef scmirroring_sink_state_cb - = ffi.Pointer>; -typedef scmirroring_sink_state_cbFunction = ffi.Void Function( - ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartscmirroring_sink_state_cbFunction = void Function( - int error, int state, ffi.Pointer user_data); - /// @brief Enumeration to provide screen mirroring error information. /// @since_tizen 2.4 abstract class scmirroring_error_e { @@ -1137,6 +1113,41 @@ abstract class scmirroring_sink_state_e { static const int SCMIRRORING_SINK_STATE_MAX = 7; } +/// @brief Enumeration for screen mirroring resolution. +/// @since_tizen 2.4 +abstract class scmirroring_resolution_e { + static const int SCMIRRORING_RESOLUTION_UNKNOWN = 0; + + /// < W-1920, H-1080, 30 fps + static const int SCMIRRORING_RESOLUTION_1920x1080_P30 = 1; + + /// < W-1280, H-720, 30 fps + static const int SCMIRRORING_RESOLUTION_1280x720_P30 = 2; + + /// < W-960, H-540, 30 fps + static const int SCMIRRORING_RESOLUTION_960x540_P30 = 4; + + /// < W-864, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_864x480_P30 = 8; + + /// < W-720, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_720x480_P60 = 16; + + /// < W-640, H-480, 60 fps + static const int SCMIRRORING_RESOLUTION_640x480_P60 = 32; + + /// < W-640, H-360, 30 fps + static const int SCMIRRORING_RESOLUTION_640x360_P30 = 64; + static const int SCMIRRORING_RESOLUTION_MAX = 128; +} + +/// @brief Ability to send to multisink. +/// @since_tizen 3.0 +abstract class scmirroring_multisink_e { + static const int SCMIRRORING_MULTISINK_DISABLE = 0; + static const int SCMIRRORING_MULTISINK_ENABLE = 1; +} + /// @brief Enumeration for screen mirroring display surface type. /// @since_tizen 2.4 abstract class scmirroring_display_type_e { @@ -1199,16 +1210,6 @@ abstract class scmirroring_device_type_e { static const int SCMIRRORING_DEVICE_TYPE_MOBILE = 2; } -/// @brief Enumeration for screen mirroring video codec. -/// @since_tizen 2.4 -abstract class scmirroring_video_codec_e { - /// < Screen mirroring is not negotiated yet - static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; - - /// < H.264 codec for video - static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; -} - /// @brief Enumeration for screen mirroring audio codec. /// @since_tizen 2.4 abstract class scmirroring_audio_codec_e { @@ -1224,3 +1225,57 @@ abstract class scmirroring_audio_codec_e { /// < LPCM codec for audio static const int SCMIRRORING_AUDIO_CODEC_LPCM = 3; } + +/// @brief Enumeration for screen mirroring video codec. +/// @since_tizen 2.4 +abstract class scmirroring_video_codec_e { + /// < Screen mirroring is not negotiated yet + static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; + + /// < H.264 codec for video + static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; +} + +/// @brief Enumeration for screen mirroring direct streaming mode. +/// @since_tizen 3.0 +abstract class scmirroring_direct_streaming_e { + /// < Disable screen mirroring direct streaming mode + static const int SCMIRRORING_DIRECT_STREAMING_DISABLED = 0; + + /// < Enable direct streaming for files + static const int SCMIRRORING_DIRECT_STREAMING_ENABLED = 1; +} + +/// @brief Enumeration for screen mirroring AV streaming transport. +/// @since_tizen 3.0 +abstract class scmirroring_av_transport_e { + /// < UDP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_UDP = 0; + + /// < TCP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_TCP = 1; +} + +/// @brief The handle to the screen mirroring sink. +/// @since_tizen 2.4 +typedef scmirroring_sink_h = ffi.Pointer; + +/// @brief Called when state of screen mirroring sink handle is changed. +/// @since_tizen 2.4 +/// +/// @details This callback is called for state and error of screen mirroring sink will be delivered together. +/// Error can be handled by return value of CAPIs. so there is no need to handle it here. +/// +/// @param[in] error The error code +/// @param[in] state The screen mirroring sink state +/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function +/// +/// @pre scmirroring_sink_create() +/// +/// @see scmirroring_sink_create() +typedef scmirroring_sink_state_cb + = ffi.Pointer>; +typedef scmirroring_sink_state_cbFunction = ffi.Void Function( + ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartscmirroring_sink_state_cbFunction = void Function( + int error, int state, ffi.Pointer user_data); diff --git a/lib/src/bindings/10.0/generated_bindings_capi_media_sound_pool.dart b/lib/src/bindings/10.0/generated_bindings_capi_media_sound_pool.dart index ce0cd277..0582b222 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_media_sound_pool.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_media_sound_pool.dart @@ -886,10 +886,54 @@ class Tizen100CapiMediaSoundPool { } /// @deprecated Deprecated since 10.0 -/// @brief Sound pool handle type. +/// @brief Enumeration for Tizen Sound Pool error. /// /// @since_tizen 4.0 -typedef sound_pool_h = ffi.Pointer; +abstract class sound_pool_error_e { + static const int SOUND_POOL_ERROR_NONE = 0; + static const int SOUND_POOL_ERROR_KEY_NOT_AVAILABLE = -126; + static const int SOUND_POOL_ERROR_OUT_OF_MEMORY = -12; + static const int SOUND_POOL_ERROR_INVALID_PARAMETER = -22; + static const int SOUND_POOL_ERROR_INVALID_OPERATION = -38; + static const int SOUND_POOL_ERROR_NOT_PERMITTED = -1; + static const int SOUND_POOL_ERROR_NO_SUCH_FILE = -2; +} + +/// @deprecated Deprecated since 10.0 +/// @brief Enumeration of sound pool stream state. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_state_e { + /// < Stream state isn't determined + static const int SOUND_POOL_STREAM_STATE_NONE = 0; + + /// < Stream state is playing + static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; + + /// < Stream state is paused + static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; + + /// < Stream state is stopped + static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; + + /// < Stream state is finished + static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; + + /// < Stream state is suspended + static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; +} + +/// @deprecated Deprecated since 10.0 +/// @brief Enumeration of sound pool stream priority policy. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_priority_policy_e { + /// < Stream priority policy is mute + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; + + /// < Stream priority policy is suspended + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; +} /// @deprecated Deprecated since 10.0 /// @brief Enumeration of sound pool state. @@ -903,6 +947,12 @@ abstract class sound_pool_state_e { static const int SOUND_POOL_STATE_INACTIVE = 1; } +/// @deprecated Deprecated since 10.0 +/// @brief Sound pool handle type. +/// +/// @since_tizen 4.0 +typedef sound_pool_h = ffi.Pointer; + /// @deprecated Deprecated since 10.0 /// @brief Called when the sound pool state is changed. /// @@ -934,18 +984,6 @@ typedef Dartsound_pool_state_changed_cbFunction = void Function( int cur_state, ffi.Pointer user_data); -/// @deprecated Deprecated since 10.0 -/// @brief Enumeration of sound pool stream priority policy. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_priority_policy_e { - /// < Stream priority policy is mute - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; - - /// < Stream priority policy is suspended - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; -} - /// @deprecated Deprecated since 10.0 /// @brief Called when the sound pool stream state is changed. /// @@ -979,27 +1017,3 @@ typedef Dartsound_pool_stream_state_changed_cbFunction = void Function( int prev_state, int cur_state, ffi.Pointer user_data); - -/// @deprecated Deprecated since 10.0 -/// @brief Enumeration of sound pool stream state. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_state_e { - /// < Stream state isn't determined - static const int SOUND_POOL_STREAM_STATE_NONE = 0; - - /// < Stream state is playing - static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; - - /// < Stream state is paused - static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; - - /// < Stream state is stopped - static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; - - /// < Stream state is finished - static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; - - /// < Stream state is suspended - static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; -} diff --git a/lib/src/bindings/10.0/generated_bindings_capi_media_thumbnail_util.dart b/lib/src/bindings/10.0/generated_bindings_capi_media_thumbnail_util.dart index 9237313d..92e64435 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_media_thumbnail_util.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_media_thumbnail_util.dart @@ -156,3 +156,31 @@ class Tizen100CapiMediaThumbnailUtil { ffi.Pointer, ffi.Pointer)>(); } + +/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE +/// @brief Enumeration for a thumbnail util error. +/// @since_tizen 2.4 +abstract class thumbnail_util_error_e { + /// < Successful + static const int THUMBNAIL_UTIL_ERROR_NONE = 0; + + /// < Invalid parameter + static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported Content (Since 4.0) + static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; +} + +const int THUMBNAIL_UTIL_ERROR_CLASS = -49872896; diff --git a/lib/src/bindings/10.0/generated_bindings_capi_network_bluetooth.dart b/lib/src/bindings/10.0/generated_bindings_capi_network_bluetooth.dart index 97c430b4..3804145a 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_network_bluetooth.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_network_bluetooth.dart @@ -10759,6 +10759,187 @@ class Tizen100CapiNetworkBluetooth { ffi.Pointer>)>(); } +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of PBAP fields. +/// @since_tizen 3.0 +abstract class bt_pbap_field_e { + /// < All field + static const int BT_PBAP_FIELD_ALL = -1; + + /// < vCard Version + static const int BT_PBAP_FIELD_VERSION = 1; + + /// < Formatted Name + static const int BT_PBAP_FIELD_FN = 2; + + /// < Structured Presentation of Name + static const int BT_PBAP_FIELD_N = 4; + + /// < Associated Image or Photo + static const int BT_PBAP_FIELD_PHOTO = 8; + + /// < Birthday + static const int BT_PBAP_FIELD_BDAY = 16; + + /// < Delivery Address + static const int BT_PBAP_FIELD_ADR = 32; + + /// < Delivery + static const int BT_PBAP_FIELD_LABEL = 64; + + /// < Telephone Number + static const int BT_PBAP_FIELD_TEL = 128; + + /// < Electronic Mail Address + static const int BT_PBAP_FIELD_EMAIL = 256; + + /// < Electronic Mail + static const int BT_PBAP_FIELD_MAILER = 512; + + /// < Time Zone + static const int BT_PBAP_FIELD_TZ = 1024; + + /// < Geographic Position + static const int BT_PBAP_FIELD_GEO = 2048; + + /// < Job + static const int BT_PBAP_FIELD_TITLE = 4096; + + /// < Role within the Organization + static const int BT_PBAP_FIELD_ROLE = 8192; + + /// < Organization Logo + static const int BT_PBAP_FIELD_LOGO = 16384; + + /// < vCard of Person Representing + static const int BT_PBAP_FIELD_AGENT = 32768; + + /// < Name of Organization + static const int BT_PBAP_FIELD_ORG = 65536; + + /// < Comments + static const int BT_PBAP_FIELD_NOTE = 131072; + + /// < Revision + static const int BT_PBAP_FIELD_REV = 262144; + + /// < Pronunciation of Name + static const int BT_PBAP_FIELD_SOUND = 524288; + + /// < Uniform Resource Locator + static const int BT_PBAP_FIELD_URL = 1048576; + + /// < Unique ID + static const int BT_PBAP_FIELD_UID = 2097152; + + /// < Public Encryption Key + static const int BT_PBAP_FIELD_KEY = 4194304; + + /// < Nickname + static const int BT_PBAP_FIELD_NICKNAME = 8388608; + + /// < Categories + static const int BT_PBAP_FIELD_CATEGORIES = 16777216; + + /// < Product ID + static const int BT_PBAP_FIELD_PROID = 33554432; + + /// < Class information + static const int BT_PBAP_FIELD_CLASS = 67108864; + + /// < String used for sorting operations + static const int BT_PBAP_FIELD_SORT_STRING = 134217728; + + /// < Time stamp + static const int BT_PBAP_FIELD_X_IRMC_CALL_DATETIME = 268435456; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_MODULE +/// @brief Enumerations of Bluetooth error codes. +/// @since_tizen 2.3 +abstract class bt_error_e { + /// < Successful + static const int BT_ERROR_NONE = 0; + + /// < Operation cancelled + static const int BT_ERROR_CANCELLED = -125; + + /// < Invalid parameter + static const int BT_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int BT_ERROR_OUT_OF_MEMORY = -12; + + /// < Device or resource busy + static const int BT_ERROR_RESOURCE_BUSY = -16; + + /// < Timeout error + static const int BT_ERROR_TIMED_OUT = -1073741823; + + /// < Operation now in progress + static const int BT_ERROR_NOW_IN_PROGRESS = -115; + + /// < BT is Not Supported + static const int BT_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Permission denied + static const int BT_ERROR_PERMISSION_DENIED = -13; + + /// < Quota exceeded + static const int BT_ERROR_QUOTA_EXCEEDED = -122; + + /// < No data available + static const int BT_ERROR_NO_DATA = -61; + + /// < Device policy restriction (Since 3.0) + static const int BT_ERROR_DEVICE_POLICY_RESTRICTION = -1073741820; + + /// < Local adapter not initialized + static const int BT_ERROR_NOT_INITIALIZED = -29359871; + + /// < Local adapter not enabled + static const int BT_ERROR_NOT_ENABLED = -29359870; + + /// < Operation already done + static const int BT_ERROR_ALREADY_DONE = -29359869; + + /// < Operation failed + static const int BT_ERROR_OPERATION_FAILED = -29359868; + + /// < Operation not in progress + static const int BT_ERROR_NOT_IN_PROGRESS = -29359867; + + /// < Remote device not bonded + static const int BT_ERROR_REMOTE_DEVICE_NOT_BONDED = -29359866; + + /// < Authentication rejected + static const int BT_ERROR_AUTH_REJECTED = -29359865; + + /// < Authentication failed + static const int BT_ERROR_AUTH_FAILED = -29359864; + + /// < Remote device not found + static const int BT_ERROR_REMOTE_DEVICE_NOT_FOUND = -29359863; + + /// < Service search failed + static const int BT_ERROR_SERVICE_SEARCH_FAILED = -29359862; + + /// < Remote device is not connected + static const int BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = -29359861; + + /// < Resource temporarily unavailable + static const int BT_ERROR_AGAIN = -29359860; + + /// < Service Not Found + static const int BT_ERROR_SERVICE_NOT_FOUND = -29359859; + + /// < Authorization rejected (Since 5.0) + static const int BT_ERROR_AUTHORIZATION_REJECTED = -29359858; + + /// < Max of connection exceeded (Since 8.0) + static const int BT_ERROR_MAX_CONNECTION = -29359857; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Enumerations of the Bluetooth adapter state. /// @since_tizen 2.3 @@ -10785,6 +10966,201 @@ abstract class bt_adapter_visibility_mode_e { static const int BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE = 2; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Enumerations of the discovery state of Bluetooth device. +/// @since_tizen 2.3 +abstract class bt_adapter_device_discovery_state_e { + /// < Device discovery is started + static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; + + /// < Device discovery is finished + static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; + + /// < The remote Bluetooth device is found + static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising state. +/// @since_tizen 2.3 +abstract class bt_adapter_le_advertising_state_e { + /// < Bluetooth advertising is stopped + static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; + + /// < Bluetooth advertising is started + static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising mode. +/// @since_tizen 2.3.1 +abstract class bt_adapter_le_advertising_mode_e { + /// < Balanced advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; + + /// < Low latency advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; + + /// < Low energy advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; + + /// < Custom mode to set advertising parameters + static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising filter policy. +/// @since_tizen 2.3 +abstract class bt_adapter_le_advertising_filter_policy_e { + /// < White list is not in use + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_DEFAULT = 0; + + /// < Allow the scan + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_WL = 1; + + /// < Allow the connection + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_CONN_WL = 2; + + /// < Allow the + /// scan and connection request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_CONN_WL = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE advertising flags. +/// @since_tizen 8.0 +abstract class bt_adapter_le_advertising_flags_e { + /// < LE Limited Discoverable Mode + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_LIM_DISC = 1; + + /// < LE General Discoverable Mode + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_GEN_DISC = 2; + + /// < BR/EDR Not Supported + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_BREDR_UNSUP = 4; + + /// < Simultaneous LE and BR/EDR to Same Device Capable (Controller) + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_CONTROLLER = 8; + + /// < Simultaneous LE and BR/EDR to Same Device Capable (Host) + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_SIM_HOST = 16; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE packet type. +/// @since_tizen 2.3 +abstract class bt_adapter_le_packet_type_e { + /// < Advertising packet + static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; + + /// < Scan response packet + static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth le scan mode. +/// @since_tizen 3.0 +abstract class bt_adapter_le_scan_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device disconnect reason. +/// @since_tizen 2.3 +abstract class bt_device_disconnect_reason_e { + /// < Disconnected by unknown reason + static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; + + /// < Disconnected by timeout + static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; + + /// < Disconnected by local host + static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; + + /// < Disconnected by remote + static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; + + /// < Disconnected by MIC failure (Since 9.0) + static const int BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of connection link type. +/// @since_tizen 2.3 +abstract class bt_device_connection_link_type_e { + /// < BR/EDR link + static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; + + /// < LE link + static const int BT_DEVICE_CONNECTION_LINK_LE = 1; + + /// < The connection type default + static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device authorization state. +/// @since_tizen 2.3 +abstract class bt_device_authorization_e { + /// < The remote Bluetooth device is authorized + static const int BT_DEVICE_AUTHORIZED = 0; + + /// < The remote Bluetooth device is unauthorized + static const int BT_DEVICE_UNAUTHORIZED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of Bluetooth profile. +/// @since_tizen 2.3 +abstract class bt_profile_e { + /// < RFCOMM Profile + static const int BT_PROFILE_RFCOMM = 1; + + /// < Advanced Audio Distribution Profile Source role + static const int BT_PROFILE_A2DP = 2; + + /// < Headset Profile + static const int BT_PROFILE_HSP = 4; + + /// < Human Interface Device Profile + static const int BT_PROFILE_HID = 8; + + /// < Network Access Point Profile + static const int BT_PROFILE_NAP = 16; + + /// < Audio Gateway Profile + static const int BT_PROFILE_AG = 32; + + /// < Generic Attribute Profile + static const int BT_PROFILE_GATT = 64; + + /// < NAP server Profile + static const int BT_PROFILE_NAP_SERVER = 128; + + /// < Advanced Audio Distribution Profile Sink role + static const int BT_PROFILE_A2DP_SINK = 256; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device address type. +/// @since_tizen 2.3 +abstract class bt_device_address_type_e { + /// < Public address + static const int BT_DEVICE_PUBLIC_ADDRESS = 0; + + /// < Random address + static const int BT_DEVICE_RANDOM_ADDRESS = 1; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Enumerations of service class. /// @since_tizen 2.3 @@ -10868,88 +11244,36 @@ abstract class bt_service_class_t { static const int BT_SC_MAX = 16777216; } -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Called when you get bonded devices repeatedly. -/// @since_tizen 2.3 -/// -/// @param[in] device_info The bonded device information -/// @param[in] user_data The user data passed from the foreach function -/// @return @c true to continue with the next iteration of the loop, -/// \n @c false to break out of the loop. -/// @pre bt_adapter_foreach_bonded_device() will invoke this function. -/// -/// @see bt_adapter_foreach_bonded_device() -typedef bt_adapter_bonded_device_cb - = ffi.Pointer>; -typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); -typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device information structure used for identifying pear device. +/// @brief Enumerations of major service class. /// @since_tizen 2.3 -/// -/// @see #bt_class_s -/// @see bt_device_bond_created_cb() -final class bt_device_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; +abstract class bt_major_service_class_e { + /// < Limited discoverable mode + static const int BT_MAJOR_SERVICE_CLASS_LIMITED_DISCOVERABLE_MODE = 8192; - /// < The bonding state - @ffi.Bool() - external bool is_bonded; + /// < Positioning class + static const int BT_MAJOR_SERVICE_CLASS_POSITIONING = 65536; - /// < The connection state - @ffi.Bool() - external bool is_connected; + /// < Networking class + static const int BT_MAJOR_SERVICE_CLASS_NETWORKING = 131072; - /// < The authorization state - @ffi.Bool() - external bool is_authorized; + /// < Rendering class + static const int BT_MAJOR_SERVICE_CLASS_RENDERING = 262144; - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; + /// < Capturing class + static const int BT_MAJOR_SERVICE_CLASS_CAPTURING = 524288; - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} + /// < Object transferring class + static const int BT_MAJOR_SERVICE_CLASS_OBJECT_TRANSFER = 1048576; -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Class structure of device and service. -/// @since_tizen 2.3 -/// -/// @see #bt_device_info_s -/// @see #bt_adapter_device_discovery_info_s -/// @see bt_device_bond_created_cb() -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_class_s extends ffi.Struct { - /// < Major device class. - @ffi.Int32() - external int major_device_class; + /// < Audio class + static const int BT_MAJOR_SERVICE_CLASS_AUDIO = 2097152; - /// < Minor device class. - @ffi.Int32() - external int minor_device_class; + /// < Telephony class + static const int BT_MAJOR_SERVICE_CLASS_TELEPHONY = 4194304; - /// < Major service class mask. - /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO - @ffi.Int() - external int major_service_class_mask; + /// < Information class + static const int BT_MAJOR_SERVICE_CLASS_INFORMATION = 8388608; } /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE @@ -11165,91 +11489,1111 @@ abstract class bt_minor_device_class_e { static const int BT_MINOR_DEVICE_CLASS_PERIPHERAL_HANDHELD_GESTURAL_INPUT_DEVICE = 36; - /// < Display minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_DISPLAY = 16; + /// < Display minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_DISPLAY = 16; + + /// < Camera minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_CAMERA = 32; + + /// < Scanner minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_SCANNER = 64; + + /// < Printer minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_PRINTER = 128; + + /// < Wrist watch minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_WRIST_WATCH = 4; + + /// < Pager minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_PAGER = 8; + + /// < Jacket minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_JACKET = 12; + + /// < Helmet minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_HELMET = 16; + + /// < Glasses minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_GLASSES = 20; + + /// < Robot minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_ROBOT = 4; + + /// < Vehicle minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_VEHICLE = 8; + + /// < Doll/Action minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_DOLL_ACTION = 12; + + /// < Controller minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_CONTROLLER = 16; + + /// < Game minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_GAME = 20; + + /// < Uncategorized minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_UNCATEGORIZED = 0; + + /// < Blood pressure monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_BLOOD_PRESSURE_MONITOR = 4; + + /// < Thermometer minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_THERMOMETER = 8; + + /// < Weighing scale minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_WEIGHING_SCALE = 12; + + /// < Glucose minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_GLUCOSE_METER = 16; + + /// < Pulse oximeter minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_PULSE_OXIMETER = 20; + + /// < Heart/Pulse rate monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_HEART_PULSE_RATE_MONITOR = 24; + + /// < Health data display minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_DATA_DISPLAY = 28; + + /// < Step counter minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_STEP_COUNTER = 32; + + /// < Body composition analyzer minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_BODY_COMPOSITION_ANALYZER = 36; + + /// < Peak flow monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_PEAK_FLOW_MONITOR = 40; + + /// < Medication monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_MEDICATION_MONITOR = 44; + + /// < Knee prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; + + /// < Ankle prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of gap appearance type. +/// @since_tizen 2.3 +abstract class bt_appearance_type_e { + /// < Unknown appearance type + static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; + + /// < Generic Phone type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; + + /// < Generic Computer type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; + + /// < Generic Watch type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth device's LE connection mode. +/// @since_tizen 3.0 +abstract class bt_device_le_connection_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of connected Bluetooth device event role. +/// @since_tizen 2.3 +abstract class bt_socket_role_e { + /// < Unknown role + static const int BT_SOCKET_UNKNOWN = 0; + + /// < Server role + static const int BT_SOCKET_SERVER = 1; + + /// < Client role + static const int BT_SOCKET_CLIENT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of Bluetooth socket connection state. +/// @since_tizen 2.3 +abstract class bt_socket_connection_state_e { + /// < RFCOMM is connected + static const int BT_SOCKET_CONNECTED = 0; + + /// < RFCOMM is disconnected + static const int BT_SOCKET_DISCONNECTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE +/// @brief Enumerations for the types of profiles related with audio. +/// @since_tizen 2.3 +abstract class bt_audio_profile_type_e { + /// < All supported profiles related with audio (Both Host and Device role) + static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; + + /// < local device AG and remote device HF Client (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; + + /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; + + /// < local device HF Client and remote device AG (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_AG = 3; + + /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; +} + +/// @internal +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the call handling event. +/// @since_tizen 2.3 +abstract class bt_ag_call_handling_event_e { + /// < Request to answer an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_ANSWER = 0; + + /// < Request to release a call + static const int BT_AG_CALL_HANDLING_EVENT_RELEASE = 1; + + /// < Request to reject an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_REJECT = 2; +} + +/// @internal +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the multi call handling event. +/// @since_tizen 2.3 +abstract class bt_ag_multi_call_handling_event_e { + /// < Request to release held calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_HELD_CALLS = 0; + + /// < Request to release active calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_ACTIVE_CALLS = 1; + + /// < Request to put active calls into hold state and activate another (held or waiting) call + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_ACTIVATE_HELD_CALL = 2; + + /// < Request to add a held call to the conversation + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_MERGE_CALLS = 3; + + /// < Request to let a user who has two calls to connect these two calls together and release its connections to both other parties + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_EXPLICIT_CALL_TRANSFER = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the equalizer state. +/// @since_tizen 2.4 +abstract class bt_avrcp_equalizer_state_e { + /// < Equalizer Off + static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; + + /// < Equalizer On + static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the repeat mode. +/// @since_tizen 2.4 +abstract class bt_avrcp_repeat_mode_e { + /// < Repeat Off + static const int BT_AVRCP_REPEAT_MODE_OFF = 1; + + /// < Single track repeat + static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; + + /// < All track repeat + static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; + + /// < Group repeat + static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the shuffle mode. +/// @since_tizen 2.4 +abstract class bt_avrcp_shuffle_mode_e { + /// < Shuffle Off + static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; + + /// < All tracks shuffle + static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; + + /// < Group shuffle + static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the scan mode. +/// @since_tizen 2.4 +abstract class bt_avrcp_scan_mode_e { + /// < Scan Off + static const int BT_AVRCP_SCAN_MODE_OFF = 1; + + /// < All tracks scan + static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; + + /// < Group scan + static const int BT_AVRCP_SCAN_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the player state. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_state_e { + /// < Stopped + static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; + + /// < Playing + static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; + + /// < Paused + static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; + + /// < Seek Forward + static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; + + /// < Seek Rewind + static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumeration for the player control commands. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_command_e { + /// < Play + static const int BT_AVRCP_CONTROL_PLAY = 1; + + /// < Pause + static const int BT_AVRCP_CONTROL_PAUSE = 2; + + /// < Stop + static const int BT_AVRCP_CONTROL_STOP = 3; + + /// < Next Track + static const int BT_AVRCP_CONTROL_NEXT = 4; + + /// < Previous track + static const int BT_AVRCP_CONTROL_PREVIOUS = 5; + + /// < Fast Forward + static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; + + /// < Rewind + static const int BT_AVRCP_CONTROL_REWIND = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Structure of Track metadata information. +/// @since_tizen 3.0 +/// +/// @see #bt_class_s +final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { + /// < Title + external ffi.Pointer title; + + /// < Artist + external ffi.Pointer artist; + + /// < Album name + external ffi.Pointer album; + + /// < Album Genre + external ffi.Pointer genre; + + /// < The total number of tracks + @ffi.UnsignedInt() + external int total_tracks; + + /// < Track number + @ffi.UnsignedInt() + external int number; + + /// < Duration + @ffi.UnsignedInt() + external int duration; +} + +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Enumerations for the data channel type. +/// @since_tizen 2.3 +/// @remarks Deprecated, because of no usecase and supported devices. +abstract class bt_hdp_channel_type_e { + /// < Reliable Data Channel + static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; + + /// < Streaming Data Channel + static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the integer type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_int_e { + /// < 8 bit signed int type + static const int BT_DATA_TYPE_SINT8 = 0; + + /// < 16 bit signed int type + static const int BT_DATA_TYPE_SINT16 = 1; + + /// < 32 bit signed int type + static const int BT_DATA_TYPE_SINT32 = 2; + + /// < 8 bit unsigned int type + static const int BT_DATA_TYPE_UINT8 = 3; + + /// < 16 bit unsigned int type + static const int BT_DATA_TYPE_UINT16 = 4; + + /// < 32 bit unsigned int type + static const int BT_DATA_TYPE_UINT32 = 5; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the float type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_float_e { + /// < 32 bit float type + static const int BT_DATA_TYPE_FLOAT = 0; + + /// < 16 bit float type + static const int BT_DATA_TYPE_SFLOAT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the write type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_write_type_e { + /// < Write without response type + static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; + + /// < Write type + static const int BT_GATT_WRITE_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the GATT handle's type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_type_e { + /// < GATT service type + static const int BT_GATT_TYPE_SERVICE = 1; + + /// < GATT characteristic type + static const int BT_GATT_TYPE_CHARACTERISTIC = 2; + + /// < GATT descriptor type + static const int BT_GATT_TYPE_DESCRIPTOR = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the service type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_service_type_e { + /// < GATT primary service type + static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; + + /// < GATT secondary service type + static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the characteristic's property. +/// @since_tizen 2.3.1 +abstract class bt_gatt_property_e { + /// < Broadcast property + static const int BT_GATT_PROPERTY_BROADCAST = 1; + + /// < Read property + static const int BT_GATT_PROPERTY_READ = 2; + + /// < Write without response property + static const int BT_GATT_PROPERTY_WRITE_WITHOUT_RESPONSE = 4; + + /// < Write property + static const int BT_GATT_PROPERTY_WRITE = 8; + + /// < Notify property + static const int BT_GATT_PROPERTY_NOTIFY = 16; + + /// < Indicate property + static const int BT_GATT_PROPERTY_INDICATE = 32; + + /// < Authenticated signed writes property + static const int BT_GATT_PROPERTY_AUTHENTICATED_SIGNED_WRITES = 64; + + /// < Extended properties + static const int BT_GATT_PROPERTY_EXTENDED_PROPERTIES = 128; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Enumerations of gatt server's service changing mode. +/// @since_tizen 3.0 +abstract class bt_gatt_client_service_change_type_e { + /// < Service added + static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; + + /// < Service removed + static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; + + /// < Resync is required (Since 6.5) + static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the attribute's permission. +/// @since_tizen 3.0 +abstract class bt_gatt_permission_e { + /// < Readable permission + static const int BT_GATT_PERMISSION_READ = 1; + + /// < Writable permission + static const int BT_GATT_PERMISSION_WRITE = 2; + + /// < Readable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_READ = 4; + + /// < Writable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_WRITE = 8; + + /// < Readable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_READ = 16; + + /// < Writable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_WRITE = 32; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE +/// @brief Enumerations of the remote device request types for attributes. +/// @since_tizen 3.0 +abstract class bt_gatt_att_request_type_e { + /// < Read Requested + static const int BT_GATT_REQUEST_TYPE_READ = 0; + + /// < Write Requested + static const int BT_GATT_REQUEST_TYPE_WRITE = 1; +} + +/// @internal +/// @ingroup CAPI_NETWORK_BLUETOOTH_PAN_NAP_MODULE +/// @brief Enumerations for the types of PAN (Personal Area Networking) service. +/// @since_tizen 2.3 +abstract class bt_panu_service_type_e { + /// < Network Access Point + static const int BT_PANU_SERVICE_TYPE_NAP = 0; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of address book location for PBAP. +/// @since_tizen 3.0 +abstract class bt_pbap_address_book_source_e { + /// < Request for Addressbook from remote device + static const int BT_PBAP_SOURCE_DEVICE = 0; + + /// < Request for address book from SIM + static const int BT_PBAP_SOURCE_SIM = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of folder type. +/// @since_tizen 3.0 +abstract class bt_pbap_folder_type_e { + /// < Request for address book + static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; + + /// < Request for incoming calls + static const int BT_PBAP_FOLDER_INCOMING = 1; + + /// < Request for outgoing calls + static const int BT_PBAP_FOLDER_OUTGOING = 2; + + /// < Request for missed calls + static const int BT_PBAP_FOLDER_MISSED = 3; + + /// < Request for combined calls + static const int BT_PBAP_FOLDER_COMBINED = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of phone book search fields. +/// @since_tizen 3.0 +abstract class bt_pbap_search_field_e { + /// < Request for search by name (default) + static const int BT_PBAP_SEARCH_NAME = 0; + + /// < Request for search by phone number + static const int BT_PBAP_SEARCH_NUMBER = 1; + + /// < Request for search by sound + static const int BT_PBAP_SEARCH_SOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of vCard Formats. +/// @since_tizen 3.0 +abstract class bt_pbap_vcard_format_e { + /// < vCard format 2.1 (default) + static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; + + /// < vCard format 3.0 + static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of sorting orders. +/// @since_tizen 3.0 +abstract class bt_pbap_sort_order_e { + /// < Filter order indexed (default) + static const int BT_PBAP_ORDER_INDEXED = 0; + + /// < Filter order alphanumeric + static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; + + /// < Filter order phonetic + static const int BT_PBAP_ORDER_PHONETIC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Class structure of device and service. +/// @since_tizen 2.3 +/// +/// @see #bt_device_info_s +/// @see #bt_adapter_device_discovery_info_s +/// @see bt_device_bond_created_cb() +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_class_s extends ffi.Struct { + /// < Major device class. + @ffi.Int32() + external int major_device_class; + + /// < Minor device class. + @ffi.Int32() + external int minor_device_class; + + /// < Major service class mask. + /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO + @ffi.Int() + external int major_service_class_mask; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Structure of device discovery information. +/// @since_tizen 2.3 +/// +/// @see #bt_class_s +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_adapter_device_discovery_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The Bluetooth appearance + @ffi.Int32() + external int appearance; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Structure of le scan result information. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The address type of remote device + @ffi.Int32() + external int address_type; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < advertising indication data length + @ffi.Int() + external int adv_data_len; + + /// < advertising indication data + external ffi.Pointer adv_data; + + /// < scan response data length + @ffi.Int() + external int scan_data_len; + + /// < scan response data + external ffi.Pointer scan_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief The structure for LE iBeacon scan result information. +/// @since_tizen 4.0 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { + /// < Company ID + @ffi.Int() + external int company_id; + + /// < iBeacon type + @ffi.Int() + external int ibeacon_type; + + /// < UUID + external ffi.Pointer uuid; + + /// < Major ID + @ffi.Int() + external int major_id; + + /// < Minor ID + @ffi.Int() + external int minor_id; + + /// < Measured power + @ffi.Int() + external int measured_power; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief LE service data structure. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_get_scan_result_service_data() +final class bt_adapter_le_service_data_s extends ffi.Struct { + /// < 16 bit UUID of the service data + external ffi.Pointer service_uuid; + + /// < Service data + external ffi.Pointer service_data; + + /// < Service data length + @ffi.Int() + external int service_data_len; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device information structure used for identifying pear device. +/// @since_tizen 2.3 +/// +/// @see #bt_class_s +/// @see bt_device_bond_created_cb() +final class bt_device_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The connection state + @ffi.Bool() + external bool is_connected; + + /// < The authorization state + @ffi.Bool() + external bool is_authorized; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Service Discovery Protocol (SDP) data structure. +/// +/// @details This protocol is used for discovering available services or pear device, +/// and finding one to connect with. +/// +/// @since_tizen 2.3 +/// @see bt_device_service_searched_cb() +final class bt_device_sdp_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services. + @ffi.Int() + external int service_count; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device connection information structure. +/// @since_tizen 2.3 +/// +/// @see bt_device_connection_state_changed_cb() +final class bt_device_connection_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < Link type + @ffi.Int32() + external int link; + + /// < Disconnection reason + @ffi.Int32() + external int disconn_reason; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. +/// @since_tizen 2.3 +/// +/// @see bt_socket_connection_state_changed_cb() +final class bt_socket_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The service UUId + external ffi.Pointer service_uuid; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Structure of RFCOMM received data. +/// @since_tizen 2.3 +/// +/// @remarks User can use standard linux functions for reading/writing \n +/// data from/to sockets. +/// +/// @see bt_socket_data_received_cb() +final class bt_socket_received_data_s extends ffi.Struct { + /// < The socket fd + @ffi.Int() + external int socket_fd; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Attribute protocol MTU change information structure. +/// @since_tizen 4.0 +/// +/// @see bt_gatt_client_att_mtu_changed_cb() +final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < MTU value + @ffi.UnsignedInt() + external int mtu; + + /// < Request status + @ffi.UnsignedInt() + external int status; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID mouse's button. +/// @since_tizen 3.0 +abstract class bt_hid_mouse_button_e { + /// key; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID header type. +/// @since_tizen 3.0 +abstract class bt_hid_header_type_e { + /// < The Bluetooth HID header type: Handshake + static const int BT_HID_HEADER_HANDSHAKE = 0; + + /// < The Bluetooth HID header type: HID control + static const int BT_HID_HEADER_HID_CONTROL = 1; + + /// < The Bluetooth HID header type: Get report + static const int BT_HID_HEADER_GET_REPORT = 2; + + /// < The Bluetooth HID header type: Set report + static const int BT_HID_HEADER_SET_REPORT = 3; + + /// < The Bluetooth HID header type: Get protocol + static const int BT_HID_HEADER_GET_PROTOCOL = 4; + + /// < The Bluetooth HID header type: Set protocol + static const int BT_HID_HEADER_SET_PROTOCOL = 5; + + /// < The Bluetooth HID header type: Data + static const int BT_HID_HEADER_DATA = 6; + + /// < The Bluetooth HID header type: Unknown + static const int BT_HID_HEADER_UNKNOWN = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID parameter type. +/// @since_tizen 3.0 +abstract class bt_hid_param_type_e { + /// < Parameter type: Input + static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; + + /// < Parameter type: Output + static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID handshake type. +/// @since_tizen 3.0 +abstract class bt_hid_handshake_type_e { + /// < Handshake error code none + static const int BT_HID_HANDSHAKE_SUCCESSFUL = 0; - /// < Camera minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_CAMERA = 32; + /// < Handshake error code Not Ready + static const int BT_HID_HANDSHAKE_NOT_READY = 1; - /// < Scanner minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_SCANNER = 64; + /// < Handshake error code send invalid report id + static const int BT_HID_HANDSHAKE_ERR_INVALID_REPORT_ID = 2; - /// < Printer minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_PRINTER = 128; + /// < Handshake error code request unsupported request + static const int BT_HID_HANDSHAKE_ERR_UNSUPPORTED_REQUEST = 3; - /// < Wrist watch minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_WRIST_WATCH = 4; + /// < Handshake error code received invalid parameter + static const int BT_HID_HANDSHAKE_ERR_INVALID_PARAMETER = 4; - /// < Pager minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_PAGER = 8; + /// < unknown error + static const int BT_HID_HANDSHAKE_ERR_UNKNOWN = 14; - /// < Jacket minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_JACKET = 12; + /// < Fatal error + static const int BT_HID_HANDSHAKE_ERR_FATAL = 15; +} - /// < Helmet minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_HELMET = 16; +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief The structure type containing data received from the HID Host. +/// @since_tizen 3.0 +final class bt_hid_device_received_data_s extends ffi.Struct { + /// < The remote device's address + external ffi.Pointer address; - /// < Glasses minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_GLASSES = 20; + /// < The header type + @ffi.Int32() + external int header_type; - /// < Robot minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_ROBOT = 4; + /// < The parameter type + @ffi.Int32() + external int param_type; - /// < Vehicle minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_VEHICLE = 8; + /// < The length of the received data + @ffi.Int() + external int data_size; - /// < Doll/Action minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_DOLL_ACTION = 12; + /// < The received data + external ffi.Pointer data; +} - /// < Controller minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_CONTROLLER = 16; +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief The structure type containing vCard information. +/// @since_tizen 3.0 +/// +/// @see bt_pbap_client_pull_vcard() +final class bt_pbap_vcard_info_s extends ffi.Struct { + /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() + @ffi.Int() + external int index; - /// < Game minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_GAME = 20; + /// < The contact name of the vCard + external ffi.Pointer contact_name; +} - /// < Uncategorized minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_UNCATEGORIZED = 0; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumeration for the scan filter type. +/// @since_tizen 4.0 +/// @see bt_adapter_le_scan_filter_set_type() +abstract class bt_adapter_le_scan_filter_type_e { + /// < iBeacon filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - /// < Blood pressure monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_BLOOD_PRESSURE_MONITOR = 4; + /// < Proximity UUID filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; +} - /// < Thermometer minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_THERMOMETER = 8; +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. +/// @since_tizen 7.0 +/// +/// @see bt_socket_l2cap_channel_connection_state_changed_cb() +final class bt_socket_l2cap_le_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; - /// < Weighing scale minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_WEIGHING_SCALE = 12; + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; - /// < Glucose minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_GLUCOSE_METER = 16; + /// < The local device role in this connection + @ffi.Int32() + external int local_role; - /// < Pulse oximeter minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_PULSE_OXIMETER = 20; + /// < The remote device address + external ffi.Pointer remote_address; - /// < Heart/Pulse rate monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_HEART_PULSE_RATE_MONITOR = 24; + /// < The psm of the connected socket + @ffi.Int() + external int psm; +} - /// < Health data display minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_DATA_DISPLAY = 28; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE +/// @brief Enumerations of the Bluetooth LE scan role. +/// @since_tizen 8.0 +abstract class bt_adapter_le_scan_role_e { + /// < Scan all + static const int BT_ADAPTER_LE_SCAN_ALL = 0; - /// < Step counter minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_STEP_COUNTER = 32; + /// < Legacy scan only + static const int BT_ADAPTER_LE_SCAN_LEGACY_ONLY = 1; - /// < Body composition analyzer minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_BODY_COMPOSITION_ANALYZER = 36; + /// < Extended scan only + static const int BT_ADAPTER_LE_SCAN_EXTENDED_ONLY = 2; +} - /// < Peak flow monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_PEAK_FLOW_MONITOR = 40; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE +/// @brief Enumerations of the Bluetooth LE phy. +/// @since_tizen 8.0 +abstract class bt_adapter_le_phy_e { + /// < All phy + static const int BT_LE_ALL_PHY = 0; - /// < Medication monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_MEDICATION_MONITOR = 44; + /// < 1M phy + static const int BT_LE_1M_PHY = 1; - /// < Knee prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; + /// < 2M phy + static const int BT_LE_2M_PHY = 2; - /// < Ankle prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; + /// < Coded phy + static const int BT_LE_CODED_PHY = 3; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Called when you get bonded devices repeatedly. +/// @since_tizen 2.3 +/// +/// @param[in] device_info The bonded device information +/// @param[in] user_data The user data passed from the foreach function +/// @return @c true to continue with the next iteration of the loop, +/// \n @c false to break out of the loop. +/// @pre bt_adapter_foreach_bonded_device() will invoke this function. +/// +/// @see bt_adapter_foreach_bonded_device() +typedef bt_adapter_bonded_device_cb + = ffi.Pointer>; +typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); +typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Called when the Bluetooth adapter state changes. /// @since_tizen 2.3 @@ -11335,101 +12679,27 @@ typedef Dartbt_adapter_visibility_duration_changed_cbFunction = void Function( /// #BT_ADAPTER_DEVICE_DISCOVERY_FINISHED, then \a discovery_info is NULL. /// @param[in] user_data The user data passed from the callback registration function /// -/// @pre Either bt_adapter_start_device_discovery() or bt_adapter_stop_device_discovery() will invoke this function -/// if you register this callback using bt_adapter_set_device_discovery_state_changed_cb(). -/// -/// @see bt_adapter_start_device_discovery() -/// @see bt_adapter_stop_device_discovery() -/// @see bt_adapter_set_device_discovery_state_changed_cb() -/// @see bt_adapter_unset_device_discovery_state_changed_cb() -typedef bt_adapter_device_discovery_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_adapter_device_discovery_state_changed_cbFunction - = ffi.Void Function( - ffi.Int result, - ffi.Int32 discovery_state, - ffi.Pointer discovery_info, - ffi.Pointer user_data); -typedef Dartbt_adapter_device_discovery_state_changed_cbFunction - = void Function( - int result, - int discovery_state, - ffi.Pointer discovery_info, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Enumerations of the discovery state of Bluetooth device. -/// @since_tizen 2.3 -abstract class bt_adapter_device_discovery_state_e { - /// < Device discovery is started - static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; - - /// < Device discovery is finished - static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; - - /// < The remote Bluetooth device is found - static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Structure of device discovery information. -/// @since_tizen 2.3 -/// -/// @see #bt_class_s -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_adapter_device_discovery_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The Bluetooth appearance - @ffi.Int32() - external int appearance; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of gap appearance type. -/// @since_tizen 2.3 -abstract class bt_appearance_type_e { - /// < Unknown appearance type - static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; - - /// < Generic Phone type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; - - /// < Generic Computer type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; - - /// < Generic Watch type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; -} +/// @pre Either bt_adapter_start_device_discovery() or bt_adapter_stop_device_discovery() will invoke this function +/// if you register this callback using bt_adapter_set_device_discovery_state_changed_cb(). +/// +/// @see bt_adapter_start_device_discovery() +/// @see bt_adapter_stop_device_discovery() +/// @see bt_adapter_set_device_discovery_state_changed_cb() +/// @see bt_adapter_unset_device_discovery_state_changed_cb() +typedef bt_adapter_device_discovery_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_adapter_device_discovery_state_changed_cbFunction + = ffi.Void Function( + ffi.Int result, + ffi.Int32 discovery_state, + ffi.Pointer discovery_info, + ffi.Pointer user_data); +typedef Dartbt_adapter_device_discovery_state_changed_cbFunction + = void Function( + int result, + int discovery_state, + ffi.Pointer discovery_info, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief Called when the LE advertisement has been found. @@ -11451,107 +12721,6 @@ typedef Dartbt_adapter_le_scan_result_cbFunction = void Function( ffi.Pointer info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Structure of le scan result information. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The address type of remote device - @ffi.Int32() - external int address_type; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < advertising indication data length - @ffi.Int() - external int adv_data_len; - - /// < advertising indication data - external ffi.Pointer adv_data; - - /// < scan response data length - @ffi.Int() - external int scan_data_len; - - /// < scan response data - external ffi.Pointer scan_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device address type. -/// @since_tizen 2.3 -abstract class bt_device_address_type_e { - /// < Public address - static const int BT_DEVICE_PUBLIC_ADDRESS = 0; - - /// < Random address - static const int BT_DEVICE_RANDOM_ADDRESS = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth LE packet type. -/// @since_tizen 2.3 -abstract class bt_adapter_le_packet_type_e { - /// < Advertising packet - static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; - - /// < Scan response packet - static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief LE service data structure. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_get_scan_result_service_data() -final class bt_adapter_le_service_data_s extends ffi.Struct { - /// < 16 bit UUID of the service data - external ffi.Pointer service_uuid; - - /// < Service data - external ffi.Pointer service_data; - - /// < Service data length - @ffi.Int() - external int service_data_len; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief The structure for LE iBeacon scan result information. -/// @since_tizen 4.0 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { - /// < Company ID - @ffi.Int() - external int company_id; - - /// < iBeacon type - @ffi.Int() - external int ibeacon_type; - - /// < UUID - external ffi.Pointer uuid; - - /// < Major ID - @ffi.Int() - external int major_id; - - /// < Minor ID - @ffi.Int() - external int minor_id; - - /// < Measured power - @ffi.Int() - external int measured_power; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle to control Bluetooth LE advertising. /// @since_tizen 2.3 @@ -11621,59 +12790,6 @@ typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( int adv_state, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising state. -/// @since_tizen 2.3 -abstract class bt_adapter_le_advertising_state_e { - /// < Bluetooth advertising is stopped - static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; - - /// < Bluetooth advertising is started - static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising mode. -/// @since_tizen 2.3.1 -abstract class bt_adapter_le_advertising_mode_e { - /// < Balanced advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; - - /// < Low latency advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; - - /// < Low energy advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; - - /// < Custom mode to set advertising parameters - static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth le scan mode. -/// @since_tizen 3.0 -abstract class bt_adapter_le_scan_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device authorization state. -/// @since_tizen 2.3 -abstract class bt_device_authorization_e { - /// < The remote Bluetooth device is authorized - static const int BT_DEVICE_AUTHORIZED = 0; - - /// < The remote Bluetooth device is unauthorized - static const int BT_DEVICE_UNAUTHORIZED = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when you get connected profiles repeatedly. /// @since_tizen 2.3 @@ -11691,52 +12807,6 @@ typedef bt_device_connected_profileFunction = ffi.Bool Function( typedef Dartbt_device_connected_profileFunction = bool Function( int profile, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of Bluetooth profile. -/// @since_tizen 2.3 -abstract class bt_profile_e { - /// < RFCOMM Profile - static const int BT_PROFILE_RFCOMM = 1; - - /// < Advanced Audio Distribution Profile Source role - static const int BT_PROFILE_A2DP = 2; - - /// < Headset Profile - static const int BT_PROFILE_HSP = 4; - - /// < Human Interface Device Profile - static const int BT_PROFILE_HID = 8; - - /// < Network Access Point Profile - static const int BT_PROFILE_NAP = 16; - - /// < Audio Gateway Profile - static const int BT_PROFILE_AG = 32; - - /// < Generic Attribute Profile - static const int BT_PROFILE_GATT = 64; - - /// < NAP server Profile - static const int BT_PROFILE_NAP_SERVER = 128; - - /// < Advanced Audio Distribution Profile Sink role - static const int BT_PROFILE_A2DP_SINK = 256; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth device's LE connection mode. -/// @since_tizen 3.0 -abstract class bt_device_le_connection_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the process of creating bond finishes. /// @since_tizen 2.3 @@ -11816,41 +12886,21 @@ typedef Dartbt_device_authorization_changed_cbFunction = void Function( /// @param[in] sdp_info The structure of service lists found on a device /// @param[in] user_data The user data passed from the callback registration function /// @pre Either bt_device_start_service_search() will invoke this function -/// if you register this callback using bt_device_set_service_searched_cb(). -/// -/// @see bt_device_start_service_search() -/// @see bt_device_set_service_searched_cb() -/// @see bt_device_unset_service_searched_cb() -typedef bt_device_service_searched_cb - = ffi.Pointer>; -typedef bt_device_service_searched_cbFunction = ffi.Void Function( - ffi.Int result, - ffi.Pointer sdp_info, - ffi.Pointer user_data); -typedef Dartbt_device_service_searched_cbFunction = void Function( - int result, - ffi.Pointer sdp_info, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Service Discovery Protocol (SDP) data structure. -/// -/// @details This protocol is used for discovering available services or pear device, -/// and finding one to connect with. -/// -/// @since_tizen 2.3 -/// @see bt_device_service_searched_cb() -final class bt_device_sdp_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services. - @ffi.Int() - external int service_count; -} +/// if you register this callback using bt_device_set_service_searched_cb(). +/// +/// @see bt_device_start_service_search() +/// @see bt_device_set_service_searched_cb() +/// @see bt_device_unset_service_searched_cb() +typedef bt_device_service_searched_cb + = ffi.Pointer>; +typedef bt_device_service_searched_cbFunction = ffi.Void Function( + ffi.Int result, + ffi.Pointer sdp_info, + ffi.Pointer user_data); +typedef Dartbt_device_service_searched_cbFunction = void Function( + int result, + ffi.Pointer sdp_info, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the connection state is changed. @@ -11872,58 +12922,6 @@ typedef Dartbt_device_connection_state_changed_cbFunction = void Function( ffi.Pointer conn_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device connection information structure. -/// @since_tizen 2.3 -/// -/// @see bt_device_connection_state_changed_cb() -final class bt_device_connection_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < Link type - @ffi.Int32() - external int link; - - /// < Disconnection reason - @ffi.Int32() - external int disconn_reason; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of connection link type. -/// @since_tizen 2.3 -abstract class bt_device_connection_link_type_e { - /// < BR/EDR link - static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; - - /// < LE link - static const int BT_DEVICE_CONNECTION_LINK_LE = 1; - - /// < The connection type default - static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device disconnect reason. -/// @since_tizen 2.3 -abstract class bt_device_disconnect_reason_e { - /// < Disconnected by unknown reason - static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; - - /// < Disconnected by timeout - static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; - - /// < Disconnected by local host - static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; - - /// < Disconnected by remote - static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; - - /// < Disconnected by MIC failure (Since 9.0) - static const int BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when you receive data. /// @since_tizen 2.3 @@ -11946,27 +12944,6 @@ typedef Dartbt_socket_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Structure of RFCOMM received data. -/// @since_tizen 2.3 -/// -/// @remarks User can use standard linux functions for reading/writing \n -/// data from/to sockets. -/// -/// @see bt_socket_data_received_cb() -final class bt_socket_received_data_s extends ffi.Struct { - /// < The socket fd - @ffi.Int() - external int socket_fd; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when a RFCOMM connection is requested. /// @since_tizen 2.3 @@ -12014,56 +12991,6 @@ typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of Bluetooth socket connection state. -/// @since_tizen 2.3 -abstract class bt_socket_connection_state_e { - /// < RFCOMM is connected - static const int BT_SOCKET_CONNECTED = 0; - - /// < RFCOMM is disconnected - static const int BT_SOCKET_DISCONNECTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. -/// @since_tizen 2.3 -/// -/// @see bt_socket_connection_state_changed_cb() -final class bt_socket_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The service UUId - external ffi.Pointer service_uuid; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of connected Bluetooth device event role. -/// @since_tizen 2.3 -abstract class bt_socket_role_e { - /// < Unknown role - static const int BT_SOCKET_UNKNOWN = 0; - - /// < Server role - static const int BT_SOCKET_SERVER = 1; - - /// < Client role - static const int BT_SOCKET_CLIENT = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_OPP_SERVER_MODULE /// @brief Called when an OPP connection is requested. /// @@ -12224,155 +13151,33 @@ typedef bt_hid_device_connection_state_changed_cb = ffi.Pointer< ffi.NativeFunction>; typedef bt_hid_device_connection_state_changed_cbFunction = ffi.Void Function( ffi.Int result, - ffi.Bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); -typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( - int result, - bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID mouse event information. -/// @since_tizen 3.0 -/// -/// @see bt_hid_device_send_mouse_event() -final class bt_hid_mouse_data_s extends ffi.Struct { - /// < The button values, we can combine key's values when we pressed multiple mouse buttons - @ffi.Int() - external int buttons; - - /// < The location's x value, -128 ~127 - @ffi.Int() - external int axis_x; - - /// < The location's y value, -128 ~127 - @ffi.Int() - external int axis_y; - - /// < The padding value, -128 ~127 - @ffi.Int() - external int padding; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID keyboard event information. -/// @details If you want to know more detail values, refer to http://www.usb.org/developers/hidpage/ and see "HID Usage Tables" -/// @since_tizen 3.0 -/// -/// @see bt_hid_device_send_key_event() -final class bt_hid_key_data_s extends ffi.Struct { - /// < The modifier keys : such as shift, alt - @ffi.UnsignedChar() - external int modifier; - - /// < The key value - currently pressed keys : Max 8 at once - @ffi.Array.multi([8]) - external ffi.Array key; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Called when the HID Device receives data from the HID Host. -/// @details The following error codes can be delivered: \n -/// #BT_ERROR_NONE \n -/// #BT_ERROR_OPERATION_FAILED \n -/// @since_tizen 3.0 -/// -/// @param[in] data The data received from the HID Host. -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hid_device_set_data_received_cb() -typedef bt_hid_device_data_received_cb - = ffi.Pointer>; -typedef bt_hid_device_data_received_cbFunction = ffi.Void Function( - ffi.Pointer data, - ffi.Pointer user_data); -typedef Dartbt_hid_device_data_received_cbFunction = void Function( - ffi.Pointer data, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing data received from the HID Host. -/// @since_tizen 3.0 -final class bt_hid_device_received_data_s extends ffi.Struct { - /// < The remote device's address - external ffi.Pointer address; - - /// < The header type - @ffi.Int32() - external int header_type; - - /// < The parameter type - @ffi.Int32() - external int param_type; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID header type. -/// @since_tizen 3.0 -abstract class bt_hid_header_type_e { - /// < The Bluetooth HID header type: Handshake - static const int BT_HID_HEADER_HANDSHAKE = 0; - - /// < The Bluetooth HID header type: HID control - static const int BT_HID_HEADER_HID_CONTROL = 1; - - /// < The Bluetooth HID header type: Get report - static const int BT_HID_HEADER_GET_REPORT = 2; - - /// < The Bluetooth HID header type: Set report - static const int BT_HID_HEADER_SET_REPORT = 3; - - /// < The Bluetooth HID header type: Get protocol - static const int BT_HID_HEADER_GET_PROTOCOL = 4; - - /// < The Bluetooth HID header type: Set protocol - static const int BT_HID_HEADER_SET_PROTOCOL = 5; - - /// < The Bluetooth HID header type: Data - static const int BT_HID_HEADER_DATA = 6; - - /// < The Bluetooth HID header type: Unknown - static const int BT_HID_HEADER_UNKNOWN = 7; -} + ffi.Bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); +typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( + int result, + bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID parameter type. +/// @brief Called when the HID Device receives data from the HID Host. +/// @details The following error codes can be delivered: \n +/// #BT_ERROR_NONE \n +/// #BT_ERROR_OPERATION_FAILED \n /// @since_tizen 3.0 -abstract class bt_hid_param_type_e { - /// < Parameter type: Input - static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; - - /// < Parameter type: Output - static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE -/// @brief Enumerations for the types of profiles related with audio. -/// @since_tizen 2.3 -abstract class bt_audio_profile_type_e { - /// < All supported profiles related with audio (Both Host and Device role) - static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; - - /// < local device AG and remote device HF Client (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; - - /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; - - /// < local device HF Client and remote device AG (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_AG = 3; - - /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; -} +/// +/// @param[in] data The data received from the HID Host. +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hid_device_set_data_received_cb() +typedef bt_hid_device_data_received_cb + = ffi.Pointer>; +typedef bt_hid_device_data_received_cbFunction = ffi.Void Function( + ffi.Pointer data, + ffi.Pointer user_data); +typedef Dartbt_hid_device_data_received_cbFunction = void Function( + ffi.Pointer data, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE /// @brief Called when the connection state is changed. @@ -12422,82 +13227,6 @@ typedef Dartbt_avrcp_target_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the equalizer state. -/// @since_tizen 2.4 -abstract class bt_avrcp_equalizer_state_e { - /// < Equalizer Off - static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; - - /// < Equalizer On - static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the repeat mode. -/// @since_tizen 2.4 -abstract class bt_avrcp_repeat_mode_e { - /// < Repeat Off - static const int BT_AVRCP_REPEAT_MODE_OFF = 1; - - /// < Single track repeat - static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; - - /// < All track repeat - static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; - - /// < Group repeat - static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the shuffle mode. -/// @since_tizen 2.4 -abstract class bt_avrcp_shuffle_mode_e { - /// < Shuffle Off - static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; - - /// < All tracks shuffle - static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; - - /// < Group shuffle - static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the scan mode. -/// @since_tizen 2.4 -abstract class bt_avrcp_scan_mode_e { - /// < Scan Off - static const int BT_AVRCP_SCAN_MODE_OFF = 1; - - /// < All tracks scan - static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; - - /// < Group scan - static const int BT_AVRCP_SCAN_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the player state. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_state_e { - /// < Stopped - static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; - - /// < Playing - static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; - - /// < Paused - static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; - - /// < Seek Forward - static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; - - /// < Seek Rewind - static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the equalizer state is changed by the remote control device. /// @since_tizen 2.3 @@ -12602,37 +13331,6 @@ typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( ffi.Pointer track, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Structure of Track metadata information. -/// @since_tizen 3.0 -/// -/// @see #bt_class_s -final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { - /// < Title - external ffi.Pointer title; - - /// < Artist - external ffi.Pointer artist; - - /// < Album name - external ffi.Pointer album; - - /// < Album Genre - external ffi.Pointer genre; - - /// < The total number of tracks - @ffi.UnsignedInt() - external int total_tracks; - - /// < Track number - @ffi.UnsignedInt() - external int number; - - /// < Duration - @ffi.UnsignedInt() - external int duration; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the connection state is changed. /// @since_tizen 3.0 @@ -12650,32 +13348,6 @@ typedef Dartbt_avrcp_control_connection_state_changed_cbFunction = void Function(bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumeration for the player control commands. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_command_e { - /// < Play - static const int BT_AVRCP_CONTROL_PLAY = 1; - - /// < Pause - static const int BT_AVRCP_CONTROL_PAUSE = 2; - - /// < Stop - static const int BT_AVRCP_CONTROL_STOP = 3; - - /// < Next Track - static const int BT_AVRCP_CONTROL_NEXT = 4; - - /// < Previous track - static const int BT_AVRCP_CONTROL_PREVIOUS = 5; - - /// < Fast Forward - static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; - - /// < Rewind - static const int BT_AVRCP_CONTROL_REWIND = 7; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is established. @@ -12707,19 +13379,6 @@ typedef Dartbt_hdp_connected_cbFunction = void Function( int channel, ffi.Pointer user_data); -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Enumerations for the data channel type. -/// @since_tizen 2.3 -/// @remarks Deprecated, because of no usecase and supported devices. -abstract class bt_hdp_channel_type_e { - /// < Reliable Data Channel - static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; - - /// < Streaming Data Channel - static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is disconnected. @@ -12743,82 +13402,34 @@ typedef Dartbt_hdp_disconnected_cbFunction = void Function( int result, ffi.Pointer remote_address, int channel, - ffi.Pointer user_data); - -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Called when the you receive the data. -/// @since_tizen 2.3 -/// @remarks Deprecated, because of no usecase and supported devices. -/// -/// @param[in] channel The connected data channel -/// @param[in] data The received data -/// @param[in] size The size of received data (byte) -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hdp_set_data_received_cb() -/// @see bt_hdp_unset_data_received_cb() -typedef bt_hdp_data_received_cb - = ffi.Pointer>; -typedef bt_hdp_data_received_cbFunction = ffi.Void Function( - ffi.UnsignedInt channel, - ffi.Pointer data, - ffi.UnsignedInt size, - ffi.Pointer user_data); -typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, - ffi.Pointer data, int size, ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief The handle of a service, characteristic or descriptor. -/// @since_tizen 2.3.1 -typedef bt_gatt_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the integer type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_int_e { - /// < 8 bit signed int type - static const int BT_DATA_TYPE_SINT8 = 0; - - /// < 16 bit signed int type - static const int BT_DATA_TYPE_SINT16 = 1; - - /// < 32 bit signed int type - static const int BT_DATA_TYPE_SINT32 = 2; - - /// < 8 bit unsigned int type - static const int BT_DATA_TYPE_UINT8 = 3; - - /// < 16 bit unsigned int type - static const int BT_DATA_TYPE_UINT16 = 4; - - /// < 32 bit unsigned int type - static const int BT_DATA_TYPE_UINT32 = 5; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the float type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_float_e { - /// < 32 bit float type - static const int BT_DATA_TYPE_FLOAT = 0; + ffi.Pointer user_data); - /// < 16 bit float type - static const int BT_DATA_TYPE_SFLOAT = 1; -} +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Called when the you receive the data. +/// @since_tizen 2.3 +/// @remarks Deprecated, because of no usecase and supported devices. +/// +/// @param[in] channel The connected data channel +/// @param[in] data The received data +/// @param[in] size The size of received data (byte) +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hdp_set_data_received_cb() +/// @see bt_hdp_unset_data_received_cb() +typedef bt_hdp_data_received_cb + = ffi.Pointer>; +typedef bt_hdp_data_received_cbFunction = ffi.Void Function( + ffi.UnsignedInt channel, + ffi.Pointer data, + ffi.UnsignedInt size, + ffi.Pointer user_data); +typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, + ffi.Pointer data, int size, ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the GATT handle's type. +/// @brief The handle of a service, characteristic or descriptor. /// @since_tizen 2.3.1 -abstract class bt_gatt_type_e { - /// < GATT service type - static const int BT_GATT_TYPE_SERVICE = 1; - - /// < GATT characteristic type - static const int BT_GATT_TYPE_CHARACTERISTIC = 2; - - /// < GATT descriptor type - static const int BT_GATT_TYPE_DESCRIPTOR = 3; -} +typedef bt_gatt_h = ffi.Pointer; /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief The handle of a GATT client which is associated with a remote device. @@ -12845,17 +13456,6 @@ typedef bt_gatt_foreach_cbFunction = ffi.Bool Function(ffi.Int total, typedef Dartbt_gatt_foreach_cbFunction = bool Function(int total, int index, bt_gatt_h gatt_handle, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the write type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_write_type_e { - /// < Write without response type - static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; - - /// < Write type - static const int BT_GATT_WRITE_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when the client request(e.g. read / write) has been completed. /// @since_tizen 2.3.1 @@ -12896,24 +13496,6 @@ typedef Dartbt_gatt_client_att_mtu_changed_cbFunction = void Function( ffi.Pointer mtu_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Attribute protocol MTU change information structure. -/// @since_tizen 4.0 -/// -/// @see bt_gatt_client_att_mtu_changed_cb() -final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < MTU value - @ffi.UnsignedInt() - external int mtu; - - /// < Request status - @ffi.UnsignedInt() - external int status; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when a value of a watched characteristic's GATT handle has been changed. /// @since_tizen 2.3.1 @@ -12959,20 +13541,6 @@ typedef Dartbt_gatt_client_service_changed_cbFunction = void Function( ffi.Pointer service_uuid, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Enumerations of gatt server's service changing mode. -/// @since_tizen 3.0 -abstract class bt_gatt_client_service_change_type_e { - /// < Service added - static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; - - /// < Service removed - static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; - - /// < Resync is required (Since 6.5) - static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE /// @brief Called when the connection state is changed. /// @@ -13002,17 +13570,6 @@ typedef Dartbt_gatt_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the service type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_service_type_e { - /// < GATT primary service type - static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; - - /// < GATT secondary service type - static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief The handle of a GATT server. /// @since_tizen 3.0 @@ -13127,17 +13684,6 @@ typedef Dartbt_gatt_server_write_value_requested_cbFunction = void Function( int len, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE -/// @brief Enumerations of the remote device request types for attributes. -/// @since_tizen 3.0 -abstract class bt_gatt_att_request_type_e { - /// < Read Requested - static const int BT_GATT_REQUEST_TYPE_READ = 0; - - /// < Write Requested - static const int BT_GATT_REQUEST_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief Called when the sending notification / indication is done. /// @since_tizen 3.0 @@ -13205,37 +13751,6 @@ typedef Dartbt_pbap_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of address book location for PBAP. -/// @since_tizen 3.0 -abstract class bt_pbap_address_book_source_e { - /// < Request for Addressbook from remote device - static const int BT_PBAP_SOURCE_DEVICE = 0; - - /// < Request for address book from SIM - static const int BT_PBAP_SOURCE_SIM = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of folder type. -/// @since_tizen 3.0 -abstract class bt_pbap_folder_type_e { - /// < Request for address book - static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; - - /// < Request for incoming calls - static const int BT_PBAP_FOLDER_INCOMING = 1; - - /// < Request for outgoing calls - static const int BT_PBAP_FOLDER_OUTGOING = 2; - - /// < Request for missed calls - static const int BT_PBAP_FOLDER_MISSED = 3; - - /// < Request for combined calls - static const int BT_PBAP_FOLDER_COMBINED = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook size calculation completes. /// @details The following error codes can be delivered: \n @@ -13263,31 +13778,6 @@ typedef Dartbt_pbap_phone_book_size_cbFunction = void Function( int size, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of vCard Formats. -/// @since_tizen 3.0 -abstract class bt_pbap_vcard_format_e { - /// < vCard format 2.1 (default) - static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; - - /// < vCard format 3.0 - static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of sorting orders. -/// @since_tizen 3.0 -abstract class bt_pbap_sort_order_e { - /// < Filter order indexed (default) - static const int BT_PBAP_ORDER_INDEXED = 0; - - /// < Filter order alphanumeric - static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; - - /// < Filter order phonetic - static const int BT_PBAP_ORDER_PHONETIC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook Pull completes. /// @details The received phone book file will be saved in the platform downloads folder. \n @@ -13346,51 +13836,11 @@ typedef Dartbt_pbap_list_vcards_cbFunction = void Function( int count, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief The structure type containing vCard information. -/// @since_tizen 3.0 -/// -/// @see bt_pbap_client_pull_vcard() -final class bt_pbap_vcard_info_s extends ffi.Struct { - /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() - @ffi.Int() - external int index; - - /// < The contact name of the vCard - external ffi.Pointer contact_name; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of phone book search fields. -/// @since_tizen 3.0 -abstract class bt_pbap_search_field_e { - /// < Request for search by name (default) - static const int BT_PBAP_SEARCH_NAME = 0; - - /// < Request for search by phone number - static const int BT_PBAP_SEARCH_NUMBER = 1; - - /// < Request for search by sound - static const int BT_PBAP_SEARCH_SOUND = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle of a Bluetooth LE scan filter. /// @since_tizen 4.0 typedef bt_scan_filter_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumeration for the scan filter type. -/// @since_tizen 4.0 -/// @see bt_adapter_le_scan_filter_set_type() -abstract class bt_adapter_le_scan_filter_type_e { - /// < iBeacon filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - - /// < Proximity UUID filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when the l2cap channel socket connection state changes. /// @since_tizen 7.0 @@ -13421,32 +13871,6 @@ typedef Dartbt_socket_l2cap_channel_connection_state_changed_cbFunction ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. -/// @since_tizen 7.0 -/// -/// @see bt_socket_l2cap_channel_connection_state_changed_cb() -final class bt_socket_l2cap_le_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The psm of the connected socket - @ffi.Int() - external int psm; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE /// @brief Called when the LE advertisement has been found. /// @since_tizen 8.0 @@ -13469,34 +13893,3 @@ typedef Dartbt_adapter_le_new_scan_result_cbFunction = void Function( /// @brief The handle of a new scan result. /// @since_tizen 8.0 typedef bt_new_scan_result_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE -/// @brief Enumerations of the Bluetooth LE scan role. -/// @since_tizen 8.0 -abstract class bt_adapter_le_scan_role_e { - /// < Scan all - static const int BT_ADAPTER_LE_SCAN_ALL = 0; - - /// < Legacy scan only - static const int BT_ADAPTER_LE_SCAN_LEGACY_ONLY = 1; - - /// < Extended scan only - static const int BT_ADAPTER_LE_SCAN_EXTENDED_ONLY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE -/// @brief Enumerations of the Bluetooth LE phy. -/// @since_tizen 8.0 -abstract class bt_adapter_le_phy_e { - /// < All phy - static const int BT_LE_ALL_PHY = 0; - - /// < 1M phy - static const int BT_LE_1M_PHY = 1; - - /// < 2M phy - static const int BT_LE_2M_PHY = 2; - - /// < Coded phy - static const int BT_LE_CODED_PHY = 3; -} diff --git a/lib/src/bindings/10.0/generated_bindings_capi_system_info.dart b/lib/src/bindings/10.0/generated_bindings_capi_system_info.dart index 2ce964d1..c96fbd2d 100644 --- a/lib/src/bindings/10.0/generated_bindings_capi_system_info.dart +++ b/lib/src/bindings/10.0/generated_bindings_capi_system_info.dart @@ -377,6 +377,38 @@ class Tizen100CapiSystemInfo { int Function(ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for system information error codes. +abstract class system_info_error_e { + /// < Successful + static const int SYSTEM_INFO_ERROR_NONE = 0; + + /// < Invalid parameter + static const int SYSTEM_INFO_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int SYSTEM_INFO_ERROR_OUT_OF_MEMORY = -12; + + /// < An input/output error occurred when reading value from system + static const int SYSTEM_INFO_ERROR_IO_ERROR = -5; + + /// < No permission to use the API + static const int SYSTEM_INFO_ERROR_PERMISSION_DENIED = -13; + + /// < Not supported parameter (Since 3.0) + static const int SYSTEM_INFO_ERROR_NOT_SUPPORTED = -1073741822; +} + +/// @internal +/// @brief It is not decided if it should be opened to public. +abstract class system_info_type_e { + static const int SYSTEM_INFO_TYPE_MIN = 0; + static const int SYSTEM_INFO_BOOL = 0; + static const int SYSTEM_INFO_INT = 1; + static const int SYSTEM_INFO_DOUBLE = 2; + static const int SYSTEM_INFO_STRING = 3; + static const int SYSTEM_INFO_TYPE_MAX = 4; +} + /// @internal /// @brief Enumeration for system information key. abstract class system_info_key_e { @@ -425,14 +457,3 @@ abstract class system_info_key_e { /// < @internal Indicates whether the device supports tethering static const int SYSTEM_INFO_KEY_TETHERING_SUPPORTED = 14; } - -/// @internal -/// @brief It is not decided if it should be opened to public. -abstract class system_info_type_e { - static const int SYSTEM_INFO_TYPE_MIN = 0; - static const int SYSTEM_INFO_BOOL = 0; - static const int SYSTEM_INFO_INT = 1; - static const int SYSTEM_INFO_DOUBLE = 2; - static const int SYSTEM_INFO_STRING = 3; - static const int SYSTEM_INFO_TYPE_MAX = 4; -} diff --git a/lib/src/bindings/10.0/generated_bindings_mv_barcode_detector.dart b/lib/src/bindings/10.0/generated_bindings_mv_barcode_detector.dart index 625b2e74..26f15b73 100644 --- a/lib/src/bindings/10.0/generated_bindings_mv_barcode_detector.dart +++ b/lib/src/bindings/10.0/generated_bindings_mv_barcode_detector.dart @@ -83,6 +83,123 @@ class Tizen100MvBarcodeDetector { ffi.Pointer)>(); } +/// @brief Enumeration for supported barcode types. +/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported +/// +/// @since_tizen 2.4 +/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead +abstract class mv_barcode_type_e { + /// < 2D barcode - Quick Response code + static const int MV_BARCODE_QR = 0; + + /// < 1D barcode - Universal Product Code with 12-digit + static const int MV_BARCODE_UPC_A = 1; + + /// < 1D barcode - Universal Product Code with 6-digit + static const int MV_BARCODE_UPC_E = 2; + + /// < 1D barcode - International Article Number with 8-digit + static const int MV_BARCODE_EAN_8 = 3; + + /// < 1D barcode - International Article Number with 13-digit + static const int MV_BARCODE_EAN_13 = 4; + + /// < 1D barcode - Code 128 + static const int MV_BARCODE_CODE128 = 5; + + /// < 1D barcode - Code 39 + static const int MV_BARCODE_CODE39 = 6; + + /// < 1D barcode - Interleaved Two of Five + static const int MV_BARCODE_I2_5 = 7; + + /// < @deprecated Undefined (Deprecated since 6.0) + static const int MV_BARCODE_UNDEFINED = 8; + + /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_2 = 9; + + /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_5 = 10; + + /// < 1D barcode - Code 93 (since 6.0) + static const int MV_BARCODE_CODE93 = 11; + + /// < 1D barcode - CODABAR (since 6.0) + static const int MV_BARCODE_CODABAR = 12; + + /// < 1D barcode - GS1 DATABAR (since 6.0) + static const int MV_BARCODE_DATABAR = 13; + + /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) + static const int MV_BARCODE_DATABAR_EXPAND = 14; + + /// < Unknown (since 6.0) + static const int MV_BARCODE_UNKNOWN = 100; +} + +/// @brief Enumeration for supported QR code error correction level. +/// +/// @since_tizen 2.4 +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_ecc_e { + /// < Recovery up to 7% losses + static const int MV_BARCODE_QR_ECC_LOW = 0; + + /// < Recovery up to 15% losses + static const int MV_BARCODE_QR_ECC_MEDIUM = 1; + + /// < Recovery up to 25% losses + static const int MV_BARCODE_QR_ECC_QUARTILE = 2; + + /// < Recovery up to 30% losses + static const int MV_BARCODE_QR_ECC_HIGH = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_ECC_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported QR code encoding mode. +/// +/// @since_tizen 2.4 +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_mode_e { + /// < Numeric digits + static const int MV_BARCODE_QR_MODE_NUMERIC = 0; + + /// < Alphanumeric characters + static const int MV_BARCODE_QR_MODE_ALPHANUMERIC = 1; + + /// < Raw 8-bit bytes + static const int MV_BARCODE_QR_MODE_BYTE = 2; + + /// < UTF-8 character encoding + static const int MV_BARCODE_QR_MODE_UTF8 = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_MODE_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported image formats for the barcode generating. +/// +/// @since_tizen 2.4 +abstract class mv_barcode_image_format_e { + /// < Unavailable image format + static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; + + /// < BMP image format + static const int MV_BARCODE_IMAGE_FORMAT_BMP = 0; + + /// < JPEG image format + static const int MV_BARCODE_IMAGE_FORMAT_JPG = 1; + + /// < PNG image format + static const int MV_BARCODE_IMAGE_FORMAT_PNG = 2; + + /// < The number of supported image format + static const int MV_BARCODE_IMAGE_FORMAT_NUM = 3; +} + /// @brief Enumeration to target attribute /// /// @since_tizen 2.4 @@ -153,61 +270,6 @@ typedef Dartmv_barcode_detected_cbFunction = void Function( int number_of_barcodes, ffi.Pointer user_data); -/// @brief Enumeration for supported barcode types. -/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported -/// -/// @since_tizen 2.4 -/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead -abstract class mv_barcode_type_e { - /// < 2D barcode - Quick Response code - static const int MV_BARCODE_QR = 0; - - /// < 1D barcode - Universal Product Code with 12-digit - static const int MV_BARCODE_UPC_A = 1; - - /// < 1D barcode - Universal Product Code with 6-digit - static const int MV_BARCODE_UPC_E = 2; - - /// < 1D barcode - International Article Number with 8-digit - static const int MV_BARCODE_EAN_8 = 3; - - /// < 1D barcode - International Article Number with 13-digit - static const int MV_BARCODE_EAN_13 = 4; - - /// < 1D barcode - Code 128 - static const int MV_BARCODE_CODE128 = 5; - - /// < 1D barcode - Code 39 - static const int MV_BARCODE_CODE39 = 6; - - /// < 1D barcode - Interleaved Two of Five - static const int MV_BARCODE_I2_5 = 7; - - /// < @deprecated Undefined (Deprecated since 6.0) - static const int MV_BARCODE_UNDEFINED = 8; - - /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_2 = 9; - - /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_5 = 10; - - /// < 1D barcode - Code 93 (since 6.0) - static const int MV_BARCODE_CODE93 = 11; - - /// < 1D barcode - CODABAR (since 6.0) - static const int MV_BARCODE_CODABAR = 12; - - /// < 1D barcode - GS1 DATABAR (since 6.0) - static const int MV_BARCODE_DATABAR = 13; - - /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) - static const int MV_BARCODE_DATABAR_EXPAND = 14; - - /// < Unknown (since 6.0) - static const int MV_BARCODE_UNKNOWN = 100; -} - const String MV_BARCODE_DETECT_ATTR_TARGET = 'MV_BARCODE_DETECT_ATTR_TARGET'; const String MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES = diff --git a/lib/src/bindings/10.0/generated_bindings_mv_barcode_generator.dart b/lib/src/bindings/10.0/generated_bindings_mv_barcode_generator.dart index 0f782092..f51b3f39 100644 --- a/lib/src/bindings/10.0/generated_bindings_mv_barcode_generator.dart +++ b/lib/src/bindings/10.0/generated_bindings_mv_barcode_generator.dart @@ -279,7 +279,7 @@ abstract class _mv_barcode_type_e { /// /// @since_tizen 2.4 /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_mode_e { +abstract class _mv_barcode_qr_mode_e { /// < Numeric digits static const int MV_BARCODE_QR_MODE_NUMERIC = 0; @@ -300,7 +300,7 @@ abstract class mv_barcode_qr_mode_e { /// /// @since_tizen 2.4 /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_ecc_e { +abstract class _mv_barcode_qr_ecc_e { /// < Recovery up to 7% losses static const int MV_BARCODE_QR_ECC_LOW = 0; @@ -320,7 +320,7 @@ abstract class mv_barcode_qr_ecc_e { /// @brief Enumeration for supported image formats for the barcode generating. /// /// @since_tizen 2.4 -abstract class mv_barcode_image_format_e { +abstract class _mv_barcode_image_format_e { /// < Unavailable image format static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; diff --git a/lib/src/bindings/10.0/generated_bindings_mv_face.dart b/lib/src/bindings/10.0/generated_bindings_mv_face.dart index d64cf992..5ea038a7 100644 --- a/lib/src/bindings/10.0/generated_bindings_mv_face.dart +++ b/lib/src/bindings/10.0/generated_bindings_mv_face.dart @@ -1120,6 +1120,55 @@ class Tizen100MvFace { ffi.Pointer, ffi.Pointer)>(); } +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for eyes state type. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_eye_condition_recognize() +abstract class mv_face_eye_condition_e { + /// < Eyes are open + static const int MV_FACE_EYES_OPEN = 0; + + /// < Eyes are closed + static const int MV_FACE_EYES_CLOSED = 1; + + /// < The eyes condition wasn't determined + static const int MV_FACE_EYES_NOT_FOUND = 2; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for expression types can be determined for faces. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_facial_expression_recognize() +abstract class mv_face_facial_expression_e { + /// < Unknown face expression + static const int MV_FACE_UNKNOWN = 0; + + /// < Face expression is neutral + static const int MV_FACE_NEUTRAL = 1; + + /// < Face expression is smiling + static const int MV_FACE_SMILE = 2; + + /// < Face expression is sadness + static const int MV_FACE_SADNESS = 3; + + /// < Face expression is surprise + static const int MV_FACE_SURPRISE = 4; + + /// < Face expression is anger + static const int MV_FACE_ANGER = 5; + + /// < Face expression is fear + static const int MV_FACE_FEAR = 6; + + /// < Face expression is disgust + static const int MV_FACE_DISGUST = 7; +} + /// @deprecated Deprecated since 9.0 /// @brief Called when faces are detected for the @a source. /// @details This type callback can be invoked each time when @@ -1337,23 +1386,6 @@ typedef Dartmv_face_eye_condition_recognized_cbFunction = void Function( int eye_condition, ffi.Pointer user_data); -/// @deprecated Deprecated since 9.0 -/// @brief Enumeration for eyes state type. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_eye_condition_recognize() -abstract class mv_face_eye_condition_e { - /// < Eyes are open - static const int MV_FACE_EYES_OPEN = 0; - - /// < Eyes are closed - static const int MV_FACE_EYES_CLOSED = 1; - - /// < The eyes condition wasn't determined - static const int MV_FACE_EYES_NOT_FOUND = 2; -} - /// @deprecated Deprecated since 9.0 /// @brief Called when facial expression is recognized. /// @details This type callback can be invoked each time when @@ -1391,38 +1423,6 @@ typedef Dartmv_face_facial_expression_recognized_cbFunction = void Function( int facial_expression, ffi.Pointer user_data); -/// @deprecated Deprecated since 9.0 -/// @brief Enumeration for expression types can be determined for faces. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_facial_expression_recognize() -abstract class mv_face_facial_expression_e { - /// < Unknown face expression - static const int MV_FACE_UNKNOWN = 0; - - /// < Face expression is neutral - static const int MV_FACE_NEUTRAL = 1; - - /// < Face expression is smiling - static const int MV_FACE_SMILE = 2; - - /// < Face expression is sadness - static const int MV_FACE_SADNESS = 3; - - /// < Face expression is surprise - static const int MV_FACE_SURPRISE = 4; - - /// < Face expression is anger - static const int MV_FACE_ANGER = 5; - - /// < Face expression is fear - static const int MV_FACE_FEAR = 6; - - /// < Face expression is disgust - static const int MV_FACE_DISGUST = 7; -} - const String MV_FACE_DETECTION_MODEL_FILE_PATH = 'MV_FACE_DETECTION_MODEL_FILE_PATH'; diff --git a/lib/src/bindings/10.0/generated_bindings_mv_inference.dart b/lib/src/bindings/10.0/generated_bindings_mv_inference.dart index 5250fb7f..3001be29 100644 --- a/lib/src/bindings/10.0/generated_bindings_mv_inference.dart +++ b/lib/src/bindings/10.0/generated_bindings_mv_inference.dart @@ -839,6 +839,172 @@ class Tizen100MvInference { ffi.Pointer)>(); } +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for inference backend. +/// #MV_INFERENCE_BACKEND_OPENCV An open source computer vision and machine learning +/// software library. +/// (https://opencv.org/about/) +/// #MV_INFERENCE_BACKEND_TFLITE Google-introduced open source inference engine for embedded systems, +/// which runs Tensorflow Lite model. +/// (https://www.tensorflow.org/lite/guide/get_started) +/// #MV_INFERENCE_BACKEND_ARMNN ARM-introduced open source inference engine for CPUs, GPUs and NPUs, which +/// enables efficient translation of existing neural network frameworks +/// such as TensorFlow, TensorFlow Lite and Caffes, allowing them to +/// run efficiently without modification on Embedded hardware. +/// (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn) +/// #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which +/// runs various NN models via tensor filters of NNStreamer. (Deprecated since 7.0) +/// (https://github.com/nnstreamer/nnstreamer) +/// #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which +/// performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU. +/// (https://github.com/Samsung/ONE) +/// +/// @since_tizen 5.5 +/// +/// @see mv_inference_prepare() +abstract class mv_inference_backend_type_e { + /// < None + static const int MV_INFERENCE_BACKEND_NONE = -1; + + /// < OpenCV + static const int MV_INFERENCE_BACKEND_OPENCV = 0; + + /// < TensorFlow-Lite + static const int MV_INFERENCE_BACKEND_TFLITE = 1; + + /// < @deprecated ARMNN (Since 6.0) (Deprecated since 8.0) + static const int MV_INFERENCE_BACKEND_ARMNN = 2; + + /// < @deprecated ML Single API of NNStreamer (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MLAPI = 3; + + /// < On-device Neural Engine (Since 6.0) + static const int MV_INFERENCE_BACKEND_ONE = 4; + + /// < NNTrainer (Since 7.0) + static const int MV_INFERENCE_BACKEND_NNTRAINER = 5; + + /// < SNPE Engine (Since 7.0) + static const int MV_INFERENCE_BACKEND_SNPE = 6; + + /// < @deprecated Backend MAX (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MAX = 7; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for inference target. +/// +/// @since_tizen 6.0 +abstract class mv_inference_target_device_e { + /// < None + static const int MV_INFERENCE_TARGET_DEVICE_NONE = 0; + + /// < CPU + static const int MV_INFERENCE_TARGET_DEVICE_CPU = 1; + + /// < GPU + static const int MV_INFERENCE_TARGET_DEVICE_GPU = 2; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_DEVICE_CUSTOM = 4; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_DEVICE_MAX = 8; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for input data type. +/// +/// @since_tizen 6.0 +abstract class mv_inference_data_type_e { + /// < Data type of a given pre-trained model is float. + static const int MV_INFERENCE_DATA_FLOAT32 = 0; + + /// < Data type of a given pre-trained model is unsigned char. + static const int MV_INFERENCE_DATA_UINT8 = 1; + + /// < Data type of a given pre-trained model is signed char. (Since 10.0) + static const int MV_INFERENCE_DATA_INT8 = 2; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for human pose landmark. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_pose_landmark_e { + /// < Head of human pose + static const int MV_INFERENCE_HUMAN_POSE_HEAD = 1; + + /// < Neck of human pose + static const int MV_INFERENCE_HUMAN_POSE_NECK = 2; + + /// < Thorax of human pose + static const int MV_INFERENCE_HUMAN_POSE_THORAX = 3; + + /// < Right shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_SHOULDER = 4; + + /// < Right elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ELBOW = 5; + + /// < Right wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_WRIST = 6; + + /// < Left shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_SHOULDER = 7; + + /// < Left elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ELBOW = 8; + + /// < Left wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_WRIST = 9; + + /// < Pelvis of human pose + static const int MV_INFERENCE_HUMAN_POSE_PELVIS = 10; + + /// < Right hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_HIP = 11; + + /// < Right knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_KNEE = 12; + + /// < Right ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ANKLE = 13; + + /// < Left hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_HIP = 14; + + /// < Left knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_KNEE = 15; + + /// < Left ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ANKLE = 16; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for human body parts. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_body_part_e { + /// < HEAD, NECK, and THORAX + static const int MV_INFERENCE_HUMAN_BODY_PART_HEAD = 1; + + /// < RIGHT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_RIGHT = 2; + + /// < LEFT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_LEFT = 4; + + /// < THORAX, PELVIS, RIGHT HIP, and LEFT HIP + static const int MV_INFERENCE_HUMAN_BODY_PART_BODY = 8; + + /// < RIGHT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_RIGHT = 16; + + /// < LEFT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_LEFT = 32; +} + /// @deprecated Deprecated since 9.0 /// @brief The inference handle. /// @details Contains information about location of diff --git a/lib/src/bindings/10.0/generated_bindings_mv_landmark_detection.dart b/lib/src/bindings/10.0/generated_bindings_mv_landmark_detection.dart index 3b2c0fb5..3331a372 100644 --- a/lib/src/bindings/10.0/generated_bindings_mv_landmark_detection.dart +++ b/lib/src/bindings/10.0/generated_bindings_mv_landmark_detection.dart @@ -331,9 +331,320 @@ class Tizen100MvLandmarkDetection { _mv_facial_landmark_get_positionPtr.asFunction< int Function(mv_facial_landmark_h, int, ffi.Pointer, ffi.Pointer)>(); + + /// @brief Creates pose landmark object handle. + /// @details Use this function to create an pose landmark object handle. + /// After creation the handle has to be prepared with + /// mv_pose_landmark_prepare() function to prepare + /// a pose landmark object. + /// + /// @since_tizen 9.0 + /// + /// @param[out] handle The handle to the pose landmark object to be created + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INTERNAL Internal Error + /// + /// @post Release @a handle by using + /// mv_pose_landmark_destroy() function when it is not needed + /// anymore + /// + /// @code + /// #include + /// ... + /// mv_pose_landmark_h handle = NULL; + /// mv_pose_landmark_create(&handle); + /// ... + /// mv_pose_landmark_destroy(handle); + /// @endcode + /// + /// @see mv_pose_landmark_destroy() + int mv_pose_landmark_create( + ffi.Pointer handle, + ) { + return _mv_pose_landmark_create( + handle, + ); + } + + late final _mv_pose_landmark_createPtr = _lookup< + ffi + .NativeFunction)>>( + 'mv_pose_landmark_create'); + late final _mv_pose_landmark_create = _mv_pose_landmark_createPtr + .asFunction)>(); + + /// @brief Destroys pose landmark handle and releases all its resources. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the pose landmark object to be destroyed. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create an pose landmark handle by using mv_pose_landmark_create() + /// + /// @see mv_pose_landmark_create() + int mv_pose_landmark_destroy( + mv_pose_landmark_h handle, + ) { + return _mv_pose_landmark_destroy( + handle, + ); + } + + late final _mv_pose_landmark_destroyPtr = + _lookup>( + 'mv_pose_landmark_destroy'); + late final _mv_pose_landmark_destroy = _mv_pose_landmark_destroyPtr + .asFunction(); + + /// @brief Configures the backend to the inference handle. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + int mv_pose_landmark_configure( + mv_pose_landmark_h handle, + ) { + return _mv_pose_landmark_configure( + handle, + ); + } + + late final _mv_pose_landmark_configurePtr = + _lookup>( + 'mv_pose_landmark_configure'); + late final _mv_pose_landmark_configure = _mv_pose_landmark_configurePtr + .asFunction(); + + /// @brief Prepares inference. + /// @details Use this function to prepare inference based on + /// the configured network. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INVALID_DATA Invalid model data + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + int mv_pose_landmark_prepare( + mv_pose_landmark_h handle, + ) { + return _mv_pose_landmark_prepare( + handle, + ); + } + + late final _mv_pose_landmark_preparePtr = + _lookup>( + 'mv_pose_landmark_prepare'); + late final _mv_pose_landmark_prepare = _mv_pose_landmark_preparePtr + .asFunction(); + + /// @brief Inferences with a given facial on the @a source. + /// @details Use this function to inference with a given source. + /// + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the pose landmark object. + /// @param[in] source The handle to the source of the media. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an pose landmark handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an pose landmark by calling mv_pose_landmark_prepare() + /// + /// @par Inference Example + /// @snippet pose_landmark_sync.c PLD sync + int mv_pose_landmark_inference( + mv_pose_landmark_h handle, + mv_common.mv_source_h source, + ) { + return _mv_pose_landmark_inference( + handle, + source, + ); + } + + late final _mv_pose_landmark_inferencePtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_pose_landmark_h, + mv_common.mv_source_h)>>('mv_pose_landmark_inference'); + late final _mv_pose_landmark_inference = _mv_pose_landmark_inferencePtr + .asFunction(); + + /// @brief Performs asynchronously the pose landmark inference on the @a source. + /// + /// @since_tizen 9.0 + /// @remarks This function operates asynchronously, so it returns immediately upon invocation. + /// The inference results are inserted into the outgoing queue within the framework + /// in the order of processing, and the results can be obtained through mv_pose_landmark_get_result_count() + /// and mv_pose_landmark_get_position(). + /// + /// @param[in] handle The handle to the inference + /// @param[in] source The handle to the source of the media + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an inference by calling mv_pose_landmark_prepare() + /// + /// @par Async Inference Example + /// @snippet pose_landmark_async.c PLD async + int mv_pose_landmark_inference_async( + mv_pose_landmark_h handle, + mv_common.mv_source_h source, + ) { + return _mv_pose_landmark_inference_async( + handle, + source, + ); + } + + late final _mv_pose_landmark_inference_asyncPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_pose_landmark_h, + mv_common.mv_source_h)>>('mv_pose_landmark_inference_async'); + late final _mv_pose_landmark_inference_async = + _mv_pose_landmark_inference_asyncPtr.asFunction< + int Function(mv_pose_landmark_h, mv_common.mv_source_h)>(); + + /// @brief Gets the result count to objects. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// @param[out] frame_number A frame number inferenced. + /// @param[out] result_cnt A number of results. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an inference by calling mv_pose_landmark_prepare() + /// @pre Request an inference by calling mv_pose_landmark_inference() + int mv_pose_landmark_get_result_count( + mv_pose_landmark_h handle, + ffi.Pointer frame_number, + ffi.Pointer result_cnt, + ) { + return _mv_pose_landmark_get_result_count( + handle, + frame_number, + result_cnt, + ); + } + + late final _mv_pose_landmark_get_result_countPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_pose_landmark_h, + ffi.Pointer, + ffi.Pointer)>>( + 'mv_pose_landmark_get_result_count'); + late final _mv_pose_landmark_get_result_count = + _mv_pose_landmark_get_result_countPtr.asFunction< + int Function(mv_pose_landmark_h, ffi.Pointer, + ffi.Pointer)>(); + + /// @brief Gets the pose landmark position values to a given index. + /// + /// @since_tizen 9.0 + /// @remarks pos_x and pos_y arrays are allocated internally by the framework and will remain valid + /// until the handle is released. + /// Please do not deallocate them directly, and if you want to use them after the handle is released, + /// please copy them to user memory and use the copy. + /// + /// This function operates differently depending on the inference request method. + /// - After mv_facial_landmark_inference() calls, this function returns facial landmark positions immediately. + /// - After mv_facial_landmark_inference_async() calls, this function can be blocked until the asynchronous inference request is completed + /// or the timeout occurs if no result within 3 seconds. + /// + /// Additionally, after calling the mv_facial_landmark_inference_async function, the function operates + /// in asynchronous mode until the handle is released. + /// + /// @param[in] handle The handle to the inference + /// @param[in] index A result index. + /// @param[out] pos_x An array containing x-coordinate values. + /// @param[out] pos_y An array containing y-coordinate values. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an inference by calling mv_pose_landmark_prepare() + /// @pre Prepare an inference by calling mv_pose_landmark_inference() + /// @pre Get result count by calling mv_pose_landmark_get_result_count() + int mv_pose_landmark_get_position( + mv_pose_landmark_h handle, + int index, + ffi.Pointer pos_x, + ffi.Pointer pos_y, + ) { + return _mv_pose_landmark_get_position( + handle, + index, + pos_x, + pos_y, + ); + } + + late final _mv_pose_landmark_get_positionPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_pose_landmark_h, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer)>>('mv_pose_landmark_get_position'); + late final _mv_pose_landmark_get_position = + _mv_pose_landmark_get_positionPtr.asFunction< + int Function(mv_pose_landmark_h, int, ffi.Pointer, + ffi.Pointer)>(); } /// @brief The facial landmark object handle. /// /// @since_tizen 9.0 typedef mv_facial_landmark_h = ffi.Pointer; + +/// @brief The pose landmark object handle. +/// +/// @since_tizen 9.0 +typedef mv_pose_landmark_h = ffi.Pointer; diff --git a/lib/src/bindings/10.0/generated_bindings_mv_object_detection.dart b/lib/src/bindings/10.0/generated_bindings_mv_object_detection.dart index 0b1f37d1..d889e05c 100644 --- a/lib/src/bindings/10.0/generated_bindings_mv_object_detection.dart +++ b/lib/src/bindings/10.0/generated_bindings_mv_object_detection.dart @@ -25,6 +25,321 @@ class Tizen100MvObjectDetection { lookup) : _lookup = lookup; + /// @brief Creates a inference handle for face detection object. + /// @details Use this function to create a inference handle. After the creation + /// the face detection task has to be prepared with + /// mv_face_detection_prepare() function to prepare a network + /// for the inference. + /// + /// @since_tizen 9.0 + /// + /// @remarks The @a handle should be released using mv_face_detection_destroy(). + /// + /// @param[out] handle The handle to the inference to be created. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INTERNAL Internal Error + /// + /// @code + /// #include + /// ... + /// mv_face_detection_h handle = NULL; + /// mv_face_detection_create(&handle); + /// ... + /// mv_face_detection_destroy(handle); + /// @endcode + /// + /// @see mv_face_detection_destroy() + /// @see mv_face_detection_prepare() + int mv_face_detection_create( + ffi.Pointer handle, + ) { + return _mv_face_detection_create( + handle, + ); + } + + late final _mv_face_detection_createPtr = _lookup< + ffi + .NativeFunction)>>( + 'mv_face_detection_create'); + late final _mv_face_detection_create = _mv_face_detection_createPtr + .asFunction)>(); + + /// @brief Destroys inference handle and releases all its resources. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference to be destroyed. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create inference handle by using mv_face_detection_create() + /// + /// @see mv_face_detection_create() + int mv_face_detection_destroy( + mv_face_detection_h handle, + ) { + return _mv_face_detection_destroy( + handle, + ); + } + + late final _mv_face_detection_destroyPtr = + _lookup>( + 'mv_face_detection_destroy'); + late final _mv_face_detection_destroy = _mv_face_detection_destroyPtr + .asFunction(); + + /// @brief Configures the backend for the face detection inference. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + /// + /// @pre Create an inference handle by calling mv_face_detection_create() + int mv_face_detection_configure( + mv_face_detection_h handle, + ) { + return _mv_face_detection_configure( + handle, + ); + } + + late final _mv_face_detection_configurePtr = + _lookup>( + 'mv_face_detection_configure'); + late final _mv_face_detection_configure = _mv_face_detection_configurePtr + .asFunction(); + + /// @brief Prepares the face detection inference. + /// @details Use this function to prepare the face detection inference based on + /// the configured network. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INVALID_DATA Invalid model data + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + /// @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Not supported format + /// + /// @pre Prepare an inference by calling mv_face_detection_configure() + int mv_face_detection_prepare( + mv_face_detection_h handle, + ) { + return _mv_face_detection_prepare( + handle, + ); + } + + late final _mv_face_detection_preparePtr = + _lookup>( + 'mv_face_detection_prepare'); + late final _mv_face_detection_prepare = _mv_face_detection_preparePtr + .asFunction(); + + /// @brief Performs the face detection inference on the @a source. + /// + /// @since_tizen 9.0 + /// @remarks This function is synchronous and may take considerable time to run. + /// + /// @param[in] handle The handle to the inference + /// @param[in] source The handle to the source of the media + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// + /// @par Inference Example + /// @snippet face_detection_sync.c FD sync + int mv_face_detection_inference( + mv_face_detection_h handle, + mv_common.mv_source_h source, + ) { + return _mv_face_detection_inference( + handle, + source, + ); + } + + late final _mv_face_detection_inferencePtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_face_detection_h, + mv_common.mv_source_h)>>('mv_face_detection_inference'); + late final _mv_face_detection_inference = _mv_face_detection_inferencePtr + .asFunction(); + + /// @brief Performs asynchronously the face detection inference on the @a source. + /// + /// @since_tizen 9.0 + /// @remarks This function operates asynchronously, so it returns immediately upon invocation. + /// The inference results are inserted into the outgoing queue within the framework + /// in the order of processing, and the results can be obtained through mv_face_detection_get_result_count() + /// and mv_face_detection_get_bound_box(). + /// + /// @param[in] handle The handle to the inference + /// @param[in] source The handle to the source of the media + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// + /// @par Async Inference Example + /// @snippet face_detection_async.c FD async + int mv_face_detection_inference_async( + mv_face_detection_h handle, + mv_common.mv_source_h source, + ) { + return _mv_face_detection_inference_async( + handle, + source, + ); + } + + late final _mv_face_detection_inference_asyncPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_face_detection_h, + mv_common.mv_source_h)>>('mv_face_detection_inference_async'); + late final _mv_face_detection_inference_async = + _mv_face_detection_inference_asyncPtr.asFunction< + int Function(mv_face_detection_h, mv_common.mv_source_h)>(); + + /// @brief Gets the face detection inference result on the @a handle. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// @param[out] frame_number A frame number inferenced. + /// @param[out] result_cnt A number of results. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// @pre Request an inference by calling mv_face_detection_inference() + int mv_face_detection_get_result_count( + mv_face_detection_h handle, + ffi.Pointer frame_number, + ffi.Pointer result_cnt, + ) { + return _mv_face_detection_get_result_count( + handle, + frame_number, + result_cnt, + ); + } + + late final _mv_face_detection_get_result_countPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_face_detection_h, + ffi.Pointer, + ffi.Pointer)>>( + 'mv_face_detection_get_result_count'); + late final _mv_face_detection_get_result_count = + _mv_face_detection_get_result_countPtr.asFunction< + int Function(mv_face_detection_h, ffi.Pointer, + ffi.Pointer)>(); + + /// @brief Gets a bound box to detected face region. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// @param[in] index A result index. + /// @param[out] left An left position of bound box. + /// @param[out] top An top position of bound box. + /// @param[out] right An right position of bound box. + /// @param[out] bottom An bottom position of bound box. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// @pre Request an inference by calling mv_face_detection_inference() + /// @pre Get result count by calling mv_face_detection_get_result_count() + int mv_face_detection_get_bound_box( + mv_face_detection_h handle, + int index, + ffi.Pointer left, + ffi.Pointer top, + ffi.Pointer right, + ffi.Pointer bottom, + ) { + return _mv_face_detection_get_bound_box( + handle, + index, + left, + top, + right, + bottom, + ); + } + + late final _mv_face_detection_get_bound_boxPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_face_detection_h, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('mv_face_detection_get_bound_box'); + late final _mv_face_detection_get_bound_box = + _mv_face_detection_get_bound_boxPtr.asFunction< + int Function( + mv_face_detection_h, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + /// @brief Creates a inference handle for object detection object. /// @details Use this function to create a inference handle. After the creation /// the object detection 3d task has to be prepared with @@ -336,6 +651,11 @@ class Tizen100MvObjectDetection { ffi.Pointer)>(); } +/// @brief The face detection object handle. +/// +/// @since_tizen 9.0 +typedef mv_face_detection_h = ffi.Pointer; + /// @brief The object detection object handle. /// /// @since_tizen 9.0 diff --git a/lib/src/bindings/10.0/generated_bindings_tbm.dart b/lib/src/bindings/10.0/generated_bindings_tbm.dart index 64b31e40..17e56bff 100644 --- a/lib/src/bindings/10.0/generated_bindings_tbm.dart +++ b/lib/src/bindings/10.0/generated_bindings_tbm.dart @@ -449,6 +449,8 @@ class Tizen100Tbm { _tbm_surface_get_formatPtr.asFunction(); } +final class _tbm_surface extends ffi.Opaque {} + /// @brief Enumeration for tbm_surface error type. /// @since_tizen 2.3 abstract class tbm_surface_error_e { @@ -544,12 +546,128 @@ typedef tbm_surface_plane_s = _tbm_surface_plane; /// @since_tizen 2.3 typedef tbm_surface_h = ffi.Pointer<_tbm_surface>; -final class _tbm_surface extends ffi.Opaque {} - /// @brief Definition for the TBM surface information struct. /// @since_tizen 2.3 typedef tbm_surface_info_s = _tbm_surface_info; +const int TBM_FORMAT_C8 = 538982467; + +const int TBM_FORMAT_RGB332 = 943867730; + +const int TBM_FORMAT_BGR233 = 944916290; + +const int TBM_FORMAT_XRGB4444 = 842093144; + +const int TBM_FORMAT_XBGR4444 = 842089048; + +const int TBM_FORMAT_RGBX4444 = 842094674; + +const int TBM_FORMAT_BGRX4444 = 842094658; + +const int TBM_FORMAT_ARGB4444 = 842093121; + +const int TBM_FORMAT_ABGR4444 = 842089025; + +const int TBM_FORMAT_RGBA4444 = 842088786; + +const int TBM_FORMAT_BGRA4444 = 842088770; + +const int TBM_FORMAT_XRGB1555 = 892424792; + +const int TBM_FORMAT_XBGR1555 = 892420696; + +const int TBM_FORMAT_RGBX5551 = 892426322; + +const int TBM_FORMAT_BGRX5551 = 892426306; + +const int TBM_FORMAT_ARGB1555 = 892424769; + +const int TBM_FORMAT_ABGR1555 = 892420673; + +const int TBM_FORMAT_RGBA5551 = 892420434; + +const int TBM_FORMAT_BGRA5551 = 892420418; + +const int TBM_FORMAT_RGB565 = 909199186; + +const int TBM_FORMAT_BGR565 = 909199170; + +const int TBM_FORMAT_RGB888 = 875710290; + +const int TBM_FORMAT_BGR888 = 875710274; + +const int TBM_FORMAT_XRGB8888 = 875713112; + +const int TBM_FORMAT_XBGR8888 = 875709016; + +const int TBM_FORMAT_RGBX8888 = 875714642; + +const int TBM_FORMAT_BGRX8888 = 875714626; + +const int TBM_FORMAT_ARGB8888 = 875713089; + +const int TBM_FORMAT_ABGR8888 = 875708993; + +const int TBM_FORMAT_RGBA8888 = 875708754; + +const int TBM_FORMAT_BGRA8888 = 875708738; + +const int TBM_FORMAT_XRGB2101010 = 808669784; + +const int TBM_FORMAT_XBGR2101010 = 808665688; + +const int TBM_FORMAT_RGBX1010102 = 808671314; + +const int TBM_FORMAT_BGRX1010102 = 808671298; + +const int TBM_FORMAT_ARGB2101010 = 808669761; + +const int TBM_FORMAT_ABGR2101010 = 808665665; + +const int TBM_FORMAT_RGBA1010102 = 808665426; + +const int TBM_FORMAT_BGRA1010102 = 808665410; + +const int TBM_FORMAT_YUYV = 1448695129; + +const int TBM_FORMAT_YVYU = 1431918169; + +const int TBM_FORMAT_UYVY = 1498831189; + +const int TBM_FORMAT_VYUY = 1498765654; + +const int TBM_FORMAT_AYUV = 1448433985; + +const int TBM_FORMAT_NV12 = 842094158; + +const int TBM_FORMAT_NV21 = 825382478; + +const int TBM_FORMAT_NV16 = 909203022; + +const int TBM_FORMAT_NV61 = 825644622; + +const int TBM_FORMAT_YUV410 = 961959257; + +const int TBM_FORMAT_YVU410 = 961893977; + +const int TBM_FORMAT_YUV411 = 825316697; + +const int TBM_FORMAT_YVU411 = 825316953; + +const int TBM_FORMAT_YUV420 = 842093913; + +const int TBM_FORMAT_YVU420 = 842094169; + +const int TBM_FORMAT_YUV422 = 909202777; + +const int TBM_FORMAT_YVU422 = 909203033; + +const int TBM_FORMAT_YUV444 = 875713881; + +const int TBM_FORMAT_YVU444 = 875714137; + +const int TBM_FORMAT_NV12MT = 842091860; + const int TBM_SURF_PLANE_MAX = 4; const int TBM_SURF_OPTION_READ = 1; diff --git a/lib/src/bindings/6.0/generated_bindings_capi_base_common.dart b/lib/src/bindings/6.0/generated_bindings_capi_base_common.dart index 571ef279..0619bfeb 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_base_common.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_base_common.dart @@ -386,6 +386,8 @@ abstract class tizen_error_e { static const int TIZEN_ERROR_END_OF_COLLECTION = -1073741819; } +const int NULL = 0; + const int TIZEN_ERROR_MAX_PLATFORM_ERROR = 0; const int TIZEN_ERROR_MIN_PLATFORM_ERROR = -1073741824; diff --git a/lib/src/bindings/6.0/generated_bindings_capi_geofence_manager.dart b/lib/src/bindings/6.0/generated_bindings_capi_geofence_manager.dart index 1e05d6f6..7cddb4a3 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_geofence_manager.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_geofence_manager.dart @@ -1223,71 +1223,6 @@ class Tizen60CapiGeofenceManager { .asFunction)>(); } -/// @brief The geofence manager handle. -/// @since_tizen 2.4 -typedef geofence_manager_h = ffi.Pointer; - -final class geofence_manager_s extends ffi.Opaque {} - -/// @brief The geofence handle. -/// @since_tizen 2.4 -typedef geofence_h = ffi.Pointer; - -final class geofence_s extends ffi.Opaque {} - -/// @brief Called when a device enters or exits the given geofence. -/// @since_tizen 2.4 -/// @param[in] geofence_id The specified geofence ID -/// @param[in] state The geofence state -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). -/// @see geofence_state_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_state_changed_cb() -typedef geofence_state_changed_cb - = ffi.Pointer>; -typedef geofence_state_changed_cbFunction = ffi.Void Function( - ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartgeofence_state_changed_cbFunction = void Function( - int geofence_id, int state, ffi.Pointer user_data); - -/// @brief Enumeration for the state of geofence manager. -/// @since_tizen 2.4 -abstract class geofence_state_e { - /// < Uncertain state of geofence - static const int GEOFENCE_STATE_UNCERTAIN = 0; - - /// < Geofence In state - static const int GEOFENCE_STATE_IN = 1; - - /// < Geofence Out state - static const int GEOFENCE_STATE_OUT = 2; -} - -/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. -/// @details The events of public geofence is also received if there are public geofences. -/// @since_tizen 2.4 -/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. -/// @param[in] place_id The place ID -/// @param[in] geofence_id The specified geofence ID -/// @param[in] error The error code for the particular action -/// @param[in] manage The result code for the particular place and geofence management -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() -/// @see geofence_manage_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_event_cb() -typedef geofence_event_cb - = ffi.Pointer>; -typedef geofence_event_cbFunction = ffi.Void Function( - ffi.Int place_id, - ffi.Int geofence_id, - ffi.Int32 error, - ffi.Int32 manage, - ffi.Pointer user_data); -typedef Dartgeofence_event_cbFunction = void Function(int place_id, - int geofence_id, int error, int manage, ffi.Pointer user_data); - /// @brief Enumeration for Geofence manager of error code. /// @since_tizen 2.4 abstract class geofence_manager_error_e { @@ -1334,6 +1269,67 @@ abstract class geofence_manager_error_e { static const int GEOFENCE_MANAGER_ERROR_GEOFENCE_ACCESS_DENIED = -46202871; } +/// @brief Enumeration for the state of geofence manager. +/// @since_tizen 2.4 +abstract class geofence_state_e { + /// < Uncertain state of geofence + static const int GEOFENCE_STATE_UNCERTAIN = 0; + + /// < Geofence In state + static const int GEOFENCE_STATE_IN = 1; + + /// < Geofence Out state + static const int GEOFENCE_STATE_OUT = 2; +} + +/// @brief Enumeration for the state of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_state_e { + /// < Uncertain state of proximity + static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; + + /// < Far state of proximity + static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; + + /// < Near state of proximity + static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; + + /// < Immediate state of proximity + static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; +} + +/// @brief Enumeration for the provider of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_provider_e { + /// < Proximity is specified by geospatial coordinate + static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; + + /// < Proximity is specified by Wi-Fi access point + static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; + + /// < Proximity is specified by Bluetooth device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; + + /// < Proximity is specified by Bluetooth low energy device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; + + /// < Proximity is specified by Sensor + static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; +} + +/// @brief Enumeration for geofence type. +/// @since_tizen 2.4 +abstract class geofence_type_e { + /// < Geofence is specified by geospatial coordinate + static const int GEOFENCE_TYPE_GEOPOINT = 1; + + /// < Geofence is specified by Wi-Fi access point + static const int GEOFENCE_TYPE_WIFI = 2; + + /// < Geofence is specified by Bluetooth device + static const int GEOFENCE_TYPE_BT = 3; +} + /// @brief Enumeration for geofence management events. /// @since_tizen 2.4 abstract class geofence_manage_e { @@ -1365,6 +1361,60 @@ abstract class geofence_manage_e { static const int GEOFENCE_MANAGE_SETTING_DISABLED = 33; } +final class geofence_manager_s extends ffi.Opaque {} + +final class geofence_s extends ffi.Opaque {} + +final class geofence_status_s extends ffi.Opaque {} + +/// @brief The geofence manager handle. +/// @since_tizen 2.4 +typedef geofence_manager_h = ffi.Pointer; + +/// @brief The geofence handle. +/// @since_tizen 2.4 +typedef geofence_h = ffi.Pointer; + +/// @brief Called when a device enters or exits the given geofence. +/// @since_tizen 2.4 +/// @param[in] geofence_id The specified geofence ID +/// @param[in] state The geofence state +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). +/// @see geofence_state_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_state_changed_cb() +typedef geofence_state_changed_cb + = ffi.Pointer>; +typedef geofence_state_changed_cbFunction = ffi.Void Function( + ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartgeofence_state_changed_cbFunction = void Function( + int geofence_id, int state, ffi.Pointer user_data); + +/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. +/// @details The events of public geofence is also received if there are public geofences. +/// @since_tizen 2.4 +/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. +/// @param[in] place_id The place ID +/// @param[in] geofence_id The specified geofence ID +/// @param[in] error The error code for the particular action +/// @param[in] manage The result code for the particular place and geofence management +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() +/// @see geofence_manage_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_event_cb() +typedef geofence_event_cb + = ffi.Pointer>; +typedef geofence_event_cbFunction = ffi.Void Function( + ffi.Int place_id, + ffi.Int geofence_id, + ffi.Int32 error, + ffi.Int32 manage, + ffi.Pointer user_data); +typedef Dartgeofence_event_cbFunction = void Function(int place_id, + int geofence_id, int error, int manage, ffi.Pointer user_data); + /// @brief Called when a proximity state of device is changed. /// @since_tizen 3.0 /// @param[in] geofence_id The specified geofence ID @@ -1386,41 +1436,6 @@ typedef geofence_proximity_state_changed_cbFunction = ffi.Void Function( typedef Dartgeofence_proximity_state_changed_cbFunction = void Function( int geofence_id, int state, int provider, ffi.Pointer user_data); -/// @brief Enumeration for the state of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_state_e { - /// < Uncertain state of proximity - static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; - - /// < Far state of proximity - static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; - - /// < Near state of proximity - static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; - - /// < Immediate state of proximity - static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; -} - -/// @brief Enumeration for the provider of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_provider_e { - /// < Proximity is specified by geospatial coordinate - static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; - - /// < Proximity is specified by Wi-Fi access point - static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; - - /// < Proximity is specified by Bluetooth device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; - - /// < Proximity is specified by Bluetooth low energy device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; - - /// < Proximity is specified by Sensor - static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; -} - /// @brief Called when the fence list is requested. /// @since_tizen 2.4 /// @param[in] geofence_id The geofence ID @@ -1476,21 +1491,6 @@ typedef Dartgeofence_manager_place_cbFunction = bool Function( int place_cnt, ffi.Pointer user_data); -/// @brief Enumeration for geofence type. -/// @since_tizen 2.4 -abstract class geofence_type_e { - /// < Geofence is specified by geospatial coordinate - static const int GEOFENCE_TYPE_GEOPOINT = 1; - - /// < Geofence is specified by Wi-Fi access point - static const int GEOFENCE_TYPE_WIFI = 2; - - /// < Geofence is specified by Bluetooth device - static const int GEOFENCE_TYPE_BT = 3; -} - /// @brief The geofence status handle. /// @since_tizen 2.4 typedef geofence_status_h = ffi.Pointer; - -final class geofence_status_s extends ffi.Opaque {} diff --git a/lib/src/bindings/6.0/generated_bindings_capi_media_controller.dart b/lib/src/bindings/6.0/generated_bindings_capi_media_controller.dart index 842ddd15..3e24e327 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_media_controller.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_media_controller.dart @@ -6781,72 +6781,44 @@ class Tizen60CapiMediaController { .asFunction)>(); } -/// @brief The structure type for the media controller playlist handle. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -typedef mc_playlist_h = ffi.Pointer; +/// @brief Enumeration for the media controller error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_error_e { + /// < Successful + static const int MEDIA_CONTROLLER_ERROR_NONE = 0; -/// @brief Called for every playlist item in the playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a index and @a metadata should not be released by the application. \n -/// The @a index can be used only in the callback. To use outside, make a copy. -/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] index The ID of the playlist member. -/// @param[in] metadata The handle to metadata of the playlist item. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_item() will invoke this function. -/// -/// @see mc_playlist_foreach_item() -/// @see mc_metadata_clone() -/// @see mc_metadata_get() -typedef mc_playlist_item_cb - = ffi.Pointer>; -typedef mc_playlist_item_cbFunction = ffi.Bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); -typedef Dartmc_playlist_item_cbFunction = bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); + /// < Invalid parameter + static const int MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER = -22; -/// @brief The structure type for the media controller metadata handle. + /// < Out of memory + static const int MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int MEDIA_CONTROLLER_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED = -13; + + /// < Limited by server application (since 5.5) + static const int MEDIA_CONTROLLER_ERROR_ABILITY_LIMITED_BY_SERVER_APP = + -50462719; +} + +/// @brief Enumeration for the media controller server state. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef mc_metadata_h = ffi.Pointer; +abstract class mc_server_state_e { + /// < None state + static const int MC_SERVER_STATE_NONE = 0; -/// @brief Called for every playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a playlist should not be released by the application. \n -/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] playlist The handle of the media controller playlist. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_playlist() will invoke this function. -/// -/// @see mc_playlist_clone() -/// @see mc_playlist_foreach_playlist() -/// @see mc_playlist_get_name() -/// @see mc_playlist_foreach_item() -typedef mc_playlist_cb - = ffi.Pointer>; -typedef mc_playlist_cbFunction = ffi.Bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); -typedef Dartmc_playlist_cbFunction = bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); + /// < Activate state + static const int MC_SERVER_STATE_ACTIVATE = 1; + + /// < Deactivate state + static const int MC_SERVER_STATE_DEACTIVATE = 2; +} /// @brief Enumeration for the media meta info. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif @@ -6894,9 +6866,42 @@ abstract class mc_meta_e { static const int MC_META_MEDIA_RESOLUTION = 13; } -/// @brief The structure type for the media controller ability handle. -/// @since_tizen 5.0 -typedef mc_playback_ability_h = ffi.Pointer; +/// @brief Enumeration for the media playback state. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_playback_states_e { + /// < None + static const int MC_PLAYBACK_STATE_NONE = 0; + + /// < Playing + static const int MC_PLAYBACK_STATE_PLAYING = 1; + + /// < Paused + static const int MC_PLAYBACK_STATE_PAUSED = 2; + + /// < Stopped + static const int MC_PLAYBACK_STATE_STOPPED = 3; + + /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; + + /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; + + /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; + + /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_REWINDING = 11; + + /// < Connecting (Since 6.0) + static const int MC_PLAYBACK_STATE_CONNECTING = 12; + + /// < Buffering (Since 6.0) + static const int MC_PLAYBACK_STATE_BUFFERING = 13; + + /// < Error (Since 6.0) + static const int MC_PLAYBACK_STATE_ERROR = 14; +} /// @brief Enumeration for the media playback action. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif @@ -6926,22 +6931,78 @@ abstract class mc_playback_action_e { static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; } -/// @brief Enumeration for the support of the ability. -/// @since_tizen 5.0 -abstract class mc_ability_support_e { - /// < Supported - static const int MC_ABILITY_SUPPORTED_YES = 0; +/// @brief Enumeration for the shuffle mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_shuffle_mode_e { + /// < Shuffle mode on + static const int MC_SHUFFLE_MODE_ON = 0; - /// < Not supported - static const int MC_ABILITY_SUPPORTED_NO = 1; + /// < Shuffle mode off + static const int MC_SHUFFLE_MODE_OFF = 1; +} - /// < Not decided - static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +/// @brief Enumeration for the repeat mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_repeat_mode_e { + /// < Repeat mode on for all media + static const int MC_REPEAT_MODE_ON = 0; + + /// < Repeat mode off + static const int MC_REPEAT_MODE_OFF = 1; + + /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_REPEAT_MODE_ONE_MEDIA = 2; } -/// @brief The structure type for the media controller search handle. -/// @since_tizen 5.0 -typedef mc_search_h = ffi.Pointer; +/// @brief Enumeration for the subscription type. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_subscription_type_e { + /// < Server state + static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; + + /// < Playback + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; + + /// < Metadata + static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; + + /// < Shuffle mode + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; + + /// < Repeat mode + static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; + + /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; + + /// < Playback ability (Since 5.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; + + /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; + + /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; + + /// < Ability support (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; + + /// < Display mode ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; + + /// < Display rotation ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; +} + +/// @brief Enumeration for the playlist update mode. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +abstract class mc_playlist_update_mode_e { + /// < Create or Update playlist + static const int MC_PLAYLIST_UPDATED = 0; + + /// < Remove playlist + static const int MC_PLAYLIST_REMOVED = 1; +} /// @brief Enumeration for the content type of the content. /// @since_tizen 5.0 @@ -6962,6 +7023,111 @@ abstract class mc_content_type_e { static const int MC_CONTENT_TYPE_UNDECIDED = 4; } +/// @brief Enumeration for the content age rating of the content. +/// @since_tizen 5.0 +abstract class mc_content_age_rating_e { + /// < Suitable for all ages + static const int MC_CONTENT_RATING_ALL = 0; + + /// < Suitable for ages 1 and up + static const int MC_CONTENT_RATING_1_PLUS = 1; + + /// < Suitable for ages 2 and up + static const int MC_CONTENT_RATING_2_PLUS = 2; + + /// < Suitable for ages 3 and up + static const int MC_CONTENT_RATING_3_PLUS = 3; + + /// < Suitable for ages 4 and up + static const int MC_CONTENT_RATING_4_PLUS = 4; + + /// < Suitable for ages 5 and up + static const int MC_CONTENT_RATING_5_PLUS = 5; + + /// < Suitable for ages 6 and up + static const int MC_CONTENT_RATING_6_PLUS = 6; + + /// < Suitable for ages 7 and up + static const int MC_CONTENT_RATING_7_PLUS = 7; + + /// < Suitable for ages 8 and up + static const int MC_CONTENT_RATING_8_PLUS = 8; + + /// < Suitable for ages 9 and up + static const int MC_CONTENT_RATING_9_PLUS = 9; + + /// < Suitable for ages 10 and up + static const int MC_CONTENT_RATING_10_PLUS = 10; + + /// < Suitable for ages 11 and up + static const int MC_CONTENT_RATING_11_PLUS = 11; + + /// < Suitable for ages 12 and up + static const int MC_CONTENT_RATING_12_PLUS = 12; + + /// < Suitable for ages 13 and up + static const int MC_CONTENT_RATING_13_PLUS = 13; + + /// < Suitable for ages 14 and up + static const int MC_CONTENT_RATING_14_PLUS = 14; + + /// < Suitable for ages 15 and up + static const int MC_CONTENT_RATING_15_PLUS = 15; + + /// < Suitable for ages 16 and up + static const int MC_CONTENT_RATING_16_PLUS = 16; + + /// < Suitable for ages 17 and up + static const int MC_CONTENT_RATING_17_PLUS = 17; + + /// < Suitable for ages 18 and up + static const int MC_CONTENT_RATING_18_PLUS = 18; + + /// < Suitable for ages 19 and up + static const int MC_CONTENT_RATING_19_PLUS = 19; +} + +/// @brief Enumeration for the support of the ability. +/// @since_tizen 5.0 +abstract class mc_ability_support_e { + /// < Supported + static const int MC_ABILITY_SUPPORTED_YES = 0; + + /// < Not supported + static const int MC_ABILITY_SUPPORTED_NO = 1; + + /// < Not decided + static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +} + +/// @brief Enumeration for the ability. +/// @since_tizen 5.5 +abstract class mc_ability_e { + /// < Shuffle + static const int MC_ABILITY_SHUFFLE = 0; + + /// < Repeat + static const int MC_ABILITY_REPEAT = 1; + + /// < Playback Position + static const int MC_ABILITY_PLAYBACK_POSITION = 2; + + /// < Playlist + static const int MC_ABILITY_PLAYLIST = 3; + + /// < Custom command from a client + static const int MC_ABILITY_CLIENT_CUSTOM = 4; + + /// < Search + static const int MC_ABILITY_SEARCH = 5; + + /// < Subtitles display + static const int MC_ABILITY_SUBTITLES = 6; + + /// < 360 content mode display + static const int MC_ABILITY_360_MODE = 7; +} + /// @brief Enumeration for the search category. /// @since_tizen 5.0 abstract class mc_search_category_e { @@ -6980,9 +7146,170 @@ abstract class mc_search_category_e { /// < Search by content genre static const int MC_SEARCH_GENRE = 4; - /// < Search by Time Place Occasion - static const int MC_SEARCH_TPO = 5; -} + /// < Search by Time Place Occasion + static const int MC_SEARCH_TPO = 5; +} + +/// @brief Enumeration for the display mode. +/// @since_tizen 5.5 +abstract class mc_display_mode_e { + /// < Letter box + static const int MC_DISPLAY_MODE_LETTER_BOX = 1; + + /// < Origin size + static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; + + /// < Full-screen + static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; + + /// < Cropped full-screen + static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; +} + +/// @brief Enumeration for the display rotation. +/// @since_tizen 5.5 +abstract class mc_display_rotation_e { + /// < Display is not rotated + static const int MC_DISPLAY_ROTATION_NONE = 1; + + /// < Display is rotated 90 degrees + static const int MC_DISPLAY_ROTATION_90 = 2; + + /// < Display is rotated 180 degrees + static const int MC_DISPLAY_ROTATION_180 = 4; + + /// < Display is rotated 270 degrees + static const int MC_DISPLAY_ROTATION_270 = 8; +} + +/// @brief The result codes of the reply for the command or the event. +/// @since_tizen 6.0 +/// +/// @see mc_cmd_reply_received_cb() +/// @see mc_client_send_event_reply() +/// @see mc_server_event_reply_received_cb() +/// @see mc_server_send_cmd_reply() +abstract class mc_result_code_e { + /// < The command or the event has been successfully completed. + static const int MC_RESULT_CODE_SUCCESS = 0; + + /// < The command or the event had already been completed. + static const int MC_RESULT_CODE_ALREADY_DONE = 200; + + /// < The command or the event is aborted by some external event (e.g. aborted play command by incoming call). + static const int MC_RESULT_CODE_ABORTED = 300; + + /// < The command or the event is denied due to application policy (e.g. cannot rewind in recording). + static const int MC_RESULT_CODE_DENIED = 301; + + /// < The command or the event is not supported. + static const int MC_RESULT_CODE_NOT_SUPPORTED = 302; + + /// < The command or the event is out of supported range or the limit is reached. + static const int MC_RESULT_CODE_INVALID = 303; + + /// < Timeout has occurred. + static const int MC_RESULT_CODE_TIMEOUT = 400; + + /// < The application has failed. + static const int MC_RESULT_CODE_APP_FAILED = 401; + + /// < The command or the event has failed because the application has no media. + static const int MC_RESULT_CODE_NO_MEDIA = 402; + + /// < The command or the event has failed because there is no audio output device. + static const int MC_RESULT_CODE_NO_AUDIO_OUTPUT_DEVICE = 403; + + /// < The command or the event has failed because there is no peer. + static const int MC_RESULT_CODE_NO_PEER = 404; + + /// < The network has failed. + static const int MC_RESULT_CODE_NETWORK_FAILED = 500; + + /// < The application needs to have an account to which it's logged in. + static const int MC_RESULT_CODE_NO_ACCOUNT = 600; + + /// < The application could not log in. + static const int MC_RESULT_CODE_LOGIN_FAILED = 601; + + /// < Unknown error. + static const int MC_RESULT_CODE_UNKNOWN = 2147483647; +} + +/// @brief The structure type for the media controller playlist handle. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +typedef mc_playlist_h = ffi.Pointer; + +/// @brief Called for every playlist item in the playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a index and @a metadata should not be released by the application. \n +/// The @a index can be used only in the callback. To use outside, make a copy. +/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] index The ID of the playlist member. +/// @param[in] metadata The handle to metadata of the playlist item. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_item() will invoke this function. +/// +/// @see mc_playlist_foreach_item() +/// @see mc_metadata_clone() +/// @see mc_metadata_get() +typedef mc_playlist_item_cb + = ffi.Pointer>; +typedef mc_playlist_item_cbFunction = ffi.Bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); +typedef Dartmc_playlist_item_cbFunction = bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); + +/// @brief The structure type for the media controller metadata handle. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef mc_metadata_h = ffi.Pointer; + +/// @brief Called for every playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a playlist should not be released by the application. \n +/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] playlist The handle of the media controller playlist. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_playlist() will invoke this function. +/// +/// @see mc_playlist_clone() +/// @see mc_playlist_foreach_playlist() +/// @see mc_playlist_get_name() +/// @see mc_playlist_foreach_item() +typedef mc_playlist_cb + = ffi.Pointer>; +typedef mc_playlist_cbFunction = ffi.Bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); +typedef Dartmc_playlist_cbFunction = bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); + +/// @brief The structure type for the media controller ability handle. +/// @since_tizen 5.0 +typedef mc_playback_ability_h = ffi.Pointer; + +/// @brief The structure type for the media controller search handle. +/// @since_tizen 5.0 +typedef mc_search_h = ffi.Pointer; /// @brief Called for every search condition information in the obtained list of search. /// @details Iterates over a search list. @@ -7048,19 +7375,6 @@ typedef Dartmc_server_state_updated_cbFunction = void Function( int state, ffi.Pointer user_data); -/// @brief Enumeration for the media controller server state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_server_state_e { - /// < None state - static const int MC_SERVER_STATE_NONE = 0; - - /// < Activate state - static const int MC_SERVER_STATE_ACTIVATE = 1; - - /// < Deactivate state - static const int MC_SERVER_STATE_DEACTIVATE = 2; -} - /// @brief Called when the playback information of the media controller server is updated. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7146,16 +7460,6 @@ typedef Dartmc_shuffle_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the shuffle mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_shuffle_mode_e { - /// < Shuffle mode on - static const int MC_SHUFFLE_MODE_ON = 0; - - /// < Shuffle mode off - static const int MC_SHUFFLE_MODE_OFF = 1; -} - /// @brief Called when the repeat mode of the media controller server is updated. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7181,19 +7485,6 @@ typedef Dartmc_repeat_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the repeat mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_repeat_mode_e { - /// < Repeat mode on for all media - static const int MC_REPEAT_MODE_ON = 0; - - /// < Repeat mode off - static const int MC_REPEAT_MODE_OFF = 1; - - /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_REPEAT_MODE_ONE_MEDIA = 2; -} - /// @brief Called when the playback ability support of the media controller server is updated. /// @since_tizen 5.0 /// @@ -7299,34 +7590,6 @@ typedef Dartmc_ability_support_updated_cbFunction = void Function( int support, ffi.Pointer user_data); -/// @brief Enumeration for the ability. -/// @since_tizen 5.5 -abstract class mc_ability_e { - /// < Shuffle - static const int MC_ABILITY_SHUFFLE = 0; - - /// < Repeat - static const int MC_ABILITY_REPEAT = 1; - - /// < Playback Position - static const int MC_ABILITY_PLAYBACK_POSITION = 2; - - /// < Playlist - static const int MC_ABILITY_PLAYLIST = 3; - - /// < Custom command from a client - static const int MC_ABILITY_CLIENT_CUSTOM = 4; - - /// < Search - static const int MC_ABILITY_SEARCH = 5; - - /// < Subtitles display - static const int MC_ABILITY_SUBTITLES = 6; - - /// < 360 content mode display - static const int MC_ABILITY_360_MODE = 7; -} - /// @brief Called when a media controller server's supported items for an ability is updated. /// @since_tizen 5.5 /// @@ -7416,16 +7679,6 @@ typedef Dartmc_playlist_updated_cbFunction = void Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the playlist update mode. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -abstract class mc_playlist_update_mode_e { - /// < Create or Update playlist - static const int MC_PLAYLIST_UPDATED = 0; - - /// < Remove playlist - static const int MC_PLAYLIST_REMOVED = 1; -} - /// @brief Called when the status of a media controller server's boolean attribute (subtitles or 360 mode) is updated. /// @since_tizen 5.5 /// @@ -7473,22 +7726,6 @@ typedef Dartmc_display_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the display mode. -/// @since_tizen 5.5 -abstract class mc_display_mode_e { - /// < Letter box - static const int MC_DISPLAY_MODE_LETTER_BOX = 1; - - /// < Origin size - static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; - - /// < Full-screen - static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; - - /// < Cropped full-screen - static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; -} - /// @brief Called when a media controller server's display rotation is updated. /// @since_tizen 5.5 /// @@ -7512,22 +7749,6 @@ typedef Dartmc_display_rotation_updated_cbFunction = void Function( int rotation, ffi.Pointer user_data); -/// @brief Enumeration for the display rotation. -/// @since_tizen 5.5 -abstract class mc_display_rotation_e { - /// < Display is not rotated - static const int MC_DISPLAY_ROTATION_NONE = 1; - - /// < Display is rotated 90 degrees - static const int MC_DISPLAY_ROTATION_90 = 2; - - /// < Display is rotated 180 degrees - static const int MC_DISPLAY_ROTATION_180 = 4; - - /// < Display is rotated 270 degrees - static const int MC_DISPLAY_ROTATION_270 = 8; -} - /// @brief Called when receiving custom event of media controller servers. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7563,46 +7784,6 @@ typedef Dartmc_client_custom_event_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @brief Enumeration for the subscription type. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_subscription_type_e { - /// < Server state - static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; - - /// < Playback - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; - - /// < Metadata - static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; - - /// < Shuffle mode - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; - - /// < Repeat mode - static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; - - /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; - - /// < Playback ability (Since 5.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; - - /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; - - /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; - - /// < Ability support (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; - - /// < Display mode ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; - - /// < Display rotation ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; -} - /// @brief Called when requesting the list of subscribed servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7626,107 +7807,6 @@ typedef mc_subscribed_server_cbFunction = ffi.Bool Function( typedef Dartmc_subscribed_server_cbFunction = bool Function( ffi.Pointer server_name, ffi.Pointer user_data); -/// @brief Enumeration for the media playback state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_playback_states_e { - /// < None - static const int MC_PLAYBACK_STATE_NONE = 0; - - /// < Playing - static const int MC_PLAYBACK_STATE_PLAYING = 1; - - /// < Paused - static const int MC_PLAYBACK_STATE_PAUSED = 2; - - /// < Stopped - static const int MC_PLAYBACK_STATE_STOPPED = 3; - - /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; - - /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; - - /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; - - /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_REWINDING = 11; - - /// < Connecting (Since 6.0) - static const int MC_PLAYBACK_STATE_CONNECTING = 12; - - /// < Buffering (Since 6.0) - static const int MC_PLAYBACK_STATE_BUFFERING = 13; - - /// < Error (Since 6.0) - static const int MC_PLAYBACK_STATE_ERROR = 14; -} - -/// @brief Enumeration for the content age rating of the content. -/// @since_tizen 5.0 -abstract class mc_content_age_rating_e { - /// < Suitable for all ages - static const int MC_CONTENT_RATING_ALL = 0; - - /// < Suitable for ages 1 and up - static const int MC_CONTENT_RATING_1_PLUS = 1; - - /// < Suitable for ages 2 and up - static const int MC_CONTENT_RATING_2_PLUS = 2; - - /// < Suitable for ages 3 and up - static const int MC_CONTENT_RATING_3_PLUS = 3; - - /// < Suitable for ages 4 and up - static const int MC_CONTENT_RATING_4_PLUS = 4; - - /// < Suitable for ages 5 and up - static const int MC_CONTENT_RATING_5_PLUS = 5; - - /// < Suitable for ages 6 and up - static const int MC_CONTENT_RATING_6_PLUS = 6; - - /// < Suitable for ages 7 and up - static const int MC_CONTENT_RATING_7_PLUS = 7; - - /// < Suitable for ages 8 and up - static const int MC_CONTENT_RATING_8_PLUS = 8; - - /// < Suitable for ages 9 and up - static const int MC_CONTENT_RATING_9_PLUS = 9; - - /// < Suitable for ages 10 and up - static const int MC_CONTENT_RATING_10_PLUS = 10; - - /// < Suitable for ages 11 and up - static const int MC_CONTENT_RATING_11_PLUS = 11; - - /// < Suitable for ages 12 and up - static const int MC_CONTENT_RATING_12_PLUS = 12; - - /// < Suitable for ages 13 and up - static const int MC_CONTENT_RATING_13_PLUS = 13; - - /// < Suitable for ages 14 and up - static const int MC_CONTENT_RATING_14_PLUS = 14; - - /// < Suitable for ages 15 and up - static const int MC_CONTENT_RATING_15_PLUS = 15; - - /// < Suitable for ages 16 and up - static const int MC_CONTENT_RATING_16_PLUS = 16; - - /// < Suitable for ages 17 and up - static const int MC_CONTENT_RATING_17_PLUS = 17; - - /// < Suitable for ages 18 and up - static const int MC_CONTENT_RATING_18_PLUS = 18; - - /// < Suitable for ages 19 and up - static const int MC_CONTENT_RATING_19_PLUS = 19; -} - /// @brief Called when requesting the list of created servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -8131,3 +8211,5 @@ typedef Dartmc_server_search_cmd_received_cbFunction = void Function( ffi.Pointer request_id, mc_search_h search, ffi.Pointer user_data); + +const int MEDIA_CONTROLLER_ERROR_CLASS = -50462720; diff --git a/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_editor.dart b/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_editor.dart index 2ce65b29..01daaf36 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_editor.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_editor.dart @@ -368,9 +368,34 @@ class Tizen60CapiMediaMetadataEditor { } /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE -/// @brief The handle of media metadata. +/// @brief The enumerations of media metadata error. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef metadata_editor_h = ffi.Pointer; +abstract class metadata_editor_error_e { + /// < Successful + static const int METADATA_EDITOR_ERROR_NONE = 0; + + /// < Invalid parameter + static const int METADATA_EDITOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EDITOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File not exist + static const int METADATA_EDITOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EDITOR_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported type + static const int METADATA_EDITOR_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Invalid internal operation + static const int METADATA_EDITOR_ERROR_OPERATION_FAILED = -27000831; + + /// < Update not possible (Since 6.0) + static const int METADATA_EDITOR_ERROR_METADATA_UPDATE_NOT_POSSIBLE = + -27000830; +} /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @brief The enumerations of attribute. @@ -415,3 +440,10 @@ abstract class metadata_editor_attr_e { /// < Unsynchronized lyric static const int METADATA_EDITOR_ATTR_UNSYNCLYRICS = 12; } + +/// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE +/// @brief The handle of media metadata. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef metadata_editor_h = ffi.Pointer; + +const int METADATA_EDITOR_ERROR_CLASS = -27000832; diff --git a/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_extractor.dart b/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_extractor.dart index a448611e..356a187f 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_extractor.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_media_metadata_extractor.dart @@ -384,11 +384,27 @@ class Tizen60CapiMediaMetadataExtractor { } /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE -/// @brief The metadata extractor handle. +/// @brief Enumeration for metadata extractor error. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif -typedef metadata_extractor_h = ffi.Pointer; +abstract class metadata_extractor_error_e { + /// < Successful + static const int METADATA_EXTRACTOR_ERROR_NONE = 0; -final class metadata_extractor_s extends ffi.Opaque {} + /// < Invalid parameter + static const int METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EXTRACTOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File does not exist + static const int METADATA_EXTRACTOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED = -13; + + /// < Invalid internal operation + static const int METADATA_EXTRACTOR_ERROR_OPERATION_FAILED = -26411007; +} /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE /// @brief Enumeration for attribute. @@ -499,3 +515,12 @@ abstract class metadata_extractor_attr_e { /// < Flag indicating if the video is a spherical video (Since 3.0) static const int METADATA_360 = 34; } + +final class metadata_extractor_s extends ffi.Opaque {} + +/// @ingroup CAPI_METADATA_EXTRACTOR_MODULE +/// @brief The metadata extractor handle. +/// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif +typedef metadata_extractor_h = ffi.Pointer; + +const int METADATA_EXTRACTOR_ERROR_CLASS = -26411008; diff --git a/lib/src/bindings/6.0/generated_bindings_capi_media_screen_mirroring.dart b/lib/src/bindings/6.0/generated_bindings_capi_media_screen_mirroring.dart index e5f4fa3a..c890daa2 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_media_screen_mirroring.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_media_screen_mirroring.dart @@ -880,29 +880,6 @@ class Tizen60CapiMediaScreenMirroring { int Function(scmirroring_sink_h, ffi.Pointer)>(); } -/// @brief The handle to the screen mirroring sink. -/// @since_tizen 2.4 -typedef scmirroring_sink_h = ffi.Pointer; - -/// @brief Called when each status is changed. -/// @since_tizen 2.4 -/// -/// @details This callback is called for state and error of screen mirroring sink -/// -/// @param[in] error The error code -/// @param[in] state The screen mirroring sink state -/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function -/// -/// @pre scmirroring_sink_create() -/// -/// @see scmirroring_sink_create() -typedef scmirroring_sink_state_cb - = ffi.Pointer>; -typedef scmirroring_sink_state_cbFunction = ffi.Void Function( - ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartscmirroring_sink_state_cbFunction = void Function( - int error, int state, ffi.Pointer user_data); - /// @brief Enumeration for screen mirroring error. /// @since_tizen 2.4 abstract class scmirroring_error_e { @@ -957,6 +934,41 @@ abstract class scmirroring_sink_state_e { static const int SCMIRRORING_SINK_STATE_MAX = 7; } +/// @brief Enumeration for screen mirroring resolution. +/// @since_tizen 2.4 +abstract class scmirroring_resolution_e { + static const int SCMIRRORING_RESOLUTION_UNKNOWN = 0; + + /// < W-1920, H-1080, 30 fps + static const int SCMIRRORING_RESOLUTION_1920x1080_P30 = 1; + + /// < W-1280, H-720, 30 fps + static const int SCMIRRORING_RESOLUTION_1280x720_P30 = 2; + + /// < W-960, H-540, 30 fps + static const int SCMIRRORING_RESOLUTION_960x540_P30 = 4; + + /// < W-864, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_864x480_P30 = 8; + + /// < W-720, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_720x480_P60 = 16; + + /// < W-640, H-480, 60 fps + static const int SCMIRRORING_RESOLUTION_640x480_P60 = 32; + + /// < W-640, H-360, 30 fps + static const int SCMIRRORING_RESOLUTION_640x360_P30 = 64; + static const int SCMIRRORING_RESOLUTION_MAX = 128; +} + +/// @brief Ability to send to multisink. +/// @since_tizen 3.0 +abstract class scmirroring_multisink_e { + static const int SCMIRRORING_MULTISINK_DISABLE = 0; + static const int SCMIRRORING_MULTISINK_ENABLE = 1; +} + /// @brief Enumeration for screen mirroring display surface type. /// @since_tizen 2.4 abstract class scmirroring_display_type_e { @@ -968,16 +980,6 @@ abstract class scmirroring_display_type_e { static const int SCMIRRORING_DISPLAY_TYPE_MAX = 2; } -/// @brief Enumeration for screen mirroring video codec. -/// @since_tizen 2.4 -abstract class scmirroring_video_codec_e { - /// < Screen mirroring is not negotiated yet - static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; - - /// < H.264 codec for video - static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; -} - /// @brief Enumeration for screen mirroring audio codec. /// @since_tizen 2.4 abstract class scmirroring_audio_codec_e { @@ -993,3 +995,56 @@ abstract class scmirroring_audio_codec_e { /// < LPCM codec for audio static const int SCMIRRORING_AUDIO_CODEC_LPCM = 3; } + +/// @brief Enumeration for screen mirroring video codec. +/// @since_tizen 2.4 +abstract class scmirroring_video_codec_e { + /// < Screen mirroring is not negotiated yet + static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; + + /// < H.264 codec for video + static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; +} + +/// @brief Enumeration for screen mirroring direct streaming mode. +/// @since_tizen 3.0 +abstract class scmirroring_direct_streaming_e { + /// < Disable screen mirroring direct streaming mode + static const int SCMIRRORING_DIRECT_STREAMING_DISABLED = 0; + + /// < Enable direct streaming for files + static const int SCMIRRORING_DIRECT_STREAMING_ENABLED = 1; +} + +/// @brief Enumeration for screen mirroring AV streaming transport. +/// @since_tizen 3.0 +abstract class scmirroring_av_transport_e { + /// < UDP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_UDP = 0; + + /// < TCP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_TCP = 1; +} + +/// @brief The handle to the screen mirroring sink. +/// @since_tizen 2.4 +typedef scmirroring_sink_h = ffi.Pointer; + +/// @brief Called when each status is changed. +/// @since_tizen 2.4 +/// +/// @details This callback is called for state and error of screen mirroring sink +/// +/// @param[in] error The error code +/// @param[in] state The screen mirroring sink state +/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function +/// +/// @pre scmirroring_sink_create() +/// +/// @see scmirroring_sink_create() +typedef scmirroring_sink_state_cb + = ffi.Pointer>; +typedef scmirroring_sink_state_cbFunction = ffi.Void Function( + ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartscmirroring_sink_state_cbFunction = void Function( + int error, int state, ffi.Pointer user_data); diff --git a/lib/src/bindings/6.0/generated_bindings_capi_media_sound_pool.dart b/lib/src/bindings/6.0/generated_bindings_capi_media_sound_pool.dart index 761f0a9b..6e8db3ba 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_media_sound_pool.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_media_sound_pool.dart @@ -865,10 +865,52 @@ class Tizen60CapiMediaSoundPool { .asFunction)>(); } -/// @brief Sound pool handle type. +/// @brief Enumeration for Tizen Sound Pool error. /// /// @since_tizen 4.0 -typedef sound_pool_h = ffi.Pointer; +abstract class sound_pool_error_e { + static const int SOUND_POOL_ERROR_NONE = 0; + static const int SOUND_POOL_ERROR_KEY_NOT_AVAILABLE = -126; + static const int SOUND_POOL_ERROR_OUT_OF_MEMORY = -12; + static const int SOUND_POOL_ERROR_INVALID_PARAMETER = -22; + static const int SOUND_POOL_ERROR_INVALID_OPERATION = -38; + static const int SOUND_POOL_ERROR_NOT_PERMITTED = -1; + static const int SOUND_POOL_ERROR_NO_SUCH_FILE = -2; +} + +/// @brief Enumeration of sound pool stream state. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_state_e { + /// < Stream state isn't determined + static const int SOUND_POOL_STREAM_STATE_NONE = 0; + + /// < Stream state is playing + static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; + + /// < Stream state is paused + static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; + + /// < Stream state is stopped + static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; + + /// < Stream state is finished + static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; + + /// < Stream state is suspended + static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; +} + +/// @brief Enumeration of sound pool stream priority policy. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_priority_policy_e { + /// < Stream priority policy is mute + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; + + /// < Stream priority policy is suspended + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; +} /// @brief Enumeration of sound pool state. /// @@ -881,6 +923,11 @@ abstract class sound_pool_state_e { static const int SOUND_POOL_STATE_INACTIVE = 1; } +/// @brief Sound pool handle type. +/// +/// @since_tizen 4.0 +typedef sound_pool_h = ffi.Pointer; + /// @brief Called when the sound pool state is changed. /// /// @since_tizen 4.0 @@ -911,17 +958,6 @@ typedef Dartsound_pool_state_changed_cbFunction = void Function( int cur_state, ffi.Pointer user_data); -/// @brief Enumeration of sound pool stream priority policy. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_priority_policy_e { - /// < Stream priority policy is mute - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; - - /// < Stream priority policy is suspended - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; -} - /// @brief Called when the sound pool stream state is changed. /// /// @since_tizen 4.0 @@ -954,26 +990,3 @@ typedef Dartsound_pool_stream_state_changed_cbFunction = void Function( int prev_state, int cur_state, ffi.Pointer user_data); - -/// @brief Enumeration of sound pool stream state. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_state_e { - /// < Stream state isn't determined - static const int SOUND_POOL_STREAM_STATE_NONE = 0; - - /// < Stream state is playing - static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; - - /// < Stream state is paused - static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; - - /// < Stream state is stopped - static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; - - /// < Stream state is finished - static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; - - /// < Stream state is suspended - static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; -} diff --git a/lib/src/bindings/6.0/generated_bindings_capi_media_thumbnail_util.dart b/lib/src/bindings/6.0/generated_bindings_capi_media_thumbnail_util.dart index f744e810..2ae7873f 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_media_thumbnail_util.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_media_thumbnail_util.dart @@ -379,14 +379,40 @@ class Tizen60CapiMediaThumbnailUtil { ffi.Pointer)>(); } +/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE +/// @brief Enumeration for a thumbnail util error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class thumbnail_util_error_e { + /// < Successful + static const int THUMBNAIL_UTIL_ERROR_NONE = 0; + + /// < Invalid parameter + static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported Content (Since 4.0) + static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; +} + +final class thumbnail_s extends ffi.Opaque {} + /// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE /// @deprecated Deprecated since 5.0. /// @brief The structure type for the thumbnail info handle. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif typedef thumbnail_h = ffi.Pointer; -final class thumbnail_s extends ffi.Opaque {} - /// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE /// @deprecated Deprecated since 5.0. /// @brief Called when creating the thumbnail. @@ -431,28 +457,4 @@ typedef Dartthumbnail_extracted_cbFunction = void Function( int thumb_size, ffi.Pointer user_data); -/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE -/// @brief Enumeration for a thumbnail util error. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class thumbnail_util_error_e { - /// < Successful - static const int THUMBNAIL_UTIL_ERROR_NONE = 0; - - /// < Invalid parameter - static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; - - /// < Out of memory - static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; - - /// < Invalid Operation - static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; - - /// < No space left on device - static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; - - /// < Permission denied - static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; - - /// < Unsupported Content (Since 4.0) - static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; -} +const int THUMBNAIL_UTIL_ERROR_CLASS = -49872896; diff --git a/lib/src/bindings/6.0/generated_bindings_capi_network_bluetooth.dart b/lib/src/bindings/6.0/generated_bindings_capi_network_bluetooth.dart index 81a88356..ae1cbff1 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_network_bluetooth.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_network_bluetooth.dart @@ -9643,6 +9643,185 @@ class Tizen60CapiNetworkBluetooth { .asFunction)>(); } +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of PBAP fields. +/// @since_tizen 3.0 +abstract class bt_pbap_field_e { + /// < All field + static const int BT_PBAP_FIELD_ALL = -1; + + /// < vCard Version + static const int BT_PBAP_FIELD_VERSION = 1; + + /// < Formatted Name + static const int BT_PBAP_FIELD_FN = 2; + + /// < Structured Presentation of Name + static const int BT_PBAP_FIELD_N = 4; + + /// < Associated Image or Photo + static const int BT_PBAP_FIELD_PHOTO = 8; + + /// < Birthday + static const int BT_PBAP_FIELD_BDAY = 16; + + /// < Delivery Address + static const int BT_PBAP_FIELD_ADR = 32; + + /// < Delivery + static const int BT_PBAP_FIELD_LABEL = 64; + + /// < Telephone Number + static const int BT_PBAP_FIELD_TEL = 128; + + /// < Electronic Mail Address + static const int BT_PBAP_FIELD_EMAIL = 256; + + /// < Electronic Mail + static const int BT_PBAP_FIELD_MAILER = 512; + + /// < Time Zone + static const int BT_PBAP_FIELD_TZ = 1024; + + /// < Geographic Position + static const int BT_PBAP_FIELD_GEO = 2048; + + /// < Job + static const int BT_PBAP_FIELD_TITLE = 4096; + + /// < Role within the Organization + static const int BT_PBAP_FIELD_ROLE = 8192; + + /// < Organization Logo + static const int BT_PBAP_FIELD_LOGO = 16384; + + /// < vCard of Person Representing + static const int BT_PBAP_FIELD_AGENT = 32768; + + /// < Name of Organization + static const int BT_PBAP_FIELD_ORG = 65536; + + /// < Comments + static const int BT_PBAP_FIELD_NOTE = 131072; + + /// < Revision + static const int BT_PBAP_FIELD_REV = 262144; + + /// < Pronunciation of Name + static const int BT_PBAP_FIELD_SOUND = 524288; + + /// < Uniform Resource Locator + static const int BT_PBAP_FIELD_URL = 1048576; + + /// < Unique ID + static const int BT_PBAP_FIELD_UID = 2097152; + + /// < Public Encryption Key + static const int BT_PBAP_FIELD_KEY = 4194304; + + /// < Nickname + static const int BT_PBAP_FIELD_NICKNAME = 8388608; + + /// < Categories + static const int BT_PBAP_FIELD_CATEGORIES = 16777216; + + /// < Product ID + static const int BT_PBAP_FIELD_PROID = 33554432; + + /// < Class information + static const int BT_PBAP_FIELD_CLASS = 67108864; + + /// < String used for sorting operations + static const int BT_PBAP_FIELD_SORT_STRING = 134217728; + + /// < Time stamp + static const int BT_PBAP_FIELD_X_IRMC_CALL_DATETIME = 268435456; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_MODULE +/// @brief Enumerations of Bluetooth error codes. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_error_e { + /// < Successful + static const int BT_ERROR_NONE = 0; + + /// < Operation cancelled + static const int BT_ERROR_CANCELLED = -125; + + /// < Invalid parameter + static const int BT_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int BT_ERROR_OUT_OF_MEMORY = -12; + + /// < Device or resource busy + static const int BT_ERROR_RESOURCE_BUSY = -16; + + /// < Timeout error + static const int BT_ERROR_TIMED_OUT = -1073741823; + + /// < Operation now in progress + static const int BT_ERROR_NOW_IN_PROGRESS = -115; + + /// < BT is Not Supported + static const int BT_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Permission denied + static const int BT_ERROR_PERMISSION_DENIED = -13; + + /// < Quota exceeded + static const int BT_ERROR_QUOTA_EXCEEDED = -122; + + /// < No data available + static const int BT_ERROR_NO_DATA = -61; + + /// < Device policy restriction (Since 3.0) + static const int BT_ERROR_DEVICE_POLICY_RESTRICTION = -1073741820; + + /// < Local adapter not initialized + static const int BT_ERROR_NOT_INITIALIZED = -29359871; + + /// < Local adapter not enabled + static const int BT_ERROR_NOT_ENABLED = -29359870; + + /// < Operation already done + static const int BT_ERROR_ALREADY_DONE = -29359869; + + /// < Operation failed + static const int BT_ERROR_OPERATION_FAILED = -29359868; + + /// < Operation not in progress + static const int BT_ERROR_NOT_IN_PROGRESS = -29359867; + + /// < Remote device not bonded + static const int BT_ERROR_REMOTE_DEVICE_NOT_BONDED = -29359866; + + /// < Authentication rejected + static const int BT_ERROR_AUTH_REJECTED = -29359865; + + /// < Authentication failed + static const int BT_ERROR_AUTH_FAILED = -29359864; + + /// < Remote device not found + static const int BT_ERROR_REMOTE_DEVICE_NOT_FOUND = -29359863; + + /// < Service search failed + static const int BT_ERROR_SERVICE_SEARCH_FAILED = -29359862; + + /// < Remote device is not connected + static const int BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = -29359861; + + /// < Resource temporarily unavailable + static const int BT_ERROR_AGAIN = -29359860; + + /// < Service Not Found + static const int BT_ERROR_SERVICE_NOT_FOUND = -29359859; + + /// < Authorization rejected (Since 5.0) + static const int BT_ERROR_AUTHORIZATION_REJECTED = -29359858; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Enumerations of the Bluetooth adapter state. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -9669,6 +9848,175 @@ abstract class bt_adapter_visibility_mode_e { static const int BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE = 2; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Enumerations of the discovery state of Bluetooth device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_device_discovery_state_e { + /// < Device discovery is started + static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; + + /// < Device discovery is finished + static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; + + /// < The remote Bluetooth device is found + static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_state_e { + /// < Bluetooth advertising is stopped + static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; + + /// < Bluetooth advertising is started + static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising mode. +/// @since_tizen 2.3.1 +abstract class bt_adapter_le_advertising_mode_e { + /// < Balanced advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; + + /// < Low latency advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; + + /// < Low energy advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising filter policy. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_filter_policy_e { + /// < White list is not in use + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_DEFAULT = 0; + + /// < Allow the scan + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_WL = 1; + + /// < Allow the connection + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_CONN_WL = 2; + + /// < Allow the + /// scan and connection request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_CONN_WL = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE packet type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_packet_type_e { + /// < Advertising packet + static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; + + /// < Scan response packet + static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth le scan mode. +/// @since_tizen 3.0 +abstract class bt_adapter_le_scan_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device disconnect reason. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_disconnect_reason_e { + /// < Disconnected by unknown reason + static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; + + /// < Disconnected by timeout + static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; + + /// < Disconnected by local host + static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; + + /// < Disconnected by remote + static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of connection link type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_connection_link_type_e { + /// < BR/EDR link + static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; + + /// < LE link + static const int BT_DEVICE_CONNECTION_LINK_LE = 1; + + /// < The connection type default + static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device authorization state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_authorization_e { + /// < The remote Bluetooth device is authorized + static const int BT_DEVICE_AUTHORIZED = 0; + + /// < The remote Bluetooth device is unauthorized + static const int BT_DEVICE_UNAUTHORIZED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of Bluetooth profile. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_profile_e { + /// < RFCOMM Profile + static const int BT_PROFILE_RFCOMM = 1; + + /// < Advanced Audio Distribution Profile Source role + static const int BT_PROFILE_A2DP = 2; + + /// < Headset Profile + static const int BT_PROFILE_HSP = 4; + + /// < Human Interface Device Profile + static const int BT_PROFILE_HID = 8; + + /// < Network Access Point Profile + static const int BT_PROFILE_NAP = 16; + + /// < Audio Gateway Profile + static const int BT_PROFILE_AG = 32; + + /// < Generic Attribute Profile + static const int BT_PROFILE_GATT = 64; + + /// < NAP server Profile + static const int BT_PROFILE_NAP_SERVER = 128; + + /// < Advanced Audio Distribution Profile Sink role + static const int BT_PROFILE_A2DP_SINK = 256; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device address type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_address_type_e { + /// < Public address + static const int BT_DEVICE_PUBLIC_ADDRESS = 0; + + /// < Random address + static const int BT_DEVICE_RANDOM_ADDRESS = 1; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Enumerations of service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -9752,88 +10100,36 @@ abstract class bt_service_class_t { static const int BT_SC_MAX = 16777216; } -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Called when you get bonded devices repeatedly. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[in] device_info The bonded device information -/// @param[in] user_data The user data passed from the foreach function -/// @return @c true to continue with the next iteration of the loop, -/// \n @c false to break out of the loop. -/// @pre bt_adapter_foreach_bonded_device() will invoke this function. -/// -/// @see bt_adapter_foreach_bonded_device() -typedef bt_adapter_bonded_device_cb - = ffi.Pointer>; -typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); -typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device information structure used for identifying pear device. +/// @brief Enumerations of major service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_device_bond_created_cb() -final class bt_device_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; +abstract class bt_major_service_class_e { + /// < Limited discoverable mode + static const int BT_MAJOR_SERVICE_CLASS_LIMITED_DISCOVERABLE_MODE = 8192; - /// < The name of remote device - external ffi.Pointer remote_name; + /// < Positioning class + static const int BT_MAJOR_SERVICE_CLASS_POSITIONING = 65536; - /// < The Bluetooth classes - external bt_class_s bt_class; + /// < Networking class + static const int BT_MAJOR_SERVICE_CLASS_NETWORKING = 131072; - /// < The UUID list of service - external ffi.Pointer> service_uuid; + /// < Rendering class + static const int BT_MAJOR_SERVICE_CLASS_RENDERING = 262144; - /// < The number of services - @ffi.Int() - external int service_count; + /// < Capturing class + static const int BT_MAJOR_SERVICE_CLASS_CAPTURING = 524288; - /// < The bonding state - @ffi.Bool() - external bool is_bonded; + /// < Object transferring class + static const int BT_MAJOR_SERVICE_CLASS_OBJECT_TRANSFER = 1048576; - /// < The connection state - @ffi.Bool() - external bool is_connected; - - /// < The authorization state - @ffi.Bool() - external bool is_authorized; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Class structure of device and service. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_device_info_s -/// @see #bt_adapter_device_discovery_info_s -/// @see bt_device_bond_created_cb() -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_class_s extends ffi.Struct { - /// < Major device class. - @ffi.Int32() - external int major_device_class; + /// < Audio class + static const int BT_MAJOR_SERVICE_CLASS_AUDIO = 2097152; - /// < Minor device class. - @ffi.Int32() - external int minor_device_class; + /// < Telephony class + static const int BT_MAJOR_SERVICE_CLASS_TELEPHONY = 4194304; - /// < Major service class mask. - /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO - @ffi.Int() - external int major_service_class_mask; + /// < Information class + static const int BT_MAJOR_SERVICE_CLASS_INFORMATION = 8388608; } /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE @@ -10130,10 +10426,973 @@ abstract class bt_minor_device_class_e { /// < Knee prosthesis minor device class of health static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; - /// < Ankle prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; + /// < Ankle prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of gap appearance type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_appearance_type_e { + /// < Unknown appearance type + static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; + + /// < Generic Phone type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; + + /// < Generic Computer type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; + + /// < Generic Watch type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth device's LE connection mode. +/// @since_tizen 3.0 +abstract class bt_device_le_connection_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of connected Bluetooth device event role. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_role_e { + /// < Unknown role + static const int BT_SOCKET_UNKNOWN = 0; + + /// < Server role + static const int BT_SOCKET_SERVER = 1; + + /// < Client role + static const int BT_SOCKET_CLIENT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of Bluetooth socket connection state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_connection_state_e { + /// < RFCOMM is connected + static const int BT_SOCKET_CONNECTED = 0; + + /// < RFCOMM is disconnected + static const int BT_SOCKET_DISCONNECTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE +/// @brief Enumerations for the types of profiles related with audio. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_audio_profile_type_e { + /// < All supported profiles related with audio + static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; + + /// < HSP(Headset Profile) and HFP(Hands-Free Profile) + static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; + + /// < A2DP(Advanced Audio Distribution Profile) + static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; + + /// < AG(Audio Gateway) + static const int BT_AUDIO_PROFILE_TYPE_AG = 3; + + /// < A2DP(Advanced Audio Distribution Profile) Sink role + static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_call_handling_event_e { + /// < Request to answer an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_ANSWER = 0; + + /// < Request to release a call + static const int BT_AG_CALL_HANDLING_EVENT_RELEASE = 1; + + /// < Request to reject an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_REJECT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the multi call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_multi_call_handling_event_e { + /// < Request to release held calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_HELD_CALLS = 0; + + /// < Request to release active calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_ACTIVE_CALLS = 1; + + /// < Request to put active calls into hold state and activate another (held or waiting) call + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_ACTIVATE_HELD_CALL = 2; + + /// < Request to add a held call to the conversation + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_MERGE_CALLS = 3; + + /// < Request to let a user who has two calls to connect these two calls together and release its connections to both other parties + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_EXPLICIT_CALL_TRANSFER = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the equalizer state. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_equalizer_state_e { + /// < Equalizer Off + static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; + + /// < Equalizer On + static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the repeat mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_repeat_mode_e { + /// < Repeat Off + static const int BT_AVRCP_REPEAT_MODE_OFF = 1; + + /// < Single track repeat + static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; + + /// < All track repeat + static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; + + /// < Group repeat + static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the shuffle mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_shuffle_mode_e { + /// < Shuffle Off + static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; + + /// < All tracks shuffle + static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; + + /// < Group shuffle + static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the scan mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_scan_mode_e { + /// < Scan Off + static const int BT_AVRCP_SCAN_MODE_OFF = 1; + + /// < All tracks scan + static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; + + /// < Group scan + static const int BT_AVRCP_SCAN_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the player state. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_state_e { + /// < Stopped + static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; + + /// < Playing + static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; + + /// < Paused + static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; + + /// < Seek Forward + static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; + + /// < Seek Rewind + static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumeration for the player control commands. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_command_e { + /// < Play + static const int BT_AVRCP_CONTROL_PLAY = 1; + + /// < Pause + static const int BT_AVRCP_CONTROL_PAUSE = 2; + + /// < Stop + static const int BT_AVRCP_CONTROL_STOP = 3; + + /// < Next Track + static const int BT_AVRCP_CONTROL_NEXT = 4; + + /// < Previous track + static const int BT_AVRCP_CONTROL_PREVIOUS = 5; + + /// < Fast Forward + static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; + + /// < Rewind + static const int BT_AVRCP_CONTROL_REWIND = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Structure of Track metadata information. +/// @since_tizen 3.0 +/// +/// @see #bt_class_s +final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { + /// < Title + external ffi.Pointer title; + + /// < Artist + external ffi.Pointer artist; + + /// < Album name + external ffi.Pointer album; + + /// < Album Genre + external ffi.Pointer genre; + + /// < The total number of tracks + @ffi.UnsignedInt() + external int total_tracks; + + /// < Track number + @ffi.UnsignedInt() + external int number; + + /// < Duration + @ffi.UnsignedInt() + external int duration; +} + +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Enumerations for the data channel type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @remarks Deprecated, because of no usecase and supported devices. +abstract class bt_hdp_channel_type_e { + /// < Reliable Data Channel + static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; + + /// < Streaming Data Channel + static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the integer type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_int_e { + /// < 8 bit signed int type + static const int BT_DATA_TYPE_SINT8 = 0; + + /// < 16 bit signed int type + static const int BT_DATA_TYPE_SINT16 = 1; + + /// < 32 bit signed int type + static const int BT_DATA_TYPE_SINT32 = 2; + + /// < 8 bit unsigned int type + static const int BT_DATA_TYPE_UINT8 = 3; + + /// < 16 bit unsigned int type + static const int BT_DATA_TYPE_UINT16 = 4; + + /// < 32 bit unsigned int type + static const int BT_DATA_TYPE_UINT32 = 5; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the float type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_float_e { + /// < 32 bit float type + static const int BT_DATA_TYPE_FLOAT = 0; + + /// < 16 bit float type + static const int BT_DATA_TYPE_SFLOAT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the write type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_write_type_e { + /// < Write without response type + static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; + + /// < Write type + static const int BT_GATT_WRITE_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the GATT handle's type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_type_e { + /// < GATT service type + static const int BT_GATT_TYPE_SERVICE = 1; + + /// < GATT characteristic type + static const int BT_GATT_TYPE_CHARACTERISTIC = 2; + + /// < GATT descriptor type + static const int BT_GATT_TYPE_DESCRIPTOR = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the service type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_service_type_e { + /// < GATT primary service type + static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; + + /// < GATT secondary service type + static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the characteristic's property. +/// @since_tizen 2.3.1 +abstract class bt_gatt_property_e { + /// < Broadcast property + static const int BT_GATT_PROPERTY_BROADCAST = 1; + + /// < Read property + static const int BT_GATT_PROPERTY_READ = 2; + + /// < Write without response property + static const int BT_GATT_PROPERTY_WRITE_WITHOUT_RESPONSE = 4; + + /// < Write property + static const int BT_GATT_PROPERTY_WRITE = 8; + + /// < Notify property + static const int BT_GATT_PROPERTY_NOTIFY = 16; + + /// < Indicate property + static const int BT_GATT_PROPERTY_INDICATE = 32; + + /// < Authenticated signed writes property + static const int BT_GATT_PROPERTY_AUTHENTICATED_SIGNED_WRITES = 64; + + /// < Extended properties + static const int BT_GATT_PROPERTY_EXTENDED_PROPERTIES = 128; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Enumerations of gatt server's service changing mode. +/// @since_tizen 3.0 +abstract class bt_gatt_client_service_change_type_e { + /// < Service added + static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; + + /// < Service removed + static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the attribute's permission. +/// @since_tizen 3.0 +abstract class bt_gatt_permission_e { + /// < Readable permission + static const int BT_GATT_PERMISSION_READ = 1; + + /// < Writable permission + static const int BT_GATT_PERMISSION_WRITE = 2; + + /// < Readable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_READ = 4; + + /// < Writable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_WRITE = 8; + + /// < Readable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_READ = 16; + + /// < Writable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_WRITE = 32; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE +/// @brief Enumerations of the remote device request types for attributes. +/// @since_tizen 3.0 +abstract class bt_gatt_att_request_type_e { + /// < Read Requested + static const int BT_GATT_REQUEST_TYPE_READ = 0; + + /// < Write Requested + static const int BT_GATT_REQUEST_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE +/// @brief Enumerations for the types of PAN (Personal Area Networking) service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_panu_service_type_e { + /// < Network Access Point + static const int BT_PANU_SERVICE_TYPE_NAP = 0; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of address book location for PBAP. +/// @since_tizen 3.0 +abstract class bt_pbap_address_book_source_e { + /// < Request for Addressbook from remote device + static const int BT_PBAP_SOURCE_DEVICE = 0; + + /// < Request for address book from SIM + static const int BT_PBAP_SOURCE_SIM = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of folder type. +/// @since_tizen 3.0 +abstract class bt_pbap_folder_type_e { + /// < Request for address book + static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; + + /// < Request for incoming calls + static const int BT_PBAP_FOLDER_INCOMING = 1; + + /// < Request for outgoing calls + static const int BT_PBAP_FOLDER_OUTGOING = 2; + + /// < Request for missed calls + static const int BT_PBAP_FOLDER_MISSED = 3; + + /// < Request for combined calls + static const int BT_PBAP_FOLDER_COMBINED = 4; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of phone book search fields. +/// @since_tizen 3.0 +abstract class bt_pbap_search_field_e { + /// < Request for search by name (default) + static const int BT_PBAP_SEARCH_NAME = 0; + + /// < Request for search by phone number + static const int BT_PBAP_SEARCH_NUMBER = 1; + + /// < Request for search by sound + static const int BT_PBAP_SEARCH_SOUND = 2; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of vCard Formats. +/// @since_tizen 3.0 +abstract class bt_pbap_vcard_format_e { + /// < vCard format 2.1 (default) + static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; + + /// < vCard format 3.0 + static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of sorting orders. +/// @since_tizen 3.0 +abstract class bt_pbap_sort_order_e { + /// < Filter order indexed (default) + static const int BT_PBAP_ORDER_INDEXED = 0; + + /// < Filter order alphanumeric + static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; + + /// < Filter order phonetic + static const int BT_PBAP_ORDER_PHONETIC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Class structure of device and service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_device_info_s +/// @see #bt_adapter_device_discovery_info_s +/// @see bt_device_bond_created_cb() +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_class_s extends ffi.Struct { + /// < Major device class. + @ffi.Int32() + external int major_device_class; + + /// < Minor device class. + @ffi.Int32() + external int minor_device_class; + + /// < Major service class mask. + /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO + @ffi.Int() + external int major_service_class_mask; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Structure of device discovery information. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_adapter_device_discovery_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The Bluetooth appearance + @ffi.Int32() + external int appearance; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Structure of le scan result information. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The address type of remote device + @ffi.Int32() + external int address_type; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < advertising indication data length + @ffi.Int() + external int adv_data_len; + + /// < advertising indication data + external ffi.Pointer adv_data; + + /// < scan response data length + @ffi.Int() + external int scan_data_len; + + /// < scan response data + external ffi.Pointer scan_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief The structure for LE iBeacon scan result information. +/// @since_tizen 4.0 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { + /// < Company ID + @ffi.Int() + external int company_id; + + /// < iBeacon type + @ffi.Int() + external int ibeacon_type; + + /// < UUID + external ffi.Pointer uuid; + + /// < Major ID + @ffi.Int() + external int major_id; + + /// < Minor ID + @ffi.Int() + external int minor_id; + + /// < Measured power + @ffi.Int() + external int measured_power; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief LE service data structure. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_get_scan_result_service_data() +final class bt_adapter_le_service_data_s extends ffi.Struct { + /// < 16 bit UUID of the service data + external ffi.Pointer service_uuid; + + /// < Service data + external ffi.Pointer service_data; + + /// < Service data length + @ffi.Int() + external int service_data_len; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device information structure used for identifying pear device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_device_bond_created_cb() +final class bt_device_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The connection state + @ffi.Bool() + external bool is_connected; + + /// < The authorization state + @ffi.Bool() + external bool is_authorized; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Service Discovery Protocol (SDP) data structure. +/// +/// @details This protocol is used for discovering available services or pear device, +/// and finding one to connect with. +/// +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @see bt_device_service_searched_cb() +final class bt_device_sdp_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services. + @ffi.Int() + external int service_count; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device connection information structure. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_device_connection_state_changed_cb() +final class bt_device_connection_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < Link type + @ffi.Int32() + external int link; + + /// < Disconnection reason + @ffi.Int32() + external int disconn_reason; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_socket_connection_state_changed_cb() +final class bt_socket_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The service UUId + external ffi.Pointer service_uuid; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Structure of RFCOMM received data. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @remarks User can use standard linux functions for reading/writing \n +/// data from/to sockets. +/// +/// @see bt_socket_data_received_cb() +final class bt_socket_received_data_s extends ffi.Struct { + /// < The socket fd + @ffi.Int() + external int socket_fd; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Attribute protocol MTU change information structure. +/// @since_tizen 4.0 +/// +/// @see bt_gatt_client_att_mtu_changed_cb() +final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < MTU value + @ffi.UnsignedInt() + external int mtu; + + /// < Request status + @ffi.UnsignedInt() + external int status; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID mouse's button. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_mouse_button_e { + /// key; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID header type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_header_type_e { + /// < The Bluetooth HID header type: Handshake + static const int BT_HID_HEADER_HANDSHAKE = 0; + + /// < The Bluetooth HID header type: HID control + static const int BT_HID_HEADER_HID_CONTROL = 1; + + /// < The Bluetooth HID header type: Get report + static const int BT_HID_HEADER_GET_REPORT = 2; + + /// < The Bluetooth HID header type: Set report + static const int BT_HID_HEADER_SET_REPORT = 3; + + /// < The Bluetooth HID header type: Get protocol + static const int BT_HID_HEADER_GET_PROTOCOL = 4; + + /// < The Bluetooth HID header type: Set protocol + static const int BT_HID_HEADER_SET_PROTOCOL = 5; + + /// < The Bluetooth HID header type: Data + static const int BT_HID_HEADER_DATA = 6; + + /// < The Bluetooth HID header type: Unknown + static const int BT_HID_HEADER_UNKNOWN = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID parameter type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_param_type_e { + /// < Parameter type: Input + static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; + + /// < Parameter type: Output + static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID handshake type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_handshake_type_e { + /// < Handshake error code none + static const int BT_HID_HANDSHAKE_SUCCESSFUL = 0; + + /// < Handshake error code Not Ready + static const int BT_HID_HANDSHAKE_NOT_READY = 1; + + /// < Handshake error code send invalid report id + static const int BT_HID_HANDSHAKE_ERR_INVALID_REPORT_ID = 2; + + /// < Handshake error code request unsupported request + static const int BT_HID_HANDSHAKE_ERR_UNSUPPORTED_REQUEST = 3; + + /// < Handshake error code received invalid parameter + static const int BT_HID_HANDSHAKE_ERR_INVALID_PARAMETER = 4; + + /// < unknown error + static const int BT_HID_HANDSHAKE_ERR_UNKNOWN = 14; + + /// < Fatal error + static const int BT_HID_HANDSHAKE_ERR_FATAL = 15; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief The structure type containing data received from the HID Host. +/// @since_tizen @if WEARABLE 3.0 @endif +final class bt_hid_device_received_data_s extends ffi.Struct { + /// < The remote device's address + external ffi.Pointer address; + + /// < The header type + @ffi.Int32() + external int header_type; + + /// < The parameter type + @ffi.Int32() + external int param_type; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief The structure type containing vCard information. +/// @since_tizen 3.0 +/// +/// @see bt_pbap_client_pull_vcard() +final class bt_pbap_vcard_info_s extends ffi.Struct { + /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() + @ffi.Int() + external int index; + + /// < The contact name of the vCard + external ffi.Pointer contact_name; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumeration for the scan filter type. +/// @since_tizen 4.0 +/// @see bt_adapter_le_scan_filter_set_type() +abstract class bt_adapter_le_scan_filter_type_e { + /// < iBeacon filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; + + /// < Proximity UUID filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Called when you get bonded devices repeatedly. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @param[in] device_info The bonded device information +/// @param[in] user_data The user data passed from the foreach function +/// @return @c true to continue with the next iteration of the loop, +/// \n @c false to break out of the loop. +/// @pre bt_adapter_foreach_bonded_device() will invoke this function. +/// +/// @see bt_adapter_foreach_bonded_device() +typedef bt_adapter_bonded_device_cb + = ffi.Pointer>; +typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); +typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Called when the Bluetooth adapter state changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10241,80 +11500,6 @@ typedef Dartbt_adapter_device_discovery_state_changed_cbFunction ffi.Pointer discovery_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Enumerations of the discovery state of Bluetooth device. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_device_discovery_state_e { - /// < Device discovery is started - static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; - - /// < Device discovery is finished - static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; - - /// < The remote Bluetooth device is found - static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Structure of device discovery information. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_adapter_device_discovery_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The Bluetooth appearance - @ffi.Int32() - external int appearance; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of gap appearance type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_appearance_type_e { - /// < Unknown appearance type - static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; - - /// < Generic Phone type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; - - /// < Generic Computer type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; - - /// < Generic Watch type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief Called when the LE advertisement has been found. /// @since_tizen 2.3.1 @@ -10335,107 +11520,6 @@ typedef Dartbt_adapter_le_scan_result_cbFunction = void Function( ffi.Pointer info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Structure of le scan result information. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The address type of remote device - @ffi.Int32() - external int address_type; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < advertising indication data length - @ffi.Int() - external int adv_data_len; - - /// < advertising indication data - external ffi.Pointer adv_data; - - /// < scan response data length - @ffi.Int() - external int scan_data_len; - - /// < scan response data - external ffi.Pointer scan_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device address type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_address_type_e { - /// < Public address - static const int BT_DEVICE_PUBLIC_ADDRESS = 0; - - /// < Random address - static const int BT_DEVICE_RANDOM_ADDRESS = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth LE packet type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_packet_type_e { - /// < Advertising packet - static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; - - /// < Scan response packet - static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief LE service data structure. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_get_scan_result_service_data() -final class bt_adapter_le_service_data_s extends ffi.Struct { - /// < 16 bit UUID of the service data - external ffi.Pointer service_uuid; - - /// < Service data - external ffi.Pointer service_data; - - /// < Service data length - @ffi.Int() - external int service_data_len; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief The structure for LE iBeacon scan result information. -/// @since_tizen 4.0 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { - /// < Company ID - @ffi.Int() - external int company_id; - - /// < iBeacon type - @ffi.Int() - external int ibeacon_type; - - /// < UUID - external ffi.Pointer uuid; - - /// < Major ID - @ffi.Int() - external int major_id; - - /// < Minor ID - @ffi.Int() - external int minor_id; - - /// < Measured power - @ffi.Int() - external int measured_power; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle to control Bluetooth LE advertising. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10475,85 +11559,35 @@ typedef bt_ipsp_connection_state_changed_cbFunction = ffi.Void Function( ffi.Pointer iface_name, ffi.Pointer user_data); typedef Dartbt_ipsp_connection_state_changed_cbFunction = void Function( - int result, - bool connected, - ffi.Pointer remote_address, - ffi.Pointer iface_name, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Called when the state of advertiser changes. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[out] result The result of the requested state change of advertiser -/// @param[out] advertiser The handle of the state changed advertiser -/// @param[out] adv_state The advertiser state to be changed -/// @param[out] user_data The user data passed from the start function -/// -/// @see bt_adapter_le_start_advertising_new() -/// @see bt_adapter_le_stop_advertising() -typedef bt_adapter_le_advertising_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_adapter_le_advertising_state_changed_cbFunction = ffi.Void Function( - ffi.Int result, - bt_advertiser_h advertiser, - ffi.Int32 adv_state, - ffi.Pointer user_data); -typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( - int result, - bt_advertiser_h advertiser, - int adv_state, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_advertising_state_e { - /// < Bluetooth advertising is stopped - static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; - - /// < Bluetooth advertising is started - static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising mode. -/// @since_tizen 2.3.1 -abstract class bt_adapter_le_advertising_mode_e { - /// < Balanced advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; - - /// < Low latency advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; - - /// < Low energy advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; -} + int result, + bool connected, + ffi.Pointer remote_address, + ffi.Pointer iface_name, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth le scan mode. -/// @since_tizen 3.0 -abstract class bt_adapter_le_scan_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device authorization state. +/// @brief Called when the state of advertiser changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_authorization_e { - /// < The remote Bluetooth device is authorized - static const int BT_DEVICE_AUTHORIZED = 0; - - /// < The remote Bluetooth device is unauthorized - static const int BT_DEVICE_UNAUTHORIZED = 1; -} +/// +/// @param[out] result The result of the requested state change of advertiser +/// @param[out] advertiser The handle of the state changed advertiser +/// @param[out] adv_state The advertiser state to be changed +/// @param[out] user_data The user data passed from the start function +/// +/// @see bt_adapter_le_start_advertising_new() +/// @see bt_adapter_le_stop_advertising() +typedef bt_adapter_le_advertising_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_adapter_le_advertising_state_changed_cbFunction = ffi.Void Function( + ffi.Int result, + bt_advertiser_h advertiser, + ffi.Int32 adv_state, + ffi.Pointer user_data); +typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( + int result, + bt_advertiser_h advertiser, + int adv_state, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when you get connected profiles repeatedly. @@ -10572,52 +11606,6 @@ typedef bt_device_connected_profileFunction = ffi.Bool Function( typedef Dartbt_device_connected_profileFunction = bool Function( int profile, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of Bluetooth profile. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_profile_e { - /// < RFCOMM Profile - static const int BT_PROFILE_RFCOMM = 1; - - /// < Advanced Audio Distribution Profile Source role - static const int BT_PROFILE_A2DP = 2; - - /// < Headset Profile - static const int BT_PROFILE_HSP = 4; - - /// < Human Interface Device Profile - static const int BT_PROFILE_HID = 8; - - /// < Network Access Point Profile - static const int BT_PROFILE_NAP = 16; - - /// < Audio Gateway Profile - static const int BT_PROFILE_AG = 32; - - /// < Generic Attribute Profile - static const int BT_PROFILE_GATT = 64; - - /// < NAP server Profile - static const int BT_PROFILE_NAP_SERVER = 128; - - /// < Advanced Audio Distribution Profile Sink role - static const int BT_PROFILE_A2DP_SINK = 256; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth device's LE connection mode. -/// @since_tizen 3.0 -abstract class bt_device_le_connection_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the process of creating bond finishes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10713,26 +11701,6 @@ typedef Dartbt_device_service_searched_cbFunction = void Function( ffi.Pointer sdp_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Service Discovery Protocol (SDP) data structure. -/// -/// @details This protocol is used for discovering available services or pear device, -/// and finding one to connect with. -/// -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @see bt_device_service_searched_cb() -final class bt_device_sdp_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services. - @ffi.Int() - external int service_count; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the connection state is changed. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10753,55 +11721,6 @@ typedef Dartbt_device_connection_state_changed_cbFunction = void Function( ffi.Pointer conn_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device connection information structure. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_device_connection_state_changed_cb() -final class bt_device_connection_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < Link type - @ffi.Int32() - external int link; - - /// < Disconnection reason - @ffi.Int32() - external int disconn_reason; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of connection link type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_connection_link_type_e { - /// < BR/EDR link - static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; - - /// < LE link - static const int BT_DEVICE_CONNECTION_LINK_LE = 1; - - /// < The connection type default - static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device disconnect reason. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_disconnect_reason_e { - /// < Disconnected by unknown reason - static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; - - /// < Disconnected by timeout - static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; - - /// < Disconnected by local host - static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; - - /// < Disconnected by remote - static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when you receive data. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10824,27 +11743,6 @@ typedef Dartbt_socket_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Structure of RFCOMM received data. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @remarks User can use standard linux functions for reading/writing \n -/// data from/to sockets. -/// -/// @see bt_socket_data_received_cb() -final class bt_socket_received_data_s extends ffi.Struct { - /// < The socket fd - @ffi.Int() - external int socket_fd; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when a RFCOMM connection is requested. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10869,78 +11767,28 @@ typedef Dartbt_socket_connection_requested_cbFunction = void Function( /// @brief Called when the socket connection state changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif /// -/// @param[in] result The result of connection state changing -/// @param[in] connection_state The connection state -/// @param[in] connection The connection information which is established or disconnected -/// @param[in] user_data The user data passed from the callback registration function -/// @pre Either bt_socket_connect_rfcomm() will invoke this function. -/// In addition, bt_socket_connection_state_changed_cb() will be invoked when the socket connection state is changed. -/// @see bt_socket_listen_and_accept_rfcomm() -/// @see bt_socket_connect_rfcomm() -/// @see bt_socket_set_connection_state_changed_cb() -/// @see bt_socket_unset_connection_state_changed_cb() -typedef bt_socket_connection_state_changed_cb = ffi - .Pointer>; -typedef bt_socket_connection_state_changed_cbFunction = ffi.Void Function( - ffi.Int result, - ffi.Int32 connection_state, - ffi.Pointer connection, - ffi.Pointer user_data); -typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( - int result, - int connection_state, - ffi.Pointer connection, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of Bluetooth socket connection state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_connection_state_e { - /// < RFCOMM is connected - static const int BT_SOCKET_CONNECTED = 0; - - /// < RFCOMM is disconnected - static const int BT_SOCKET_DISCONNECTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_socket_connection_state_changed_cb() -final class bt_socket_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The service UUId - external ffi.Pointer service_uuid; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of connected Bluetooth device event role. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_role_e { - /// < Unknown role - static const int BT_SOCKET_UNKNOWN = 0; - - /// < Server role - static const int BT_SOCKET_SERVER = 1; - - /// < Client role - static const int BT_SOCKET_CLIENT = 2; -} +/// @param[in] result The result of connection state changing +/// @param[in] connection_state The connection state +/// @param[in] connection The connection information which is established or disconnected +/// @param[in] user_data The user data passed from the callback registration function +/// @pre Either bt_socket_connect_rfcomm() will invoke this function. +/// In addition, bt_socket_connection_state_changed_cb() will be invoked when the socket connection state is changed. +/// @see bt_socket_listen_and_accept_rfcomm() +/// @see bt_socket_connect_rfcomm() +/// @see bt_socket_set_connection_state_changed_cb() +/// @see bt_socket_unset_connection_state_changed_cb() +typedef bt_socket_connection_state_changed_cb = ffi + .Pointer>; +typedef bt_socket_connection_state_changed_cbFunction = ffi.Void Function( + ffi.Int result, + ffi.Int32 connection_state, + ffi.Pointer connection, + ffi.Pointer user_data); +typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( + int result, + int connection_state, + ffi.Pointer connection, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_OPP_SERVER_MODULE /// @brief Called when an OPP connection is requested. @@ -11111,45 +11959,6 @@ typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID mouse event information. -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_mouse_event() -final class bt_hid_mouse_data_s extends ffi.Struct { - /// < The button values, we can combine key's values when we pressed multiple mouse buttons - @ffi.Int() - external int buttons; - - /// < The location's x value, -128 ~127 - @ffi.Int() - external int axis_x; - - /// < The location's y value, -128 ~127 - @ffi.Int() - external int axis_y; - - /// < The padding value, -128 ~127 - @ffi.Int() - external int padding; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID keyboard event information. -/// @details If you want to know more detail values, refer to http://www.usb.org/developers/hidpage/ and see "HID Usage Tables" -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_key_event() -final class bt_hid_key_data_s extends ffi.Struct { - /// < The modifier keys : such as shift, alt - @ffi.UnsignedChar() - external int modifier; - - /// < The key value - currently pressed keys : Max 8 at once - @ffi.Array.multi([8]) - external ffi.Array key; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE /// @brief Called when the HID Device receives data from the HID Host. /// @details The following error codes can be delivered: \n @@ -11169,89 +11978,6 @@ typedef Dartbt_hid_device_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing data received from the HID Host. -/// @since_tizen @if WEARABLE 3.0 @endif -final class bt_hid_device_received_data_s extends ffi.Struct { - /// < The remote device's address - external ffi.Pointer address; - - /// < The header type - @ffi.Int32() - external int header_type; - - /// < The parameter type - @ffi.Int32() - external int param_type; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID header type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_header_type_e { - /// < The Bluetooth HID header type: Handshake - static const int BT_HID_HEADER_HANDSHAKE = 0; - - /// < The Bluetooth HID header type: HID control - static const int BT_HID_HEADER_HID_CONTROL = 1; - - /// < The Bluetooth HID header type: Get report - static const int BT_HID_HEADER_GET_REPORT = 2; - - /// < The Bluetooth HID header type: Set report - static const int BT_HID_HEADER_SET_REPORT = 3; - - /// < The Bluetooth HID header type: Get protocol - static const int BT_HID_HEADER_GET_PROTOCOL = 4; - - /// < The Bluetooth HID header type: Set protocol - static const int BT_HID_HEADER_SET_PROTOCOL = 5; - - /// < The Bluetooth HID header type: Data - static const int BT_HID_HEADER_DATA = 6; - - /// < The Bluetooth HID header type: Unknown - static const int BT_HID_HEADER_UNKNOWN = 7; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID parameter type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_param_type_e { - /// < Parameter type: Input - static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; - - /// < Parameter type: Output - static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE -/// @brief Enumerations for the types of profiles related with audio. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_audio_profile_type_e { - /// < All supported profiles related with audio - static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; - - /// < HSP(Headset Profile) and HFP(Hands-Free Profile) - static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; - - /// < A2DP(Advanced Audio Distribution Profile) - static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; - - /// < AG(Audio Gateway) - static const int BT_AUDIO_PROFILE_TYPE_AG = 3; - - /// < A2DP(Advanced Audio Distribution Profile) Sink role - static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE /// @brief Called when the connection state is changed. /// @@ -11300,82 +12026,6 @@ typedef Dartbt_avrcp_target_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the equalizer state. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_equalizer_state_e { - /// < Equalizer Off - static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; - - /// < Equalizer On - static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the repeat mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_repeat_mode_e { - /// < Repeat Off - static const int BT_AVRCP_REPEAT_MODE_OFF = 1; - - /// < Single track repeat - static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; - - /// < All track repeat - static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; - - /// < Group repeat - static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the shuffle mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_shuffle_mode_e { - /// < Shuffle Off - static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; - - /// < All tracks shuffle - static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; - - /// < Group shuffle - static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the scan mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_scan_mode_e { - /// < Scan Off - static const int BT_AVRCP_SCAN_MODE_OFF = 1; - - /// < All tracks scan - static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; - - /// < Group scan - static const int BT_AVRCP_SCAN_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the player state. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_state_e { - /// < Stopped - static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; - - /// < Playing - static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; - - /// < Paused - static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; - - /// < Seek Forward - static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; - - /// < Seek Rewind - static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the equalizer state is changed by the remote control device. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11474,42 +12124,11 @@ typedef Dartbt_avrcp_play_status_changed_cbFunction = void Function( typedef bt_avrcp_track_info_changed_cb = ffi.Pointer>; typedef bt_avrcp_track_info_changed_cbFunction = ffi.Void Function( - ffi.Pointer track, - ffi.Pointer user_data); -typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( - ffi.Pointer track, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Structure of Track metadata information. -/// @since_tizen 3.0 -/// -/// @see #bt_class_s -final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { - /// < Title - external ffi.Pointer title; - - /// < Artist - external ffi.Pointer artist; - - /// < Album name - external ffi.Pointer album; - - /// < Album Genre - external ffi.Pointer genre; - - /// < The total number of tracks - @ffi.UnsignedInt() - external int total_tracks; - - /// < Track number - @ffi.UnsignedInt() - external int number; - - /// < Duration - @ffi.UnsignedInt() - external int duration; -} + ffi.Pointer track, + ffi.Pointer user_data); +typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( + ffi.Pointer track, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the connection state is changed. @@ -11528,32 +12147,6 @@ typedef Dartbt_avrcp_control_connection_state_changed_cbFunction = void Function(bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumeration for the player control commands. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_command_e { - /// < Play - static const int BT_AVRCP_CONTROL_PLAY = 1; - - /// < Pause - static const int BT_AVRCP_CONTROL_PAUSE = 2; - - /// < Stop - static const int BT_AVRCP_CONTROL_STOP = 3; - - /// < Next Track - static const int BT_AVRCP_CONTROL_NEXT = 4; - - /// < Previous track - static const int BT_AVRCP_CONTROL_PREVIOUS = 5; - - /// < Fast Forward - static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; - - /// < Rewind - static const int BT_AVRCP_CONTROL_REWIND = 7; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is established. @@ -11585,19 +12178,6 @@ typedef Dartbt_hdp_connected_cbFunction = void Function( int channel, ffi.Pointer user_data); -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Enumerations for the data channel type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @remarks Deprecated, because of no usecase and supported devices. -abstract class bt_hdp_channel_type_e { - /// < Reliable Data Channel - static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; - - /// < Streaming Data Channel - static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is disconnected. @@ -11650,54 +12230,6 @@ typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, /// @since_tizen 2.3.1 typedef bt_gatt_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the integer type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_int_e { - /// < 8 bit signed int type - static const int BT_DATA_TYPE_SINT8 = 0; - - /// < 16 bit signed int type - static const int BT_DATA_TYPE_SINT16 = 1; - - /// < 32 bit signed int type - static const int BT_DATA_TYPE_SINT32 = 2; - - /// < 8 bit unsigned int type - static const int BT_DATA_TYPE_UINT8 = 3; - - /// < 16 bit unsigned int type - static const int BT_DATA_TYPE_UINT16 = 4; - - /// < 32 bit unsigned int type - static const int BT_DATA_TYPE_UINT32 = 5; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the float type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_float_e { - /// < 32 bit float type - static const int BT_DATA_TYPE_FLOAT = 0; - - /// < 16 bit float type - static const int BT_DATA_TYPE_SFLOAT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the GATT handle's type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_type_e { - /// < GATT service type - static const int BT_GATT_TYPE_SERVICE = 1; - - /// < GATT characteristic type - static const int BT_GATT_TYPE_CHARACTERISTIC = 2; - - /// < GATT descriptor type - static const int BT_GATT_TYPE_DESCRIPTOR = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief The handle of a GATT client which is associated with a remote device. /// @since_tizen 2.3.1 @@ -11723,17 +12255,6 @@ typedef bt_gatt_foreach_cbFunction = ffi.Bool Function(ffi.Int total, typedef Dartbt_gatt_foreach_cbFunction = bool Function(int total, int index, bt_gatt_h gatt_handle, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the write type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_write_type_e { - /// < Write without response type - static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; - - /// < Write type - static const int BT_GATT_WRITE_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when the client request(e.g. read / write) has been completed. /// @since_tizen 2.3.1 @@ -11774,24 +12295,6 @@ typedef Dartbt_gatt_client_att_mtu_changed_cbFunction = void Function( ffi.Pointer mtu_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Attribute protocol MTU change information structure. -/// @since_tizen 4.0 -/// -/// @see bt_gatt_client_att_mtu_changed_cb() -final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < MTU value - @ffi.UnsignedInt() - external int mtu; - - /// < Request status - @ffi.UnsignedInt() - external int status; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when a value of a watched characteristic's GATT handle has been changed. /// @since_tizen 2.3.1 @@ -11837,17 +12340,6 @@ typedef Dartbt_gatt_client_service_changed_cbFunction = void Function( ffi.Pointer service_uuid, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Enumerations of gatt server's service changing mode. -/// @since_tizen 3.0 -abstract class bt_gatt_client_service_change_type_e { - /// < Service added - static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; - - /// < Service removed - static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE /// @brief Called when the connection state is changed. /// @@ -11877,17 +12369,6 @@ typedef Dartbt_gatt_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the service type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_service_type_e { - /// < GATT primary service type - static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; - - /// < GATT secondary service type - static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief The handle of a GATT server. /// @since_tizen 3.0 @@ -12002,17 +12483,6 @@ typedef Dartbt_gatt_server_write_value_requested_cbFunction = void Function( int len, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE -/// @brief Enumerations of the remote device request types for attributes. -/// @since_tizen 3.0 -abstract class bt_gatt_att_request_type_e { - /// < Read Requested - static const int BT_GATT_REQUEST_TYPE_READ = 0; - - /// < Write Requested - static const int BT_GATT_REQUEST_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief Called when the sending notification / indication is done. /// @since_tizen 3.0 @@ -12081,39 +12551,6 @@ typedef Dartbt_pbap_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of address book location for PBAP. -/// @since_tizen 3.0 -abstract class bt_pbap_address_book_source_e { - /// < Request for Addressbook from remote device - static const int BT_PBAP_SOURCE_DEVICE = 0; - - /// < Request for address book from SIM - static const int BT_PBAP_SOURCE_SIM = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of folder type. -/// @since_tizen 3.0 -abstract class bt_pbap_folder_type_e { - /// < Request for address book - static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; - - /// < Request for incoming calls - static const int BT_PBAP_FOLDER_INCOMING = 1; - - /// < Request for outgoing calls - static const int BT_PBAP_FOLDER_OUTGOING = 2; - - /// < Request for missed calls - static const int BT_PBAP_FOLDER_MISSED = 3; - - /// < Request for combined calls - static const int BT_PBAP_FOLDER_COMBINED = 4; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook size calculation completes. @@ -12142,33 +12579,6 @@ typedef Dartbt_pbap_phone_book_size_cbFunction = void Function( int size, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of vCard Formats. -/// @since_tizen 3.0 -abstract class bt_pbap_vcard_format_e { - /// < vCard format 2.1 (default) - static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; - - /// < vCard format 3.0 - static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of sorting orders. -/// @since_tizen 3.0 -abstract class bt_pbap_sort_order_e { - /// < Filter order indexed (default) - static const int BT_PBAP_ORDER_INDEXED = 0; - - /// < Filter order alphanumeric - static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; - - /// < Filter order phonetic - static const int BT_PBAP_ORDER_PHONETIC = 2; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook Pull completes. @@ -12229,49 +12639,7 @@ typedef Dartbt_pbap_list_vcards_cbFunction = void Function( int count, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief The structure type containing vCard information. -/// @since_tizen 3.0 -/// -/// @see bt_pbap_client_pull_vcard() -final class bt_pbap_vcard_info_s extends ffi.Struct { - /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() - @ffi.Int() - external int index; - - /// < The contact name of the vCard - external ffi.Pointer contact_name; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of phone book search fields. -/// @since_tizen 3.0 -abstract class bt_pbap_search_field_e { - /// < Request for search by name (default) - static const int BT_PBAP_SEARCH_NAME = 0; - - /// < Request for search by phone number - static const int BT_PBAP_SEARCH_NUMBER = 1; - - /// < Request for search by sound - static const int BT_PBAP_SEARCH_SOUND = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle of a Bluetooth LE scan filter. /// @since_tizen 4.0 typedef bt_scan_filter_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumeration for the scan filter type. -/// @since_tizen 4.0 -/// @see bt_adapter_le_scan_filter_set_type() -abstract class bt_adapter_le_scan_filter_type_e { - /// < iBeacon filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - - /// < Proximity UUID filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; -} diff --git a/lib/src/bindings/6.0/generated_bindings_capi_system_info.dart b/lib/src/bindings/6.0/generated_bindings_capi_system_info.dart index 3f9244c6..a22922a0 100644 --- a/lib/src/bindings/6.0/generated_bindings_capi_system_info.dart +++ b/lib/src/bindings/6.0/generated_bindings_capi_system_info.dart @@ -369,6 +369,36 @@ class Tizen60CapiSystemInfo { int Function(ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for system information error codes. +abstract class system_info_error_e { + /// < Successful + static const int SYSTEM_INFO_ERROR_NONE = 0; + + /// < Invalid parameter + static const int SYSTEM_INFO_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int SYSTEM_INFO_ERROR_OUT_OF_MEMORY = -12; + + /// < An input/output error occurred when reading value from system + static const int SYSTEM_INFO_ERROR_IO_ERROR = -5; + + /// < No permission to use the API + static const int SYSTEM_INFO_ERROR_PERMISSION_DENIED = -13; + + /// < Not supported parameter (Since 3.0) + static const int SYSTEM_INFO_ERROR_NOT_SUPPORTED = -1073741822; +} + +/// @internal +/// @brief It is not decided if it should be opened to public. +abstract class system_info_type_e { + static const int SYSTEM_INFO_BOOL = 0; + static const int SYSTEM_INFO_INT = 1; + static const int SYSTEM_INFO_DOUBLE = 2; + static const int SYSTEM_INFO_STRING = 3; +} + /// @internal /// @brief Enumeration for system information key. abstract class system_info_key_e { @@ -417,12 +447,3 @@ abstract class system_info_key_e { /// < @internal Indicates whether the device supports tethering static const int SYSTEM_INFO_KEY_TETHERING_SUPPORTED = 14; } - -/// @internal -/// @brief It is not decided if it should be opened to public. -abstract class system_info_type_e { - static const int SYSTEM_INFO_BOOL = 0; - static const int SYSTEM_INFO_INT = 1; - static const int SYSTEM_INFO_DOUBLE = 2; - static const int SYSTEM_INFO_STRING = 3; -} diff --git a/lib/src/bindings/6.0/generated_bindings_mv_barcode_detector.dart b/lib/src/bindings/6.0/generated_bindings_mv_barcode_detector.dart index 367ee6ac..150e2464 100644 --- a/lib/src/bindings/6.0/generated_bindings_mv_barcode_detector.dart +++ b/lib/src/bindings/6.0/generated_bindings_mv_barcode_detector.dart @@ -81,56 +81,6 @@ class Tizen60MvBarcodeDetector { ffi.Pointer)>(); } -/// @brief Enumeration to target attribute -/// -/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -abstract class mv_barcode_detect_attr_target_e { - /// < 1D and 2D - static const int MV_BARCODE_DETECT_ATTR_TARGET_ALL = 0; - - /// < 1D barcode only - static const int MV_BARCODE_DETECT_ATTR_TARGET_1D_BARCODE = 1; - - /// < 2D barcode only - static const int MV_BARCODE_DETECT_ATTR_TARGET_2D_BARCODE = 2; -} - -/// @brief Called when barcode detection is completed. -/// @details If no barcode is detected then the method will be called, barcodes -/// and states will be equal to NULL, and @a number_of_barcodes - 0. -/// -/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -/// @param [in] source The handle to the media source -/// @param [in] engine_cfg The handle to the configuration of the engine -/// @param [in] barcode_locations The quadrangle locations of detected barcodes -/// @param [in] messages The decoded messages of barcodes -/// @param [in] types The types of detected barcodes -/// @param [in] number_of_barcodes The number of detected barcodes -/// @param [in] user_data The user data passed from -/// the mv_barcode_detect() function -/// -/// @pre mv_barcode_detect() invokes this callback -/// -/// @see mv_barcode_detect() -typedef mv_barcode_detected_cb - = ffi.Pointer>; -typedef mv_barcode_detected_cbFunction = ffi.Void Function( - mv_common.mv_source_h source, - mv_common.mv_engine_config_h engine_cfg, - ffi.Pointer barcode_locations, - ffi.Pointer> messages, - ffi.Pointer types, - ffi.Int number_of_barcodes, - ffi.Pointer user_data); -typedef Dartmv_barcode_detected_cbFunction = void Function( - mv_common.mv_source_h source, - mv_common.mv_engine_config_h engine_cfg, - ffi.Pointer barcode_locations, - ffi.Pointer> messages, - ffi.Pointer types, - int number_of_barcodes, - ffi.Pointer user_data); - /// @brief Enumeration for supported barcode types. /// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported /// @@ -186,4 +136,116 @@ abstract class mv_barcode_type_e { static const int MV_BARCODE_UNKNOWN = 100; } +/// @brief Enumeration for supported QR code error correction level. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_ecc_e { + /// < Recovery up to 7% losses + static const int MV_BARCODE_QR_ECC_LOW = 0; + + /// < Recovery up to 15% losses + static const int MV_BARCODE_QR_ECC_MEDIUM = 1; + + /// < Recovery up to 25% losses + static const int MV_BARCODE_QR_ECC_QUARTILE = 2; + + /// < Recovery up to 30% losses + static const int MV_BARCODE_QR_ECC_HIGH = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_ECC_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported QR code encoding mode. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_mode_e { + /// < Numeric digits + static const int MV_BARCODE_QR_MODE_NUMERIC = 0; + + /// < Alphanumeric characters + static const int MV_BARCODE_QR_MODE_ALPHANUMERIC = 1; + + /// < Raw 8-bit bytes + static const int MV_BARCODE_QR_MODE_BYTE = 2; + + /// < UTF-8 character encoding + static const int MV_BARCODE_QR_MODE_UTF8 = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_MODE_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported image formats for the barcode generating. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +abstract class mv_barcode_image_format_e { + /// < Unavailable image format + static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; + + /// < BMP image format + static const int MV_BARCODE_IMAGE_FORMAT_BMP = 0; + + /// < JPEG image format + static const int MV_BARCODE_IMAGE_FORMAT_JPG = 1; + + /// < PNG image format + static const int MV_BARCODE_IMAGE_FORMAT_PNG = 2; + + /// < The number of supported image format + static const int MV_BARCODE_IMAGE_FORMAT_NUM = 3; +} + +/// @brief Enumeration to target attribute +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +abstract class mv_barcode_detect_attr_target_e { + /// < 1D and 2D + static const int MV_BARCODE_DETECT_ATTR_TARGET_ALL = 0; + + /// < 1D barcode only + static const int MV_BARCODE_DETECT_ATTR_TARGET_1D_BARCODE = 1; + + /// < 2D barcode only + static const int MV_BARCODE_DETECT_ATTR_TARGET_2D_BARCODE = 2; +} + +/// @brief Called when barcode detection is completed. +/// @details If no barcode is detected then the method will be called, barcodes +/// and states will be equal to NULL, and @a number_of_barcodes - 0. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @param [in] source The handle to the media source +/// @param [in] engine_cfg The handle to the configuration of the engine +/// @param [in] barcode_locations The quadrangle locations of detected barcodes +/// @param [in] messages The decoded messages of barcodes +/// @param [in] types The types of detected barcodes +/// @param [in] number_of_barcodes The number of detected barcodes +/// @param [in] user_data The user data passed from +/// the mv_barcode_detect() function +/// +/// @pre mv_barcode_detect() invokes this callback +/// +/// @see mv_barcode_detect() +typedef mv_barcode_detected_cb + = ffi.Pointer>; +typedef mv_barcode_detected_cbFunction = ffi.Void Function( + mv_common.mv_source_h source, + mv_common.mv_engine_config_h engine_cfg, + ffi.Pointer barcode_locations, + ffi.Pointer> messages, + ffi.Pointer types, + ffi.Int number_of_barcodes, + ffi.Pointer user_data); +typedef Dartmv_barcode_detected_cbFunction = void Function( + mv_common.mv_source_h source, + mv_common.mv_engine_config_h engine_cfg, + ffi.Pointer barcode_locations, + ffi.Pointer> messages, + ffi.Pointer types, + int number_of_barcodes, + ffi.Pointer user_data); + const String MV_BARCODE_DETECT_ATTR_TARGET = 'MV_BARCODE_DETECT_ATTR_TARGET'; diff --git a/lib/src/bindings/6.0/generated_bindings_mv_barcode_generator.dart b/lib/src/bindings/6.0/generated_bindings_mv_barcode_generator.dart index 89dea8c6..8aed7606 100644 --- a/lib/src/bindings/6.0/generated_bindings_mv_barcode_generator.dart +++ b/lib/src/bindings/6.0/generated_bindings_mv_barcode_generator.dart @@ -259,7 +259,7 @@ abstract class _mv_barcode_type_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_mode_e { +abstract class _mv_barcode_qr_mode_e { /// < Numeric digits static const int MV_BARCODE_QR_MODE_NUMERIC = 0; @@ -280,7 +280,7 @@ abstract class mv_barcode_qr_mode_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_ecc_e { +abstract class _mv_barcode_qr_ecc_e { /// < Recovery up to 7% losses static const int MV_BARCODE_QR_ECC_LOW = 0; @@ -300,7 +300,7 @@ abstract class mv_barcode_qr_ecc_e { /// @brief Enumeration for supported image formats for the barcode generating. /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -abstract class mv_barcode_image_format_e { +abstract class _mv_barcode_image_format_e { /// < Unavailable image format static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; diff --git a/lib/src/bindings/6.0/generated_bindings_mv_face.dart b/lib/src/bindings/6.0/generated_bindings_mv_face.dart index 20a4dcda..ad98b243 100644 --- a/lib/src/bindings/6.0/generated_bindings_mv_face.dart +++ b/lib/src/bindings/6.0/generated_bindings_mv_face.dart @@ -1100,6 +1100,53 @@ class Tizen60MvFace { ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for eyes state type. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_eye_condition_recognize() +abstract class mv_face_eye_condition_e { + /// < Eyes are open + static const int MV_FACE_EYES_OPEN = 0; + + /// < Eyes are closed + static const int MV_FACE_EYES_CLOSED = 1; + + /// < The eyes condition wasn't determined + static const int MV_FACE_EYES_NOT_FOUND = 2; +} + +/// @brief Enumeration for expression types can be determined for faces. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_facial_expression_recognize() +abstract class mv_face_facial_expression_e { + /// < Unknown face expression + static const int MV_FACE_UNKNOWN = 0; + + /// < Face expression is neutral + static const int MV_FACE_NEUTRAL = 1; + + /// < Face expression is smiling + static const int MV_FACE_SMILE = 2; + + /// < Face expression is sadness + static const int MV_FACE_SADNESS = 3; + + /// < Face expression is surprise + static const int MV_FACE_SURPRISE = 4; + + /// < Face expression is anger + static const int MV_FACE_ANGER = 5; + + /// < Face expression is fear + static const int MV_FACE_FEAR = 6; + + /// < Face expression is disgust + static const int MV_FACE_DISGUST = 7; +} + /// @brief Called when faces are detected for the @a source. /// @details This type callback can be invoked each time when /// mv_face_detect() is called to process the results of face @@ -1311,22 +1358,6 @@ typedef Dartmv_face_eye_condition_recognized_cbFunction = void Function( int eye_condition, ffi.Pointer user_data); -/// @brief Enumeration for eyes state type. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_eye_condition_recognize() -abstract class mv_face_eye_condition_e { - /// < Eyes are open - static const int MV_FACE_EYES_OPEN = 0; - - /// < Eyes are closed - static const int MV_FACE_EYES_CLOSED = 1; - - /// < The eyes condition wasn't determined - static const int MV_FACE_EYES_NOT_FOUND = 2; -} - /// @brief Called when facial expression is recognized. /// @details This type callback can be invoked each time when /// mv_face_facial_expression_recognize() is called for @a face_location to @@ -1363,37 +1394,6 @@ typedef Dartmv_face_facial_expression_recognized_cbFunction = void Function( int facial_expression, ffi.Pointer user_data); -/// @brief Enumeration for expression types can be determined for faces. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_facial_expression_recognize() -abstract class mv_face_facial_expression_e { - /// < Unknown face expression - static const int MV_FACE_UNKNOWN = 0; - - /// < Face expression is neutral - static const int MV_FACE_NEUTRAL = 1; - - /// < Face expression is smiling - static const int MV_FACE_SMILE = 2; - - /// < Face expression is sadness - static const int MV_FACE_SADNESS = 3; - - /// < Face expression is surprise - static const int MV_FACE_SURPRISE = 4; - - /// < Face expression is anger - static const int MV_FACE_ANGER = 5; - - /// < Face expression is fear - static const int MV_FACE_FEAR = 6; - - /// < Face expression is disgust - static const int MV_FACE_DISGUST = 7; -} - const String MV_FACE_DETECTION_MODEL_FILE_PATH = 'MV_FACE_DETECTION_MODEL_FILE_PATH'; diff --git a/lib/src/bindings/6.0/generated_bindings_mv_inference.dart b/lib/src/bindings/6.0/generated_bindings_mv_inference.dart index ba9adbcb..47171e11 100644 --- a/lib/src/bindings/6.0/generated_bindings_mv_inference.dart +++ b/lib/src/bindings/6.0/generated_bindings_mv_inference.dart @@ -821,6 +821,179 @@ class Tizen60MvInference { ffi.Pointer)>(); } +/// @brief Enumeration for inference backend. +/// #MV_INFERENCE_BACKEND_OPENCV An open source computer vision and machine learning +/// software library. +/// (https://opencv.org/about/) +/// #MV_INFERENCE_BACKEND_TFLITE Google-introduced open source inference engine for embedded systems, +/// which runs Tensorflow Lite model. +/// (https://www.tensorflow.org/lite/guide/get_started) +/// #MV_INFERENCE_BACKEND_ARMNN ARM-introduced open source inference engine for CPUs, GPUs and NPUs, which +/// enables efficient translation of existing neural network frameworks +/// such as TensorFlow, TensorFlow Lite and Caffes, allowing them to +/// run efficiently without modification on Embedded hardware. +/// (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn) +/// #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which +/// runs various NN models via tensor filters of NNStreamer. +/// (https://github.com/nnstreamer/nnstreamer) +/// #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which +/// performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU. +/// (https://github.com/Samsung/ONE) +/// +/// @since_tizen 5.5 +/// +/// @see mv_inference_prepare() +abstract class mv_inference_backend_type_e { + /// < None + static const int MV_INFERENCE_BACKEND_NONE = -1; + + /// < OpenCV + static const int MV_INFERENCE_BACKEND_OPENCV = 0; + + /// < TensorFlow-Lite + static const int MV_INFERENCE_BACKEND_TFLITE = 1; + + /// < ARMNN (Since 6.0) + static const int MV_INFERENCE_BACKEND_ARMNN = 2; + + /// < ML Single API of NNStreamer (Since 6.0) + static const int MV_INFERENCE_BACKEND_MLAPI = 3; + + /// < On-device Neural Engine (Since 6.0) + static const int MV_INFERENCE_BACKEND_ONE = 4; + + /// < Backend MAX + static const int MV_INFERENCE_BACKEND_MAX = 5; +} + +/// @deprecated Deprecated since 6.0. Use #mv_inference_target_device_e instead. +/// @brief Enumeration for inference target. +/// +/// @since_tizen 5.5 +abstract class mv_inference_target_type_e { + /// < None + static const int MV_INFERENCE_TARGET_NONE = -1; + + /// < CPU + static const int MV_INFERENCE_TARGET_CPU = 0; + + /// < GPU + static const int MV_INFERENCE_TARGET_GPU = 1; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_CUSTOM = 2; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_MAX = 3; +} + +/// @brief Enumeration for inference target. +/// +/// @since_tizen 6.0 +abstract class mv_inference_target_device_e { + /// < None + static const int MV_INFERENCE_TARGET_DEVICE_NONE = 0; + + /// < CPU + static const int MV_INFERENCE_TARGET_DEVICE_CPU = 1; + + /// < GPU + static const int MV_INFERENCE_TARGET_DEVICE_GPU = 2; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_DEVICE_CUSTOM = 4; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_DEVICE_MAX = 8; +} + +/// @brief Enumeration for input data type. +/// +/// @since_tizen 6.0 +abstract class mv_inference_data_type_e { + /// < Data type of a given pre-trained model is float. + static const int MV_INFERENCE_DATA_FLOAT32 = 0; + + /// < Data type of a given pre-trained model is unsigned char. + static const int MV_INFERENCE_DATA_UINT8 = 1; +} + +/// @brief Enumeration for human pose landmark. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_pose_landmark_e { + /// < Head of human pose + static const int MV_INFERENCE_HUMAN_POSE_HEAD = 1; + + /// < Neck of human pose + static const int MV_INFERENCE_HUMAN_POSE_NECK = 2; + + /// < Thorax of human pose + static const int MV_INFERENCE_HUMAN_POSE_THORAX = 3; + + /// < Right shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_SHOULDER = 4; + + /// < Right elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ELBOW = 5; + + /// < Right wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_WRIST = 6; + + /// < Left shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_SHOULDER = 7; + + /// < Left elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ELBOW = 8; + + /// < Left wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_WRIST = 9; + + /// < Pelvis of human pose + static const int MV_INFERENCE_HUMAN_POSE_PELVIS = 10; + + /// < Right hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_HIP = 11; + + /// < Right knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_KNEE = 12; + + /// < Right ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ANKLE = 13; + + /// < Left hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_HIP = 14; + + /// < Left knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_KNEE = 15; + + /// < Left ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ANKLE = 16; +} + +/// @brief Enumeration for human body parts. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_body_part_e { + /// < HEAD, NECK, and THORAX + static const int MV_INFERENCE_HUMAN_BODY_PART_HEAD = 1; + + /// < RIGHT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_RIGHT = 2; + + /// < LEFT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_LEFT = 4; + + /// < THORAX, PELVIS, RIGHT HIP, and LEFT HIP + static const int MV_INFERENCE_HUMAN_BODY_PART_BODY = 8; + + /// < RIGHT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_RIGHT = 16; + + /// < LEFT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_LEFT = 32; +} + /// @brief The inference handle. /// @details Contains information about location of /// detected landmarks for one or more poses. diff --git a/lib/src/bindings/6.0/generated_bindings_tbm.dart b/lib/src/bindings/6.0/generated_bindings_tbm.dart index c8121013..3a2a2124 100644 --- a/lib/src/bindings/6.0/generated_bindings_tbm.dart +++ b/lib/src/bindings/6.0/generated_bindings_tbm.dart @@ -449,6 +449,8 @@ class Tizen60Tbm { _tbm_surface_get_formatPtr.asFunction(); } +final class _tbm_surface extends ffi.Opaque {} + /// @brief Enumeration for tbm_surface error type. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif abstract class tbm_surface_error_e { @@ -544,12 +546,128 @@ typedef tbm_surface_plane_s = _tbm_surface_plane; /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_h = ffi.Pointer<_tbm_surface>; -final class _tbm_surface extends ffi.Opaque {} - /// @brief Definition for the TBM surface information struct. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_info_s = _tbm_surface_info; +const int TBM_FORMAT_C8 = 538982467; + +const int TBM_FORMAT_RGB332 = 943867730; + +const int TBM_FORMAT_BGR233 = 944916290; + +const int TBM_FORMAT_XRGB4444 = 842093144; + +const int TBM_FORMAT_XBGR4444 = 842089048; + +const int TBM_FORMAT_RGBX4444 = 842094674; + +const int TBM_FORMAT_BGRX4444 = 842094658; + +const int TBM_FORMAT_ARGB4444 = 842093121; + +const int TBM_FORMAT_ABGR4444 = 842089025; + +const int TBM_FORMAT_RGBA4444 = 842088786; + +const int TBM_FORMAT_BGRA4444 = 842088770; + +const int TBM_FORMAT_XRGB1555 = 892424792; + +const int TBM_FORMAT_XBGR1555 = 892420696; + +const int TBM_FORMAT_RGBX5551 = 892426322; + +const int TBM_FORMAT_BGRX5551 = 892426306; + +const int TBM_FORMAT_ARGB1555 = 892424769; + +const int TBM_FORMAT_ABGR1555 = 892420673; + +const int TBM_FORMAT_RGBA5551 = 892420434; + +const int TBM_FORMAT_BGRA5551 = 892420418; + +const int TBM_FORMAT_RGB565 = 909199186; + +const int TBM_FORMAT_BGR565 = 909199170; + +const int TBM_FORMAT_RGB888 = 875710290; + +const int TBM_FORMAT_BGR888 = 875710274; + +const int TBM_FORMAT_XRGB8888 = 875713112; + +const int TBM_FORMAT_XBGR8888 = 875709016; + +const int TBM_FORMAT_RGBX8888 = 875714642; + +const int TBM_FORMAT_BGRX8888 = 875714626; + +const int TBM_FORMAT_ARGB8888 = 875713089; + +const int TBM_FORMAT_ABGR8888 = 875708993; + +const int TBM_FORMAT_RGBA8888 = 875708754; + +const int TBM_FORMAT_BGRA8888 = 875708738; + +const int TBM_FORMAT_XRGB2101010 = 808669784; + +const int TBM_FORMAT_XBGR2101010 = 808665688; + +const int TBM_FORMAT_RGBX1010102 = 808671314; + +const int TBM_FORMAT_BGRX1010102 = 808671298; + +const int TBM_FORMAT_ARGB2101010 = 808669761; + +const int TBM_FORMAT_ABGR2101010 = 808665665; + +const int TBM_FORMAT_RGBA1010102 = 808665426; + +const int TBM_FORMAT_BGRA1010102 = 808665410; + +const int TBM_FORMAT_YUYV = 1448695129; + +const int TBM_FORMAT_YVYU = 1431918169; + +const int TBM_FORMAT_UYVY = 1498831189; + +const int TBM_FORMAT_VYUY = 1498765654; + +const int TBM_FORMAT_AYUV = 1448433985; + +const int TBM_FORMAT_NV12 = 842094158; + +const int TBM_FORMAT_NV21 = 825382478; + +const int TBM_FORMAT_NV16 = 909203022; + +const int TBM_FORMAT_NV61 = 825644622; + +const int TBM_FORMAT_YUV410 = 961959257; + +const int TBM_FORMAT_YVU410 = 961893977; + +const int TBM_FORMAT_YUV411 = 825316697; + +const int TBM_FORMAT_YVU411 = 825316953; + +const int TBM_FORMAT_YUV420 = 842093913; + +const int TBM_FORMAT_YVU420 = 842094169; + +const int TBM_FORMAT_YUV422 = 909202777; + +const int TBM_FORMAT_YVU422 = 909203033; + +const int TBM_FORMAT_YUV444 = 875713881; + +const int TBM_FORMAT_YVU444 = 875714137; + +const int TBM_FORMAT_NV12MT = 842091860; + const int TBM_SURF_PLANE_MAX = 4; const int TBM_SURF_OPTION_READ = 1; diff --git a/lib/src/bindings/6.5/generated_bindings_capi_base_common.dart b/lib/src/bindings/6.5/generated_bindings_capi_base_common.dart index 80e8c37d..445765f0 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_base_common.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_base_common.dart @@ -386,6 +386,8 @@ abstract class tizen_error_e { static const int TIZEN_ERROR_END_OF_COLLECTION = -1073741819; } +const int NULL = 0; + const int TIZEN_ERROR_MAX_PLATFORM_ERROR = 0; const int TIZEN_ERROR_MIN_PLATFORM_ERROR = -1073741824; diff --git a/lib/src/bindings/6.5/generated_bindings_capi_geofence_manager.dart b/lib/src/bindings/6.5/generated_bindings_capi_geofence_manager.dart index 64d86359..53fbae00 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_geofence_manager.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_geofence_manager.dart @@ -1223,71 +1223,6 @@ class Tizen65CapiGeofenceManager { .asFunction)>(); } -/// @brief The geofence manager handle. -/// @since_tizen 2.4 -typedef geofence_manager_h = ffi.Pointer; - -final class geofence_manager_s extends ffi.Opaque {} - -/// @brief The geofence handle. -/// @since_tizen 2.4 -typedef geofence_h = ffi.Pointer; - -final class geofence_s extends ffi.Opaque {} - -/// @brief Called when a device enters or exits the given geofence. -/// @since_tizen 2.4 -/// @param[in] geofence_id The specified geofence ID -/// @param[in] state The geofence state -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). -/// @see geofence_state_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_state_changed_cb() -typedef geofence_state_changed_cb - = ffi.Pointer>; -typedef geofence_state_changed_cbFunction = ffi.Void Function( - ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartgeofence_state_changed_cbFunction = void Function( - int geofence_id, int state, ffi.Pointer user_data); - -/// @brief Enumeration for the state of geofence manager. -/// @since_tizen 2.4 -abstract class geofence_state_e { - /// < Uncertain state of geofence - static const int GEOFENCE_STATE_UNCERTAIN = 0; - - /// < Geofence In state - static const int GEOFENCE_STATE_IN = 1; - - /// < Geofence Out state - static const int GEOFENCE_STATE_OUT = 2; -} - -/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. -/// @details The events of public geofence is also received if there are public geofences. -/// @since_tizen 2.4 -/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. -/// @param[in] place_id The place ID -/// @param[in] geofence_id The specified geofence ID -/// @param[in] error The error code for the particular action -/// @param[in] manage The result code for the particular place and geofence management -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() -/// @see geofence_manage_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_event_cb() -typedef geofence_event_cb - = ffi.Pointer>; -typedef geofence_event_cbFunction = ffi.Void Function( - ffi.Int place_id, - ffi.Int geofence_id, - ffi.Int32 error, - ffi.Int32 manage, - ffi.Pointer user_data); -typedef Dartgeofence_event_cbFunction = void Function(int place_id, - int geofence_id, int error, int manage, ffi.Pointer user_data); - /// @brief Enumeration for Geofence manager of error code. /// @since_tizen 2.4 abstract class geofence_manager_error_e { @@ -1334,6 +1269,67 @@ abstract class geofence_manager_error_e { static const int GEOFENCE_MANAGER_ERROR_GEOFENCE_ACCESS_DENIED = -46202871; } +/// @brief Enumeration for the state of geofence manager. +/// @since_tizen 2.4 +abstract class geofence_state_e { + /// < Uncertain state of geofence + static const int GEOFENCE_STATE_UNCERTAIN = 0; + + /// < Geofence In state + static const int GEOFENCE_STATE_IN = 1; + + /// < Geofence Out state + static const int GEOFENCE_STATE_OUT = 2; +} + +/// @brief Enumeration for the state of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_state_e { + /// < Uncertain state of proximity + static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; + + /// < Far state of proximity + static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; + + /// < Near state of proximity + static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; + + /// < Immediate state of proximity + static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; +} + +/// @brief Enumeration for the provider of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_provider_e { + /// < Proximity is specified by geospatial coordinate + static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; + + /// < Proximity is specified by Wi-Fi access point + static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; + + /// < Proximity is specified by Bluetooth device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; + + /// < Proximity is specified by Bluetooth low energy device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; + + /// < Proximity is specified by Sensor + static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; +} + +/// @brief Enumeration for geofence type. +/// @since_tizen 2.4 +abstract class geofence_type_e { + /// < Geofence is specified by geospatial coordinate + static const int GEOFENCE_TYPE_GEOPOINT = 1; + + /// < Geofence is specified by Wi-Fi access point + static const int GEOFENCE_TYPE_WIFI = 2; + + /// < Geofence is specified by Bluetooth device + static const int GEOFENCE_TYPE_BT = 3; +} + /// @brief Enumeration for geofence management events. /// @since_tizen 2.4 abstract class geofence_manage_e { @@ -1365,6 +1361,60 @@ abstract class geofence_manage_e { static const int GEOFENCE_MANAGE_SETTING_DISABLED = 33; } +final class geofence_manager_s extends ffi.Opaque {} + +final class geofence_s extends ffi.Opaque {} + +final class geofence_status_s extends ffi.Opaque {} + +/// @brief The geofence manager handle. +/// @since_tizen 2.4 +typedef geofence_manager_h = ffi.Pointer; + +/// @brief The geofence handle. +/// @since_tizen 2.4 +typedef geofence_h = ffi.Pointer; + +/// @brief Called when a device enters or exits the given geofence. +/// @since_tizen 2.4 +/// @param[in] geofence_id The specified geofence ID +/// @param[in] state The geofence state +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). +/// @see geofence_state_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_state_changed_cb() +typedef geofence_state_changed_cb + = ffi.Pointer>; +typedef geofence_state_changed_cbFunction = ffi.Void Function( + ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartgeofence_state_changed_cbFunction = void Function( + int geofence_id, int state, ffi.Pointer user_data); + +/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. +/// @details The events of public geofence is also received if there are public geofences. +/// @since_tizen 2.4 +/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. +/// @param[in] place_id The place ID +/// @param[in] geofence_id The specified geofence ID +/// @param[in] error The error code for the particular action +/// @param[in] manage The result code for the particular place and geofence management +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() +/// @see geofence_manage_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_event_cb() +typedef geofence_event_cb + = ffi.Pointer>; +typedef geofence_event_cbFunction = ffi.Void Function( + ffi.Int place_id, + ffi.Int geofence_id, + ffi.Int32 error, + ffi.Int32 manage, + ffi.Pointer user_data); +typedef Dartgeofence_event_cbFunction = void Function(int place_id, + int geofence_id, int error, int manage, ffi.Pointer user_data); + /// @brief Called when a proximity state of device is changed. /// @since_tizen 3.0 /// @param[in] geofence_id The specified geofence ID @@ -1386,41 +1436,6 @@ typedef geofence_proximity_state_changed_cbFunction = ffi.Void Function( typedef Dartgeofence_proximity_state_changed_cbFunction = void Function( int geofence_id, int state, int provider, ffi.Pointer user_data); -/// @brief Enumeration for the state of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_state_e { - /// < Uncertain state of proximity - static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; - - /// < Far state of proximity - static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; - - /// < Near state of proximity - static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; - - /// < Immediate state of proximity - static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; -} - -/// @brief Enumeration for the provider of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_provider_e { - /// < Proximity is specified by geospatial coordinate - static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; - - /// < Proximity is specified by Wi-Fi access point - static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; - - /// < Proximity is specified by Bluetooth device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; - - /// < Proximity is specified by Bluetooth low energy device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; - - /// < Proximity is specified by Sensor - static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; -} - /// @brief Called when the fence list is requested. /// @since_tizen 2.4 /// @param[in] geofence_id The geofence ID @@ -1476,21 +1491,6 @@ typedef Dartgeofence_manager_place_cbFunction = bool Function( int place_cnt, ffi.Pointer user_data); -/// @brief Enumeration for geofence type. -/// @since_tizen 2.4 -abstract class geofence_type_e { - /// < Geofence is specified by geospatial coordinate - static const int GEOFENCE_TYPE_GEOPOINT = 1; - - /// < Geofence is specified by Wi-Fi access point - static const int GEOFENCE_TYPE_WIFI = 2; - - /// < Geofence is specified by Bluetooth device - static const int GEOFENCE_TYPE_BT = 3; -} - /// @brief The geofence status handle. /// @since_tizen 2.4 typedef geofence_status_h = ffi.Pointer; - -final class geofence_status_s extends ffi.Opaque {} diff --git a/lib/src/bindings/6.5/generated_bindings_capi_media_controller.dart b/lib/src/bindings/6.5/generated_bindings_capi_media_controller.dart index 2fdaf668..5176eca4 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_media_controller.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_media_controller.dart @@ -6781,72 +6781,44 @@ class Tizen65CapiMediaController { .asFunction)>(); } -/// @brief The structure type for the media controller playlist handle. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -typedef mc_playlist_h = ffi.Pointer; +/// @brief Enumeration for the media controller error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_error_e { + /// < Successful + static const int MEDIA_CONTROLLER_ERROR_NONE = 0; -/// @brief Called for every playlist item in the playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a index and @a metadata should not be released by the application. \n -/// The @a index can be used only in the callback. To use outside, make a copy. -/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] index The ID of the playlist member. -/// @param[in] metadata The handle to metadata of the playlist item. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_item() will invoke this function. -/// -/// @see mc_playlist_foreach_item() -/// @see mc_metadata_clone() -/// @see mc_metadata_get() -typedef mc_playlist_item_cb - = ffi.Pointer>; -typedef mc_playlist_item_cbFunction = ffi.Bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); -typedef Dartmc_playlist_item_cbFunction = bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); + /// < Invalid parameter + static const int MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER = -22; -/// @brief The structure type for the media controller metadata handle. + /// < Out of memory + static const int MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int MEDIA_CONTROLLER_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED = -13; + + /// < Limited by server application (since 5.5) + static const int MEDIA_CONTROLLER_ERROR_ABILITY_LIMITED_BY_SERVER_APP = + -50462719; +} + +/// @brief Enumeration for the media controller server state. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef mc_metadata_h = ffi.Pointer; +abstract class mc_server_state_e { + /// < None state + static const int MC_SERVER_STATE_NONE = 0; -/// @brief Called for every playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a playlist should not be released by the application. \n -/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] playlist The handle of the media controller playlist. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_playlist() will invoke this function. -/// -/// @see mc_playlist_clone() -/// @see mc_playlist_foreach_playlist() -/// @see mc_playlist_get_name() -/// @see mc_playlist_foreach_item() -typedef mc_playlist_cb - = ffi.Pointer>; -typedef mc_playlist_cbFunction = ffi.Bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); -typedef Dartmc_playlist_cbFunction = bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); + /// < Activate state + static const int MC_SERVER_STATE_ACTIVATE = 1; + + /// < Deactivate state + static const int MC_SERVER_STATE_DEACTIVATE = 2; +} /// @brief Enumeration for the media meta info. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif @@ -6894,9 +6866,42 @@ abstract class mc_meta_e { static const int MC_META_MEDIA_RESOLUTION = 13; } -/// @brief The structure type for the media controller ability handle. -/// @since_tizen 5.0 -typedef mc_playback_ability_h = ffi.Pointer; +/// @brief Enumeration for the media playback state. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_playback_states_e { + /// < None + static const int MC_PLAYBACK_STATE_NONE = 0; + + /// < Playing + static const int MC_PLAYBACK_STATE_PLAYING = 1; + + /// < Paused + static const int MC_PLAYBACK_STATE_PAUSED = 2; + + /// < Stopped + static const int MC_PLAYBACK_STATE_STOPPED = 3; + + /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; + + /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; + + /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; + + /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_REWINDING = 11; + + /// < Connecting (Since 6.0) + static const int MC_PLAYBACK_STATE_CONNECTING = 12; + + /// < Buffering (Since 6.0) + static const int MC_PLAYBACK_STATE_BUFFERING = 13; + + /// < Error (Since 6.0) + static const int MC_PLAYBACK_STATE_ERROR = 14; +} /// @brief Enumeration for the media playback action. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif @@ -6926,22 +6931,78 @@ abstract class mc_playback_action_e { static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; } -/// @brief Enumeration for the support of the ability. -/// @since_tizen 5.0 -abstract class mc_ability_support_e { - /// < Supported - static const int MC_ABILITY_SUPPORTED_YES = 0; +/// @brief Enumeration for the shuffle mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_shuffle_mode_e { + /// < Shuffle mode on + static const int MC_SHUFFLE_MODE_ON = 0; - /// < Not supported - static const int MC_ABILITY_SUPPORTED_NO = 1; + /// < Shuffle mode off + static const int MC_SHUFFLE_MODE_OFF = 1; +} - /// < Not decided - static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +/// @brief Enumeration for the repeat mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_repeat_mode_e { + /// < Repeat mode on for all media + static const int MC_REPEAT_MODE_ON = 0; + + /// < Repeat mode off + static const int MC_REPEAT_MODE_OFF = 1; + + /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_REPEAT_MODE_ONE_MEDIA = 2; } -/// @brief The structure type for the media controller search handle. -/// @since_tizen 5.0 -typedef mc_search_h = ffi.Pointer; +/// @brief Enumeration for the subscription type. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_subscription_type_e { + /// < Server state + static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; + + /// < Playback + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; + + /// < Metadata + static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; + + /// < Shuffle mode + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; + + /// < Repeat mode + static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; + + /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; + + /// < Playback ability (Since 5.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; + + /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; + + /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; + + /// < Ability support (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; + + /// < Display mode ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; + + /// < Display rotation ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; +} + +/// @brief Enumeration for the playlist update mode. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +abstract class mc_playlist_update_mode_e { + /// < Create or Update playlist + static const int MC_PLAYLIST_UPDATED = 0; + + /// < Remove playlist + static const int MC_PLAYLIST_REMOVED = 1; +} /// @brief Enumeration for the content type of the content. /// @since_tizen 5.0 @@ -6962,6 +7023,111 @@ abstract class mc_content_type_e { static const int MC_CONTENT_TYPE_UNDECIDED = 4; } +/// @brief Enumeration for the content age rating of the content. +/// @since_tizen 5.0 +abstract class mc_content_age_rating_e { + /// < Suitable for all ages + static const int MC_CONTENT_RATING_ALL = 0; + + /// < Suitable for ages 1 and up + static const int MC_CONTENT_RATING_1_PLUS = 1; + + /// < Suitable for ages 2 and up + static const int MC_CONTENT_RATING_2_PLUS = 2; + + /// < Suitable for ages 3 and up + static const int MC_CONTENT_RATING_3_PLUS = 3; + + /// < Suitable for ages 4 and up + static const int MC_CONTENT_RATING_4_PLUS = 4; + + /// < Suitable for ages 5 and up + static const int MC_CONTENT_RATING_5_PLUS = 5; + + /// < Suitable for ages 6 and up + static const int MC_CONTENT_RATING_6_PLUS = 6; + + /// < Suitable for ages 7 and up + static const int MC_CONTENT_RATING_7_PLUS = 7; + + /// < Suitable for ages 8 and up + static const int MC_CONTENT_RATING_8_PLUS = 8; + + /// < Suitable for ages 9 and up + static const int MC_CONTENT_RATING_9_PLUS = 9; + + /// < Suitable for ages 10 and up + static const int MC_CONTENT_RATING_10_PLUS = 10; + + /// < Suitable for ages 11 and up + static const int MC_CONTENT_RATING_11_PLUS = 11; + + /// < Suitable for ages 12 and up + static const int MC_CONTENT_RATING_12_PLUS = 12; + + /// < Suitable for ages 13 and up + static const int MC_CONTENT_RATING_13_PLUS = 13; + + /// < Suitable for ages 14 and up + static const int MC_CONTENT_RATING_14_PLUS = 14; + + /// < Suitable for ages 15 and up + static const int MC_CONTENT_RATING_15_PLUS = 15; + + /// < Suitable for ages 16 and up + static const int MC_CONTENT_RATING_16_PLUS = 16; + + /// < Suitable for ages 17 and up + static const int MC_CONTENT_RATING_17_PLUS = 17; + + /// < Suitable for ages 18 and up + static const int MC_CONTENT_RATING_18_PLUS = 18; + + /// < Suitable for ages 19 and up + static const int MC_CONTENT_RATING_19_PLUS = 19; +} + +/// @brief Enumeration for the support of the ability. +/// @since_tizen 5.0 +abstract class mc_ability_support_e { + /// < Supported + static const int MC_ABILITY_SUPPORTED_YES = 0; + + /// < Not supported + static const int MC_ABILITY_SUPPORTED_NO = 1; + + /// < Not decided + static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +} + +/// @brief Enumeration for the ability. +/// @since_tizen 5.5 +abstract class mc_ability_e { + /// < Shuffle + static const int MC_ABILITY_SHUFFLE = 0; + + /// < Repeat + static const int MC_ABILITY_REPEAT = 1; + + /// < Playback Position + static const int MC_ABILITY_PLAYBACK_POSITION = 2; + + /// < Playlist + static const int MC_ABILITY_PLAYLIST = 3; + + /// < Custom command from a client + static const int MC_ABILITY_CLIENT_CUSTOM = 4; + + /// < Search + static const int MC_ABILITY_SEARCH = 5; + + /// < Subtitles display + static const int MC_ABILITY_SUBTITLES = 6; + + /// < 360 content mode display + static const int MC_ABILITY_360_MODE = 7; +} + /// @brief Enumeration for the search category. /// @since_tizen 5.0 abstract class mc_search_category_e { @@ -6980,9 +7146,170 @@ abstract class mc_search_category_e { /// < Search by content genre static const int MC_SEARCH_GENRE = 4; - /// < Search by Time Place Occasion - static const int MC_SEARCH_TPO = 5; -} + /// < Search by Time Place Occasion + static const int MC_SEARCH_TPO = 5; +} + +/// @brief Enumeration for the display mode. +/// @since_tizen 5.5 +abstract class mc_display_mode_e { + /// < Letter box + static const int MC_DISPLAY_MODE_LETTER_BOX = 1; + + /// < Origin size + static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; + + /// < Full-screen + static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; + + /// < Cropped full-screen + static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; +} + +/// @brief Enumeration for the display rotation. +/// @since_tizen 5.5 +abstract class mc_display_rotation_e { + /// < Display is not rotated + static const int MC_DISPLAY_ROTATION_NONE = 1; + + /// < Display is rotated 90 degrees + static const int MC_DISPLAY_ROTATION_90 = 2; + + /// < Display is rotated 180 degrees + static const int MC_DISPLAY_ROTATION_180 = 4; + + /// < Display is rotated 270 degrees + static const int MC_DISPLAY_ROTATION_270 = 8; +} + +/// @brief The result codes of the reply for the command or the event. +/// @since_tizen 6.0 +/// +/// @see mc_cmd_reply_received_cb() +/// @see mc_client_send_event_reply() +/// @see mc_server_event_reply_received_cb() +/// @see mc_server_send_cmd_reply() +abstract class mc_result_code_e { + /// < The command or the event has been successfully completed. + static const int MC_RESULT_CODE_SUCCESS = 0; + + /// < The command or the event had already been completed. + static const int MC_RESULT_CODE_ALREADY_DONE = 200; + + /// < The command or the event is aborted by some external event (e.g. aborted play command by incoming call). + static const int MC_RESULT_CODE_ABORTED = 300; + + /// < The command or the event is denied due to application policy (e.g. cannot rewind in recording). + static const int MC_RESULT_CODE_DENIED = 301; + + /// < The command or the event is not supported. + static const int MC_RESULT_CODE_NOT_SUPPORTED = 302; + + /// < The command or the event is out of supported range or the limit is reached. + static const int MC_RESULT_CODE_INVALID = 303; + + /// < Timeout has occurred. + static const int MC_RESULT_CODE_TIMEOUT = 400; + + /// < The application has failed. + static const int MC_RESULT_CODE_APP_FAILED = 401; + + /// < The command or the event has failed because the application has no media. + static const int MC_RESULT_CODE_NO_MEDIA = 402; + + /// < The command or the event has failed because there is no audio output device. + static const int MC_RESULT_CODE_NO_AUDIO_OUTPUT_DEVICE = 403; + + /// < The command or the event has failed because there is no peer. + static const int MC_RESULT_CODE_NO_PEER = 404; + + /// < The network has failed. + static const int MC_RESULT_CODE_NETWORK_FAILED = 500; + + /// < The application needs to have an account to which it's logged in. + static const int MC_RESULT_CODE_NO_ACCOUNT = 600; + + /// < The application could not log in. + static const int MC_RESULT_CODE_LOGIN_FAILED = 601; + + /// < Unknown error. + static const int MC_RESULT_CODE_UNKNOWN = 2147483647; +} + +/// @brief The structure type for the media controller playlist handle. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +typedef mc_playlist_h = ffi.Pointer; + +/// @brief Called for every playlist item in the playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a index and @a metadata should not be released by the application. \n +/// The @a index can be used only in the callback. To use outside, make a copy. +/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] index The ID of the playlist member. +/// @param[in] metadata The handle to metadata of the playlist item. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_item() will invoke this function. +/// +/// @see mc_playlist_foreach_item() +/// @see mc_metadata_clone() +/// @see mc_metadata_get() +typedef mc_playlist_item_cb + = ffi.Pointer>; +typedef mc_playlist_item_cbFunction = ffi.Bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); +typedef Dartmc_playlist_item_cbFunction = bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); + +/// @brief The structure type for the media controller metadata handle. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef mc_metadata_h = ffi.Pointer; + +/// @brief Called for every playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a playlist should not be released by the application. \n +/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] playlist The handle of the media controller playlist. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_playlist() will invoke this function. +/// +/// @see mc_playlist_clone() +/// @see mc_playlist_foreach_playlist() +/// @see mc_playlist_get_name() +/// @see mc_playlist_foreach_item() +typedef mc_playlist_cb + = ffi.Pointer>; +typedef mc_playlist_cbFunction = ffi.Bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); +typedef Dartmc_playlist_cbFunction = bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); + +/// @brief The structure type for the media controller ability handle. +/// @since_tizen 5.0 +typedef mc_playback_ability_h = ffi.Pointer; + +/// @brief The structure type for the media controller search handle. +/// @since_tizen 5.0 +typedef mc_search_h = ffi.Pointer; /// @brief Called for every search condition information in the obtained list of search. /// @details Iterates over a search list. @@ -7048,19 +7375,6 @@ typedef Dartmc_server_state_updated_cbFunction = void Function( int state, ffi.Pointer user_data); -/// @brief Enumeration for the media controller server state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_server_state_e { - /// < None state - static const int MC_SERVER_STATE_NONE = 0; - - /// < Activate state - static const int MC_SERVER_STATE_ACTIVATE = 1; - - /// < Deactivate state - static const int MC_SERVER_STATE_DEACTIVATE = 2; -} - /// @brief Called when the playback information of the media controller server is updated. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7146,16 +7460,6 @@ typedef Dartmc_shuffle_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the shuffle mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_shuffle_mode_e { - /// < Shuffle mode on - static const int MC_SHUFFLE_MODE_ON = 0; - - /// < Shuffle mode off - static const int MC_SHUFFLE_MODE_OFF = 1; -} - /// @brief Called when the repeat mode of the media controller server is updated. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7181,19 +7485,6 @@ typedef Dartmc_repeat_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the repeat mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_repeat_mode_e { - /// < Repeat mode on for all media - static const int MC_REPEAT_MODE_ON = 0; - - /// < Repeat mode off - static const int MC_REPEAT_MODE_OFF = 1; - - /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_REPEAT_MODE_ONE_MEDIA = 2; -} - /// @brief Called when the playback ability support of the media controller server is updated. /// @since_tizen 5.0 /// @@ -7299,34 +7590,6 @@ typedef Dartmc_ability_support_updated_cbFunction = void Function( int support, ffi.Pointer user_data); -/// @brief Enumeration for the ability. -/// @since_tizen 5.5 -abstract class mc_ability_e { - /// < Shuffle - static const int MC_ABILITY_SHUFFLE = 0; - - /// < Repeat - static const int MC_ABILITY_REPEAT = 1; - - /// < Playback Position - static const int MC_ABILITY_PLAYBACK_POSITION = 2; - - /// < Playlist - static const int MC_ABILITY_PLAYLIST = 3; - - /// < Custom command from a client - static const int MC_ABILITY_CLIENT_CUSTOM = 4; - - /// < Search - static const int MC_ABILITY_SEARCH = 5; - - /// < Subtitles display - static const int MC_ABILITY_SUBTITLES = 6; - - /// < 360 content mode display - static const int MC_ABILITY_360_MODE = 7; -} - /// @brief Called when a media controller server's supported items for an ability is updated. /// @since_tizen 5.5 /// @@ -7416,16 +7679,6 @@ typedef Dartmc_playlist_updated_cbFunction = void Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the playlist update mode. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -abstract class mc_playlist_update_mode_e { - /// < Create or Update playlist - static const int MC_PLAYLIST_UPDATED = 0; - - /// < Remove playlist - static const int MC_PLAYLIST_REMOVED = 1; -} - /// @brief Called when the status of a media controller server's boolean attribute (subtitles or 360 mode) is updated. /// @since_tizen 5.5 /// @@ -7473,22 +7726,6 @@ typedef Dartmc_display_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the display mode. -/// @since_tizen 5.5 -abstract class mc_display_mode_e { - /// < Letter box - static const int MC_DISPLAY_MODE_LETTER_BOX = 1; - - /// < Origin size - static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; - - /// < Full-screen - static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; - - /// < Cropped full-screen - static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; -} - /// @brief Called when a media controller server's display rotation is updated. /// @since_tizen 5.5 /// @@ -7512,22 +7749,6 @@ typedef Dartmc_display_rotation_updated_cbFunction = void Function( int rotation, ffi.Pointer user_data); -/// @brief Enumeration for the display rotation. -/// @since_tizen 5.5 -abstract class mc_display_rotation_e { - /// < Display is not rotated - static const int MC_DISPLAY_ROTATION_NONE = 1; - - /// < Display is rotated 90 degrees - static const int MC_DISPLAY_ROTATION_90 = 2; - - /// < Display is rotated 180 degrees - static const int MC_DISPLAY_ROTATION_180 = 4; - - /// < Display is rotated 270 degrees - static const int MC_DISPLAY_ROTATION_270 = 8; -} - /// @brief Called when receiving custom event of media controller servers. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7563,46 +7784,6 @@ typedef Dartmc_client_custom_event_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @brief Enumeration for the subscription type. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_subscription_type_e { - /// < Server state - static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; - - /// < Playback - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; - - /// < Metadata - static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; - - /// < Shuffle mode - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; - - /// < Repeat mode - static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; - - /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; - - /// < Playback ability (Since 5.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; - - /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; - - /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; - - /// < Ability support (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; - - /// < Display mode ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; - - /// < Display rotation ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; -} - /// @brief Called when requesting the list of subscribed servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7626,107 +7807,6 @@ typedef mc_subscribed_server_cbFunction = ffi.Bool Function( typedef Dartmc_subscribed_server_cbFunction = bool Function( ffi.Pointer server_name, ffi.Pointer user_data); -/// @brief Enumeration for the media playback state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_playback_states_e { - /// < None - static const int MC_PLAYBACK_STATE_NONE = 0; - - /// < Playing - static const int MC_PLAYBACK_STATE_PLAYING = 1; - - /// < Paused - static const int MC_PLAYBACK_STATE_PAUSED = 2; - - /// < Stopped - static const int MC_PLAYBACK_STATE_STOPPED = 3; - - /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; - - /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; - - /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; - - /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_REWINDING = 11; - - /// < Connecting (Since 6.0) - static const int MC_PLAYBACK_STATE_CONNECTING = 12; - - /// < Buffering (Since 6.0) - static const int MC_PLAYBACK_STATE_BUFFERING = 13; - - /// < Error (Since 6.0) - static const int MC_PLAYBACK_STATE_ERROR = 14; -} - -/// @brief Enumeration for the content age rating of the content. -/// @since_tizen 5.0 -abstract class mc_content_age_rating_e { - /// < Suitable for all ages - static const int MC_CONTENT_RATING_ALL = 0; - - /// < Suitable for ages 1 and up - static const int MC_CONTENT_RATING_1_PLUS = 1; - - /// < Suitable for ages 2 and up - static const int MC_CONTENT_RATING_2_PLUS = 2; - - /// < Suitable for ages 3 and up - static const int MC_CONTENT_RATING_3_PLUS = 3; - - /// < Suitable for ages 4 and up - static const int MC_CONTENT_RATING_4_PLUS = 4; - - /// < Suitable for ages 5 and up - static const int MC_CONTENT_RATING_5_PLUS = 5; - - /// < Suitable for ages 6 and up - static const int MC_CONTENT_RATING_6_PLUS = 6; - - /// < Suitable for ages 7 and up - static const int MC_CONTENT_RATING_7_PLUS = 7; - - /// < Suitable for ages 8 and up - static const int MC_CONTENT_RATING_8_PLUS = 8; - - /// < Suitable for ages 9 and up - static const int MC_CONTENT_RATING_9_PLUS = 9; - - /// < Suitable for ages 10 and up - static const int MC_CONTENT_RATING_10_PLUS = 10; - - /// < Suitable for ages 11 and up - static const int MC_CONTENT_RATING_11_PLUS = 11; - - /// < Suitable for ages 12 and up - static const int MC_CONTENT_RATING_12_PLUS = 12; - - /// < Suitable for ages 13 and up - static const int MC_CONTENT_RATING_13_PLUS = 13; - - /// < Suitable for ages 14 and up - static const int MC_CONTENT_RATING_14_PLUS = 14; - - /// < Suitable for ages 15 and up - static const int MC_CONTENT_RATING_15_PLUS = 15; - - /// < Suitable for ages 16 and up - static const int MC_CONTENT_RATING_16_PLUS = 16; - - /// < Suitable for ages 17 and up - static const int MC_CONTENT_RATING_17_PLUS = 17; - - /// < Suitable for ages 18 and up - static const int MC_CONTENT_RATING_18_PLUS = 18; - - /// < Suitable for ages 19 and up - static const int MC_CONTENT_RATING_19_PLUS = 19; -} - /// @brief Called when requesting the list of created servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -8131,3 +8211,5 @@ typedef Dartmc_server_search_cmd_received_cbFunction = void Function( ffi.Pointer request_id, mc_search_h search, ffi.Pointer user_data); + +const int MEDIA_CONTROLLER_ERROR_CLASS = -50462720; diff --git a/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_editor.dart b/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_editor.dart index cef256bb..fb56b406 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_editor.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_editor.dart @@ -368,9 +368,34 @@ class Tizen65CapiMediaMetadataEditor { } /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE -/// @brief The handle of media metadata. +/// @brief The enumerations of media metadata error. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef metadata_editor_h = ffi.Pointer; +abstract class metadata_editor_error_e { + /// < Successful + static const int METADATA_EDITOR_ERROR_NONE = 0; + + /// < Invalid parameter + static const int METADATA_EDITOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EDITOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File not exist + static const int METADATA_EDITOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EDITOR_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported type + static const int METADATA_EDITOR_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Invalid internal operation + static const int METADATA_EDITOR_ERROR_OPERATION_FAILED = -27000831; + + /// < Update not possible (Since 6.0) + static const int METADATA_EDITOR_ERROR_METADATA_UPDATE_NOT_POSSIBLE = + -27000830; +} /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @brief The enumerations of attribute. @@ -415,3 +440,10 @@ abstract class metadata_editor_attr_e { /// < Unsynchronized lyric static const int METADATA_EDITOR_ATTR_UNSYNCLYRICS = 12; } + +/// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE +/// @brief The handle of media metadata. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef metadata_editor_h = ffi.Pointer; + +const int METADATA_EDITOR_ERROR_CLASS = -27000832; diff --git a/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_extractor.dart b/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_extractor.dart index a38dcbb9..c0b88241 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_extractor.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_media_metadata_extractor.dart @@ -384,11 +384,27 @@ class Tizen65CapiMediaMetadataExtractor { } /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE -/// @brief The metadata extractor handle. +/// @brief Enumeration for metadata extractor error. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif -typedef metadata_extractor_h = ffi.Pointer; +abstract class metadata_extractor_error_e { + /// < Successful + static const int METADATA_EXTRACTOR_ERROR_NONE = 0; -final class metadata_extractor_s extends ffi.Opaque {} + /// < Invalid parameter + static const int METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EXTRACTOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File does not exist + static const int METADATA_EXTRACTOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED = -13; + + /// < Invalid internal operation + static const int METADATA_EXTRACTOR_ERROR_OPERATION_FAILED = -26411007; +} /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE /// @brief Enumeration for attribute. @@ -499,3 +515,12 @@ abstract class metadata_extractor_attr_e { /// < Flag indicating if the video is a spherical video (Since 3.0) static const int METADATA_360 = 34; } + +final class metadata_extractor_s extends ffi.Opaque {} + +/// @ingroup CAPI_METADATA_EXTRACTOR_MODULE +/// @brief The metadata extractor handle. +/// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif +typedef metadata_extractor_h = ffi.Pointer; + +const int METADATA_EXTRACTOR_ERROR_CLASS = -26411008; diff --git a/lib/src/bindings/6.5/generated_bindings_capi_media_screen_mirroring.dart b/lib/src/bindings/6.5/generated_bindings_capi_media_screen_mirroring.dart index 2b9f9769..00e0b8a4 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_media_screen_mirroring.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_media_screen_mirroring.dart @@ -880,29 +880,6 @@ class Tizen65CapiMediaScreenMirroring { int Function(scmirroring_sink_h, ffi.Pointer)>(); } -/// @brief The handle to the screen mirroring sink. -/// @since_tizen 2.4 -typedef scmirroring_sink_h = ffi.Pointer; - -/// @brief Called when each status is changed. -/// @since_tizen 2.4 -/// -/// @details This callback is called for state and error of screen mirroring sink -/// -/// @param[in] error The error code -/// @param[in] state The screen mirroring sink state -/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function -/// -/// @pre scmirroring_sink_create() -/// -/// @see scmirroring_sink_create() -typedef scmirroring_sink_state_cb - = ffi.Pointer>; -typedef scmirroring_sink_state_cbFunction = ffi.Void Function( - ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartscmirroring_sink_state_cbFunction = void Function( - int error, int state, ffi.Pointer user_data); - /// @brief Enumeration for screen mirroring error. /// @since_tizen 2.4 abstract class scmirroring_error_e { @@ -957,6 +934,41 @@ abstract class scmirroring_sink_state_e { static const int SCMIRRORING_SINK_STATE_MAX = 7; } +/// @brief Enumeration for screen mirroring resolution. +/// @since_tizen 2.4 +abstract class scmirroring_resolution_e { + static const int SCMIRRORING_RESOLUTION_UNKNOWN = 0; + + /// < W-1920, H-1080, 30 fps + static const int SCMIRRORING_RESOLUTION_1920x1080_P30 = 1; + + /// < W-1280, H-720, 30 fps + static const int SCMIRRORING_RESOLUTION_1280x720_P30 = 2; + + /// < W-960, H-540, 30 fps + static const int SCMIRRORING_RESOLUTION_960x540_P30 = 4; + + /// < W-864, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_864x480_P30 = 8; + + /// < W-720, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_720x480_P60 = 16; + + /// < W-640, H-480, 60 fps + static const int SCMIRRORING_RESOLUTION_640x480_P60 = 32; + + /// < W-640, H-360, 30 fps + static const int SCMIRRORING_RESOLUTION_640x360_P30 = 64; + static const int SCMIRRORING_RESOLUTION_MAX = 128; +} + +/// @brief Ability to send to multisink. +/// @since_tizen 3.0 +abstract class scmirroring_multisink_e { + static const int SCMIRRORING_MULTISINK_DISABLE = 0; + static const int SCMIRRORING_MULTISINK_ENABLE = 1; +} + /// @brief Enumeration for screen mirroring display surface type. /// @since_tizen 2.4 abstract class scmirroring_display_type_e { @@ -968,16 +980,6 @@ abstract class scmirroring_display_type_e { static const int SCMIRRORING_DISPLAY_TYPE_MAX = 2; } -/// @brief Enumeration for screen mirroring video codec. -/// @since_tizen 2.4 -abstract class scmirroring_video_codec_e { - /// < Screen mirroring is not negotiated yet - static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; - - /// < H.264 codec for video - static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; -} - /// @brief Enumeration for screen mirroring audio codec. /// @since_tizen 2.4 abstract class scmirroring_audio_codec_e { @@ -993,3 +995,56 @@ abstract class scmirroring_audio_codec_e { /// < LPCM codec for audio static const int SCMIRRORING_AUDIO_CODEC_LPCM = 3; } + +/// @brief Enumeration for screen mirroring video codec. +/// @since_tizen 2.4 +abstract class scmirroring_video_codec_e { + /// < Screen mirroring is not negotiated yet + static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; + + /// < H.264 codec for video + static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; +} + +/// @brief Enumeration for screen mirroring direct streaming mode. +/// @since_tizen 3.0 +abstract class scmirroring_direct_streaming_e { + /// < Disable screen mirroring direct streaming mode + static const int SCMIRRORING_DIRECT_STREAMING_DISABLED = 0; + + /// < Enable direct streaming for files + static const int SCMIRRORING_DIRECT_STREAMING_ENABLED = 1; +} + +/// @brief Enumeration for screen mirroring AV streaming transport. +/// @since_tizen 3.0 +abstract class scmirroring_av_transport_e { + /// < UDP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_UDP = 0; + + /// < TCP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_TCP = 1; +} + +/// @brief The handle to the screen mirroring sink. +/// @since_tizen 2.4 +typedef scmirroring_sink_h = ffi.Pointer; + +/// @brief Called when each status is changed. +/// @since_tizen 2.4 +/// +/// @details This callback is called for state and error of screen mirroring sink +/// +/// @param[in] error The error code +/// @param[in] state The screen mirroring sink state +/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function +/// +/// @pre scmirroring_sink_create() +/// +/// @see scmirroring_sink_create() +typedef scmirroring_sink_state_cb + = ffi.Pointer>; +typedef scmirroring_sink_state_cbFunction = ffi.Void Function( + ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartscmirroring_sink_state_cbFunction = void Function( + int error, int state, ffi.Pointer user_data); diff --git a/lib/src/bindings/6.5/generated_bindings_capi_media_sound_pool.dart b/lib/src/bindings/6.5/generated_bindings_capi_media_sound_pool.dart index 80967274..03b8ce8f 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_media_sound_pool.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_media_sound_pool.dart @@ -865,10 +865,52 @@ class Tizen65CapiMediaSoundPool { .asFunction)>(); } -/// @brief Sound pool handle type. +/// @brief Enumeration for Tizen Sound Pool error. /// /// @since_tizen 4.0 -typedef sound_pool_h = ffi.Pointer; +abstract class sound_pool_error_e { + static const int SOUND_POOL_ERROR_NONE = 0; + static const int SOUND_POOL_ERROR_KEY_NOT_AVAILABLE = -126; + static const int SOUND_POOL_ERROR_OUT_OF_MEMORY = -12; + static const int SOUND_POOL_ERROR_INVALID_PARAMETER = -22; + static const int SOUND_POOL_ERROR_INVALID_OPERATION = -38; + static const int SOUND_POOL_ERROR_NOT_PERMITTED = -1; + static const int SOUND_POOL_ERROR_NO_SUCH_FILE = -2; +} + +/// @brief Enumeration of sound pool stream state. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_state_e { + /// < Stream state isn't determined + static const int SOUND_POOL_STREAM_STATE_NONE = 0; + + /// < Stream state is playing + static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; + + /// < Stream state is paused + static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; + + /// < Stream state is stopped + static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; + + /// < Stream state is finished + static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; + + /// < Stream state is suspended + static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; +} + +/// @brief Enumeration of sound pool stream priority policy. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_priority_policy_e { + /// < Stream priority policy is mute + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; + + /// < Stream priority policy is suspended + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; +} /// @brief Enumeration of sound pool state. /// @@ -881,6 +923,11 @@ abstract class sound_pool_state_e { static const int SOUND_POOL_STATE_INACTIVE = 1; } +/// @brief Sound pool handle type. +/// +/// @since_tizen 4.0 +typedef sound_pool_h = ffi.Pointer; + /// @brief Called when the sound pool state is changed. /// /// @since_tizen 4.0 @@ -911,17 +958,6 @@ typedef Dartsound_pool_state_changed_cbFunction = void Function( int cur_state, ffi.Pointer user_data); -/// @brief Enumeration of sound pool stream priority policy. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_priority_policy_e { - /// < Stream priority policy is mute - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; - - /// < Stream priority policy is suspended - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; -} - /// @brief Called when the sound pool stream state is changed. /// /// @since_tizen 4.0 @@ -954,26 +990,3 @@ typedef Dartsound_pool_stream_state_changed_cbFunction = void Function( int prev_state, int cur_state, ffi.Pointer user_data); - -/// @brief Enumeration of sound pool stream state. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_state_e { - /// < Stream state isn't determined - static const int SOUND_POOL_STREAM_STATE_NONE = 0; - - /// < Stream state is playing - static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; - - /// < Stream state is paused - static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; - - /// < Stream state is stopped - static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; - - /// < Stream state is finished - static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; - - /// < Stream state is suspended - static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; -} diff --git a/lib/src/bindings/6.5/generated_bindings_capi_media_thumbnail_util.dart b/lib/src/bindings/6.5/generated_bindings_capi_media_thumbnail_util.dart index 605f128d..218f1ba1 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_media_thumbnail_util.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_media_thumbnail_util.dart @@ -379,14 +379,40 @@ class Tizen65CapiMediaThumbnailUtil { ffi.Pointer)>(); } +/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE +/// @brief Enumeration for a thumbnail util error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class thumbnail_util_error_e { + /// < Successful + static const int THUMBNAIL_UTIL_ERROR_NONE = 0; + + /// < Invalid parameter + static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported Content (Since 4.0) + static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; +} + +final class thumbnail_s extends ffi.Opaque {} + /// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE /// @deprecated Deprecated since 5.0. /// @brief The structure type for the thumbnail info handle. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif typedef thumbnail_h = ffi.Pointer; -final class thumbnail_s extends ffi.Opaque {} - /// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE /// @deprecated Deprecated since 5.0. /// @brief Called when creating the thumbnail. @@ -431,28 +457,4 @@ typedef Dartthumbnail_extracted_cbFunction = void Function( int thumb_size, ffi.Pointer user_data); -/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE -/// @brief Enumeration for a thumbnail util error. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class thumbnail_util_error_e { - /// < Successful - static const int THUMBNAIL_UTIL_ERROR_NONE = 0; - - /// < Invalid parameter - static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; - - /// < Out of memory - static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; - - /// < Invalid Operation - static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; - - /// < No space left on device - static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; - - /// < Permission denied - static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; - - /// < Unsupported Content (Since 4.0) - static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; -} +const int THUMBNAIL_UTIL_ERROR_CLASS = -49872896; diff --git a/lib/src/bindings/6.5/generated_bindings_capi_network_bluetooth.dart b/lib/src/bindings/6.5/generated_bindings_capi_network_bluetooth.dart index 0910048f..759a125c 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_network_bluetooth.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_network_bluetooth.dart @@ -9643,6 +9643,185 @@ class Tizen65CapiNetworkBluetooth { .asFunction)>(); } +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of PBAP fields. +/// @since_tizen 3.0 +abstract class bt_pbap_field_e { + /// < All field + static const int BT_PBAP_FIELD_ALL = -1; + + /// < vCard Version + static const int BT_PBAP_FIELD_VERSION = 1; + + /// < Formatted Name + static const int BT_PBAP_FIELD_FN = 2; + + /// < Structured Presentation of Name + static const int BT_PBAP_FIELD_N = 4; + + /// < Associated Image or Photo + static const int BT_PBAP_FIELD_PHOTO = 8; + + /// < Birthday + static const int BT_PBAP_FIELD_BDAY = 16; + + /// < Delivery Address + static const int BT_PBAP_FIELD_ADR = 32; + + /// < Delivery + static const int BT_PBAP_FIELD_LABEL = 64; + + /// < Telephone Number + static const int BT_PBAP_FIELD_TEL = 128; + + /// < Electronic Mail Address + static const int BT_PBAP_FIELD_EMAIL = 256; + + /// < Electronic Mail + static const int BT_PBAP_FIELD_MAILER = 512; + + /// < Time Zone + static const int BT_PBAP_FIELD_TZ = 1024; + + /// < Geographic Position + static const int BT_PBAP_FIELD_GEO = 2048; + + /// < Job + static const int BT_PBAP_FIELD_TITLE = 4096; + + /// < Role within the Organization + static const int BT_PBAP_FIELD_ROLE = 8192; + + /// < Organization Logo + static const int BT_PBAP_FIELD_LOGO = 16384; + + /// < vCard of Person Representing + static const int BT_PBAP_FIELD_AGENT = 32768; + + /// < Name of Organization + static const int BT_PBAP_FIELD_ORG = 65536; + + /// < Comments + static const int BT_PBAP_FIELD_NOTE = 131072; + + /// < Revision + static const int BT_PBAP_FIELD_REV = 262144; + + /// < Pronunciation of Name + static const int BT_PBAP_FIELD_SOUND = 524288; + + /// < Uniform Resource Locator + static const int BT_PBAP_FIELD_URL = 1048576; + + /// < Unique ID + static const int BT_PBAP_FIELD_UID = 2097152; + + /// < Public Encryption Key + static const int BT_PBAP_FIELD_KEY = 4194304; + + /// < Nickname + static const int BT_PBAP_FIELD_NICKNAME = 8388608; + + /// < Categories + static const int BT_PBAP_FIELD_CATEGORIES = 16777216; + + /// < Product ID + static const int BT_PBAP_FIELD_PROID = 33554432; + + /// < Class information + static const int BT_PBAP_FIELD_CLASS = 67108864; + + /// < String used for sorting operations + static const int BT_PBAP_FIELD_SORT_STRING = 134217728; + + /// < Time stamp + static const int BT_PBAP_FIELD_X_IRMC_CALL_DATETIME = 268435456; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_MODULE +/// @brief Enumerations of Bluetooth error codes. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_error_e { + /// < Successful + static const int BT_ERROR_NONE = 0; + + /// < Operation cancelled + static const int BT_ERROR_CANCELLED = -125; + + /// < Invalid parameter + static const int BT_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int BT_ERROR_OUT_OF_MEMORY = -12; + + /// < Device or resource busy + static const int BT_ERROR_RESOURCE_BUSY = -16; + + /// < Timeout error + static const int BT_ERROR_TIMED_OUT = -1073741823; + + /// < Operation now in progress + static const int BT_ERROR_NOW_IN_PROGRESS = -115; + + /// < BT is Not Supported + static const int BT_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Permission denied + static const int BT_ERROR_PERMISSION_DENIED = -13; + + /// < Quota exceeded + static const int BT_ERROR_QUOTA_EXCEEDED = -122; + + /// < No data available + static const int BT_ERROR_NO_DATA = -61; + + /// < Device policy restriction (Since 3.0) + static const int BT_ERROR_DEVICE_POLICY_RESTRICTION = -1073741820; + + /// < Local adapter not initialized + static const int BT_ERROR_NOT_INITIALIZED = -29359871; + + /// < Local adapter not enabled + static const int BT_ERROR_NOT_ENABLED = -29359870; + + /// < Operation already done + static const int BT_ERROR_ALREADY_DONE = -29359869; + + /// < Operation failed + static const int BT_ERROR_OPERATION_FAILED = -29359868; + + /// < Operation not in progress + static const int BT_ERROR_NOT_IN_PROGRESS = -29359867; + + /// < Remote device not bonded + static const int BT_ERROR_REMOTE_DEVICE_NOT_BONDED = -29359866; + + /// < Authentication rejected + static const int BT_ERROR_AUTH_REJECTED = -29359865; + + /// < Authentication failed + static const int BT_ERROR_AUTH_FAILED = -29359864; + + /// < Remote device not found + static const int BT_ERROR_REMOTE_DEVICE_NOT_FOUND = -29359863; + + /// < Service search failed + static const int BT_ERROR_SERVICE_SEARCH_FAILED = -29359862; + + /// < Remote device is not connected + static const int BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = -29359861; + + /// < Resource temporarily unavailable + static const int BT_ERROR_AGAIN = -29359860; + + /// < Service Not Found + static const int BT_ERROR_SERVICE_NOT_FOUND = -29359859; + + /// < Authorization rejected (Since 5.0) + static const int BT_ERROR_AUTHORIZATION_REJECTED = -29359858; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Enumerations of the Bluetooth adapter state. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -9669,6 +9848,178 @@ abstract class bt_adapter_visibility_mode_e { static const int BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE = 2; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Enumerations of the discovery state of Bluetooth device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_device_discovery_state_e { + /// < Device discovery is started + static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; + + /// < Device discovery is finished + static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; + + /// < The remote Bluetooth device is found + static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_state_e { + /// < Bluetooth advertising is stopped + static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; + + /// < Bluetooth advertising is started + static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising mode. +/// @since_tizen 2.3.1 +abstract class bt_adapter_le_advertising_mode_e { + /// < Balanced advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; + + /// < Low latency advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; + + /// < Low energy advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; + + /// < Custom mode to set advertising parameters + static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising filter policy. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_filter_policy_e { + /// < White list is not in use + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_DEFAULT = 0; + + /// < Allow the scan + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_WL = 1; + + /// < Allow the connection + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_CONN_WL = 2; + + /// < Allow the + /// scan and connection request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_CONN_WL = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE packet type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_packet_type_e { + /// < Advertising packet + static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; + + /// < Scan response packet + static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth le scan mode. +/// @since_tizen 3.0 +abstract class bt_adapter_le_scan_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device disconnect reason. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_disconnect_reason_e { + /// < Disconnected by unknown reason + static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; + + /// < Disconnected by timeout + static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; + + /// < Disconnected by local host + static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; + + /// < Disconnected by remote + static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of connection link type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_connection_link_type_e { + /// < BR/EDR link + static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; + + /// < LE link + static const int BT_DEVICE_CONNECTION_LINK_LE = 1; + + /// < The connection type default + static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device authorization state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_authorization_e { + /// < The remote Bluetooth device is authorized + static const int BT_DEVICE_AUTHORIZED = 0; + + /// < The remote Bluetooth device is unauthorized + static const int BT_DEVICE_UNAUTHORIZED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of Bluetooth profile. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_profile_e { + /// < RFCOMM Profile + static const int BT_PROFILE_RFCOMM = 1; + + /// < Advanced Audio Distribution Profile Source role + static const int BT_PROFILE_A2DP = 2; + + /// < Headset Profile + static const int BT_PROFILE_HSP = 4; + + /// < Human Interface Device Profile + static const int BT_PROFILE_HID = 8; + + /// < Network Access Point Profile + static const int BT_PROFILE_NAP = 16; + + /// < Audio Gateway Profile + static const int BT_PROFILE_AG = 32; + + /// < Generic Attribute Profile + static const int BT_PROFILE_GATT = 64; + + /// < NAP server Profile + static const int BT_PROFILE_NAP_SERVER = 128; + + /// < Advanced Audio Distribution Profile Sink role + static const int BT_PROFILE_A2DP_SINK = 256; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device address type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_address_type_e { + /// < Public address + static const int BT_DEVICE_PUBLIC_ADDRESS = 0; + + /// < Random address + static const int BT_DEVICE_RANDOM_ADDRESS = 1; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Enumerations of service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -9752,88 +10103,36 @@ abstract class bt_service_class_t { static const int BT_SC_MAX = 16777216; } -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Called when you get bonded devices repeatedly. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[in] device_info The bonded device information -/// @param[in] user_data The user data passed from the foreach function -/// @return @c true to continue with the next iteration of the loop, -/// \n @c false to break out of the loop. -/// @pre bt_adapter_foreach_bonded_device() will invoke this function. -/// -/// @see bt_adapter_foreach_bonded_device() -typedef bt_adapter_bonded_device_cb - = ffi.Pointer>; -typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); -typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device information structure used for identifying pear device. +/// @brief Enumerations of major service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_device_bond_created_cb() -final class bt_device_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; +abstract class bt_major_service_class_e { + /// < Limited discoverable mode + static const int BT_MAJOR_SERVICE_CLASS_LIMITED_DISCOVERABLE_MODE = 8192; - /// < The name of remote device - external ffi.Pointer remote_name; + /// < Positioning class + static const int BT_MAJOR_SERVICE_CLASS_POSITIONING = 65536; - /// < The Bluetooth classes - external bt_class_s bt_class; + /// < Networking class + static const int BT_MAJOR_SERVICE_CLASS_NETWORKING = 131072; - /// < The UUID list of service - external ffi.Pointer> service_uuid; + /// < Rendering class + static const int BT_MAJOR_SERVICE_CLASS_RENDERING = 262144; - /// < The number of services - @ffi.Int() - external int service_count; + /// < Capturing class + static const int BT_MAJOR_SERVICE_CLASS_CAPTURING = 524288; - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The connection state - @ffi.Bool() - external bool is_connected; - - /// < The authorization state - @ffi.Bool() - external bool is_authorized; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} + /// < Object transferring class + static const int BT_MAJOR_SERVICE_CLASS_OBJECT_TRANSFER = 1048576; -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Class structure of device and service. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_device_info_s -/// @see #bt_adapter_device_discovery_info_s -/// @see bt_device_bond_created_cb() -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_class_s extends ffi.Struct { - /// < Major device class. - @ffi.Int32() - external int major_device_class; + /// < Audio class + static const int BT_MAJOR_SERVICE_CLASS_AUDIO = 2097152; - /// < Minor device class. - @ffi.Int32() - external int minor_device_class; + /// < Telephony class + static const int BT_MAJOR_SERVICE_CLASS_TELEPHONY = 4194304; - /// < Major service class mask. - /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO - @ffi.Int() - external int major_service_class_mask; + /// < Information class + static const int BT_MAJOR_SERVICE_CLASS_INFORMATION = 8388608; } /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE @@ -10130,10 +10429,976 @@ abstract class bt_minor_device_class_e { /// < Knee prosthesis minor device class of health static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; - /// < Ankle prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; + /// < Ankle prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of gap appearance type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_appearance_type_e { + /// < Unknown appearance type + static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; + + /// < Generic Phone type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; + + /// < Generic Computer type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; + + /// < Generic Watch type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth device's LE connection mode. +/// @since_tizen 3.0 +abstract class bt_device_le_connection_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of connected Bluetooth device event role. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_role_e { + /// < Unknown role + static const int BT_SOCKET_UNKNOWN = 0; + + /// < Server role + static const int BT_SOCKET_SERVER = 1; + + /// < Client role + static const int BT_SOCKET_CLIENT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of Bluetooth socket connection state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_connection_state_e { + /// < RFCOMM is connected + static const int BT_SOCKET_CONNECTED = 0; + + /// < RFCOMM is disconnected + static const int BT_SOCKET_DISCONNECTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE +/// @brief Enumerations for the types of profiles related with audio. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_audio_profile_type_e { + /// < All supported profiles related with audio (Both Host and Device role) + static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; + + /// < local device AG and remote device HF Client (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; + + /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; + + /// < local device HF Client and remote device AG (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_AG = 3; + + /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_call_handling_event_e { + /// < Request to answer an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_ANSWER = 0; + + /// < Request to release a call + static const int BT_AG_CALL_HANDLING_EVENT_RELEASE = 1; + + /// < Request to reject an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_REJECT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the multi call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_multi_call_handling_event_e { + /// < Request to release held calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_HELD_CALLS = 0; + + /// < Request to release active calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_ACTIVE_CALLS = 1; + + /// < Request to put active calls into hold state and activate another (held or waiting) call + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_ACTIVATE_HELD_CALL = 2; + + /// < Request to add a held call to the conversation + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_MERGE_CALLS = 3; + + /// < Request to let a user who has two calls to connect these two calls together and release its connections to both other parties + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_EXPLICIT_CALL_TRANSFER = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the equalizer state. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_equalizer_state_e { + /// < Equalizer Off + static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; + + /// < Equalizer On + static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the repeat mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_repeat_mode_e { + /// < Repeat Off + static const int BT_AVRCP_REPEAT_MODE_OFF = 1; + + /// < Single track repeat + static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; + + /// < All track repeat + static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; + + /// < Group repeat + static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the shuffle mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_shuffle_mode_e { + /// < Shuffle Off + static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; + + /// < All tracks shuffle + static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; + + /// < Group shuffle + static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the scan mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_scan_mode_e { + /// < Scan Off + static const int BT_AVRCP_SCAN_MODE_OFF = 1; + + /// < All tracks scan + static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; + + /// < Group scan + static const int BT_AVRCP_SCAN_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the player state. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_state_e { + /// < Stopped + static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; + + /// < Playing + static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; + + /// < Paused + static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; + + /// < Seek Forward + static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; + + /// < Seek Rewind + static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumeration for the player control commands. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_command_e { + /// < Play + static const int BT_AVRCP_CONTROL_PLAY = 1; + + /// < Pause + static const int BT_AVRCP_CONTROL_PAUSE = 2; + + /// < Stop + static const int BT_AVRCP_CONTROL_STOP = 3; + + /// < Next Track + static const int BT_AVRCP_CONTROL_NEXT = 4; + + /// < Previous track + static const int BT_AVRCP_CONTROL_PREVIOUS = 5; + + /// < Fast Forward + static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; + + /// < Rewind + static const int BT_AVRCP_CONTROL_REWIND = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Structure of Track metadata information. +/// @since_tizen 3.0 +/// +/// @see #bt_class_s +final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { + /// < Title + external ffi.Pointer title; + + /// < Artist + external ffi.Pointer artist; + + /// < Album name + external ffi.Pointer album; + + /// < Album Genre + external ffi.Pointer genre; + + /// < The total number of tracks + @ffi.UnsignedInt() + external int total_tracks; + + /// < Track number + @ffi.UnsignedInt() + external int number; + + /// < Duration + @ffi.UnsignedInt() + external int duration; +} + +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Enumerations for the data channel type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @remarks Deprecated, because of no usecase and supported devices. +abstract class bt_hdp_channel_type_e { + /// < Reliable Data Channel + static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; + + /// < Streaming Data Channel + static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the integer type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_int_e { + /// < 8 bit signed int type + static const int BT_DATA_TYPE_SINT8 = 0; + + /// < 16 bit signed int type + static const int BT_DATA_TYPE_SINT16 = 1; + + /// < 32 bit signed int type + static const int BT_DATA_TYPE_SINT32 = 2; + + /// < 8 bit unsigned int type + static const int BT_DATA_TYPE_UINT8 = 3; + + /// < 16 bit unsigned int type + static const int BT_DATA_TYPE_UINT16 = 4; + + /// < 32 bit unsigned int type + static const int BT_DATA_TYPE_UINT32 = 5; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the float type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_float_e { + /// < 32 bit float type + static const int BT_DATA_TYPE_FLOAT = 0; + + /// < 16 bit float type + static const int BT_DATA_TYPE_SFLOAT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the write type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_write_type_e { + /// < Write without response type + static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; + + /// < Write type + static const int BT_GATT_WRITE_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the GATT handle's type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_type_e { + /// < GATT service type + static const int BT_GATT_TYPE_SERVICE = 1; + + /// < GATT characteristic type + static const int BT_GATT_TYPE_CHARACTERISTIC = 2; + + /// < GATT descriptor type + static const int BT_GATT_TYPE_DESCRIPTOR = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the service type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_service_type_e { + /// < GATT primary service type + static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; + + /// < GATT secondary service type + static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the characteristic's property. +/// @since_tizen 2.3.1 +abstract class bt_gatt_property_e { + /// < Broadcast property + static const int BT_GATT_PROPERTY_BROADCAST = 1; + + /// < Read property + static const int BT_GATT_PROPERTY_READ = 2; + + /// < Write without response property + static const int BT_GATT_PROPERTY_WRITE_WITHOUT_RESPONSE = 4; + + /// < Write property + static const int BT_GATT_PROPERTY_WRITE = 8; + + /// < Notify property + static const int BT_GATT_PROPERTY_NOTIFY = 16; + + /// < Indicate property + static const int BT_GATT_PROPERTY_INDICATE = 32; + + /// < Authenticated signed writes property + static const int BT_GATT_PROPERTY_AUTHENTICATED_SIGNED_WRITES = 64; + + /// < Extended properties + static const int BT_GATT_PROPERTY_EXTENDED_PROPERTIES = 128; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Enumerations of gatt server's service changing mode. +/// @since_tizen 3.0 +abstract class bt_gatt_client_service_change_type_e { + /// < Service added + static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; + + /// < Service removed + static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; + + /// < Resync is required (Since 6.5) + static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the attribute's permission. +/// @since_tizen 3.0 +abstract class bt_gatt_permission_e { + /// < Readable permission + static const int BT_GATT_PERMISSION_READ = 1; + + /// < Writable permission + static const int BT_GATT_PERMISSION_WRITE = 2; + + /// < Readable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_READ = 4; + + /// < Writable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_WRITE = 8; + + /// < Readable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_READ = 16; + + /// < Writable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_WRITE = 32; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE +/// @brief Enumerations of the remote device request types for attributes. +/// @since_tizen 3.0 +abstract class bt_gatt_att_request_type_e { + /// < Read Requested + static const int BT_GATT_REQUEST_TYPE_READ = 0; + + /// < Write Requested + static const int BT_GATT_REQUEST_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE +/// @brief Enumerations for the types of PAN (Personal Area Networking) service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_panu_service_type_e { + /// < Network Access Point + static const int BT_PANU_SERVICE_TYPE_NAP = 0; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of address book location for PBAP. +/// @since_tizen 3.0 +abstract class bt_pbap_address_book_source_e { + /// < Request for Addressbook from remote device + static const int BT_PBAP_SOURCE_DEVICE = 0; + + /// < Request for address book from SIM + static const int BT_PBAP_SOURCE_SIM = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of folder type. +/// @since_tizen 3.0 +abstract class bt_pbap_folder_type_e { + /// < Request for address book + static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; + + /// < Request for incoming calls + static const int BT_PBAP_FOLDER_INCOMING = 1; + + /// < Request for outgoing calls + static const int BT_PBAP_FOLDER_OUTGOING = 2; + + /// < Request for missed calls + static const int BT_PBAP_FOLDER_MISSED = 3; + + /// < Request for combined calls + static const int BT_PBAP_FOLDER_COMBINED = 4; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of phone book search fields. +/// @since_tizen 3.0 +abstract class bt_pbap_search_field_e { + /// < Request for search by name (default) + static const int BT_PBAP_SEARCH_NAME = 0; + + /// < Request for search by phone number + static const int BT_PBAP_SEARCH_NUMBER = 1; + + /// < Request for search by sound + static const int BT_PBAP_SEARCH_SOUND = 2; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of vCard Formats. +/// @since_tizen 3.0 +abstract class bt_pbap_vcard_format_e { + /// < vCard format 2.1 (default) + static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; + + /// < vCard format 3.0 + static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of sorting orders. +/// @since_tizen 3.0 +abstract class bt_pbap_sort_order_e { + /// < Filter order indexed (default) + static const int BT_PBAP_ORDER_INDEXED = 0; + + /// < Filter order alphanumeric + static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; + + /// < Filter order phonetic + static const int BT_PBAP_ORDER_PHONETIC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Class structure of device and service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_device_info_s +/// @see #bt_adapter_device_discovery_info_s +/// @see bt_device_bond_created_cb() +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_class_s extends ffi.Struct { + /// < Major device class. + @ffi.Int32() + external int major_device_class; + + /// < Minor device class. + @ffi.Int32() + external int minor_device_class; + + /// < Major service class mask. + /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO + @ffi.Int() + external int major_service_class_mask; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Structure of device discovery information. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_adapter_device_discovery_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The Bluetooth appearance + @ffi.Int32() + external int appearance; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Structure of le scan result information. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The address type of remote device + @ffi.Int32() + external int address_type; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < advertising indication data length + @ffi.Int() + external int adv_data_len; + + /// < advertising indication data + external ffi.Pointer adv_data; + + /// < scan response data length + @ffi.Int() + external int scan_data_len; + + /// < scan response data + external ffi.Pointer scan_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief The structure for LE iBeacon scan result information. +/// @since_tizen 4.0 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { + /// < Company ID + @ffi.Int() + external int company_id; + + /// < iBeacon type + @ffi.Int() + external int ibeacon_type; + + /// < UUID + external ffi.Pointer uuid; + + /// < Major ID + @ffi.Int() + external int major_id; + + /// < Minor ID + @ffi.Int() + external int minor_id; + + /// < Measured power + @ffi.Int() + external int measured_power; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief LE service data structure. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_get_scan_result_service_data() +final class bt_adapter_le_service_data_s extends ffi.Struct { + /// < 16 bit UUID of the service data + external ffi.Pointer service_uuid; + + /// < Service data + external ffi.Pointer service_data; + + /// < Service data length + @ffi.Int() + external int service_data_len; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device information structure used for identifying pear device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_device_bond_created_cb() +final class bt_device_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The connection state + @ffi.Bool() + external bool is_connected; + + /// < The authorization state + @ffi.Bool() + external bool is_authorized; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Service Discovery Protocol (SDP) data structure. +/// +/// @details This protocol is used for discovering available services or pear device, +/// and finding one to connect with. +/// +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @see bt_device_service_searched_cb() +final class bt_device_sdp_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services. + @ffi.Int() + external int service_count; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device connection information structure. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_device_connection_state_changed_cb() +final class bt_device_connection_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < Link type + @ffi.Int32() + external int link; + + /// < Disconnection reason + @ffi.Int32() + external int disconn_reason; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_socket_connection_state_changed_cb() +final class bt_socket_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The service UUId + external ffi.Pointer service_uuid; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Structure of RFCOMM received data. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @remarks User can use standard linux functions for reading/writing \n +/// data from/to sockets. +/// +/// @see bt_socket_data_received_cb() +final class bt_socket_received_data_s extends ffi.Struct { + /// < The socket fd + @ffi.Int() + external int socket_fd; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Attribute protocol MTU change information structure. +/// @since_tizen 4.0 +/// +/// @see bt_gatt_client_att_mtu_changed_cb() +final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < MTU value + @ffi.UnsignedInt() + external int mtu; + + /// < Request status + @ffi.UnsignedInt() + external int status; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID mouse's button. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_mouse_button_e { + /// key; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID header type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_header_type_e { + /// < The Bluetooth HID header type: Handshake + static const int BT_HID_HEADER_HANDSHAKE = 0; + + /// < The Bluetooth HID header type: HID control + static const int BT_HID_HEADER_HID_CONTROL = 1; + + /// < The Bluetooth HID header type: Get report + static const int BT_HID_HEADER_GET_REPORT = 2; + + /// < The Bluetooth HID header type: Set report + static const int BT_HID_HEADER_SET_REPORT = 3; + + /// < The Bluetooth HID header type: Get protocol + static const int BT_HID_HEADER_GET_PROTOCOL = 4; + + /// < The Bluetooth HID header type: Set protocol + static const int BT_HID_HEADER_SET_PROTOCOL = 5; + + /// < The Bluetooth HID header type: Data + static const int BT_HID_HEADER_DATA = 6; + + /// < The Bluetooth HID header type: Unknown + static const int BT_HID_HEADER_UNKNOWN = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID parameter type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_param_type_e { + /// < Parameter type: Input + static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; + + /// < Parameter type: Output + static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID handshake type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_handshake_type_e { + /// < Handshake error code none + static const int BT_HID_HANDSHAKE_SUCCESSFUL = 0; + + /// < Handshake error code Not Ready + static const int BT_HID_HANDSHAKE_NOT_READY = 1; + + /// < Handshake error code send invalid report id + static const int BT_HID_HANDSHAKE_ERR_INVALID_REPORT_ID = 2; + + /// < Handshake error code request unsupported request + static const int BT_HID_HANDSHAKE_ERR_UNSUPPORTED_REQUEST = 3; + + /// < Handshake error code received invalid parameter + static const int BT_HID_HANDSHAKE_ERR_INVALID_PARAMETER = 4; + + /// < unknown error + static const int BT_HID_HANDSHAKE_ERR_UNKNOWN = 14; + + /// < Fatal error + static const int BT_HID_HANDSHAKE_ERR_FATAL = 15; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief The structure type containing data received from the HID Host. +/// @since_tizen @if WEARABLE 3.0 @endif +final class bt_hid_device_received_data_s extends ffi.Struct { + /// < The remote device's address + external ffi.Pointer address; + + /// < The header type + @ffi.Int32() + external int header_type; + + /// < The parameter type + @ffi.Int32() + external int param_type; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief The structure type containing vCard information. +/// @since_tizen 3.0 +/// +/// @see bt_pbap_client_pull_vcard() +final class bt_pbap_vcard_info_s extends ffi.Struct { + /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() + @ffi.Int() + external int index; + + /// < The contact name of the vCard + external ffi.Pointer contact_name; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumeration for the scan filter type. +/// @since_tizen 4.0 +/// @see bt_adapter_le_scan_filter_set_type() +abstract class bt_adapter_le_scan_filter_type_e { + /// < iBeacon filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; + + /// < Proximity UUID filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Called when you get bonded devices repeatedly. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @param[in] device_info The bonded device information +/// @param[in] user_data The user data passed from the foreach function +/// @return @c true to continue with the next iteration of the loop, +/// \n @c false to break out of the loop. +/// @pre bt_adapter_foreach_bonded_device() will invoke this function. +/// +/// @see bt_adapter_foreach_bonded_device() +typedef bt_adapter_bonded_device_cb + = ffi.Pointer>; +typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); +typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Called when the Bluetooth adapter state changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10241,80 +11506,6 @@ typedef Dartbt_adapter_device_discovery_state_changed_cbFunction ffi.Pointer discovery_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Enumerations of the discovery state of Bluetooth device. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_device_discovery_state_e { - /// < Device discovery is started - static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; - - /// < Device discovery is finished - static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; - - /// < The remote Bluetooth device is found - static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Structure of device discovery information. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_adapter_device_discovery_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The Bluetooth appearance - @ffi.Int32() - external int appearance; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of gap appearance type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_appearance_type_e { - /// < Unknown appearance type - static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; - - /// < Generic Phone type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; - - /// < Generic Computer type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; - - /// < Generic Watch type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief Called when the LE advertisement has been found. /// @since_tizen 2.3.1 @@ -10335,107 +11526,6 @@ typedef Dartbt_adapter_le_scan_result_cbFunction = void Function( ffi.Pointer info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Structure of le scan result information. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The address type of remote device - @ffi.Int32() - external int address_type; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < advertising indication data length - @ffi.Int() - external int adv_data_len; - - /// < advertising indication data - external ffi.Pointer adv_data; - - /// < scan response data length - @ffi.Int() - external int scan_data_len; - - /// < scan response data - external ffi.Pointer scan_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device address type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_address_type_e { - /// < Public address - static const int BT_DEVICE_PUBLIC_ADDRESS = 0; - - /// < Random address - static const int BT_DEVICE_RANDOM_ADDRESS = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth LE packet type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_packet_type_e { - /// < Advertising packet - static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; - - /// < Scan response packet - static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief LE service data structure. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_get_scan_result_service_data() -final class bt_adapter_le_service_data_s extends ffi.Struct { - /// < 16 bit UUID of the service data - external ffi.Pointer service_uuid; - - /// < Service data - external ffi.Pointer service_data; - - /// < Service data length - @ffi.Int() - external int service_data_len; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief The structure for LE iBeacon scan result information. -/// @since_tizen 4.0 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { - /// < Company ID - @ffi.Int() - external int company_id; - - /// < iBeacon type - @ffi.Int() - external int ibeacon_type; - - /// < UUID - external ffi.Pointer uuid; - - /// < Major ID - @ffi.Int() - external int major_id; - - /// < Minor ID - @ffi.Int() - external int minor_id; - - /// < Measured power - @ffi.Int() - external int measured_power; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle to control Bluetooth LE advertising. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10478,85 +11568,32 @@ typedef Dartbt_ipsp_connection_state_changed_cbFunction = void Function( int result, bool connected, ffi.Pointer remote_address, - ffi.Pointer iface_name, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Called when the state of advertiser changes. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[out] result The result of the requested state change of advertiser -/// @param[out] advertiser The handle of the state changed advertiser -/// @param[out] adv_state The advertiser state to be changed -/// @param[out] user_data The user data passed from the start function -/// -/// @see bt_adapter_le_start_advertising_new() -/// @see bt_adapter_le_stop_advertising() -typedef bt_adapter_le_advertising_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_adapter_le_advertising_state_changed_cbFunction = ffi.Void Function( - ffi.Int result, - bt_advertiser_h advertiser, - ffi.Int32 adv_state, - ffi.Pointer user_data); -typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( - int result, - bt_advertiser_h advertiser, - int adv_state, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_advertising_state_e { - /// < Bluetooth advertising is stopped - static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; - - /// < Bluetooth advertising is started - static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising mode. -/// @since_tizen 2.3.1 -abstract class bt_adapter_le_advertising_mode_e { - /// < Balanced advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; - - /// < Low latency advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; - - /// < Low energy advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; - - /// < Custom mode to set advertising parameters - static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; -} + ffi.Pointer iface_name, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth le scan mode. -/// @since_tizen 3.0 -abstract class bt_adapter_le_scan_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device authorization state. +/// @brief Called when the state of advertiser changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_authorization_e { - /// < The remote Bluetooth device is authorized - static const int BT_DEVICE_AUTHORIZED = 0; - - /// < The remote Bluetooth device is unauthorized - static const int BT_DEVICE_UNAUTHORIZED = 1; -} +/// +/// @param[out] result The result of the requested state change of advertiser +/// @param[out] advertiser The handle of the state changed advertiser +/// @param[out] adv_state The advertiser state to be changed +/// @param[out] user_data The user data passed from the start function +/// +/// @see bt_adapter_le_start_advertising_new() +/// @see bt_adapter_le_stop_advertising() +typedef bt_adapter_le_advertising_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_adapter_le_advertising_state_changed_cbFunction = ffi.Void Function( + ffi.Int result, + bt_advertiser_h advertiser, + ffi.Int32 adv_state, + ffi.Pointer user_data); +typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( + int result, + bt_advertiser_h advertiser, + int adv_state, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when you get connected profiles repeatedly. @@ -10575,52 +11612,6 @@ typedef bt_device_connected_profileFunction = ffi.Bool Function( typedef Dartbt_device_connected_profileFunction = bool Function( int profile, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of Bluetooth profile. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_profile_e { - /// < RFCOMM Profile - static const int BT_PROFILE_RFCOMM = 1; - - /// < Advanced Audio Distribution Profile Source role - static const int BT_PROFILE_A2DP = 2; - - /// < Headset Profile - static const int BT_PROFILE_HSP = 4; - - /// < Human Interface Device Profile - static const int BT_PROFILE_HID = 8; - - /// < Network Access Point Profile - static const int BT_PROFILE_NAP = 16; - - /// < Audio Gateway Profile - static const int BT_PROFILE_AG = 32; - - /// < Generic Attribute Profile - static const int BT_PROFILE_GATT = 64; - - /// < NAP server Profile - static const int BT_PROFILE_NAP_SERVER = 128; - - /// < Advanced Audio Distribution Profile Sink role - static const int BT_PROFILE_A2DP_SINK = 256; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth device's LE connection mode. -/// @since_tizen 3.0 -abstract class bt_device_le_connection_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the process of creating bond finishes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10716,26 +11707,6 @@ typedef Dartbt_device_service_searched_cbFunction = void Function( ffi.Pointer sdp_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Service Discovery Protocol (SDP) data structure. -/// -/// @details This protocol is used for discovering available services or pear device, -/// and finding one to connect with. -/// -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @see bt_device_service_searched_cb() -final class bt_device_sdp_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services. - @ffi.Int() - external int service_count; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the connection state is changed. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10756,55 +11727,6 @@ typedef Dartbt_device_connection_state_changed_cbFunction = void Function( ffi.Pointer conn_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device connection information structure. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_device_connection_state_changed_cb() -final class bt_device_connection_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < Link type - @ffi.Int32() - external int link; - - /// < Disconnection reason - @ffi.Int32() - external int disconn_reason; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of connection link type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_connection_link_type_e { - /// < BR/EDR link - static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; - - /// < LE link - static const int BT_DEVICE_CONNECTION_LINK_LE = 1; - - /// < The connection type default - static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device disconnect reason. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_disconnect_reason_e { - /// < Disconnected by unknown reason - static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; - - /// < Disconnected by timeout - static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; - - /// < Disconnected by local host - static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; - - /// < Disconnected by remote - static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when you receive data. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10827,27 +11749,6 @@ typedef Dartbt_socket_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Structure of RFCOMM received data. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @remarks User can use standard linux functions for reading/writing \n -/// data from/to sockets. -/// -/// @see bt_socket_data_received_cb() -final class bt_socket_received_data_s extends ffi.Struct { - /// < The socket fd - @ffi.Int() - external int socket_fd; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when a RFCOMM connection is requested. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10869,81 +11770,31 @@ typedef Dartbt_socket_connection_requested_cbFunction = void Function( ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Called when the socket connection state changes. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[in] result The result of connection state changing -/// @param[in] connection_state The connection state -/// @param[in] connection The connection information which is established or disconnected -/// @param[in] user_data The user data passed from the callback registration function -/// @pre Either bt_socket_connect_rfcomm() will invoke this function. -/// In addition, bt_socket_connection_state_changed_cb() will be invoked when the socket connection state is changed. -/// @see bt_socket_listen_and_accept_rfcomm() -/// @see bt_socket_connect_rfcomm() -/// @see bt_socket_set_connection_state_changed_cb() -/// @see bt_socket_unset_connection_state_changed_cb() -typedef bt_socket_connection_state_changed_cb = ffi - .Pointer>; -typedef bt_socket_connection_state_changed_cbFunction = ffi.Void Function( - ffi.Int result, - ffi.Int32 connection_state, - ffi.Pointer connection, - ffi.Pointer user_data); -typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( - int result, - int connection_state, - ffi.Pointer connection, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of Bluetooth socket connection state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_connection_state_e { - /// < RFCOMM is connected - static const int BT_SOCKET_CONNECTED = 0; - - /// < RFCOMM is disconnected - static const int BT_SOCKET_DISCONNECTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_socket_connection_state_changed_cb() -final class bt_socket_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The service UUId - external ffi.Pointer service_uuid; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of connected Bluetooth device event role. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_role_e { - /// < Unknown role - static const int BT_SOCKET_UNKNOWN = 0; - - /// < Server role - static const int BT_SOCKET_SERVER = 1; - - /// < Client role - static const int BT_SOCKET_CLIENT = 2; -} +/// @brief Called when the socket connection state changes. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @param[in] result The result of connection state changing +/// @param[in] connection_state The connection state +/// @param[in] connection The connection information which is established or disconnected +/// @param[in] user_data The user data passed from the callback registration function +/// @pre Either bt_socket_connect_rfcomm() will invoke this function. +/// In addition, bt_socket_connection_state_changed_cb() will be invoked when the socket connection state is changed. +/// @see bt_socket_listen_and_accept_rfcomm() +/// @see bt_socket_connect_rfcomm() +/// @see bt_socket_set_connection_state_changed_cb() +/// @see bt_socket_unset_connection_state_changed_cb() +typedef bt_socket_connection_state_changed_cb = ffi + .Pointer>; +typedef bt_socket_connection_state_changed_cbFunction = ffi.Void Function( + ffi.Int result, + ffi.Int32 connection_state, + ffi.Pointer connection, + ffi.Pointer user_data); +typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( + int result, + int connection_state, + ffi.Pointer connection, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_OPP_SERVER_MODULE /// @brief Called when an OPP connection is requested. @@ -11114,45 +11965,6 @@ typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID mouse event information. -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_mouse_event() -final class bt_hid_mouse_data_s extends ffi.Struct { - /// < The button values, we can combine key's values when we pressed multiple mouse buttons - @ffi.Int() - external int buttons; - - /// < The location's x value, -128 ~127 - @ffi.Int() - external int axis_x; - - /// < The location's y value, -128 ~127 - @ffi.Int() - external int axis_y; - - /// < The padding value, -128 ~127 - @ffi.Int() - external int padding; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID keyboard event information. -/// @details If you want to know more detail values, refer to http://www.usb.org/developers/hidpage/ and see "HID Usage Tables" -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_key_event() -final class bt_hid_key_data_s extends ffi.Struct { - /// < The modifier keys : such as shift, alt - @ffi.UnsignedChar() - external int modifier; - - /// < The key value - currently pressed keys : Max 8 at once - @ffi.Array.multi([8]) - external ffi.Array key; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE /// @brief Called when the HID Device receives data from the HID Host. /// @details The following error codes can be delivered: \n @@ -11172,89 +11984,6 @@ typedef Dartbt_hid_device_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing data received from the HID Host. -/// @since_tizen @if WEARABLE 3.0 @endif -final class bt_hid_device_received_data_s extends ffi.Struct { - /// < The remote device's address - external ffi.Pointer address; - - /// < The header type - @ffi.Int32() - external int header_type; - - /// < The parameter type - @ffi.Int32() - external int param_type; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID header type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_header_type_e { - /// < The Bluetooth HID header type: Handshake - static const int BT_HID_HEADER_HANDSHAKE = 0; - - /// < The Bluetooth HID header type: HID control - static const int BT_HID_HEADER_HID_CONTROL = 1; - - /// < The Bluetooth HID header type: Get report - static const int BT_HID_HEADER_GET_REPORT = 2; - - /// < The Bluetooth HID header type: Set report - static const int BT_HID_HEADER_SET_REPORT = 3; - - /// < The Bluetooth HID header type: Get protocol - static const int BT_HID_HEADER_GET_PROTOCOL = 4; - - /// < The Bluetooth HID header type: Set protocol - static const int BT_HID_HEADER_SET_PROTOCOL = 5; - - /// < The Bluetooth HID header type: Data - static const int BT_HID_HEADER_DATA = 6; - - /// < The Bluetooth HID header type: Unknown - static const int BT_HID_HEADER_UNKNOWN = 7; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID parameter type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_param_type_e { - /// < Parameter type: Input - static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; - - /// < Parameter type: Output - static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE -/// @brief Enumerations for the types of profiles related with audio. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_audio_profile_type_e { - /// < All supported profiles related with audio (Both Host and Device role) - static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; - - /// < local device AG and remote device HF Client (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; - - /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; - - /// < local device HF Client and remote device AG (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_AG = 3; - - /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE /// @brief Called when the connection state is changed. /// @@ -11303,82 +12032,6 @@ typedef Dartbt_avrcp_target_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the equalizer state. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_equalizer_state_e { - /// < Equalizer Off - static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; - - /// < Equalizer On - static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the repeat mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_repeat_mode_e { - /// < Repeat Off - static const int BT_AVRCP_REPEAT_MODE_OFF = 1; - - /// < Single track repeat - static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; - - /// < All track repeat - static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; - - /// < Group repeat - static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the shuffle mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_shuffle_mode_e { - /// < Shuffle Off - static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; - - /// < All tracks shuffle - static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; - - /// < Group shuffle - static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the scan mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_scan_mode_e { - /// < Scan Off - static const int BT_AVRCP_SCAN_MODE_OFF = 1; - - /// < All tracks scan - static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; - - /// < Group scan - static const int BT_AVRCP_SCAN_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the player state. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_state_e { - /// < Stopped - static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; - - /// < Playing - static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; - - /// < Paused - static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; - - /// < Seek Forward - static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; - - /// < Seek Rewind - static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the equalizer state is changed by the remote control device. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11480,39 +12133,8 @@ typedef bt_avrcp_track_info_changed_cbFunction = ffi.Void Function( ffi.Pointer track, ffi.Pointer user_data); typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( - ffi.Pointer track, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Structure of Track metadata information. -/// @since_tizen 3.0 -/// -/// @see #bt_class_s -final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { - /// < Title - external ffi.Pointer title; - - /// < Artist - external ffi.Pointer artist; - - /// < Album name - external ffi.Pointer album; - - /// < Album Genre - external ffi.Pointer genre; - - /// < The total number of tracks - @ffi.UnsignedInt() - external int total_tracks; - - /// < Track number - @ffi.UnsignedInt() - external int number; - - /// < Duration - @ffi.UnsignedInt() - external int duration; -} + ffi.Pointer track, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the connection state is changed. @@ -11531,32 +12153,6 @@ typedef Dartbt_avrcp_control_connection_state_changed_cbFunction = void Function(bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumeration for the player control commands. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_command_e { - /// < Play - static const int BT_AVRCP_CONTROL_PLAY = 1; - - /// < Pause - static const int BT_AVRCP_CONTROL_PAUSE = 2; - - /// < Stop - static const int BT_AVRCP_CONTROL_STOP = 3; - - /// < Next Track - static const int BT_AVRCP_CONTROL_NEXT = 4; - - /// < Previous track - static const int BT_AVRCP_CONTROL_PREVIOUS = 5; - - /// < Fast Forward - static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; - - /// < Rewind - static const int BT_AVRCP_CONTROL_REWIND = 7; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is established. @@ -11588,19 +12184,6 @@ typedef Dartbt_hdp_connected_cbFunction = void Function( int channel, ffi.Pointer user_data); -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Enumerations for the data channel type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @remarks Deprecated, because of no usecase and supported devices. -abstract class bt_hdp_channel_type_e { - /// < Reliable Data Channel - static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; - - /// < Streaming Data Channel - static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is disconnected. @@ -11653,54 +12236,6 @@ typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, /// @since_tizen 2.3.1 typedef bt_gatt_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the integer type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_int_e { - /// < 8 bit signed int type - static const int BT_DATA_TYPE_SINT8 = 0; - - /// < 16 bit signed int type - static const int BT_DATA_TYPE_SINT16 = 1; - - /// < 32 bit signed int type - static const int BT_DATA_TYPE_SINT32 = 2; - - /// < 8 bit unsigned int type - static const int BT_DATA_TYPE_UINT8 = 3; - - /// < 16 bit unsigned int type - static const int BT_DATA_TYPE_UINT16 = 4; - - /// < 32 bit unsigned int type - static const int BT_DATA_TYPE_UINT32 = 5; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the float type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_float_e { - /// < 32 bit float type - static const int BT_DATA_TYPE_FLOAT = 0; - - /// < 16 bit float type - static const int BT_DATA_TYPE_SFLOAT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the GATT handle's type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_type_e { - /// < GATT service type - static const int BT_GATT_TYPE_SERVICE = 1; - - /// < GATT characteristic type - static const int BT_GATT_TYPE_CHARACTERISTIC = 2; - - /// < GATT descriptor type - static const int BT_GATT_TYPE_DESCRIPTOR = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief The handle of a GATT client which is associated with a remote device. /// @since_tizen 2.3.1 @@ -11726,17 +12261,6 @@ typedef bt_gatt_foreach_cbFunction = ffi.Bool Function(ffi.Int total, typedef Dartbt_gatt_foreach_cbFunction = bool Function(int total, int index, bt_gatt_h gatt_handle, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the write type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_write_type_e { - /// < Write without response type - static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; - - /// < Write type - static const int BT_GATT_WRITE_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when the client request(e.g. read / write) has been completed. /// @since_tizen 2.3.1 @@ -11777,24 +12301,6 @@ typedef Dartbt_gatt_client_att_mtu_changed_cbFunction = void Function( ffi.Pointer mtu_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Attribute protocol MTU change information structure. -/// @since_tizen 4.0 -/// -/// @see bt_gatt_client_att_mtu_changed_cb() -final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < MTU value - @ffi.UnsignedInt() - external int mtu; - - /// < Request status - @ffi.UnsignedInt() - external int status; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when a value of a watched characteristic's GATT handle has been changed. /// @since_tizen 2.3.1 @@ -11840,20 +12346,6 @@ typedef Dartbt_gatt_client_service_changed_cbFunction = void Function( ffi.Pointer service_uuid, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Enumerations of gatt server's service changing mode. -/// @since_tizen 3.0 -abstract class bt_gatt_client_service_change_type_e { - /// < Service added - static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; - - /// < Service removed - static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; - - /// < Resync is required (Since 6.5) - static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE /// @brief Called when the connection state is changed. /// @@ -11883,17 +12375,6 @@ typedef Dartbt_gatt_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the service type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_service_type_e { - /// < GATT primary service type - static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; - - /// < GATT secondary service type - static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief The handle of a GATT server. /// @since_tizen 3.0 @@ -12008,17 +12489,6 @@ typedef Dartbt_gatt_server_write_value_requested_cbFunction = void Function( int len, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE -/// @brief Enumerations of the remote device request types for attributes. -/// @since_tizen 3.0 -abstract class bt_gatt_att_request_type_e { - /// < Read Requested - static const int BT_GATT_REQUEST_TYPE_READ = 0; - - /// < Write Requested - static const int BT_GATT_REQUEST_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief Called when the sending notification / indication is done. /// @since_tizen 3.0 @@ -12087,39 +12557,6 @@ typedef Dartbt_pbap_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of address book location for PBAP. -/// @since_tizen 3.0 -abstract class bt_pbap_address_book_source_e { - /// < Request for Addressbook from remote device - static const int BT_PBAP_SOURCE_DEVICE = 0; - - /// < Request for address book from SIM - static const int BT_PBAP_SOURCE_SIM = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of folder type. -/// @since_tizen 3.0 -abstract class bt_pbap_folder_type_e { - /// < Request for address book - static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; - - /// < Request for incoming calls - static const int BT_PBAP_FOLDER_INCOMING = 1; - - /// < Request for outgoing calls - static const int BT_PBAP_FOLDER_OUTGOING = 2; - - /// < Request for missed calls - static const int BT_PBAP_FOLDER_MISSED = 3; - - /// < Request for combined calls - static const int BT_PBAP_FOLDER_COMBINED = 4; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook size calculation completes. @@ -12148,33 +12585,6 @@ typedef Dartbt_pbap_phone_book_size_cbFunction = void Function( int size, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of vCard Formats. -/// @since_tizen 3.0 -abstract class bt_pbap_vcard_format_e { - /// < vCard format 2.1 (default) - static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; - - /// < vCard format 3.0 - static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of sorting orders. -/// @since_tizen 3.0 -abstract class bt_pbap_sort_order_e { - /// < Filter order indexed (default) - static const int BT_PBAP_ORDER_INDEXED = 0; - - /// < Filter order alphanumeric - static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; - - /// < Filter order phonetic - static const int BT_PBAP_ORDER_PHONETIC = 2; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook Pull completes. @@ -12235,49 +12645,7 @@ typedef Dartbt_pbap_list_vcards_cbFunction = void Function( int count, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief The structure type containing vCard information. -/// @since_tizen 3.0 -/// -/// @see bt_pbap_client_pull_vcard() -final class bt_pbap_vcard_info_s extends ffi.Struct { - /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() - @ffi.Int() - external int index; - - /// < The contact name of the vCard - external ffi.Pointer contact_name; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of phone book search fields. -/// @since_tizen 3.0 -abstract class bt_pbap_search_field_e { - /// < Request for search by name (default) - static const int BT_PBAP_SEARCH_NAME = 0; - - /// < Request for search by phone number - static const int BT_PBAP_SEARCH_NUMBER = 1; - - /// < Request for search by sound - static const int BT_PBAP_SEARCH_SOUND = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle of a Bluetooth LE scan filter. /// @since_tizen 4.0 typedef bt_scan_filter_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumeration for the scan filter type. -/// @since_tizen 4.0 -/// @see bt_adapter_le_scan_filter_set_type() -abstract class bt_adapter_le_scan_filter_type_e { - /// < iBeacon filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - - /// < Proximity UUID filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; -} diff --git a/lib/src/bindings/6.5/generated_bindings_capi_system_info.dart b/lib/src/bindings/6.5/generated_bindings_capi_system_info.dart index e872b8d0..9cbae469 100644 --- a/lib/src/bindings/6.5/generated_bindings_capi_system_info.dart +++ b/lib/src/bindings/6.5/generated_bindings_capi_system_info.dart @@ -369,6 +369,38 @@ class Tizen65CapiSystemInfo { int Function(ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for system information error codes. +abstract class system_info_error_e { + /// < Successful + static const int SYSTEM_INFO_ERROR_NONE = 0; + + /// < Invalid parameter + static const int SYSTEM_INFO_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int SYSTEM_INFO_ERROR_OUT_OF_MEMORY = -12; + + /// < An input/output error occurred when reading value from system + static const int SYSTEM_INFO_ERROR_IO_ERROR = -5; + + /// < No permission to use the API + static const int SYSTEM_INFO_ERROR_PERMISSION_DENIED = -13; + + /// < Not supported parameter (Since 3.0) + static const int SYSTEM_INFO_ERROR_NOT_SUPPORTED = -1073741822; +} + +/// @internal +/// @brief It is not decided if it should be opened to public. +abstract class system_info_type_e { + static const int SYSTEM_INFO_TYPE_MIN = 0; + static const int SYSTEM_INFO_BOOL = 0; + static const int SYSTEM_INFO_INT = 1; + static const int SYSTEM_INFO_DOUBLE = 2; + static const int SYSTEM_INFO_STRING = 3; + static const int SYSTEM_INFO_TYPE_MAX = 4; +} + /// @internal /// @brief Enumeration for system information key. abstract class system_info_key_e { @@ -417,14 +449,3 @@ abstract class system_info_key_e { /// < @internal Indicates whether the device supports tethering static const int SYSTEM_INFO_KEY_TETHERING_SUPPORTED = 14; } - -/// @internal -/// @brief It is not decided if it should be opened to public. -abstract class system_info_type_e { - static const int SYSTEM_INFO_TYPE_MIN = 0; - static const int SYSTEM_INFO_BOOL = 0; - static const int SYSTEM_INFO_INT = 1; - static const int SYSTEM_INFO_DOUBLE = 2; - static const int SYSTEM_INFO_STRING = 3; - static const int SYSTEM_INFO_TYPE_MAX = 4; -} diff --git a/lib/src/bindings/6.5/generated_bindings_mv_barcode_detector.dart b/lib/src/bindings/6.5/generated_bindings_mv_barcode_detector.dart index d38827ef..2fdfd23e 100644 --- a/lib/src/bindings/6.5/generated_bindings_mv_barcode_detector.dart +++ b/lib/src/bindings/6.5/generated_bindings_mv_barcode_detector.dart @@ -81,6 +81,123 @@ class Tizen65MvBarcodeDetector { ffi.Pointer)>(); } +/// @brief Enumeration for supported barcode types. +/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead +abstract class mv_barcode_type_e { + /// < 2D barcode - Quick Response code + static const int MV_BARCODE_QR = 0; + + /// < 1D barcode - Universal Product Code with 12-digit + static const int MV_BARCODE_UPC_A = 1; + + /// < 1D barcode - Universal Product Code with 6-digit + static const int MV_BARCODE_UPC_E = 2; + + /// < 1D barcode - International Article Number with 8-digit + static const int MV_BARCODE_EAN_8 = 3; + + /// < 1D barcode - International Article Number with 13-digit + static const int MV_BARCODE_EAN_13 = 4; + + /// < 1D barcode - Code 128 + static const int MV_BARCODE_CODE128 = 5; + + /// < 1D barcode - Code 39 + static const int MV_BARCODE_CODE39 = 6; + + /// < 1D barcode - Interleaved Two of Five + static const int MV_BARCODE_I2_5 = 7; + + /// < @deprecated Undefined (Deprecated since 6.0) + static const int MV_BARCODE_UNDEFINED = 8; + + /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_2 = 9; + + /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_5 = 10; + + /// < 1D barcode - Code 93 (since 6.0) + static const int MV_BARCODE_CODE93 = 11; + + /// < 1D barcode - CODABAR (since 6.0) + static const int MV_BARCODE_CODABAR = 12; + + /// < 1D barcode - GS1 DATABAR (since 6.0) + static const int MV_BARCODE_DATABAR = 13; + + /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) + static const int MV_BARCODE_DATABAR_EXPAND = 14; + + /// < Unknown (since 6.0) + static const int MV_BARCODE_UNKNOWN = 100; +} + +/// @brief Enumeration for supported QR code error correction level. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_ecc_e { + /// < Recovery up to 7% losses + static const int MV_BARCODE_QR_ECC_LOW = 0; + + /// < Recovery up to 15% losses + static const int MV_BARCODE_QR_ECC_MEDIUM = 1; + + /// < Recovery up to 25% losses + static const int MV_BARCODE_QR_ECC_QUARTILE = 2; + + /// < Recovery up to 30% losses + static const int MV_BARCODE_QR_ECC_HIGH = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_ECC_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported QR code encoding mode. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_mode_e { + /// < Numeric digits + static const int MV_BARCODE_QR_MODE_NUMERIC = 0; + + /// < Alphanumeric characters + static const int MV_BARCODE_QR_MODE_ALPHANUMERIC = 1; + + /// < Raw 8-bit bytes + static const int MV_BARCODE_QR_MODE_BYTE = 2; + + /// < UTF-8 character encoding + static const int MV_BARCODE_QR_MODE_UTF8 = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_MODE_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported image formats for the barcode generating. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +abstract class mv_barcode_image_format_e { + /// < Unavailable image format + static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; + + /// < BMP image format + static const int MV_BARCODE_IMAGE_FORMAT_BMP = 0; + + /// < JPEG image format + static const int MV_BARCODE_IMAGE_FORMAT_JPG = 1; + + /// < PNG image format + static const int MV_BARCODE_IMAGE_FORMAT_PNG = 2; + + /// < The number of supported image format + static const int MV_BARCODE_IMAGE_FORMAT_NUM = 3; +} + /// @brief Enumeration to target attribute /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif @@ -151,61 +268,6 @@ typedef Dartmv_barcode_detected_cbFunction = void Function( int number_of_barcodes, ffi.Pointer user_data); -/// @brief Enumeration for supported barcode types. -/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported -/// -/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead -abstract class mv_barcode_type_e { - /// < 2D barcode - Quick Response code - static const int MV_BARCODE_QR = 0; - - /// < 1D barcode - Universal Product Code with 12-digit - static const int MV_BARCODE_UPC_A = 1; - - /// < 1D barcode - Universal Product Code with 6-digit - static const int MV_BARCODE_UPC_E = 2; - - /// < 1D barcode - International Article Number with 8-digit - static const int MV_BARCODE_EAN_8 = 3; - - /// < 1D barcode - International Article Number with 13-digit - static const int MV_BARCODE_EAN_13 = 4; - - /// < 1D barcode - Code 128 - static const int MV_BARCODE_CODE128 = 5; - - /// < 1D barcode - Code 39 - static const int MV_BARCODE_CODE39 = 6; - - /// < 1D barcode - Interleaved Two of Five - static const int MV_BARCODE_I2_5 = 7; - - /// < @deprecated Undefined (Deprecated since 6.0) - static const int MV_BARCODE_UNDEFINED = 8; - - /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_2 = 9; - - /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_5 = 10; - - /// < 1D barcode - Code 93 (since 6.0) - static const int MV_BARCODE_CODE93 = 11; - - /// < 1D barcode - CODABAR (since 6.0) - static const int MV_BARCODE_CODABAR = 12; - - /// < 1D barcode - GS1 DATABAR (since 6.0) - static const int MV_BARCODE_DATABAR = 13; - - /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) - static const int MV_BARCODE_DATABAR_EXPAND = 14; - - /// < Unknown (since 6.0) - static const int MV_BARCODE_UNKNOWN = 100; -} - const String MV_BARCODE_DETECT_ATTR_TARGET = 'MV_BARCODE_DETECT_ATTR_TARGET'; const String MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES = diff --git a/lib/src/bindings/6.5/generated_bindings_mv_barcode_generator.dart b/lib/src/bindings/6.5/generated_bindings_mv_barcode_generator.dart index 9ac97f7d..b8392edb 100644 --- a/lib/src/bindings/6.5/generated_bindings_mv_barcode_generator.dart +++ b/lib/src/bindings/6.5/generated_bindings_mv_barcode_generator.dart @@ -259,7 +259,7 @@ abstract class _mv_barcode_type_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_mode_e { +abstract class _mv_barcode_qr_mode_e { /// < Numeric digits static const int MV_BARCODE_QR_MODE_NUMERIC = 0; @@ -280,7 +280,7 @@ abstract class mv_barcode_qr_mode_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_ecc_e { +abstract class _mv_barcode_qr_ecc_e { /// < Recovery up to 7% losses static const int MV_BARCODE_QR_ECC_LOW = 0; @@ -300,7 +300,7 @@ abstract class mv_barcode_qr_ecc_e { /// @brief Enumeration for supported image formats for the barcode generating. /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -abstract class mv_barcode_image_format_e { +abstract class _mv_barcode_image_format_e { /// < Unavailable image format static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; diff --git a/lib/src/bindings/6.5/generated_bindings_mv_face.dart b/lib/src/bindings/6.5/generated_bindings_mv_face.dart index 6273c11f..0b1fc63a 100644 --- a/lib/src/bindings/6.5/generated_bindings_mv_face.dart +++ b/lib/src/bindings/6.5/generated_bindings_mv_face.dart @@ -1100,6 +1100,53 @@ class Tizen65MvFace { ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for eyes state type. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_eye_condition_recognize() +abstract class mv_face_eye_condition_e { + /// < Eyes are open + static const int MV_FACE_EYES_OPEN = 0; + + /// < Eyes are closed + static const int MV_FACE_EYES_CLOSED = 1; + + /// < The eyes condition wasn't determined + static const int MV_FACE_EYES_NOT_FOUND = 2; +} + +/// @brief Enumeration for expression types can be determined for faces. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_facial_expression_recognize() +abstract class mv_face_facial_expression_e { + /// < Unknown face expression + static const int MV_FACE_UNKNOWN = 0; + + /// < Face expression is neutral + static const int MV_FACE_NEUTRAL = 1; + + /// < Face expression is smiling + static const int MV_FACE_SMILE = 2; + + /// < Face expression is sadness + static const int MV_FACE_SADNESS = 3; + + /// < Face expression is surprise + static const int MV_FACE_SURPRISE = 4; + + /// < Face expression is anger + static const int MV_FACE_ANGER = 5; + + /// < Face expression is fear + static const int MV_FACE_FEAR = 6; + + /// < Face expression is disgust + static const int MV_FACE_DISGUST = 7; +} + /// @brief Called when faces are detected for the @a source. /// @details This type callback can be invoked each time when /// mv_face_detect() is called to process the results of face @@ -1311,22 +1358,6 @@ typedef Dartmv_face_eye_condition_recognized_cbFunction = void Function( int eye_condition, ffi.Pointer user_data); -/// @brief Enumeration for eyes state type. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_eye_condition_recognize() -abstract class mv_face_eye_condition_e { - /// < Eyes are open - static const int MV_FACE_EYES_OPEN = 0; - - /// < Eyes are closed - static const int MV_FACE_EYES_CLOSED = 1; - - /// < The eyes condition wasn't determined - static const int MV_FACE_EYES_NOT_FOUND = 2; -} - /// @brief Called when facial expression is recognized. /// @details This type callback can be invoked each time when /// mv_face_facial_expression_recognize() is called for @a face_location to @@ -1363,37 +1394,6 @@ typedef Dartmv_face_facial_expression_recognized_cbFunction = void Function( int facial_expression, ffi.Pointer user_data); -/// @brief Enumeration for expression types can be determined for faces. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_facial_expression_recognize() -abstract class mv_face_facial_expression_e { - /// < Unknown face expression - static const int MV_FACE_UNKNOWN = 0; - - /// < Face expression is neutral - static const int MV_FACE_NEUTRAL = 1; - - /// < Face expression is smiling - static const int MV_FACE_SMILE = 2; - - /// < Face expression is sadness - static const int MV_FACE_SADNESS = 3; - - /// < Face expression is surprise - static const int MV_FACE_SURPRISE = 4; - - /// < Face expression is anger - static const int MV_FACE_ANGER = 5; - - /// < Face expression is fear - static const int MV_FACE_FEAR = 6; - - /// < Face expression is disgust - static const int MV_FACE_DISGUST = 7; -} - const String MV_FACE_DETECTION_MODEL_FILE_PATH = 'MV_FACE_DETECTION_MODEL_FILE_PATH'; diff --git a/lib/src/bindings/6.5/generated_bindings_mv_inference.dart b/lib/src/bindings/6.5/generated_bindings_mv_inference.dart index f34b897a..589df635 100644 --- a/lib/src/bindings/6.5/generated_bindings_mv_inference.dart +++ b/lib/src/bindings/6.5/generated_bindings_mv_inference.dart @@ -821,6 +821,179 @@ class Tizen65MvInference { ffi.Pointer)>(); } +/// @brief Enumeration for inference backend. +/// #MV_INFERENCE_BACKEND_OPENCV An open source computer vision and machine learning +/// software library. +/// (https://opencv.org/about/) +/// #MV_INFERENCE_BACKEND_TFLITE Google-introduced open source inference engine for embedded systems, +/// which runs Tensorflow Lite model. +/// (https://www.tensorflow.org/lite/guide/get_started) +/// #MV_INFERENCE_BACKEND_ARMNN ARM-introduced open source inference engine for CPUs, GPUs and NPUs, which +/// enables efficient translation of existing neural network frameworks +/// such as TensorFlow, TensorFlow Lite and Caffes, allowing them to +/// run efficiently without modification on Embedded hardware. +/// (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn) +/// #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which +/// runs various NN models via tensor filters of NNStreamer. +/// (https://github.com/nnstreamer/nnstreamer) +/// #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which +/// performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU. +/// (https://github.com/Samsung/ONE) +/// +/// @since_tizen 5.5 +/// +/// @see mv_inference_prepare() +abstract class mv_inference_backend_type_e { + /// < None + static const int MV_INFERENCE_BACKEND_NONE = -1; + + /// < OpenCV + static const int MV_INFERENCE_BACKEND_OPENCV = 0; + + /// < TensorFlow-Lite + static const int MV_INFERENCE_BACKEND_TFLITE = 1; + + /// < ARMNN (Since 6.0) + static const int MV_INFERENCE_BACKEND_ARMNN = 2; + + /// < ML Single API of NNStreamer (Since 6.0) + static const int MV_INFERENCE_BACKEND_MLAPI = 3; + + /// < On-device Neural Engine (Since 6.0) + static const int MV_INFERENCE_BACKEND_ONE = 4; + + /// < Backend MAX + static const int MV_INFERENCE_BACKEND_MAX = 5; +} + +/// @deprecated Deprecated since 6.0. Use #mv_inference_target_device_e instead. +/// @brief Enumeration for inference target. +/// +/// @since_tizen 5.5 +abstract class mv_inference_target_type_e { + /// < None + static const int MV_INFERENCE_TARGET_NONE = -1; + + /// < CPU + static const int MV_INFERENCE_TARGET_CPU = 0; + + /// < GPU + static const int MV_INFERENCE_TARGET_GPU = 1; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_CUSTOM = 2; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_MAX = 3; +} + +/// @brief Enumeration for inference target. +/// +/// @since_tizen 6.0 +abstract class mv_inference_target_device_e { + /// < None + static const int MV_INFERENCE_TARGET_DEVICE_NONE = 0; + + /// < CPU + static const int MV_INFERENCE_TARGET_DEVICE_CPU = 1; + + /// < GPU + static const int MV_INFERENCE_TARGET_DEVICE_GPU = 2; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_DEVICE_CUSTOM = 4; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_DEVICE_MAX = 8; +} + +/// @brief Enumeration for input data type. +/// +/// @since_tizen 6.0 +abstract class mv_inference_data_type_e { + /// < Data type of a given pre-trained model is float. + static const int MV_INFERENCE_DATA_FLOAT32 = 0; + + /// < Data type of a given pre-trained model is unsigned char. + static const int MV_INFERENCE_DATA_UINT8 = 1; +} + +/// @brief Enumeration for human pose landmark. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_pose_landmark_e { + /// < Head of human pose + static const int MV_INFERENCE_HUMAN_POSE_HEAD = 1; + + /// < Neck of human pose + static const int MV_INFERENCE_HUMAN_POSE_NECK = 2; + + /// < Thorax of human pose + static const int MV_INFERENCE_HUMAN_POSE_THORAX = 3; + + /// < Right shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_SHOULDER = 4; + + /// < Right elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ELBOW = 5; + + /// < Right wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_WRIST = 6; + + /// < Left shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_SHOULDER = 7; + + /// < Left elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ELBOW = 8; + + /// < Left wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_WRIST = 9; + + /// < Pelvis of human pose + static const int MV_INFERENCE_HUMAN_POSE_PELVIS = 10; + + /// < Right hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_HIP = 11; + + /// < Right knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_KNEE = 12; + + /// < Right ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ANKLE = 13; + + /// < Left hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_HIP = 14; + + /// < Left knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_KNEE = 15; + + /// < Left ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ANKLE = 16; +} + +/// @brief Enumeration for human body parts. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_body_part_e { + /// < HEAD, NECK, and THORAX + static const int MV_INFERENCE_HUMAN_BODY_PART_HEAD = 1; + + /// < RIGHT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_RIGHT = 2; + + /// < LEFT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_LEFT = 4; + + /// < THORAX, PELVIS, RIGHT HIP, and LEFT HIP + static const int MV_INFERENCE_HUMAN_BODY_PART_BODY = 8; + + /// < RIGHT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_RIGHT = 16; + + /// < LEFT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_LEFT = 32; +} + /// @brief The inference handle. /// @details Contains information about location of /// detected landmarks for one or more poses. diff --git a/lib/src/bindings/6.5/generated_bindings_tbm.dart b/lib/src/bindings/6.5/generated_bindings_tbm.dart index 2c756d01..8d0a656c 100644 --- a/lib/src/bindings/6.5/generated_bindings_tbm.dart +++ b/lib/src/bindings/6.5/generated_bindings_tbm.dart @@ -449,6 +449,8 @@ class Tizen65Tbm { _tbm_surface_get_formatPtr.asFunction(); } +final class _tbm_surface extends ffi.Opaque {} + /// @brief Enumeration for tbm_surface error type. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif abstract class tbm_surface_error_e { @@ -544,12 +546,128 @@ typedef tbm_surface_plane_s = _tbm_surface_plane; /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_h = ffi.Pointer<_tbm_surface>; -final class _tbm_surface extends ffi.Opaque {} - /// @brief Definition for the TBM surface information struct. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_info_s = _tbm_surface_info; +const int TBM_FORMAT_C8 = 538982467; + +const int TBM_FORMAT_RGB332 = 943867730; + +const int TBM_FORMAT_BGR233 = 944916290; + +const int TBM_FORMAT_XRGB4444 = 842093144; + +const int TBM_FORMAT_XBGR4444 = 842089048; + +const int TBM_FORMAT_RGBX4444 = 842094674; + +const int TBM_FORMAT_BGRX4444 = 842094658; + +const int TBM_FORMAT_ARGB4444 = 842093121; + +const int TBM_FORMAT_ABGR4444 = 842089025; + +const int TBM_FORMAT_RGBA4444 = 842088786; + +const int TBM_FORMAT_BGRA4444 = 842088770; + +const int TBM_FORMAT_XRGB1555 = 892424792; + +const int TBM_FORMAT_XBGR1555 = 892420696; + +const int TBM_FORMAT_RGBX5551 = 892426322; + +const int TBM_FORMAT_BGRX5551 = 892426306; + +const int TBM_FORMAT_ARGB1555 = 892424769; + +const int TBM_FORMAT_ABGR1555 = 892420673; + +const int TBM_FORMAT_RGBA5551 = 892420434; + +const int TBM_FORMAT_BGRA5551 = 892420418; + +const int TBM_FORMAT_RGB565 = 909199186; + +const int TBM_FORMAT_BGR565 = 909199170; + +const int TBM_FORMAT_RGB888 = 875710290; + +const int TBM_FORMAT_BGR888 = 875710274; + +const int TBM_FORMAT_XRGB8888 = 875713112; + +const int TBM_FORMAT_XBGR8888 = 875709016; + +const int TBM_FORMAT_RGBX8888 = 875714642; + +const int TBM_FORMAT_BGRX8888 = 875714626; + +const int TBM_FORMAT_ARGB8888 = 875713089; + +const int TBM_FORMAT_ABGR8888 = 875708993; + +const int TBM_FORMAT_RGBA8888 = 875708754; + +const int TBM_FORMAT_BGRA8888 = 875708738; + +const int TBM_FORMAT_XRGB2101010 = 808669784; + +const int TBM_FORMAT_XBGR2101010 = 808665688; + +const int TBM_FORMAT_RGBX1010102 = 808671314; + +const int TBM_FORMAT_BGRX1010102 = 808671298; + +const int TBM_FORMAT_ARGB2101010 = 808669761; + +const int TBM_FORMAT_ABGR2101010 = 808665665; + +const int TBM_FORMAT_RGBA1010102 = 808665426; + +const int TBM_FORMAT_BGRA1010102 = 808665410; + +const int TBM_FORMAT_YUYV = 1448695129; + +const int TBM_FORMAT_YVYU = 1431918169; + +const int TBM_FORMAT_UYVY = 1498831189; + +const int TBM_FORMAT_VYUY = 1498765654; + +const int TBM_FORMAT_AYUV = 1448433985; + +const int TBM_FORMAT_NV12 = 842094158; + +const int TBM_FORMAT_NV21 = 825382478; + +const int TBM_FORMAT_NV16 = 909203022; + +const int TBM_FORMAT_NV61 = 825644622; + +const int TBM_FORMAT_YUV410 = 961959257; + +const int TBM_FORMAT_YVU410 = 961893977; + +const int TBM_FORMAT_YUV411 = 825316697; + +const int TBM_FORMAT_YVU411 = 825316953; + +const int TBM_FORMAT_YUV420 = 842093913; + +const int TBM_FORMAT_YVU420 = 842094169; + +const int TBM_FORMAT_YUV422 = 909202777; + +const int TBM_FORMAT_YVU422 = 909203033; + +const int TBM_FORMAT_YUV444 = 875713881; + +const int TBM_FORMAT_YVU444 = 875714137; + +const int TBM_FORMAT_NV12MT = 842091860; + const int TBM_SURF_PLANE_MAX = 4; const int TBM_SURF_OPTION_READ = 1; diff --git a/lib/src/bindings/7.0/generated_bindings_capi_base_common.dart b/lib/src/bindings/7.0/generated_bindings_capi_base_common.dart index d65306c3..72b9b091 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_base_common.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_base_common.dart @@ -386,6 +386,8 @@ abstract class tizen_error_e { static const int TIZEN_ERROR_END_OF_COLLECTION = -1073741819; } +const int NULL = 0; + const int TIZEN_ERROR_MAX_PLATFORM_ERROR = 0; const int TIZEN_ERROR_MIN_PLATFORM_ERROR = -1073741824; diff --git a/lib/src/bindings/7.0/generated_bindings_capi_geofence_manager.dart b/lib/src/bindings/7.0/generated_bindings_capi_geofence_manager.dart index 67d9a97a..5a7a013d 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_geofence_manager.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_geofence_manager.dart @@ -1223,71 +1223,6 @@ class Tizen70CapiGeofenceManager { .asFunction)>(); } -/// @brief The geofence manager handle. -/// @since_tizen 2.4 -typedef geofence_manager_h = ffi.Pointer; - -final class geofence_manager_s extends ffi.Opaque {} - -/// @brief The geofence handle. -/// @since_tizen 2.4 -typedef geofence_h = ffi.Pointer; - -final class geofence_s extends ffi.Opaque {} - -/// @brief Called when a device enters or exits the given geofence. -/// @since_tizen 2.4 -/// @param[in] geofence_id The specified geofence ID -/// @param[in] state The geofence state -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). -/// @see geofence_state_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_state_changed_cb() -typedef geofence_state_changed_cb - = ffi.Pointer>; -typedef geofence_state_changed_cbFunction = ffi.Void Function( - ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartgeofence_state_changed_cbFunction = void Function( - int geofence_id, int state, ffi.Pointer user_data); - -/// @brief Enumeration for the state of geofence manager. -/// @since_tizen 2.4 -abstract class geofence_state_e { - /// < Uncertain state of geofence - static const int GEOFENCE_STATE_UNCERTAIN = 0; - - /// < Geofence In state - static const int GEOFENCE_STATE_IN = 1; - - /// < Geofence Out state - static const int GEOFENCE_STATE_OUT = 2; -} - -/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. -/// @details The events of public geofence is also received if there are public geofences. -/// @since_tizen 2.4 -/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. -/// @param[in] place_id The place ID -/// @param[in] geofence_id The specified geofence ID -/// @param[in] error The error code for the particular action -/// @param[in] manage The result code for the particular place and geofence management -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() -/// @see geofence_manage_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_event_cb() -typedef geofence_event_cb - = ffi.Pointer>; -typedef geofence_event_cbFunction = ffi.Void Function( - ffi.Int place_id, - ffi.Int geofence_id, - ffi.Int32 error, - ffi.Int32 manage, - ffi.Pointer user_data); -typedef Dartgeofence_event_cbFunction = void Function(int place_id, - int geofence_id, int error, int manage, ffi.Pointer user_data); - /// @brief Enumeration for Geofence manager of error code. /// @since_tizen 2.4 abstract class geofence_manager_error_e { @@ -1334,6 +1269,67 @@ abstract class geofence_manager_error_e { static const int GEOFENCE_MANAGER_ERROR_GEOFENCE_ACCESS_DENIED = -46202871; } +/// @brief Enumeration for the state of geofence manager. +/// @since_tizen 2.4 +abstract class geofence_state_e { + /// < Uncertain state of geofence + static const int GEOFENCE_STATE_UNCERTAIN = 0; + + /// < Geofence In state + static const int GEOFENCE_STATE_IN = 1; + + /// < Geofence Out state + static const int GEOFENCE_STATE_OUT = 2; +} + +/// @brief Enumeration for the state of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_state_e { + /// < Uncertain state of proximity + static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; + + /// < Far state of proximity + static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; + + /// < Near state of proximity + static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; + + /// < Immediate state of proximity + static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; +} + +/// @brief Enumeration for the provider of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_provider_e { + /// < Proximity is specified by geospatial coordinate + static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; + + /// < Proximity is specified by Wi-Fi access point + static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; + + /// < Proximity is specified by Bluetooth device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; + + /// < Proximity is specified by Bluetooth low energy device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; + + /// < Proximity is specified by Sensor + static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; +} + +/// @brief Enumeration for geofence type. +/// @since_tizen 2.4 +abstract class geofence_type_e { + /// < Geofence is specified by geospatial coordinate + static const int GEOFENCE_TYPE_GEOPOINT = 1; + + /// < Geofence is specified by Wi-Fi access point + static const int GEOFENCE_TYPE_WIFI = 2; + + /// < Geofence is specified by Bluetooth device + static const int GEOFENCE_TYPE_BT = 3; +} + /// @brief Enumeration for geofence management events. /// @since_tizen 2.4 abstract class geofence_manage_e { @@ -1365,6 +1361,60 @@ abstract class geofence_manage_e { static const int GEOFENCE_MANAGE_SETTING_DISABLED = 33; } +final class geofence_manager_s extends ffi.Opaque {} + +final class geofence_s extends ffi.Opaque {} + +final class geofence_status_s extends ffi.Opaque {} + +/// @brief The geofence manager handle. +/// @since_tizen 2.4 +typedef geofence_manager_h = ffi.Pointer; + +/// @brief The geofence handle. +/// @since_tizen 2.4 +typedef geofence_h = ffi.Pointer; + +/// @brief Called when a device enters or exits the given geofence. +/// @since_tizen 2.4 +/// @param[in] geofence_id The specified geofence ID +/// @param[in] state The geofence state +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). +/// @see geofence_state_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_state_changed_cb() +typedef geofence_state_changed_cb + = ffi.Pointer>; +typedef geofence_state_changed_cbFunction = ffi.Void Function( + ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartgeofence_state_changed_cbFunction = void Function( + int geofence_id, int state, ffi.Pointer user_data); + +/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. +/// @details The events of public geofence is also received if there are public geofences. +/// @since_tizen 2.4 +/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. +/// @param[in] place_id The place ID +/// @param[in] geofence_id The specified geofence ID +/// @param[in] error The error code for the particular action +/// @param[in] manage The result code for the particular place and geofence management +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() +/// @see geofence_manage_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_event_cb() +typedef geofence_event_cb + = ffi.Pointer>; +typedef geofence_event_cbFunction = ffi.Void Function( + ffi.Int place_id, + ffi.Int geofence_id, + ffi.Int32 error, + ffi.Int32 manage, + ffi.Pointer user_data); +typedef Dartgeofence_event_cbFunction = void Function(int place_id, + int geofence_id, int error, int manage, ffi.Pointer user_data); + /// @brief Called when a proximity state of device is changed. /// @since_tizen 3.0 /// @param[in] geofence_id The specified geofence ID @@ -1386,41 +1436,6 @@ typedef geofence_proximity_state_changed_cbFunction = ffi.Void Function( typedef Dartgeofence_proximity_state_changed_cbFunction = void Function( int geofence_id, int state, int provider, ffi.Pointer user_data); -/// @brief Enumeration for the state of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_state_e { - /// < Uncertain state of proximity - static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; - - /// < Far state of proximity - static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; - - /// < Near state of proximity - static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; - - /// < Immediate state of proximity - static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; -} - -/// @brief Enumeration for the provider of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_provider_e { - /// < Proximity is specified by geospatial coordinate - static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; - - /// < Proximity is specified by Wi-Fi access point - static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; - - /// < Proximity is specified by Bluetooth device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; - - /// < Proximity is specified by Bluetooth low energy device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; - - /// < Proximity is specified by Sensor - static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; -} - /// @brief Called when the fence list is requested. /// @since_tizen 2.4 /// @param[in] geofence_id The geofence ID @@ -1476,21 +1491,6 @@ typedef Dartgeofence_manager_place_cbFunction = bool Function( int place_cnt, ffi.Pointer user_data); -/// @brief Enumeration for geofence type. -/// @since_tizen 2.4 -abstract class geofence_type_e { - /// < Geofence is specified by geospatial coordinate - static const int GEOFENCE_TYPE_GEOPOINT = 1; - - /// < Geofence is specified by Wi-Fi access point - static const int GEOFENCE_TYPE_WIFI = 2; - - /// < Geofence is specified by Bluetooth device - static const int GEOFENCE_TYPE_BT = 3; -} - /// @brief The geofence status handle. /// @since_tizen 2.4 typedef geofence_status_h = ffi.Pointer; - -final class geofence_status_s extends ffi.Opaque {} diff --git a/lib/src/bindings/7.0/generated_bindings_capi_media_controller.dart b/lib/src/bindings/7.0/generated_bindings_capi_media_controller.dart index 82a31527..61f28ed4 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_media_controller.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_media_controller.dart @@ -6781,72 +6781,44 @@ class Tizen70CapiMediaController { .asFunction)>(); } -/// @brief The structure type for the media controller playlist handle. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -typedef mc_playlist_h = ffi.Pointer; +/// @brief Enumeration for the media controller error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_error_e { + /// < Successful + static const int MEDIA_CONTROLLER_ERROR_NONE = 0; -/// @brief Called for every playlist item in the playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a index and @a metadata should not be released by the application. \n -/// The @a index can be used only in the callback. To use outside, make a copy. -/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] index The ID of the playlist member. -/// @param[in] metadata The handle to metadata of the playlist item. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_item() will invoke this function. -/// -/// @see mc_playlist_foreach_item() -/// @see mc_metadata_clone() -/// @see mc_metadata_get() -typedef mc_playlist_item_cb - = ffi.Pointer>; -typedef mc_playlist_item_cbFunction = ffi.Bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); -typedef Dartmc_playlist_item_cbFunction = bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); + /// < Invalid parameter + static const int MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER = -22; -/// @brief The structure type for the media controller metadata handle. + /// < Out of memory + static const int MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int MEDIA_CONTROLLER_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED = -13; + + /// < Limited by server application (since 5.5) + static const int MEDIA_CONTROLLER_ERROR_ABILITY_LIMITED_BY_SERVER_APP = + -50462719; +} + +/// @brief Enumeration for the media controller server state. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef mc_metadata_h = ffi.Pointer; +abstract class mc_server_state_e { + /// < None state + static const int MC_SERVER_STATE_NONE = 0; -/// @brief Called for every playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a playlist should not be released by the application. \n -/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] playlist The handle of the media controller playlist. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_playlist() will invoke this function. -/// -/// @see mc_playlist_clone() -/// @see mc_playlist_foreach_playlist() -/// @see mc_playlist_get_name() -/// @see mc_playlist_foreach_item() -typedef mc_playlist_cb - = ffi.Pointer>; -typedef mc_playlist_cbFunction = ffi.Bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); -typedef Dartmc_playlist_cbFunction = bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); + /// < Activate state + static const int MC_SERVER_STATE_ACTIVATE = 1; + + /// < Deactivate state + static const int MC_SERVER_STATE_DEACTIVATE = 2; +} /// @brief Enumeration for the media meta info. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif @@ -6894,9 +6866,42 @@ abstract class mc_meta_e { static const int MC_META_MEDIA_RESOLUTION = 13; } -/// @brief The structure type for the media controller ability handle. -/// @since_tizen 5.0 -typedef mc_playback_ability_h = ffi.Pointer; +/// @brief Enumeration for the media playback state. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_playback_states_e { + /// < None + static const int MC_PLAYBACK_STATE_NONE = 0; + + /// < Playing + static const int MC_PLAYBACK_STATE_PLAYING = 1; + + /// < Paused + static const int MC_PLAYBACK_STATE_PAUSED = 2; + + /// < Stopped + static const int MC_PLAYBACK_STATE_STOPPED = 3; + + /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; + + /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; + + /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; + + /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_REWINDING = 11; + + /// < Connecting (Since 6.0) + static const int MC_PLAYBACK_STATE_CONNECTING = 12; + + /// < Buffering (Since 6.0) + static const int MC_PLAYBACK_STATE_BUFFERING = 13; + + /// < Error (Since 6.0) + static const int MC_PLAYBACK_STATE_ERROR = 14; +} /// @brief Enumeration for the media playback action. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif @@ -6926,22 +6931,78 @@ abstract class mc_playback_action_e { static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; } -/// @brief Enumeration for the support of the ability. -/// @since_tizen 5.0 -abstract class mc_ability_support_e { - /// < Supported - static const int MC_ABILITY_SUPPORTED_YES = 0; +/// @brief Enumeration for the shuffle mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_shuffle_mode_e { + /// < Shuffle mode on + static const int MC_SHUFFLE_MODE_ON = 0; - /// < Not supported - static const int MC_ABILITY_SUPPORTED_NO = 1; + /// < Shuffle mode off + static const int MC_SHUFFLE_MODE_OFF = 1; +} - /// < Not decided - static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +/// @brief Enumeration for the repeat mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_repeat_mode_e { + /// < Repeat mode on for all media + static const int MC_REPEAT_MODE_ON = 0; + + /// < Repeat mode off + static const int MC_REPEAT_MODE_OFF = 1; + + /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_REPEAT_MODE_ONE_MEDIA = 2; } -/// @brief The structure type for the media controller search handle. -/// @since_tizen 5.0 -typedef mc_search_h = ffi.Pointer; +/// @brief Enumeration for the subscription type. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_subscription_type_e { + /// < Server state + static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; + + /// < Playback + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; + + /// < Metadata + static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; + + /// < Shuffle mode + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; + + /// < Repeat mode + static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; + + /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; + + /// < Playback ability (Since 5.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; + + /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; + + /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; + + /// < Ability support (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; + + /// < Display mode ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; + + /// < Display rotation ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; +} + +/// @brief Enumeration for the playlist update mode. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +abstract class mc_playlist_update_mode_e { + /// < Create or Update playlist + static const int MC_PLAYLIST_UPDATED = 0; + + /// < Remove playlist + static const int MC_PLAYLIST_REMOVED = 1; +} /// @brief Enumeration for the content type of the content. /// @since_tizen 5.0 @@ -6962,6 +7023,111 @@ abstract class mc_content_type_e { static const int MC_CONTENT_TYPE_UNDECIDED = 4; } +/// @brief Enumeration for the content age rating of the content. +/// @since_tizen 5.0 +abstract class mc_content_age_rating_e { + /// < Suitable for all ages + static const int MC_CONTENT_RATING_ALL = 0; + + /// < Suitable for ages 1 and up + static const int MC_CONTENT_RATING_1_PLUS = 1; + + /// < Suitable for ages 2 and up + static const int MC_CONTENT_RATING_2_PLUS = 2; + + /// < Suitable for ages 3 and up + static const int MC_CONTENT_RATING_3_PLUS = 3; + + /// < Suitable for ages 4 and up + static const int MC_CONTENT_RATING_4_PLUS = 4; + + /// < Suitable for ages 5 and up + static const int MC_CONTENT_RATING_5_PLUS = 5; + + /// < Suitable for ages 6 and up + static const int MC_CONTENT_RATING_6_PLUS = 6; + + /// < Suitable for ages 7 and up + static const int MC_CONTENT_RATING_7_PLUS = 7; + + /// < Suitable for ages 8 and up + static const int MC_CONTENT_RATING_8_PLUS = 8; + + /// < Suitable for ages 9 and up + static const int MC_CONTENT_RATING_9_PLUS = 9; + + /// < Suitable for ages 10 and up + static const int MC_CONTENT_RATING_10_PLUS = 10; + + /// < Suitable for ages 11 and up + static const int MC_CONTENT_RATING_11_PLUS = 11; + + /// < Suitable for ages 12 and up + static const int MC_CONTENT_RATING_12_PLUS = 12; + + /// < Suitable for ages 13 and up + static const int MC_CONTENT_RATING_13_PLUS = 13; + + /// < Suitable for ages 14 and up + static const int MC_CONTENT_RATING_14_PLUS = 14; + + /// < Suitable for ages 15 and up + static const int MC_CONTENT_RATING_15_PLUS = 15; + + /// < Suitable for ages 16 and up + static const int MC_CONTENT_RATING_16_PLUS = 16; + + /// < Suitable for ages 17 and up + static const int MC_CONTENT_RATING_17_PLUS = 17; + + /// < Suitable for ages 18 and up + static const int MC_CONTENT_RATING_18_PLUS = 18; + + /// < Suitable for ages 19 and up + static const int MC_CONTENT_RATING_19_PLUS = 19; +} + +/// @brief Enumeration for the support of the ability. +/// @since_tizen 5.0 +abstract class mc_ability_support_e { + /// < Supported + static const int MC_ABILITY_SUPPORTED_YES = 0; + + /// < Not supported + static const int MC_ABILITY_SUPPORTED_NO = 1; + + /// < Not decided + static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +} + +/// @brief Enumeration for the ability. +/// @since_tizen 5.5 +abstract class mc_ability_e { + /// < Shuffle + static const int MC_ABILITY_SHUFFLE = 0; + + /// < Repeat + static const int MC_ABILITY_REPEAT = 1; + + /// < Playback Position + static const int MC_ABILITY_PLAYBACK_POSITION = 2; + + /// < Playlist + static const int MC_ABILITY_PLAYLIST = 3; + + /// < Custom command from a client + static const int MC_ABILITY_CLIENT_CUSTOM = 4; + + /// < Search + static const int MC_ABILITY_SEARCH = 5; + + /// < Subtitles display + static const int MC_ABILITY_SUBTITLES = 6; + + /// < 360 content mode display + static const int MC_ABILITY_360_MODE = 7; +} + /// @brief Enumeration for the search category. /// @since_tizen 5.0 abstract class mc_search_category_e { @@ -6980,9 +7146,170 @@ abstract class mc_search_category_e { /// < Search by content genre static const int MC_SEARCH_GENRE = 4; - /// < Search by Time Place Occasion - static const int MC_SEARCH_TPO = 5; -} + /// < Search by Time Place Occasion + static const int MC_SEARCH_TPO = 5; +} + +/// @brief Enumeration for the display mode. +/// @since_tizen 5.5 +abstract class mc_display_mode_e { + /// < Letter box + static const int MC_DISPLAY_MODE_LETTER_BOX = 1; + + /// < Origin size + static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; + + /// < Full-screen + static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; + + /// < Cropped full-screen + static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; +} + +/// @brief Enumeration for the display rotation. +/// @since_tizen 5.5 +abstract class mc_display_rotation_e { + /// < Display is not rotated + static const int MC_DISPLAY_ROTATION_NONE = 1; + + /// < Display is rotated 90 degrees + static const int MC_DISPLAY_ROTATION_90 = 2; + + /// < Display is rotated 180 degrees + static const int MC_DISPLAY_ROTATION_180 = 4; + + /// < Display is rotated 270 degrees + static const int MC_DISPLAY_ROTATION_270 = 8; +} + +/// @brief The result codes of the reply for the command or the event. +/// @since_tizen 6.0 +/// +/// @see mc_cmd_reply_received_cb() +/// @see mc_client_send_event_reply() +/// @see mc_server_event_reply_received_cb() +/// @see mc_server_send_cmd_reply() +abstract class mc_result_code_e { + /// < The command or the event has been successfully completed. + static const int MC_RESULT_CODE_SUCCESS = 0; + + /// < The command or the event had already been completed. + static const int MC_RESULT_CODE_ALREADY_DONE = 200; + + /// < The command or the event is aborted by some external event (e.g. aborted play command by incoming call). + static const int MC_RESULT_CODE_ABORTED = 300; + + /// < The command or the event is denied due to application policy (e.g. cannot rewind in recording). + static const int MC_RESULT_CODE_DENIED = 301; + + /// < The command or the event is not supported. + static const int MC_RESULT_CODE_NOT_SUPPORTED = 302; + + /// < The command or the event is out of supported range or the limit is reached. + static const int MC_RESULT_CODE_INVALID = 303; + + /// < Timeout has occurred. + static const int MC_RESULT_CODE_TIMEOUT = 400; + + /// < The application has failed. + static const int MC_RESULT_CODE_APP_FAILED = 401; + + /// < The command or the event has failed because the application has no media. + static const int MC_RESULT_CODE_NO_MEDIA = 402; + + /// < The command or the event has failed because there is no audio output device. + static const int MC_RESULT_CODE_NO_AUDIO_OUTPUT_DEVICE = 403; + + /// < The command or the event has failed because there is no peer. + static const int MC_RESULT_CODE_NO_PEER = 404; + + /// < The network has failed. + static const int MC_RESULT_CODE_NETWORK_FAILED = 500; + + /// < The application needs to have an account to which it's logged in. + static const int MC_RESULT_CODE_NO_ACCOUNT = 600; + + /// < The application could not log in. + static const int MC_RESULT_CODE_LOGIN_FAILED = 601; + + /// < Unknown error. + static const int MC_RESULT_CODE_UNKNOWN = 2147483647; +} + +/// @brief The structure type for the media controller playlist handle. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +typedef mc_playlist_h = ffi.Pointer; + +/// @brief Called for every playlist item in the playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a index and @a metadata should not be released by the application. \n +/// The @a index can be used only in the callback. To use outside, make a copy. +/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] index The ID of the playlist member. +/// @param[in] metadata The handle to metadata of the playlist item. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_item() will invoke this function. +/// +/// @see mc_playlist_foreach_item() +/// @see mc_metadata_clone() +/// @see mc_metadata_get() +typedef mc_playlist_item_cb + = ffi.Pointer>; +typedef mc_playlist_item_cbFunction = ffi.Bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); +typedef Dartmc_playlist_item_cbFunction = bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); + +/// @brief The structure type for the media controller metadata handle. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef mc_metadata_h = ffi.Pointer; + +/// @brief Called for every playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a playlist should not be released by the application. \n +/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] playlist The handle of the media controller playlist. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_playlist() will invoke this function. +/// +/// @see mc_playlist_clone() +/// @see mc_playlist_foreach_playlist() +/// @see mc_playlist_get_name() +/// @see mc_playlist_foreach_item() +typedef mc_playlist_cb + = ffi.Pointer>; +typedef mc_playlist_cbFunction = ffi.Bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); +typedef Dartmc_playlist_cbFunction = bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); + +/// @brief The structure type for the media controller ability handle. +/// @since_tizen 5.0 +typedef mc_playback_ability_h = ffi.Pointer; + +/// @brief The structure type for the media controller search handle. +/// @since_tizen 5.0 +typedef mc_search_h = ffi.Pointer; /// @brief Called for every search condition information in the obtained list of search. /// @details Iterates over a search list. @@ -7048,19 +7375,6 @@ typedef Dartmc_server_state_updated_cbFunction = void Function( int state, ffi.Pointer user_data); -/// @brief Enumeration for the media controller server state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_server_state_e { - /// < None state - static const int MC_SERVER_STATE_NONE = 0; - - /// < Activate state - static const int MC_SERVER_STATE_ACTIVATE = 1; - - /// < Deactivate state - static const int MC_SERVER_STATE_DEACTIVATE = 2; -} - /// @brief Called when the playback information of the media controller server is updated. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7146,16 +7460,6 @@ typedef Dartmc_shuffle_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the shuffle mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_shuffle_mode_e { - /// < Shuffle mode on - static const int MC_SHUFFLE_MODE_ON = 0; - - /// < Shuffle mode off - static const int MC_SHUFFLE_MODE_OFF = 1; -} - /// @brief Called when the repeat mode of the media controller server is updated. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7181,19 +7485,6 @@ typedef Dartmc_repeat_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the repeat mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_repeat_mode_e { - /// < Repeat mode on for all media - static const int MC_REPEAT_MODE_ON = 0; - - /// < Repeat mode off - static const int MC_REPEAT_MODE_OFF = 1; - - /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_REPEAT_MODE_ONE_MEDIA = 2; -} - /// @brief Called when the playback ability support of the media controller server is updated. /// @since_tizen 5.0 /// @@ -7299,34 +7590,6 @@ typedef Dartmc_ability_support_updated_cbFunction = void Function( int support, ffi.Pointer user_data); -/// @brief Enumeration for the ability. -/// @since_tizen 5.5 -abstract class mc_ability_e { - /// < Shuffle - static const int MC_ABILITY_SHUFFLE = 0; - - /// < Repeat - static const int MC_ABILITY_REPEAT = 1; - - /// < Playback Position - static const int MC_ABILITY_PLAYBACK_POSITION = 2; - - /// < Playlist - static const int MC_ABILITY_PLAYLIST = 3; - - /// < Custom command from a client - static const int MC_ABILITY_CLIENT_CUSTOM = 4; - - /// < Search - static const int MC_ABILITY_SEARCH = 5; - - /// < Subtitles display - static const int MC_ABILITY_SUBTITLES = 6; - - /// < 360 content mode display - static const int MC_ABILITY_360_MODE = 7; -} - /// @brief Called when a media controller server's supported items for an ability is updated. /// @since_tizen 5.5 /// @@ -7416,16 +7679,6 @@ typedef Dartmc_playlist_updated_cbFunction = void Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the playlist update mode. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -abstract class mc_playlist_update_mode_e { - /// < Create or Update playlist - static const int MC_PLAYLIST_UPDATED = 0; - - /// < Remove playlist - static const int MC_PLAYLIST_REMOVED = 1; -} - /// @brief Called when the status of a media controller server's boolean attribute (subtitles or 360 mode) is updated. /// @since_tizen 5.5 /// @@ -7473,22 +7726,6 @@ typedef Dartmc_display_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the display mode. -/// @since_tizen 5.5 -abstract class mc_display_mode_e { - /// < Letter box - static const int MC_DISPLAY_MODE_LETTER_BOX = 1; - - /// < Origin size - static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; - - /// < Full-screen - static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; - - /// < Cropped full-screen - static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; -} - /// @brief Called when a media controller server's display rotation is updated. /// @since_tizen 5.5 /// @@ -7512,22 +7749,6 @@ typedef Dartmc_display_rotation_updated_cbFunction = void Function( int rotation, ffi.Pointer user_data); -/// @brief Enumeration for the display rotation. -/// @since_tizen 5.5 -abstract class mc_display_rotation_e { - /// < Display is not rotated - static const int MC_DISPLAY_ROTATION_NONE = 1; - - /// < Display is rotated 90 degrees - static const int MC_DISPLAY_ROTATION_90 = 2; - - /// < Display is rotated 180 degrees - static const int MC_DISPLAY_ROTATION_180 = 4; - - /// < Display is rotated 270 degrees - static const int MC_DISPLAY_ROTATION_270 = 8; -} - /// @brief Called when receiving custom event of media controller servers. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7563,46 +7784,6 @@ typedef Dartmc_client_custom_event_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @brief Enumeration for the subscription type. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_subscription_type_e { - /// < Server state - static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; - - /// < Playback - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; - - /// < Metadata - static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; - - /// < Shuffle mode - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; - - /// < Repeat mode - static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; - - /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; - - /// < Playback ability (Since 5.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; - - /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; - - /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; - - /// < Ability support (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; - - /// < Display mode ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; - - /// < Display rotation ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; -} - /// @brief Called when requesting the list of subscribed servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7626,107 +7807,6 @@ typedef mc_subscribed_server_cbFunction = ffi.Bool Function( typedef Dartmc_subscribed_server_cbFunction = bool Function( ffi.Pointer server_name, ffi.Pointer user_data); -/// @brief Enumeration for the media playback state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_playback_states_e { - /// < None - static const int MC_PLAYBACK_STATE_NONE = 0; - - /// < Playing - static const int MC_PLAYBACK_STATE_PLAYING = 1; - - /// < Paused - static const int MC_PLAYBACK_STATE_PAUSED = 2; - - /// < Stopped - static const int MC_PLAYBACK_STATE_STOPPED = 3; - - /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; - - /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; - - /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; - - /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_REWINDING = 11; - - /// < Connecting (Since 6.0) - static const int MC_PLAYBACK_STATE_CONNECTING = 12; - - /// < Buffering (Since 6.0) - static const int MC_PLAYBACK_STATE_BUFFERING = 13; - - /// < Error (Since 6.0) - static const int MC_PLAYBACK_STATE_ERROR = 14; -} - -/// @brief Enumeration for the content age rating of the content. -/// @since_tizen 5.0 -abstract class mc_content_age_rating_e { - /// < Suitable for all ages - static const int MC_CONTENT_RATING_ALL = 0; - - /// < Suitable for ages 1 and up - static const int MC_CONTENT_RATING_1_PLUS = 1; - - /// < Suitable for ages 2 and up - static const int MC_CONTENT_RATING_2_PLUS = 2; - - /// < Suitable for ages 3 and up - static const int MC_CONTENT_RATING_3_PLUS = 3; - - /// < Suitable for ages 4 and up - static const int MC_CONTENT_RATING_4_PLUS = 4; - - /// < Suitable for ages 5 and up - static const int MC_CONTENT_RATING_5_PLUS = 5; - - /// < Suitable for ages 6 and up - static const int MC_CONTENT_RATING_6_PLUS = 6; - - /// < Suitable for ages 7 and up - static const int MC_CONTENT_RATING_7_PLUS = 7; - - /// < Suitable for ages 8 and up - static const int MC_CONTENT_RATING_8_PLUS = 8; - - /// < Suitable for ages 9 and up - static const int MC_CONTENT_RATING_9_PLUS = 9; - - /// < Suitable for ages 10 and up - static const int MC_CONTENT_RATING_10_PLUS = 10; - - /// < Suitable for ages 11 and up - static const int MC_CONTENT_RATING_11_PLUS = 11; - - /// < Suitable for ages 12 and up - static const int MC_CONTENT_RATING_12_PLUS = 12; - - /// < Suitable for ages 13 and up - static const int MC_CONTENT_RATING_13_PLUS = 13; - - /// < Suitable for ages 14 and up - static const int MC_CONTENT_RATING_14_PLUS = 14; - - /// < Suitable for ages 15 and up - static const int MC_CONTENT_RATING_15_PLUS = 15; - - /// < Suitable for ages 16 and up - static const int MC_CONTENT_RATING_16_PLUS = 16; - - /// < Suitable for ages 17 and up - static const int MC_CONTENT_RATING_17_PLUS = 17; - - /// < Suitable for ages 18 and up - static const int MC_CONTENT_RATING_18_PLUS = 18; - - /// < Suitable for ages 19 and up - static const int MC_CONTENT_RATING_19_PLUS = 19; -} - /// @brief Called when requesting the list of created servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -8131,3 +8211,5 @@ typedef Dartmc_server_search_cmd_received_cbFunction = void Function( ffi.Pointer request_id, mc_search_h search, ffi.Pointer user_data); + +const int MEDIA_CONTROLLER_ERROR_CLASS = -50462720; diff --git a/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_editor.dart b/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_editor.dart index 2c01ea95..2cf31aac 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_editor.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_editor.dart @@ -368,9 +368,34 @@ class Tizen70CapiMediaMetadataEditor { } /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE -/// @brief The handle of media metadata. +/// @brief The enumerations of media metadata error. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef metadata_editor_h = ffi.Pointer; +abstract class metadata_editor_error_e { + /// < Successful + static const int METADATA_EDITOR_ERROR_NONE = 0; + + /// < Invalid parameter + static const int METADATA_EDITOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EDITOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File not exist + static const int METADATA_EDITOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EDITOR_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported type + static const int METADATA_EDITOR_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Invalid internal operation + static const int METADATA_EDITOR_ERROR_OPERATION_FAILED = -27000831; + + /// < Update not possible (Since 6.0) + static const int METADATA_EDITOR_ERROR_METADATA_UPDATE_NOT_POSSIBLE = + -27000830; +} /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @brief The enumerations of attribute. @@ -415,3 +440,10 @@ abstract class metadata_editor_attr_e { /// < Unsynchronized lyric static const int METADATA_EDITOR_ATTR_UNSYNCLYRICS = 12; } + +/// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE +/// @brief The handle of media metadata. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef metadata_editor_h = ffi.Pointer; + +const int METADATA_EDITOR_ERROR_CLASS = -27000832; diff --git a/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_extractor.dart b/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_extractor.dart index f03a798a..52cbb53b 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_extractor.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_media_metadata_extractor.dart @@ -384,11 +384,27 @@ class Tizen70CapiMediaMetadataExtractor { } /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE -/// @brief The metadata extractor handle. +/// @brief Enumeration for metadata extractor error. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif -typedef metadata_extractor_h = ffi.Pointer; +abstract class metadata_extractor_error_e { + /// < Successful + static const int METADATA_EXTRACTOR_ERROR_NONE = 0; -final class metadata_extractor_s extends ffi.Opaque {} + /// < Invalid parameter + static const int METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EXTRACTOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File does not exist + static const int METADATA_EXTRACTOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED = -13; + + /// < Invalid internal operation + static const int METADATA_EXTRACTOR_ERROR_OPERATION_FAILED = -26411007; +} /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE /// @brief Enumeration for attribute. @@ -499,3 +515,12 @@ abstract class metadata_extractor_attr_e { /// < Flag indicating if the video is a spherical video (Since 3.0) static const int METADATA_360 = 34; } + +final class metadata_extractor_s extends ffi.Opaque {} + +/// @ingroup CAPI_METADATA_EXTRACTOR_MODULE +/// @brief The metadata extractor handle. +/// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif +typedef metadata_extractor_h = ffi.Pointer; + +const int METADATA_EXTRACTOR_ERROR_CLASS = -26411008; diff --git a/lib/src/bindings/7.0/generated_bindings_capi_media_screen_mirroring.dart b/lib/src/bindings/7.0/generated_bindings_capi_media_screen_mirroring.dart index b7a5c30f..f2b48406 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_media_screen_mirroring.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_media_screen_mirroring.dart @@ -880,29 +880,6 @@ class Tizen70CapiMediaScreenMirroring { int Function(scmirroring_sink_h, ffi.Pointer)>(); } -/// @brief The handle to the screen mirroring sink. -/// @since_tizen 2.4 -typedef scmirroring_sink_h = ffi.Pointer; - -/// @brief Called when each status is changed. -/// @since_tizen 2.4 -/// -/// @details This callback is called for state and error of screen mirroring sink -/// -/// @param[in] error The error code -/// @param[in] state The screen mirroring sink state -/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function -/// -/// @pre scmirroring_sink_create() -/// -/// @see scmirroring_sink_create() -typedef scmirroring_sink_state_cb - = ffi.Pointer>; -typedef scmirroring_sink_state_cbFunction = ffi.Void Function( - ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartscmirroring_sink_state_cbFunction = void Function( - int error, int state, ffi.Pointer user_data); - /// @brief Enumeration for screen mirroring error. /// @since_tizen 2.4 abstract class scmirroring_error_e { @@ -957,6 +934,41 @@ abstract class scmirroring_sink_state_e { static const int SCMIRRORING_SINK_STATE_MAX = 7; } +/// @brief Enumeration for screen mirroring resolution. +/// @since_tizen 2.4 +abstract class scmirroring_resolution_e { + static const int SCMIRRORING_RESOLUTION_UNKNOWN = 0; + + /// < W-1920, H-1080, 30 fps + static const int SCMIRRORING_RESOLUTION_1920x1080_P30 = 1; + + /// < W-1280, H-720, 30 fps + static const int SCMIRRORING_RESOLUTION_1280x720_P30 = 2; + + /// < W-960, H-540, 30 fps + static const int SCMIRRORING_RESOLUTION_960x540_P30 = 4; + + /// < W-864, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_864x480_P30 = 8; + + /// < W-720, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_720x480_P60 = 16; + + /// < W-640, H-480, 60 fps + static const int SCMIRRORING_RESOLUTION_640x480_P60 = 32; + + /// < W-640, H-360, 30 fps + static const int SCMIRRORING_RESOLUTION_640x360_P30 = 64; + static const int SCMIRRORING_RESOLUTION_MAX = 128; +} + +/// @brief Ability to send to multisink. +/// @since_tizen 3.0 +abstract class scmirroring_multisink_e { + static const int SCMIRRORING_MULTISINK_DISABLE = 0; + static const int SCMIRRORING_MULTISINK_ENABLE = 1; +} + /// @brief Enumeration for screen mirroring display surface type. /// @since_tizen 2.4 abstract class scmirroring_display_type_e { @@ -968,16 +980,6 @@ abstract class scmirroring_display_type_e { static const int SCMIRRORING_DISPLAY_TYPE_MAX = 2; } -/// @brief Enumeration for screen mirroring video codec. -/// @since_tizen 2.4 -abstract class scmirroring_video_codec_e { - /// < Screen mirroring is not negotiated yet - static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; - - /// < H.264 codec for video - static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; -} - /// @brief Enumeration for screen mirroring audio codec. /// @since_tizen 2.4 abstract class scmirroring_audio_codec_e { @@ -993,3 +995,56 @@ abstract class scmirroring_audio_codec_e { /// < LPCM codec for audio static const int SCMIRRORING_AUDIO_CODEC_LPCM = 3; } + +/// @brief Enumeration for screen mirroring video codec. +/// @since_tizen 2.4 +abstract class scmirroring_video_codec_e { + /// < Screen mirroring is not negotiated yet + static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; + + /// < H.264 codec for video + static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; +} + +/// @brief Enumeration for screen mirroring direct streaming mode. +/// @since_tizen 3.0 +abstract class scmirroring_direct_streaming_e { + /// < Disable screen mirroring direct streaming mode + static const int SCMIRRORING_DIRECT_STREAMING_DISABLED = 0; + + /// < Enable direct streaming for files + static const int SCMIRRORING_DIRECT_STREAMING_ENABLED = 1; +} + +/// @brief Enumeration for screen mirroring AV streaming transport. +/// @since_tizen 3.0 +abstract class scmirroring_av_transport_e { + /// < UDP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_UDP = 0; + + /// < TCP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_TCP = 1; +} + +/// @brief The handle to the screen mirroring sink. +/// @since_tizen 2.4 +typedef scmirroring_sink_h = ffi.Pointer; + +/// @brief Called when each status is changed. +/// @since_tizen 2.4 +/// +/// @details This callback is called for state and error of screen mirroring sink +/// +/// @param[in] error The error code +/// @param[in] state The screen mirroring sink state +/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function +/// +/// @pre scmirroring_sink_create() +/// +/// @see scmirroring_sink_create() +typedef scmirroring_sink_state_cb + = ffi.Pointer>; +typedef scmirroring_sink_state_cbFunction = ffi.Void Function( + ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartscmirroring_sink_state_cbFunction = void Function( + int error, int state, ffi.Pointer user_data); diff --git a/lib/src/bindings/7.0/generated_bindings_capi_media_sound_pool.dart b/lib/src/bindings/7.0/generated_bindings_capi_media_sound_pool.dart index 89fdc6e3..0a47b588 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_media_sound_pool.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_media_sound_pool.dart @@ -865,10 +865,52 @@ class Tizen70CapiMediaSoundPool { .asFunction)>(); } -/// @brief Sound pool handle type. +/// @brief Enumeration for Tizen Sound Pool error. /// /// @since_tizen 4.0 -typedef sound_pool_h = ffi.Pointer; +abstract class sound_pool_error_e { + static const int SOUND_POOL_ERROR_NONE = 0; + static const int SOUND_POOL_ERROR_KEY_NOT_AVAILABLE = -126; + static const int SOUND_POOL_ERROR_OUT_OF_MEMORY = -12; + static const int SOUND_POOL_ERROR_INVALID_PARAMETER = -22; + static const int SOUND_POOL_ERROR_INVALID_OPERATION = -38; + static const int SOUND_POOL_ERROR_NOT_PERMITTED = -1; + static const int SOUND_POOL_ERROR_NO_SUCH_FILE = -2; +} + +/// @brief Enumeration of sound pool stream state. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_state_e { + /// < Stream state isn't determined + static const int SOUND_POOL_STREAM_STATE_NONE = 0; + + /// < Stream state is playing + static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; + + /// < Stream state is paused + static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; + + /// < Stream state is stopped + static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; + + /// < Stream state is finished + static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; + + /// < Stream state is suspended + static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; +} + +/// @brief Enumeration of sound pool stream priority policy. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_priority_policy_e { + /// < Stream priority policy is mute + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; + + /// < Stream priority policy is suspended + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; +} /// @brief Enumeration of sound pool state. /// @@ -881,6 +923,11 @@ abstract class sound_pool_state_e { static const int SOUND_POOL_STATE_INACTIVE = 1; } +/// @brief Sound pool handle type. +/// +/// @since_tizen 4.0 +typedef sound_pool_h = ffi.Pointer; + /// @brief Called when the sound pool state is changed. /// /// @since_tizen 4.0 @@ -911,17 +958,6 @@ typedef Dartsound_pool_state_changed_cbFunction = void Function( int cur_state, ffi.Pointer user_data); -/// @brief Enumeration of sound pool stream priority policy. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_priority_policy_e { - /// < Stream priority policy is mute - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; - - /// < Stream priority policy is suspended - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; -} - /// @brief Called when the sound pool stream state is changed. /// /// @since_tizen 4.0 @@ -954,26 +990,3 @@ typedef Dartsound_pool_stream_state_changed_cbFunction = void Function( int prev_state, int cur_state, ffi.Pointer user_data); - -/// @brief Enumeration of sound pool stream state. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_state_e { - /// < Stream state isn't determined - static const int SOUND_POOL_STREAM_STATE_NONE = 0; - - /// < Stream state is playing - static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; - - /// < Stream state is paused - static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; - - /// < Stream state is stopped - static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; - - /// < Stream state is finished - static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; - - /// < Stream state is suspended - static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; -} diff --git a/lib/src/bindings/7.0/generated_bindings_capi_media_thumbnail_util.dart b/lib/src/bindings/7.0/generated_bindings_capi_media_thumbnail_util.dart index 0aa352de..bcf5f78d 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_media_thumbnail_util.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_media_thumbnail_util.dart @@ -379,14 +379,40 @@ class Tizen70CapiMediaThumbnailUtil { ffi.Pointer)>(); } +/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE +/// @brief Enumeration for a thumbnail util error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class thumbnail_util_error_e { + /// < Successful + static const int THUMBNAIL_UTIL_ERROR_NONE = 0; + + /// < Invalid parameter + static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported Content (Since 4.0) + static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; +} + +final class thumbnail_s extends ffi.Opaque {} + /// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE /// @deprecated Deprecated since 5.0. /// @brief The structure type for the thumbnail info handle. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif typedef thumbnail_h = ffi.Pointer; -final class thumbnail_s extends ffi.Opaque {} - /// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE /// @deprecated Deprecated since 5.0. /// @brief Called when creating the thumbnail. @@ -431,28 +457,4 @@ typedef Dartthumbnail_extracted_cbFunction = void Function( int thumb_size, ffi.Pointer user_data); -/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE -/// @brief Enumeration for a thumbnail util error. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class thumbnail_util_error_e { - /// < Successful - static const int THUMBNAIL_UTIL_ERROR_NONE = 0; - - /// < Invalid parameter - static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; - - /// < Out of memory - static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; - - /// < Invalid Operation - static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; - - /// < No space left on device - static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; - - /// < Permission denied - static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; - - /// < Unsupported Content (Since 4.0) - static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; -} +const int THUMBNAIL_UTIL_ERROR_CLASS = -49872896; diff --git a/lib/src/bindings/7.0/generated_bindings_capi_network_bluetooth.dart b/lib/src/bindings/7.0/generated_bindings_capi_network_bluetooth.dart index a46206a5..9960396d 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_network_bluetooth.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_network_bluetooth.dart @@ -10162,6 +10162,185 @@ class Tizen70CapiNetworkBluetooth { _bt_socket_reject_l2cap_channelPtr.asFunction(); } +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of PBAP fields. +/// @since_tizen 3.0 +abstract class bt_pbap_field_e { + /// < All field + static const int BT_PBAP_FIELD_ALL = -1; + + /// < vCard Version + static const int BT_PBAP_FIELD_VERSION = 1; + + /// < Formatted Name + static const int BT_PBAP_FIELD_FN = 2; + + /// < Structured Presentation of Name + static const int BT_PBAP_FIELD_N = 4; + + /// < Associated Image or Photo + static const int BT_PBAP_FIELD_PHOTO = 8; + + /// < Birthday + static const int BT_PBAP_FIELD_BDAY = 16; + + /// < Delivery Address + static const int BT_PBAP_FIELD_ADR = 32; + + /// < Delivery + static const int BT_PBAP_FIELD_LABEL = 64; + + /// < Telephone Number + static const int BT_PBAP_FIELD_TEL = 128; + + /// < Electronic Mail Address + static const int BT_PBAP_FIELD_EMAIL = 256; + + /// < Electronic Mail + static const int BT_PBAP_FIELD_MAILER = 512; + + /// < Time Zone + static const int BT_PBAP_FIELD_TZ = 1024; + + /// < Geographic Position + static const int BT_PBAP_FIELD_GEO = 2048; + + /// < Job + static const int BT_PBAP_FIELD_TITLE = 4096; + + /// < Role within the Organization + static const int BT_PBAP_FIELD_ROLE = 8192; + + /// < Organization Logo + static const int BT_PBAP_FIELD_LOGO = 16384; + + /// < vCard of Person Representing + static const int BT_PBAP_FIELD_AGENT = 32768; + + /// < Name of Organization + static const int BT_PBAP_FIELD_ORG = 65536; + + /// < Comments + static const int BT_PBAP_FIELD_NOTE = 131072; + + /// < Revision + static const int BT_PBAP_FIELD_REV = 262144; + + /// < Pronunciation of Name + static const int BT_PBAP_FIELD_SOUND = 524288; + + /// < Uniform Resource Locator + static const int BT_PBAP_FIELD_URL = 1048576; + + /// < Unique ID + static const int BT_PBAP_FIELD_UID = 2097152; + + /// < Public Encryption Key + static const int BT_PBAP_FIELD_KEY = 4194304; + + /// < Nickname + static const int BT_PBAP_FIELD_NICKNAME = 8388608; + + /// < Categories + static const int BT_PBAP_FIELD_CATEGORIES = 16777216; + + /// < Product ID + static const int BT_PBAP_FIELD_PROID = 33554432; + + /// < Class information + static const int BT_PBAP_FIELD_CLASS = 67108864; + + /// < String used for sorting operations + static const int BT_PBAP_FIELD_SORT_STRING = 134217728; + + /// < Time stamp + static const int BT_PBAP_FIELD_X_IRMC_CALL_DATETIME = 268435456; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_MODULE +/// @brief Enumerations of Bluetooth error codes. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_error_e { + /// < Successful + static const int BT_ERROR_NONE = 0; + + /// < Operation cancelled + static const int BT_ERROR_CANCELLED = -125; + + /// < Invalid parameter + static const int BT_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int BT_ERROR_OUT_OF_MEMORY = -12; + + /// < Device or resource busy + static const int BT_ERROR_RESOURCE_BUSY = -16; + + /// < Timeout error + static const int BT_ERROR_TIMED_OUT = -1073741823; + + /// < Operation now in progress + static const int BT_ERROR_NOW_IN_PROGRESS = -115; + + /// < BT is Not Supported + static const int BT_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Permission denied + static const int BT_ERROR_PERMISSION_DENIED = -13; + + /// < Quota exceeded + static const int BT_ERROR_QUOTA_EXCEEDED = -122; + + /// < No data available + static const int BT_ERROR_NO_DATA = -61; + + /// < Device policy restriction (Since 3.0) + static const int BT_ERROR_DEVICE_POLICY_RESTRICTION = -1073741820; + + /// < Local adapter not initialized + static const int BT_ERROR_NOT_INITIALIZED = -29359871; + + /// < Local adapter not enabled + static const int BT_ERROR_NOT_ENABLED = -29359870; + + /// < Operation already done + static const int BT_ERROR_ALREADY_DONE = -29359869; + + /// < Operation failed + static const int BT_ERROR_OPERATION_FAILED = -29359868; + + /// < Operation not in progress + static const int BT_ERROR_NOT_IN_PROGRESS = -29359867; + + /// < Remote device not bonded + static const int BT_ERROR_REMOTE_DEVICE_NOT_BONDED = -29359866; + + /// < Authentication rejected + static const int BT_ERROR_AUTH_REJECTED = -29359865; + + /// < Authentication failed + static const int BT_ERROR_AUTH_FAILED = -29359864; + + /// < Remote device not found + static const int BT_ERROR_REMOTE_DEVICE_NOT_FOUND = -29359863; + + /// < Service search failed + static const int BT_ERROR_SERVICE_SEARCH_FAILED = -29359862; + + /// < Remote device is not connected + static const int BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = -29359861; + + /// < Resource temporarily unavailable + static const int BT_ERROR_AGAIN = -29359860; + + /// < Service Not Found + static const int BT_ERROR_SERVICE_NOT_FOUND = -29359859; + + /// < Authorization rejected (Since 5.0) + static const int BT_ERROR_AUTHORIZATION_REJECTED = -29359858; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Enumerations of the Bluetooth adapter state. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10188,6 +10367,178 @@ abstract class bt_adapter_visibility_mode_e { static const int BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE = 2; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Enumerations of the discovery state of Bluetooth device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_device_discovery_state_e { + /// < Device discovery is started + static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; + + /// < Device discovery is finished + static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; + + /// < The remote Bluetooth device is found + static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_state_e { + /// < Bluetooth advertising is stopped + static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; + + /// < Bluetooth advertising is started + static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising mode. +/// @since_tizen 2.3.1 +abstract class bt_adapter_le_advertising_mode_e { + /// < Balanced advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; + + /// < Low latency advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; + + /// < Low energy advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; + + /// < Custom mode to set advertising parameters + static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising filter policy. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_filter_policy_e { + /// < White list is not in use + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_DEFAULT = 0; + + /// < Allow the scan + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_WL = 1; + + /// < Allow the connection + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_CONN_WL = 2; + + /// < Allow the + /// scan and connection request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_CONN_WL = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE packet type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_packet_type_e { + /// < Advertising packet + static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; + + /// < Scan response packet + static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth le scan mode. +/// @since_tizen 3.0 +abstract class bt_adapter_le_scan_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device disconnect reason. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_disconnect_reason_e { + /// < Disconnected by unknown reason + static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; + + /// < Disconnected by timeout + static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; + + /// < Disconnected by local host + static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; + + /// < Disconnected by remote + static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of connection link type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_connection_link_type_e { + /// < BR/EDR link + static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; + + /// < LE link + static const int BT_DEVICE_CONNECTION_LINK_LE = 1; + + /// < The connection type default + static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device authorization state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_authorization_e { + /// < The remote Bluetooth device is authorized + static const int BT_DEVICE_AUTHORIZED = 0; + + /// < The remote Bluetooth device is unauthorized + static const int BT_DEVICE_UNAUTHORIZED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of Bluetooth profile. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_profile_e { + /// < RFCOMM Profile + static const int BT_PROFILE_RFCOMM = 1; + + /// < Advanced Audio Distribution Profile Source role + static const int BT_PROFILE_A2DP = 2; + + /// < Headset Profile + static const int BT_PROFILE_HSP = 4; + + /// < Human Interface Device Profile + static const int BT_PROFILE_HID = 8; + + /// < Network Access Point Profile + static const int BT_PROFILE_NAP = 16; + + /// < Audio Gateway Profile + static const int BT_PROFILE_AG = 32; + + /// < Generic Attribute Profile + static const int BT_PROFILE_GATT = 64; + + /// < NAP server Profile + static const int BT_PROFILE_NAP_SERVER = 128; + + /// < Advanced Audio Distribution Profile Sink role + static const int BT_PROFILE_A2DP_SINK = 256; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device address type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_address_type_e { + /// < Public address + static const int BT_DEVICE_PUBLIC_ADDRESS = 0; + + /// < Random address + static const int BT_DEVICE_RANDOM_ADDRESS = 1; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Enumerations of service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10271,88 +10622,36 @@ abstract class bt_service_class_t { static const int BT_SC_MAX = 16777216; } -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Called when you get bonded devices repeatedly. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[in] device_info The bonded device information -/// @param[in] user_data The user data passed from the foreach function -/// @return @c true to continue with the next iteration of the loop, -/// \n @c false to break out of the loop. -/// @pre bt_adapter_foreach_bonded_device() will invoke this function. -/// -/// @see bt_adapter_foreach_bonded_device() -typedef bt_adapter_bonded_device_cb - = ffi.Pointer>; -typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); -typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device information structure used for identifying pear device. +/// @brief Enumerations of major service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_device_bond_created_cb() -final class bt_device_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; +abstract class bt_major_service_class_e { + /// < Limited discoverable mode + static const int BT_MAJOR_SERVICE_CLASS_LIMITED_DISCOVERABLE_MODE = 8192; - /// < The name of remote device - external ffi.Pointer remote_name; + /// < Positioning class + static const int BT_MAJOR_SERVICE_CLASS_POSITIONING = 65536; - /// < The Bluetooth classes - external bt_class_s bt_class; + /// < Networking class + static const int BT_MAJOR_SERVICE_CLASS_NETWORKING = 131072; - /// < The UUID list of service - external ffi.Pointer> service_uuid; + /// < Rendering class + static const int BT_MAJOR_SERVICE_CLASS_RENDERING = 262144; - /// < The number of services - @ffi.Int() - external int service_count; + /// < Capturing class + static const int BT_MAJOR_SERVICE_CLASS_CAPTURING = 524288; - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The connection state - @ffi.Bool() - external bool is_connected; - - /// < The authorization state - @ffi.Bool() - external bool is_authorized; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} + /// < Object transferring class + static const int BT_MAJOR_SERVICE_CLASS_OBJECT_TRANSFER = 1048576; -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Class structure of device and service. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_device_info_s -/// @see #bt_adapter_device_discovery_info_s -/// @see bt_device_bond_created_cb() -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_class_s extends ffi.Struct { - /// < Major device class. - @ffi.Int32() - external int major_device_class; + /// < Audio class + static const int BT_MAJOR_SERVICE_CLASS_AUDIO = 2097152; - /// < Minor device class. - @ffi.Int32() - external int minor_device_class; + /// < Telephony class + static const int BT_MAJOR_SERVICE_CLASS_TELEPHONY = 4194304; - /// < Major service class mask. - /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO - @ffi.Int() - external int major_service_class_mask; + /// < Information class + static const int BT_MAJOR_SERVICE_CLASS_INFORMATION = 8388608; } /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE @@ -10653,6 +10952,998 @@ abstract class bt_minor_device_class_e { static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of gap appearance type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_appearance_type_e { + /// < Unknown appearance type + static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; + + /// < Generic Phone type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; + + /// < Generic Computer type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; + + /// < Generic Watch type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth device's LE connection mode. +/// @since_tizen 3.0 +abstract class bt_device_le_connection_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of connected Bluetooth device event role. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_role_e { + /// < Unknown role + static const int BT_SOCKET_UNKNOWN = 0; + + /// < Server role + static const int BT_SOCKET_SERVER = 1; + + /// < Client role + static const int BT_SOCKET_CLIENT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of Bluetooth socket connection state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_connection_state_e { + /// < RFCOMM is connected + static const int BT_SOCKET_CONNECTED = 0; + + /// < RFCOMM is disconnected + static const int BT_SOCKET_DISCONNECTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE +/// @brief Enumerations for the types of profiles related with audio. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_audio_profile_type_e { + /// < All supported profiles related with audio (Both Host and Device role) + static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; + + /// < local device AG and remote device HF Client (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; + + /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; + + /// < local device HF Client and remote device AG (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_AG = 3; + + /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_call_handling_event_e { + /// < Request to answer an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_ANSWER = 0; + + /// < Request to release a call + static const int BT_AG_CALL_HANDLING_EVENT_RELEASE = 1; + + /// < Request to reject an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_REJECT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the multi call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_multi_call_handling_event_e { + /// < Request to release held calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_HELD_CALLS = 0; + + /// < Request to release active calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_ACTIVE_CALLS = 1; + + /// < Request to put active calls into hold state and activate another (held or waiting) call + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_ACTIVATE_HELD_CALL = 2; + + /// < Request to add a held call to the conversation + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_MERGE_CALLS = 3; + + /// < Request to let a user who has two calls to connect these two calls together and release its connections to both other parties + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_EXPLICIT_CALL_TRANSFER = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the equalizer state. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_equalizer_state_e { + /// < Equalizer Off + static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; + + /// < Equalizer On + static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the repeat mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_repeat_mode_e { + /// < Repeat Off + static const int BT_AVRCP_REPEAT_MODE_OFF = 1; + + /// < Single track repeat + static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; + + /// < All track repeat + static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; + + /// < Group repeat + static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the shuffle mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_shuffle_mode_e { + /// < Shuffle Off + static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; + + /// < All tracks shuffle + static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; + + /// < Group shuffle + static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the scan mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_scan_mode_e { + /// < Scan Off + static const int BT_AVRCP_SCAN_MODE_OFF = 1; + + /// < All tracks scan + static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; + + /// < Group scan + static const int BT_AVRCP_SCAN_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the player state. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_state_e { + /// < Stopped + static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; + + /// < Playing + static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; + + /// < Paused + static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; + + /// < Seek Forward + static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; + + /// < Seek Rewind + static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumeration for the player control commands. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_command_e { + /// < Play + static const int BT_AVRCP_CONTROL_PLAY = 1; + + /// < Pause + static const int BT_AVRCP_CONTROL_PAUSE = 2; + + /// < Stop + static const int BT_AVRCP_CONTROL_STOP = 3; + + /// < Next Track + static const int BT_AVRCP_CONTROL_NEXT = 4; + + /// < Previous track + static const int BT_AVRCP_CONTROL_PREVIOUS = 5; + + /// < Fast Forward + static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; + + /// < Rewind + static const int BT_AVRCP_CONTROL_REWIND = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Structure of Track metadata information. +/// @since_tizen 3.0 +/// +/// @see #bt_class_s +final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { + /// < Title + external ffi.Pointer title; + + /// < Artist + external ffi.Pointer artist; + + /// < Album name + external ffi.Pointer album; + + /// < Album Genre + external ffi.Pointer genre; + + /// < The total number of tracks + @ffi.UnsignedInt() + external int total_tracks; + + /// < Track number + @ffi.UnsignedInt() + external int number; + + /// < Duration + @ffi.UnsignedInt() + external int duration; +} + +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Enumerations for the data channel type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @remarks Deprecated, because of no usecase and supported devices. +abstract class bt_hdp_channel_type_e { + /// < Reliable Data Channel + static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; + + /// < Streaming Data Channel + static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the integer type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_int_e { + /// < 8 bit signed int type + static const int BT_DATA_TYPE_SINT8 = 0; + + /// < 16 bit signed int type + static const int BT_DATA_TYPE_SINT16 = 1; + + /// < 32 bit signed int type + static const int BT_DATA_TYPE_SINT32 = 2; + + /// < 8 bit unsigned int type + static const int BT_DATA_TYPE_UINT8 = 3; + + /// < 16 bit unsigned int type + static const int BT_DATA_TYPE_UINT16 = 4; + + /// < 32 bit unsigned int type + static const int BT_DATA_TYPE_UINT32 = 5; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the float type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_float_e { + /// < 32 bit float type + static const int BT_DATA_TYPE_FLOAT = 0; + + /// < 16 bit float type + static const int BT_DATA_TYPE_SFLOAT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the write type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_write_type_e { + /// < Write without response type + static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; + + /// < Write type + static const int BT_GATT_WRITE_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the GATT handle's type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_type_e { + /// < GATT service type + static const int BT_GATT_TYPE_SERVICE = 1; + + /// < GATT characteristic type + static const int BT_GATT_TYPE_CHARACTERISTIC = 2; + + /// < GATT descriptor type + static const int BT_GATT_TYPE_DESCRIPTOR = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the service type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_service_type_e { + /// < GATT primary service type + static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; + + /// < GATT secondary service type + static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the characteristic's property. +/// @since_tizen 2.3.1 +abstract class bt_gatt_property_e { + /// < Broadcast property + static const int BT_GATT_PROPERTY_BROADCAST = 1; + + /// < Read property + static const int BT_GATT_PROPERTY_READ = 2; + + /// < Write without response property + static const int BT_GATT_PROPERTY_WRITE_WITHOUT_RESPONSE = 4; + + /// < Write property + static const int BT_GATT_PROPERTY_WRITE = 8; + + /// < Notify property + static const int BT_GATT_PROPERTY_NOTIFY = 16; + + /// < Indicate property + static const int BT_GATT_PROPERTY_INDICATE = 32; + + /// < Authenticated signed writes property + static const int BT_GATT_PROPERTY_AUTHENTICATED_SIGNED_WRITES = 64; + + /// < Extended properties + static const int BT_GATT_PROPERTY_EXTENDED_PROPERTIES = 128; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Enumerations of gatt server's service changing mode. +/// @since_tizen 3.0 +abstract class bt_gatt_client_service_change_type_e { + /// < Service added + static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; + + /// < Service removed + static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; + + /// < Resync is required (Since 6.5) + static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the attribute's permission. +/// @since_tizen 3.0 +abstract class bt_gatt_permission_e { + /// < Readable permission + static const int BT_GATT_PERMISSION_READ = 1; + + /// < Writable permission + static const int BT_GATT_PERMISSION_WRITE = 2; + + /// < Readable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_READ = 4; + + /// < Writable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_WRITE = 8; + + /// < Readable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_READ = 16; + + /// < Writable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_WRITE = 32; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE +/// @brief Enumerations of the remote device request types for attributes. +/// @since_tizen 3.0 +abstract class bt_gatt_att_request_type_e { + /// < Read Requested + static const int BT_GATT_REQUEST_TYPE_READ = 0; + + /// < Write Requested + static const int BT_GATT_REQUEST_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE +/// @brief Enumerations for the types of PAN (Personal Area Networking) service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_panu_service_type_e { + /// < Network Access Point + static const int BT_PANU_SERVICE_TYPE_NAP = 0; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of address book location for PBAP. +/// @since_tizen 3.0 +abstract class bt_pbap_address_book_source_e { + /// < Request for Addressbook from remote device + static const int BT_PBAP_SOURCE_DEVICE = 0; + + /// < Request for address book from SIM + static const int BT_PBAP_SOURCE_SIM = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of folder type. +/// @since_tizen 3.0 +abstract class bt_pbap_folder_type_e { + /// < Request for address book + static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; + + /// < Request for incoming calls + static const int BT_PBAP_FOLDER_INCOMING = 1; + + /// < Request for outgoing calls + static const int BT_PBAP_FOLDER_OUTGOING = 2; + + /// < Request for missed calls + static const int BT_PBAP_FOLDER_MISSED = 3; + + /// < Request for combined calls + static const int BT_PBAP_FOLDER_COMBINED = 4; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of phone book search fields. +/// @since_tizen 3.0 +abstract class bt_pbap_search_field_e { + /// < Request for search by name (default) + static const int BT_PBAP_SEARCH_NAME = 0; + + /// < Request for search by phone number + static const int BT_PBAP_SEARCH_NUMBER = 1; + + /// < Request for search by sound + static const int BT_PBAP_SEARCH_SOUND = 2; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of vCard Formats. +/// @since_tizen 3.0 +abstract class bt_pbap_vcard_format_e { + /// < vCard format 2.1 (default) + static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; + + /// < vCard format 3.0 + static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of sorting orders. +/// @since_tizen 3.0 +abstract class bt_pbap_sort_order_e { + /// < Filter order indexed (default) + static const int BT_PBAP_ORDER_INDEXED = 0; + + /// < Filter order alphanumeric + static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; + + /// < Filter order phonetic + static const int BT_PBAP_ORDER_PHONETIC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Class structure of device and service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_device_info_s +/// @see #bt_adapter_device_discovery_info_s +/// @see bt_device_bond_created_cb() +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_class_s extends ffi.Struct { + /// < Major device class. + @ffi.Int32() + external int major_device_class; + + /// < Minor device class. + @ffi.Int32() + external int minor_device_class; + + /// < Major service class mask. + /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO + @ffi.Int() + external int major_service_class_mask; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Structure of device discovery information. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_adapter_device_discovery_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The Bluetooth appearance + @ffi.Int32() + external int appearance; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Structure of le scan result information. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The address type of remote device + @ffi.Int32() + external int address_type; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < advertising indication data length + @ffi.Int() + external int adv_data_len; + + /// < advertising indication data + external ffi.Pointer adv_data; + + /// < scan response data length + @ffi.Int() + external int scan_data_len; + + /// < scan response data + external ffi.Pointer scan_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief The structure for LE iBeacon scan result information. +/// @since_tizen 4.0 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { + /// < Company ID + @ffi.Int() + external int company_id; + + /// < iBeacon type + @ffi.Int() + external int ibeacon_type; + + /// < UUID + external ffi.Pointer uuid; + + /// < Major ID + @ffi.Int() + external int major_id; + + /// < Minor ID + @ffi.Int() + external int minor_id; + + /// < Measured power + @ffi.Int() + external int measured_power; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief LE service data structure. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_get_scan_result_service_data() +final class bt_adapter_le_service_data_s extends ffi.Struct { + /// < 16 bit UUID of the service data + external ffi.Pointer service_uuid; + + /// < Service data + external ffi.Pointer service_data; + + /// < Service data length + @ffi.Int() + external int service_data_len; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device information structure used for identifying pear device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_device_bond_created_cb() +final class bt_device_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The connection state + @ffi.Bool() + external bool is_connected; + + /// < The authorization state + @ffi.Bool() + external bool is_authorized; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Service Discovery Protocol (SDP) data structure. +/// +/// @details This protocol is used for discovering available services or pear device, +/// and finding one to connect with. +/// +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @see bt_device_service_searched_cb() +final class bt_device_sdp_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services. + @ffi.Int() + external int service_count; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device connection information structure. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_device_connection_state_changed_cb() +final class bt_device_connection_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < Link type + @ffi.Int32() + external int link; + + /// < Disconnection reason + @ffi.Int32() + external int disconn_reason; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_socket_connection_state_changed_cb() +final class bt_socket_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The service UUId + external ffi.Pointer service_uuid; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Structure of RFCOMM received data. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @remarks User can use standard linux functions for reading/writing \n +/// data from/to sockets. +/// +/// @see bt_socket_data_received_cb() +final class bt_socket_received_data_s extends ffi.Struct { + /// < The socket fd + @ffi.Int() + external int socket_fd; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Attribute protocol MTU change information structure. +/// @since_tizen 4.0 +/// +/// @see bt_gatt_client_att_mtu_changed_cb() +final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < MTU value + @ffi.UnsignedInt() + external int mtu; + + /// < Request status + @ffi.UnsignedInt() + external int status; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID mouse's button. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_mouse_button_e { + /// key; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID header type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_header_type_e { + /// < The Bluetooth HID header type: Handshake + static const int BT_HID_HEADER_HANDSHAKE = 0; + + /// < The Bluetooth HID header type: HID control + static const int BT_HID_HEADER_HID_CONTROL = 1; + + /// < The Bluetooth HID header type: Get report + static const int BT_HID_HEADER_GET_REPORT = 2; + + /// < The Bluetooth HID header type: Set report + static const int BT_HID_HEADER_SET_REPORT = 3; + + /// < The Bluetooth HID header type: Get protocol + static const int BT_HID_HEADER_GET_PROTOCOL = 4; + + /// < The Bluetooth HID header type: Set protocol + static const int BT_HID_HEADER_SET_PROTOCOL = 5; + + /// < The Bluetooth HID header type: Data + static const int BT_HID_HEADER_DATA = 6; + + /// < The Bluetooth HID header type: Unknown + static const int BT_HID_HEADER_UNKNOWN = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID parameter type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_param_type_e { + /// < Parameter type: Input + static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; + + /// < Parameter type: Output + static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID handshake type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_handshake_type_e { + /// < Handshake error code none + static const int BT_HID_HANDSHAKE_SUCCESSFUL = 0; + + /// < Handshake error code Not Ready + static const int BT_HID_HANDSHAKE_NOT_READY = 1; + + /// < Handshake error code send invalid report id + static const int BT_HID_HANDSHAKE_ERR_INVALID_REPORT_ID = 2; + + /// < Handshake error code request unsupported request + static const int BT_HID_HANDSHAKE_ERR_UNSUPPORTED_REQUEST = 3; + + /// < Handshake error code received invalid parameter + static const int BT_HID_HANDSHAKE_ERR_INVALID_PARAMETER = 4; + + /// < unknown error + static const int BT_HID_HANDSHAKE_ERR_UNKNOWN = 14; + + /// < Fatal error + static const int BT_HID_HANDSHAKE_ERR_FATAL = 15; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief The structure type containing data received from the HID Host. +/// @since_tizen @if WEARABLE 3.0 @endif +final class bt_hid_device_received_data_s extends ffi.Struct { + /// < The remote device's address + external ffi.Pointer address; + + /// < The header type + @ffi.Int32() + external int header_type; + + /// < The parameter type + @ffi.Int32() + external int param_type; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief The structure type containing vCard information. +/// @since_tizen 3.0 +/// +/// @see bt_pbap_client_pull_vcard() +final class bt_pbap_vcard_info_s extends ffi.Struct { + /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() + @ffi.Int() + external int index; + + /// < The contact name of the vCard + external ffi.Pointer contact_name; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumeration for the scan filter type. +/// @since_tizen 4.0 +/// @see bt_adapter_le_scan_filter_set_type() +abstract class bt_adapter_le_scan_filter_type_e { + /// < iBeacon filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; + + /// < Proximity UUID filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. +/// @since_tizen 7.0 +/// +/// @see bt_socket_l2cap_channel_connection_state_changed_cb() +final class bt_socket_l2cap_le_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The psm of the connected socket + @ffi.Int() + external int psm; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Called when you get bonded devices repeatedly. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @param[in] device_info The bonded device information +/// @param[in] user_data The user data passed from the foreach function +/// @return @c true to continue with the next iteration of the loop, +/// \n @c false to break out of the loop. +/// @pre bt_adapter_foreach_bonded_device() will invoke this function. +/// +/// @see bt_adapter_foreach_bonded_device() +typedef bt_adapter_bonded_device_cb + = ffi.Pointer>; +typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); +typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Called when the Bluetooth adapter state changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10760,80 +12051,6 @@ typedef Dartbt_adapter_device_discovery_state_changed_cbFunction ffi.Pointer discovery_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Enumerations of the discovery state of Bluetooth device. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_device_discovery_state_e { - /// < Device discovery is started - static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; - - /// < Device discovery is finished - static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; - - /// < The remote Bluetooth device is found - static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Structure of device discovery information. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_adapter_device_discovery_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The Bluetooth appearance - @ffi.Int32() - external int appearance; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of gap appearance type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_appearance_type_e { - /// < Unknown appearance type - static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; - - /// < Generic Phone type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; - - /// < Generic Computer type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; - - /// < Generic Watch type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief Called when the LE advertisement has been found. /// @since_tizen 2.3.1 @@ -10854,107 +12071,6 @@ typedef Dartbt_adapter_le_scan_result_cbFunction = void Function( ffi.Pointer info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Structure of le scan result information. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The address type of remote device - @ffi.Int32() - external int address_type; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < advertising indication data length - @ffi.Int() - external int adv_data_len; - - /// < advertising indication data - external ffi.Pointer adv_data; - - /// < scan response data length - @ffi.Int() - external int scan_data_len; - - /// < scan response data - external ffi.Pointer scan_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device address type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_address_type_e { - /// < Public address - static const int BT_DEVICE_PUBLIC_ADDRESS = 0; - - /// < Random address - static const int BT_DEVICE_RANDOM_ADDRESS = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth LE packet type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_packet_type_e { - /// < Advertising packet - static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; - - /// < Scan response packet - static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief LE service data structure. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_get_scan_result_service_data() -final class bt_adapter_le_service_data_s extends ffi.Struct { - /// < 16 bit UUID of the service data - external ffi.Pointer service_uuid; - - /// < Service data - external ffi.Pointer service_data; - - /// < Service data length - @ffi.Int() - external int service_data_len; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief The structure for LE iBeacon scan result information. -/// @since_tizen 4.0 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { - /// < Company ID - @ffi.Int() - external int company_id; - - /// < iBeacon type - @ffi.Int() - external int ibeacon_type; - - /// < UUID - external ffi.Pointer uuid; - - /// < Major ID - @ffi.Int() - external int major_id; - - /// < Minor ID - @ffi.Int() - external int minor_id; - - /// < Measured power - @ffi.Int() - external int measured_power; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle to control Bluetooth LE advertising. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11006,76 +12122,23 @@ typedef Dartbt_ipsp_connection_state_changed_cbFunction = void Function( /// /// @param[out] result The result of the requested state change of advertiser /// @param[out] advertiser The handle of the state changed advertiser -/// @param[out] adv_state The advertiser state to be changed -/// @param[out] user_data The user data passed from the start function -/// -/// @see bt_adapter_le_start_advertising_new() -/// @see bt_adapter_le_stop_advertising() -typedef bt_adapter_le_advertising_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_adapter_le_advertising_state_changed_cbFunction = ffi.Void Function( - ffi.Int result, - bt_advertiser_h advertiser, - ffi.Int32 adv_state, - ffi.Pointer user_data); -typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( - int result, - bt_advertiser_h advertiser, - int adv_state, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_advertising_state_e { - /// < Bluetooth advertising is stopped - static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; - - /// < Bluetooth advertising is started - static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising mode. -/// @since_tizen 2.3.1 -abstract class bt_adapter_le_advertising_mode_e { - /// < Balanced advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; - - /// < Low latency advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; - - /// < Low energy advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; - - /// < Custom mode to set advertising parameters - static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth le scan mode. -/// @since_tizen 3.0 -abstract class bt_adapter_le_scan_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device authorization state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_authorization_e { - /// < The remote Bluetooth device is authorized - static const int BT_DEVICE_AUTHORIZED = 0; - - /// < The remote Bluetooth device is unauthorized - static const int BT_DEVICE_UNAUTHORIZED = 1; -} +/// @param[out] adv_state The advertiser state to be changed +/// @param[out] user_data The user data passed from the start function +/// +/// @see bt_adapter_le_start_advertising_new() +/// @see bt_adapter_le_stop_advertising() +typedef bt_adapter_le_advertising_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_adapter_le_advertising_state_changed_cbFunction = ffi.Void Function( + ffi.Int result, + bt_advertiser_h advertiser, + ffi.Int32 adv_state, + ffi.Pointer user_data); +typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( + int result, + bt_advertiser_h advertiser, + int adv_state, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when you get connected profiles repeatedly. @@ -11094,52 +12157,6 @@ typedef bt_device_connected_profileFunction = ffi.Bool Function( typedef Dartbt_device_connected_profileFunction = bool Function( int profile, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of Bluetooth profile. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_profile_e { - /// < RFCOMM Profile - static const int BT_PROFILE_RFCOMM = 1; - - /// < Advanced Audio Distribution Profile Source role - static const int BT_PROFILE_A2DP = 2; - - /// < Headset Profile - static const int BT_PROFILE_HSP = 4; - - /// < Human Interface Device Profile - static const int BT_PROFILE_HID = 8; - - /// < Network Access Point Profile - static const int BT_PROFILE_NAP = 16; - - /// < Audio Gateway Profile - static const int BT_PROFILE_AG = 32; - - /// < Generic Attribute Profile - static const int BT_PROFILE_GATT = 64; - - /// < NAP server Profile - static const int BT_PROFILE_NAP_SERVER = 128; - - /// < Advanced Audio Distribution Profile Sink role - static const int BT_PROFILE_A2DP_SINK = 256; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth device's LE connection mode. -/// @since_tizen 3.0 -abstract class bt_device_le_connection_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the process of creating bond finishes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11235,26 +12252,6 @@ typedef Dartbt_device_service_searched_cbFunction = void Function( ffi.Pointer sdp_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Service Discovery Protocol (SDP) data structure. -/// -/// @details This protocol is used for discovering available services or pear device, -/// and finding one to connect with. -/// -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @see bt_device_service_searched_cb() -final class bt_device_sdp_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services. - @ffi.Int() - external int service_count; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the connection state is changed. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11275,55 +12272,6 @@ typedef Dartbt_device_connection_state_changed_cbFunction = void Function( ffi.Pointer conn_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device connection information structure. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_device_connection_state_changed_cb() -final class bt_device_connection_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < Link type - @ffi.Int32() - external int link; - - /// < Disconnection reason - @ffi.Int32() - external int disconn_reason; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of connection link type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_connection_link_type_e { - /// < BR/EDR link - static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; - - /// < LE link - static const int BT_DEVICE_CONNECTION_LINK_LE = 1; - - /// < The connection type default - static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device disconnect reason. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_disconnect_reason_e { - /// < Disconnected by unknown reason - static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; - - /// < Disconnected by timeout - static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; - - /// < Disconnected by local host - static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; - - /// < Disconnected by remote - static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when you receive data. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11346,27 +12294,6 @@ typedef Dartbt_socket_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Structure of RFCOMM received data. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @remarks User can use standard linux functions for reading/writing \n -/// data from/to sockets. -/// -/// @see bt_socket_data_received_cb() -final class bt_socket_received_data_s extends ffi.Struct { - /// < The socket fd - @ffi.Int() - external int socket_fd; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when a RFCOMM connection is requested. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11414,56 +12341,6 @@ typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of Bluetooth socket connection state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_connection_state_e { - /// < RFCOMM is connected - static const int BT_SOCKET_CONNECTED = 0; - - /// < RFCOMM is disconnected - static const int BT_SOCKET_DISCONNECTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_socket_connection_state_changed_cb() -final class bt_socket_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The service UUId - external ffi.Pointer service_uuid; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of connected Bluetooth device event role. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_role_e { - /// < Unknown role - static const int BT_SOCKET_UNKNOWN = 0; - - /// < Server role - static const int BT_SOCKET_SERVER = 1; - - /// < Client role - static const int BT_SOCKET_CLIENT = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_OPP_SERVER_MODULE /// @brief Called when an OPP connection is requested. /// @@ -11602,75 +12479,36 @@ typedef bt_hid_host_connection_state_changed_cbFunction = ffi.Void Function( ffi.Bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); -typedef Dartbt_hid_host_connection_state_changed_cbFunction = void Function( - int result, - bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Called when the Bluetooth HID Device connection state changes. -/// @details The following error codes can be delivered: \n -/// #BT_ERROR_NONE \n -/// #BT_ERROR_OPERATION_FAILED \n -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @param[in] result The result of changing the connection state. -/// @param[in] connected The requested state. true means the connection is enabled, false means the connection is disabled. -/// @param[in] remote_address The remote device's address -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hid_device_activate() -typedef bt_hid_device_connection_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_hid_device_connection_state_changed_cbFunction = ffi.Void Function( - ffi.Int result, - ffi.Bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); -typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( - int result, - bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID mouse event information. -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_mouse_event() -final class bt_hid_mouse_data_s extends ffi.Struct { - /// < The button values, we can combine key's values when we pressed multiple mouse buttons - @ffi.Int() - external int buttons; - - /// < The location's x value, -128 ~127 - @ffi.Int() - external int axis_x; - - /// < The location's y value, -128 ~127 - @ffi.Int() - external int axis_y; - - /// < The padding value, -128 ~127 - @ffi.Int() - external int padding; -} +typedef Dartbt_hid_host_connection_state_changed_cbFunction = void Function( + int result, + bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID keyboard event information. -/// @details If you want to know more detail values, refer to http://www.usb.org/developers/hidpage/ and see "HID Usage Tables" +/// @brief Called when the Bluetooth HID Device connection state changes. +/// @details The following error codes can be delivered: \n +/// #BT_ERROR_NONE \n +/// #BT_ERROR_OPERATION_FAILED \n /// @since_tizen @if WEARABLE 3.0 @endif /// -/// @see bt_hid_device_send_key_event() -final class bt_hid_key_data_s extends ffi.Struct { - /// < The modifier keys : such as shift, alt - @ffi.UnsignedChar() - external int modifier; - - /// < The key value - currently pressed keys : Max 8 at once - @ffi.Array.multi([8]) - external ffi.Array key; -} +/// @param[in] result The result of changing the connection state. +/// @param[in] connected The requested state. true means the connection is enabled, false means the connection is disabled. +/// @param[in] remote_address The remote device's address +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hid_device_activate() +typedef bt_hid_device_connection_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_hid_device_connection_state_changed_cbFunction = ffi.Void Function( + ffi.Int result, + ffi.Bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); +typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( + int result, + bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE /// @brief Called when the HID Device receives data from the HID Host. @@ -11691,89 +12529,6 @@ typedef Dartbt_hid_device_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing data received from the HID Host. -/// @since_tizen @if WEARABLE 3.0 @endif -final class bt_hid_device_received_data_s extends ffi.Struct { - /// < The remote device's address - external ffi.Pointer address; - - /// < The header type - @ffi.Int32() - external int header_type; - - /// < The parameter type - @ffi.Int32() - external int param_type; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID header type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_header_type_e { - /// < The Bluetooth HID header type: Handshake - static const int BT_HID_HEADER_HANDSHAKE = 0; - - /// < The Bluetooth HID header type: HID control - static const int BT_HID_HEADER_HID_CONTROL = 1; - - /// < The Bluetooth HID header type: Get report - static const int BT_HID_HEADER_GET_REPORT = 2; - - /// < The Bluetooth HID header type: Set report - static const int BT_HID_HEADER_SET_REPORT = 3; - - /// < The Bluetooth HID header type: Get protocol - static const int BT_HID_HEADER_GET_PROTOCOL = 4; - - /// < The Bluetooth HID header type: Set protocol - static const int BT_HID_HEADER_SET_PROTOCOL = 5; - - /// < The Bluetooth HID header type: Data - static const int BT_HID_HEADER_DATA = 6; - - /// < The Bluetooth HID header type: Unknown - static const int BT_HID_HEADER_UNKNOWN = 7; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID parameter type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_param_type_e { - /// < Parameter type: Input - static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; - - /// < Parameter type: Output - static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE -/// @brief Enumerations for the types of profiles related with audio. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_audio_profile_type_e { - /// < All supported profiles related with audio (Both Host and Device role) - static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; - - /// < local device AG and remote device HF Client (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; - - /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; - - /// < local device HF Client and remote device AG (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_AG = 3; - - /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE /// @brief Called when the connection state is changed. /// @@ -11822,82 +12577,6 @@ typedef Dartbt_avrcp_target_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the equalizer state. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_equalizer_state_e { - /// < Equalizer Off - static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; - - /// < Equalizer On - static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the repeat mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_repeat_mode_e { - /// < Repeat Off - static const int BT_AVRCP_REPEAT_MODE_OFF = 1; - - /// < Single track repeat - static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; - - /// < All track repeat - static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; - - /// < Group repeat - static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the shuffle mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_shuffle_mode_e { - /// < Shuffle Off - static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; - - /// < All tracks shuffle - static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; - - /// < Group shuffle - static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the scan mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_scan_mode_e { - /// < Scan Off - static const int BT_AVRCP_SCAN_MODE_OFF = 1; - - /// < All tracks scan - static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; - - /// < Group scan - static const int BT_AVRCP_SCAN_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the player state. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_state_e { - /// < Stopped - static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; - - /// < Playing - static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; - - /// < Paused - static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; - - /// < Seek Forward - static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; - - /// < Seek Rewind - static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the equalizer state is changed by the remote control device. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -12002,37 +12681,6 @@ typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( ffi.Pointer track, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Structure of Track metadata information. -/// @since_tizen 3.0 -/// -/// @see #bt_class_s -final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { - /// < Title - external ffi.Pointer title; - - /// < Artist - external ffi.Pointer artist; - - /// < Album name - external ffi.Pointer album; - - /// < Album Genre - external ffi.Pointer genre; - - /// < The total number of tracks - @ffi.UnsignedInt() - external int total_tracks; - - /// < Track number - @ffi.UnsignedInt() - external int number; - - /// < Duration - @ffi.UnsignedInt() - external int duration; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the connection state is changed. /// @since_tizen 3.0 @@ -12047,34 +12695,8 @@ typedef bt_avrcp_control_connection_state_changed_cbFunction = ffi.Void Function(ffi.Bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); typedef Dartbt_avrcp_control_connection_state_changed_cbFunction - = void Function(bool connected, ffi.Pointer remote_address, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumeration for the player control commands. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_command_e { - /// < Play - static const int BT_AVRCP_CONTROL_PLAY = 1; - - /// < Pause - static const int BT_AVRCP_CONTROL_PAUSE = 2; - - /// < Stop - static const int BT_AVRCP_CONTROL_STOP = 3; - - /// < Next Track - static const int BT_AVRCP_CONTROL_NEXT = 4; - - /// < Previous track - static const int BT_AVRCP_CONTROL_PREVIOUS = 5; - - /// < Fast Forward - static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; - - /// < Rewind - static const int BT_AVRCP_CONTROL_REWIND = 7; -} + = void Function(bool connected, ffi.Pointer remote_address, + ffi.Pointer user_data); /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE @@ -12107,19 +12729,6 @@ typedef Dartbt_hdp_connected_cbFunction = void Function( int channel, ffi.Pointer user_data); -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Enumerations for the data channel type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @remarks Deprecated, because of no usecase and supported devices. -abstract class bt_hdp_channel_type_e { - /// < Reliable Data Channel - static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; - - /// < Streaming Data Channel - static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is disconnected. @@ -12172,54 +12781,6 @@ typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, /// @since_tizen 2.3.1 typedef bt_gatt_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the integer type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_int_e { - /// < 8 bit signed int type - static const int BT_DATA_TYPE_SINT8 = 0; - - /// < 16 bit signed int type - static const int BT_DATA_TYPE_SINT16 = 1; - - /// < 32 bit signed int type - static const int BT_DATA_TYPE_SINT32 = 2; - - /// < 8 bit unsigned int type - static const int BT_DATA_TYPE_UINT8 = 3; - - /// < 16 bit unsigned int type - static const int BT_DATA_TYPE_UINT16 = 4; - - /// < 32 bit unsigned int type - static const int BT_DATA_TYPE_UINT32 = 5; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the float type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_float_e { - /// < 32 bit float type - static const int BT_DATA_TYPE_FLOAT = 0; - - /// < 16 bit float type - static const int BT_DATA_TYPE_SFLOAT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the GATT handle's type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_type_e { - /// < GATT service type - static const int BT_GATT_TYPE_SERVICE = 1; - - /// < GATT characteristic type - static const int BT_GATT_TYPE_CHARACTERISTIC = 2; - - /// < GATT descriptor type - static const int BT_GATT_TYPE_DESCRIPTOR = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief The handle of a GATT client which is associated with a remote device. /// @since_tizen 2.3.1 @@ -12245,17 +12806,6 @@ typedef bt_gatt_foreach_cbFunction = ffi.Bool Function(ffi.Int total, typedef Dartbt_gatt_foreach_cbFunction = bool Function(int total, int index, bt_gatt_h gatt_handle, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the write type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_write_type_e { - /// < Write without response type - static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; - - /// < Write type - static const int BT_GATT_WRITE_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when the client request(e.g. read / write) has been completed. /// @since_tizen 2.3.1 @@ -12296,24 +12846,6 @@ typedef Dartbt_gatt_client_att_mtu_changed_cbFunction = void Function( ffi.Pointer mtu_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Attribute protocol MTU change information structure. -/// @since_tizen 4.0 -/// -/// @see bt_gatt_client_att_mtu_changed_cb() -final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < MTU value - @ffi.UnsignedInt() - external int mtu; - - /// < Request status - @ffi.UnsignedInt() - external int status; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when a value of a watched characteristic's GATT handle has been changed. /// @since_tizen 2.3.1 @@ -12359,20 +12891,6 @@ typedef Dartbt_gatt_client_service_changed_cbFunction = void Function( ffi.Pointer service_uuid, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Enumerations of gatt server's service changing mode. -/// @since_tizen 3.0 -abstract class bt_gatt_client_service_change_type_e { - /// < Service added - static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; - - /// < Service removed - static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; - - /// < Resync is required (Since 6.5) - static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE /// @brief Called when the connection state is changed. /// @@ -12402,17 +12920,6 @@ typedef Dartbt_gatt_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the service type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_service_type_e { - /// < GATT primary service type - static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; - - /// < GATT secondary service type - static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief The handle of a GATT server. /// @since_tizen 3.0 @@ -12527,17 +13034,6 @@ typedef Dartbt_gatt_server_write_value_requested_cbFunction = void Function( int len, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE -/// @brief Enumerations of the remote device request types for attributes. -/// @since_tizen 3.0 -abstract class bt_gatt_att_request_type_e { - /// < Read Requested - static const int BT_GATT_REQUEST_TYPE_READ = 0; - - /// < Write Requested - static const int BT_GATT_REQUEST_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief Called when the sending notification / indication is done. /// @since_tizen 3.0 @@ -12606,39 +13102,6 @@ typedef Dartbt_pbap_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of address book location for PBAP. -/// @since_tizen 3.0 -abstract class bt_pbap_address_book_source_e { - /// < Request for Addressbook from remote device - static const int BT_PBAP_SOURCE_DEVICE = 0; - - /// < Request for address book from SIM - static const int BT_PBAP_SOURCE_SIM = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of folder type. -/// @since_tizen 3.0 -abstract class bt_pbap_folder_type_e { - /// < Request for address book - static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; - - /// < Request for incoming calls - static const int BT_PBAP_FOLDER_INCOMING = 1; - - /// < Request for outgoing calls - static const int BT_PBAP_FOLDER_OUTGOING = 2; - - /// < Request for missed calls - static const int BT_PBAP_FOLDER_MISSED = 3; - - /// < Request for combined calls - static const int BT_PBAP_FOLDER_COMBINED = 4; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook size calculation completes. @@ -12667,33 +13130,6 @@ typedef Dartbt_pbap_phone_book_size_cbFunction = void Function( int size, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of vCard Formats. -/// @since_tizen 3.0 -abstract class bt_pbap_vcard_format_e { - /// < vCard format 2.1 (default) - static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; - - /// < vCard format 3.0 - static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of sorting orders. -/// @since_tizen 3.0 -abstract class bt_pbap_sort_order_e { - /// < Filter order indexed (default) - static const int BT_PBAP_ORDER_INDEXED = 0; - - /// < Filter order alphanumeric - static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; - - /// < Filter order phonetic - static const int BT_PBAP_ORDER_PHONETIC = 2; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook Pull completes. @@ -12754,53 +13190,11 @@ typedef Dartbt_pbap_list_vcards_cbFunction = void Function( int count, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief The structure type containing vCard information. -/// @since_tizen 3.0 -/// -/// @see bt_pbap_client_pull_vcard() -final class bt_pbap_vcard_info_s extends ffi.Struct { - /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() - @ffi.Int() - external int index; - - /// < The contact name of the vCard - external ffi.Pointer contact_name; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of phone book search fields. -/// @since_tizen 3.0 -abstract class bt_pbap_search_field_e { - /// < Request for search by name (default) - static const int BT_PBAP_SEARCH_NAME = 0; - - /// < Request for search by phone number - static const int BT_PBAP_SEARCH_NUMBER = 1; - - /// < Request for search by sound - static const int BT_PBAP_SEARCH_SOUND = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle of a Bluetooth LE scan filter. /// @since_tizen 4.0 typedef bt_scan_filter_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumeration for the scan filter type. -/// @since_tizen 4.0 -/// @see bt_adapter_le_scan_filter_set_type() -abstract class bt_adapter_le_scan_filter_type_e { - /// < iBeacon filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - - /// < Proximity UUID filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when the l2cap channel socket connection state changes. /// @since_tizen 7.0 @@ -12830,29 +13224,3 @@ typedef Dartbt_socket_l2cap_channel_connection_state_changed_cbFunction int connection_state, ffi.Pointer connection, ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. -/// @since_tizen 7.0 -/// -/// @see bt_socket_l2cap_channel_connection_state_changed_cb() -final class bt_socket_l2cap_le_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The psm of the connected socket - @ffi.Int() - external int psm; -} diff --git a/lib/src/bindings/7.0/generated_bindings_capi_system_info.dart b/lib/src/bindings/7.0/generated_bindings_capi_system_info.dart index 4a5b6dfe..ac3f5b83 100644 --- a/lib/src/bindings/7.0/generated_bindings_capi_system_info.dart +++ b/lib/src/bindings/7.0/generated_bindings_capi_system_info.dart @@ -369,6 +369,38 @@ class Tizen70CapiSystemInfo { int Function(ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for system information error codes. +abstract class system_info_error_e { + /// < Successful + static const int SYSTEM_INFO_ERROR_NONE = 0; + + /// < Invalid parameter + static const int SYSTEM_INFO_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int SYSTEM_INFO_ERROR_OUT_OF_MEMORY = -12; + + /// < An input/output error occurred when reading value from system + static const int SYSTEM_INFO_ERROR_IO_ERROR = -5; + + /// < No permission to use the API + static const int SYSTEM_INFO_ERROR_PERMISSION_DENIED = -13; + + /// < Not supported parameter (Since 3.0) + static const int SYSTEM_INFO_ERROR_NOT_SUPPORTED = -1073741822; +} + +/// @internal +/// @brief It is not decided if it should be opened to public. +abstract class system_info_type_e { + static const int SYSTEM_INFO_TYPE_MIN = 0; + static const int SYSTEM_INFO_BOOL = 0; + static const int SYSTEM_INFO_INT = 1; + static const int SYSTEM_INFO_DOUBLE = 2; + static const int SYSTEM_INFO_STRING = 3; + static const int SYSTEM_INFO_TYPE_MAX = 4; +} + /// @internal /// @brief Enumeration for system information key. abstract class system_info_key_e { @@ -417,14 +449,3 @@ abstract class system_info_key_e { /// < @internal Indicates whether the device supports tethering static const int SYSTEM_INFO_KEY_TETHERING_SUPPORTED = 14; } - -/// @internal -/// @brief It is not decided if it should be opened to public. -abstract class system_info_type_e { - static const int SYSTEM_INFO_TYPE_MIN = 0; - static const int SYSTEM_INFO_BOOL = 0; - static const int SYSTEM_INFO_INT = 1; - static const int SYSTEM_INFO_DOUBLE = 2; - static const int SYSTEM_INFO_STRING = 3; - static const int SYSTEM_INFO_TYPE_MAX = 4; -} diff --git a/lib/src/bindings/7.0/generated_bindings_mv_barcode_detector.dart b/lib/src/bindings/7.0/generated_bindings_mv_barcode_detector.dart index 998e4371..5a986c09 100644 --- a/lib/src/bindings/7.0/generated_bindings_mv_barcode_detector.dart +++ b/lib/src/bindings/7.0/generated_bindings_mv_barcode_detector.dart @@ -81,6 +81,123 @@ class Tizen70MvBarcodeDetector { ffi.Pointer)>(); } +/// @brief Enumeration for supported barcode types. +/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead +abstract class mv_barcode_type_e { + /// < 2D barcode - Quick Response code + static const int MV_BARCODE_QR = 0; + + /// < 1D barcode - Universal Product Code with 12-digit + static const int MV_BARCODE_UPC_A = 1; + + /// < 1D barcode - Universal Product Code with 6-digit + static const int MV_BARCODE_UPC_E = 2; + + /// < 1D barcode - International Article Number with 8-digit + static const int MV_BARCODE_EAN_8 = 3; + + /// < 1D barcode - International Article Number with 13-digit + static const int MV_BARCODE_EAN_13 = 4; + + /// < 1D barcode - Code 128 + static const int MV_BARCODE_CODE128 = 5; + + /// < 1D barcode - Code 39 + static const int MV_BARCODE_CODE39 = 6; + + /// < 1D barcode - Interleaved Two of Five + static const int MV_BARCODE_I2_5 = 7; + + /// < @deprecated Undefined (Deprecated since 6.0) + static const int MV_BARCODE_UNDEFINED = 8; + + /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_2 = 9; + + /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_5 = 10; + + /// < 1D barcode - Code 93 (since 6.0) + static const int MV_BARCODE_CODE93 = 11; + + /// < 1D barcode - CODABAR (since 6.0) + static const int MV_BARCODE_CODABAR = 12; + + /// < 1D barcode - GS1 DATABAR (since 6.0) + static const int MV_BARCODE_DATABAR = 13; + + /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) + static const int MV_BARCODE_DATABAR_EXPAND = 14; + + /// < Unknown (since 6.0) + static const int MV_BARCODE_UNKNOWN = 100; +} + +/// @brief Enumeration for supported QR code error correction level. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_ecc_e { + /// < Recovery up to 7% losses + static const int MV_BARCODE_QR_ECC_LOW = 0; + + /// < Recovery up to 15% losses + static const int MV_BARCODE_QR_ECC_MEDIUM = 1; + + /// < Recovery up to 25% losses + static const int MV_BARCODE_QR_ECC_QUARTILE = 2; + + /// < Recovery up to 30% losses + static const int MV_BARCODE_QR_ECC_HIGH = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_ECC_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported QR code encoding mode. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_mode_e { + /// < Numeric digits + static const int MV_BARCODE_QR_MODE_NUMERIC = 0; + + /// < Alphanumeric characters + static const int MV_BARCODE_QR_MODE_ALPHANUMERIC = 1; + + /// < Raw 8-bit bytes + static const int MV_BARCODE_QR_MODE_BYTE = 2; + + /// < UTF-8 character encoding + static const int MV_BARCODE_QR_MODE_UTF8 = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_MODE_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported image formats for the barcode generating. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +abstract class mv_barcode_image_format_e { + /// < Unavailable image format + static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; + + /// < BMP image format + static const int MV_BARCODE_IMAGE_FORMAT_BMP = 0; + + /// < JPEG image format + static const int MV_BARCODE_IMAGE_FORMAT_JPG = 1; + + /// < PNG image format + static const int MV_BARCODE_IMAGE_FORMAT_PNG = 2; + + /// < The number of supported image format + static const int MV_BARCODE_IMAGE_FORMAT_NUM = 3; +} + /// @brief Enumeration to target attribute /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif @@ -151,61 +268,6 @@ typedef Dartmv_barcode_detected_cbFunction = void Function( int number_of_barcodes, ffi.Pointer user_data); -/// @brief Enumeration for supported barcode types. -/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported -/// -/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead -abstract class mv_barcode_type_e { - /// < 2D barcode - Quick Response code - static const int MV_BARCODE_QR = 0; - - /// < 1D barcode - Universal Product Code with 12-digit - static const int MV_BARCODE_UPC_A = 1; - - /// < 1D barcode - Universal Product Code with 6-digit - static const int MV_BARCODE_UPC_E = 2; - - /// < 1D barcode - International Article Number with 8-digit - static const int MV_BARCODE_EAN_8 = 3; - - /// < 1D barcode - International Article Number with 13-digit - static const int MV_BARCODE_EAN_13 = 4; - - /// < 1D barcode - Code 128 - static const int MV_BARCODE_CODE128 = 5; - - /// < 1D barcode - Code 39 - static const int MV_BARCODE_CODE39 = 6; - - /// < 1D barcode - Interleaved Two of Five - static const int MV_BARCODE_I2_5 = 7; - - /// < @deprecated Undefined (Deprecated since 6.0) - static const int MV_BARCODE_UNDEFINED = 8; - - /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_2 = 9; - - /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_5 = 10; - - /// < 1D barcode - Code 93 (since 6.0) - static const int MV_BARCODE_CODE93 = 11; - - /// < 1D barcode - CODABAR (since 6.0) - static const int MV_BARCODE_CODABAR = 12; - - /// < 1D barcode - GS1 DATABAR (since 6.0) - static const int MV_BARCODE_DATABAR = 13; - - /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) - static const int MV_BARCODE_DATABAR_EXPAND = 14; - - /// < Unknown (since 6.0) - static const int MV_BARCODE_UNKNOWN = 100; -} - const String MV_BARCODE_DETECT_ATTR_TARGET = 'MV_BARCODE_DETECT_ATTR_TARGET'; const String MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES = diff --git a/lib/src/bindings/7.0/generated_bindings_mv_barcode_generator.dart b/lib/src/bindings/7.0/generated_bindings_mv_barcode_generator.dart index 748863f0..eb531ec2 100644 --- a/lib/src/bindings/7.0/generated_bindings_mv_barcode_generator.dart +++ b/lib/src/bindings/7.0/generated_bindings_mv_barcode_generator.dart @@ -259,7 +259,7 @@ abstract class _mv_barcode_type_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_mode_e { +abstract class _mv_barcode_qr_mode_e { /// < Numeric digits static const int MV_BARCODE_QR_MODE_NUMERIC = 0; @@ -280,7 +280,7 @@ abstract class mv_barcode_qr_mode_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_ecc_e { +abstract class _mv_barcode_qr_ecc_e { /// < Recovery up to 7% losses static const int MV_BARCODE_QR_ECC_LOW = 0; @@ -300,7 +300,7 @@ abstract class mv_barcode_qr_ecc_e { /// @brief Enumeration for supported image formats for the barcode generating. /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -abstract class mv_barcode_image_format_e { +abstract class _mv_barcode_image_format_e { /// < Unavailable image format static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; diff --git a/lib/src/bindings/7.0/generated_bindings_mv_face.dart b/lib/src/bindings/7.0/generated_bindings_mv_face.dart index 2cec734b..fb9cce63 100644 --- a/lib/src/bindings/7.0/generated_bindings_mv_face.dart +++ b/lib/src/bindings/7.0/generated_bindings_mv_face.dart @@ -1100,6 +1100,53 @@ class Tizen70MvFace { ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for eyes state type. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_eye_condition_recognize() +abstract class mv_face_eye_condition_e { + /// < Eyes are open + static const int MV_FACE_EYES_OPEN = 0; + + /// < Eyes are closed + static const int MV_FACE_EYES_CLOSED = 1; + + /// < The eyes condition wasn't determined + static const int MV_FACE_EYES_NOT_FOUND = 2; +} + +/// @brief Enumeration for expression types can be determined for faces. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_facial_expression_recognize() +abstract class mv_face_facial_expression_e { + /// < Unknown face expression + static const int MV_FACE_UNKNOWN = 0; + + /// < Face expression is neutral + static const int MV_FACE_NEUTRAL = 1; + + /// < Face expression is smiling + static const int MV_FACE_SMILE = 2; + + /// < Face expression is sadness + static const int MV_FACE_SADNESS = 3; + + /// < Face expression is surprise + static const int MV_FACE_SURPRISE = 4; + + /// < Face expression is anger + static const int MV_FACE_ANGER = 5; + + /// < Face expression is fear + static const int MV_FACE_FEAR = 6; + + /// < Face expression is disgust + static const int MV_FACE_DISGUST = 7; +} + /// @brief Called when faces are detected for the @a source. /// @details This type callback can be invoked each time when /// mv_face_detect() is called to process the results of face @@ -1311,22 +1358,6 @@ typedef Dartmv_face_eye_condition_recognized_cbFunction = void Function( int eye_condition, ffi.Pointer user_data); -/// @brief Enumeration for eyes state type. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_eye_condition_recognize() -abstract class mv_face_eye_condition_e { - /// < Eyes are open - static const int MV_FACE_EYES_OPEN = 0; - - /// < Eyes are closed - static const int MV_FACE_EYES_CLOSED = 1; - - /// < The eyes condition wasn't determined - static const int MV_FACE_EYES_NOT_FOUND = 2; -} - /// @brief Called when facial expression is recognized. /// @details This type callback can be invoked each time when /// mv_face_facial_expression_recognize() is called for @a face_location to @@ -1363,37 +1394,6 @@ typedef Dartmv_face_facial_expression_recognized_cbFunction = void Function( int facial_expression, ffi.Pointer user_data); -/// @brief Enumeration for expression types can be determined for faces. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_facial_expression_recognize() -abstract class mv_face_facial_expression_e { - /// < Unknown face expression - static const int MV_FACE_UNKNOWN = 0; - - /// < Face expression is neutral - static const int MV_FACE_NEUTRAL = 1; - - /// < Face expression is smiling - static const int MV_FACE_SMILE = 2; - - /// < Face expression is sadness - static const int MV_FACE_SADNESS = 3; - - /// < Face expression is surprise - static const int MV_FACE_SURPRISE = 4; - - /// < Face expression is anger - static const int MV_FACE_ANGER = 5; - - /// < Face expression is fear - static const int MV_FACE_FEAR = 6; - - /// < Face expression is disgust - static const int MV_FACE_DISGUST = 7; -} - const String MV_FACE_DETECTION_MODEL_FILE_PATH = 'MV_FACE_DETECTION_MODEL_FILE_PATH'; diff --git a/lib/src/bindings/7.0/generated_bindings_mv_inference.dart b/lib/src/bindings/7.0/generated_bindings_mv_inference.dart index 0667d007..673a6b61 100644 --- a/lib/src/bindings/7.0/generated_bindings_mv_inference.dart +++ b/lib/src/bindings/7.0/generated_bindings_mv_inference.dart @@ -821,6 +821,185 @@ class Tizen70MvInference { ffi.Pointer)>(); } +/// @brief Enumeration for inference backend. +/// #MV_INFERENCE_BACKEND_OPENCV An open source computer vision and machine learning +/// software library. +/// (https://opencv.org/about/) +/// #MV_INFERENCE_BACKEND_TFLITE Google-introduced open source inference engine for embedded systems, +/// which runs Tensorflow Lite model. +/// (https://www.tensorflow.org/lite/guide/get_started) +/// #MV_INFERENCE_BACKEND_ARMNN ARM-introduced open source inference engine for CPUs, GPUs and NPUs, which +/// enables efficient translation of existing neural network frameworks +/// such as TensorFlow, TensorFlow Lite and Caffes, allowing them to +/// run efficiently without modification on Embedded hardware. +/// (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn) +/// #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which +/// runs various NN models via tensor filters of NNStreamer. (Deprecated since 7.0) +/// (https://github.com/nnstreamer/nnstreamer) +/// #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which +/// performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU. +/// (https://github.com/Samsung/ONE) +/// +/// @since_tizen 5.5 +/// +/// @see mv_inference_prepare() +abstract class mv_inference_backend_type_e { + /// < None + static const int MV_INFERENCE_BACKEND_NONE = -1; + + /// < OpenCV + static const int MV_INFERENCE_BACKEND_OPENCV = 0; + + /// < TensorFlow-Lite + static const int MV_INFERENCE_BACKEND_TFLITE = 1; + + /// < ARMNN (Since 6.0) + static const int MV_INFERENCE_BACKEND_ARMNN = 2; + + /// < @deprecated ML Single API of NNStreamer (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MLAPI = 3; + + /// < On-device Neural Engine (Since 6.0) + static const int MV_INFERENCE_BACKEND_ONE = 4; + + /// < NNTrainer (Since 7.0) + static const int MV_INFERENCE_BACKEND_NNTRAINER = 5; + + /// < SNPE Engine (Since 7.0) + static const int MV_INFERENCE_BACKEND_SNPE = 6; + + /// < @deprecated Backend MAX (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MAX = 7; +} + +/// @deprecated Deprecated since 6.0. Use #mv_inference_target_device_e instead. +/// @brief Enumeration for inference target. +/// +/// @since_tizen 5.5 +abstract class mv_inference_target_type_e { + /// < None + static const int MV_INFERENCE_TARGET_NONE = -1; + + /// < CPU + static const int MV_INFERENCE_TARGET_CPU = 0; + + /// < GPU + static const int MV_INFERENCE_TARGET_GPU = 1; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_CUSTOM = 2; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_MAX = 3; +} + +/// @brief Enumeration for inference target. +/// +/// @since_tizen 6.0 +abstract class mv_inference_target_device_e { + /// < None + static const int MV_INFERENCE_TARGET_DEVICE_NONE = 0; + + /// < CPU + static const int MV_INFERENCE_TARGET_DEVICE_CPU = 1; + + /// < GPU + static const int MV_INFERENCE_TARGET_DEVICE_GPU = 2; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_DEVICE_CUSTOM = 4; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_DEVICE_MAX = 8; +} + +/// @brief Enumeration for input data type. +/// +/// @since_tizen 6.0 +abstract class mv_inference_data_type_e { + /// < Data type of a given pre-trained model is float. + static const int MV_INFERENCE_DATA_FLOAT32 = 0; + + /// < Data type of a given pre-trained model is unsigned char. + static const int MV_INFERENCE_DATA_UINT8 = 1; +} + +/// @brief Enumeration for human pose landmark. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_pose_landmark_e { + /// < Head of human pose + static const int MV_INFERENCE_HUMAN_POSE_HEAD = 1; + + /// < Neck of human pose + static const int MV_INFERENCE_HUMAN_POSE_NECK = 2; + + /// < Thorax of human pose + static const int MV_INFERENCE_HUMAN_POSE_THORAX = 3; + + /// < Right shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_SHOULDER = 4; + + /// < Right elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ELBOW = 5; + + /// < Right wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_WRIST = 6; + + /// < Left shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_SHOULDER = 7; + + /// < Left elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ELBOW = 8; + + /// < Left wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_WRIST = 9; + + /// < Pelvis of human pose + static const int MV_INFERENCE_HUMAN_POSE_PELVIS = 10; + + /// < Right hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_HIP = 11; + + /// < Right knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_KNEE = 12; + + /// < Right ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ANKLE = 13; + + /// < Left hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_HIP = 14; + + /// < Left knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_KNEE = 15; + + /// < Left ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ANKLE = 16; +} + +/// @brief Enumeration for human body parts. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_body_part_e { + /// < HEAD, NECK, and THORAX + static const int MV_INFERENCE_HUMAN_BODY_PART_HEAD = 1; + + /// < RIGHT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_RIGHT = 2; + + /// < LEFT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_LEFT = 4; + + /// < THORAX, PELVIS, RIGHT HIP, and LEFT HIP + static const int MV_INFERENCE_HUMAN_BODY_PART_BODY = 8; + + /// < RIGHT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_RIGHT = 16; + + /// < LEFT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_LEFT = 32; +} + /// @brief The inference handle. /// @details Contains information about location of /// detected landmarks for one or more poses. diff --git a/lib/src/bindings/7.0/generated_bindings_tbm.dart b/lib/src/bindings/7.0/generated_bindings_tbm.dart index 7bb924f9..34cdebcc 100644 --- a/lib/src/bindings/7.0/generated_bindings_tbm.dart +++ b/lib/src/bindings/7.0/generated_bindings_tbm.dart @@ -449,6 +449,8 @@ class Tizen70Tbm { _tbm_surface_get_formatPtr.asFunction(); } +final class _tbm_surface extends ffi.Opaque {} + /// @brief Enumeration for tbm_surface error type. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif abstract class tbm_surface_error_e { @@ -544,12 +546,128 @@ typedef tbm_surface_plane_s = _tbm_surface_plane; /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_h = ffi.Pointer<_tbm_surface>; -final class _tbm_surface extends ffi.Opaque {} - /// @brief Definition for the TBM surface information struct. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_info_s = _tbm_surface_info; +const int TBM_FORMAT_C8 = 538982467; + +const int TBM_FORMAT_RGB332 = 943867730; + +const int TBM_FORMAT_BGR233 = 944916290; + +const int TBM_FORMAT_XRGB4444 = 842093144; + +const int TBM_FORMAT_XBGR4444 = 842089048; + +const int TBM_FORMAT_RGBX4444 = 842094674; + +const int TBM_FORMAT_BGRX4444 = 842094658; + +const int TBM_FORMAT_ARGB4444 = 842093121; + +const int TBM_FORMAT_ABGR4444 = 842089025; + +const int TBM_FORMAT_RGBA4444 = 842088786; + +const int TBM_FORMAT_BGRA4444 = 842088770; + +const int TBM_FORMAT_XRGB1555 = 892424792; + +const int TBM_FORMAT_XBGR1555 = 892420696; + +const int TBM_FORMAT_RGBX5551 = 892426322; + +const int TBM_FORMAT_BGRX5551 = 892426306; + +const int TBM_FORMAT_ARGB1555 = 892424769; + +const int TBM_FORMAT_ABGR1555 = 892420673; + +const int TBM_FORMAT_RGBA5551 = 892420434; + +const int TBM_FORMAT_BGRA5551 = 892420418; + +const int TBM_FORMAT_RGB565 = 909199186; + +const int TBM_FORMAT_BGR565 = 909199170; + +const int TBM_FORMAT_RGB888 = 875710290; + +const int TBM_FORMAT_BGR888 = 875710274; + +const int TBM_FORMAT_XRGB8888 = 875713112; + +const int TBM_FORMAT_XBGR8888 = 875709016; + +const int TBM_FORMAT_RGBX8888 = 875714642; + +const int TBM_FORMAT_BGRX8888 = 875714626; + +const int TBM_FORMAT_ARGB8888 = 875713089; + +const int TBM_FORMAT_ABGR8888 = 875708993; + +const int TBM_FORMAT_RGBA8888 = 875708754; + +const int TBM_FORMAT_BGRA8888 = 875708738; + +const int TBM_FORMAT_XRGB2101010 = 808669784; + +const int TBM_FORMAT_XBGR2101010 = 808665688; + +const int TBM_FORMAT_RGBX1010102 = 808671314; + +const int TBM_FORMAT_BGRX1010102 = 808671298; + +const int TBM_FORMAT_ARGB2101010 = 808669761; + +const int TBM_FORMAT_ABGR2101010 = 808665665; + +const int TBM_FORMAT_RGBA1010102 = 808665426; + +const int TBM_FORMAT_BGRA1010102 = 808665410; + +const int TBM_FORMAT_YUYV = 1448695129; + +const int TBM_FORMAT_YVYU = 1431918169; + +const int TBM_FORMAT_UYVY = 1498831189; + +const int TBM_FORMAT_VYUY = 1498765654; + +const int TBM_FORMAT_AYUV = 1448433985; + +const int TBM_FORMAT_NV12 = 842094158; + +const int TBM_FORMAT_NV21 = 825382478; + +const int TBM_FORMAT_NV16 = 909203022; + +const int TBM_FORMAT_NV61 = 825644622; + +const int TBM_FORMAT_YUV410 = 961959257; + +const int TBM_FORMAT_YVU410 = 961893977; + +const int TBM_FORMAT_YUV411 = 825316697; + +const int TBM_FORMAT_YVU411 = 825316953; + +const int TBM_FORMAT_YUV420 = 842093913; + +const int TBM_FORMAT_YVU420 = 842094169; + +const int TBM_FORMAT_YUV422 = 909202777; + +const int TBM_FORMAT_YVU422 = 909203033; + +const int TBM_FORMAT_YUV444 = 875713881; + +const int TBM_FORMAT_YVU444 = 875714137; + +const int TBM_FORMAT_NV12MT = 842091860; + const int TBM_SURF_PLANE_MAX = 4; const int TBM_SURF_OPTION_READ = 1; diff --git a/lib/src/bindings/8.0/generated_bindings_capi_base_common.dart b/lib/src/bindings/8.0/generated_bindings_capi_base_common.dart index b3feee7d..18237af7 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_base_common.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_base_common.dart @@ -386,6 +386,8 @@ abstract class tizen_error_e { static const int TIZEN_ERROR_END_OF_COLLECTION = -1073741819; } +const int NULL = 0; + const int TIZEN_ERROR_MAX_PLATFORM_ERROR = 0; const int TIZEN_ERROR_MIN_PLATFORM_ERROR = -1073741824; diff --git a/lib/src/bindings/8.0/generated_bindings_capi_geofence_manager.dart b/lib/src/bindings/8.0/generated_bindings_capi_geofence_manager.dart index 8f87edf8..87220d77 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_geofence_manager.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_geofence_manager.dart @@ -1243,76 +1243,6 @@ class Tizen80CapiGeofenceManager { .asFunction)>(); } -/// @deprecated Deprecated since 8.0. -/// @brief The geofence manager handle. -/// @since_tizen 2.4 -typedef geofence_manager_h = ffi.Pointer; - -final class geofence_manager_s extends ffi.Opaque {} - -/// @deprecated Deprecated since 8.0. -/// @brief The geofence handle. -/// @since_tizen 2.4 -typedef geofence_h = ffi.Pointer; - -final class geofence_s extends ffi.Opaque {} - -/// @deprecated Deprecated since 8.0. -/// @brief Called when a device enters or exits the given geofence. -/// @since_tizen 2.4 -/// @param[in] geofence_id The specified geofence ID -/// @param[in] state The geofence state -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). -/// @see geofence_state_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_state_changed_cb() -typedef geofence_state_changed_cb - = ffi.Pointer>; -typedef geofence_state_changed_cbFunction = ffi.Void Function( - ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartgeofence_state_changed_cbFunction = void Function( - int geofence_id, int state, ffi.Pointer user_data); - -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for the state of geofence manager. -/// @since_tizen 2.4 -abstract class geofence_state_e { - /// < Uncertain state of geofence - static const int GEOFENCE_STATE_UNCERTAIN = 0; - - /// < Geofence In state - static const int GEOFENCE_STATE_IN = 1; - - /// < Geofence Out state - static const int GEOFENCE_STATE_OUT = 2; -} - -/// @deprecated Deprecated since 8.0. -/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. -/// @details The events of public geofence is also received if there are public geofences. -/// @since_tizen 2.4 -/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. -/// @param[in] place_id The place ID -/// @param[in] geofence_id The specified geofence ID -/// @param[in] error The error code for the particular action -/// @param[in] manage The result code for the particular place and geofence management -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() -/// @see geofence_manage_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_event_cb() -typedef geofence_event_cb - = ffi.Pointer>; -typedef geofence_event_cbFunction = ffi.Void Function( - ffi.Int place_id, - ffi.Int geofence_id, - ffi.Int32 error, - ffi.Int32 manage, - ffi.Pointer user_data); -typedef Dartgeofence_event_cbFunction = void Function(int place_id, - int geofence_id, int error, int manage, ffi.Pointer user_data); - /// @deprecated Deprecated since 8.0. /// @brief Enumeration for Geofence manager of error code. /// @since_tizen 2.4 @@ -1360,6 +1290,71 @@ abstract class geofence_manager_error_e { static const int GEOFENCE_MANAGER_ERROR_GEOFENCE_ACCESS_DENIED = -46202871; } +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for the state of geofence manager. +/// @since_tizen 2.4 +abstract class geofence_state_e { + /// < Uncertain state of geofence + static const int GEOFENCE_STATE_UNCERTAIN = 0; + + /// < Geofence In state + static const int GEOFENCE_STATE_IN = 1; + + /// < Geofence Out state + static const int GEOFENCE_STATE_OUT = 2; +} + +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for the state of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_state_e { + /// < Uncertain state of proximity + static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; + + /// < Far state of proximity + static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; + + /// < Near state of proximity + static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; + + /// < Immediate state of proximity + static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; +} + +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for the provider of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_provider_e { + /// < Proximity is specified by geospatial coordinate + static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; + + /// < Proximity is specified by Wi-Fi access point + static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; + + /// < Proximity is specified by Bluetooth device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; + + /// < Proximity is specified by Bluetooth low energy device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; + + /// < Proximity is specified by Sensor + static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; +} + +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for geofence type. +/// @since_tizen 2.4 +abstract class geofence_type_e { + /// < Geofence is specified by geospatial coordinate + static const int GEOFENCE_TYPE_GEOPOINT = 1; + + /// < Geofence is specified by Wi-Fi access point + static const int GEOFENCE_TYPE_WIFI = 2; + + /// < Geofence is specified by Bluetooth device + static const int GEOFENCE_TYPE_BT = 3; +} + /// @deprecated Deprecated since 8.0. /// @brief Enumeration for geofence management events. /// @since_tizen 2.4 @@ -1392,6 +1387,64 @@ abstract class geofence_manage_e { static const int GEOFENCE_MANAGE_SETTING_DISABLED = 33; } +final class geofence_manager_s extends ffi.Opaque {} + +final class geofence_s extends ffi.Opaque {} + +final class geofence_status_s extends ffi.Opaque {} + +/// @deprecated Deprecated since 8.0. +/// @brief The geofence manager handle. +/// @since_tizen 2.4 +typedef geofence_manager_h = ffi.Pointer; + +/// @deprecated Deprecated since 8.0. +/// @brief The geofence handle. +/// @since_tizen 2.4 +typedef geofence_h = ffi.Pointer; + +/// @deprecated Deprecated since 8.0. +/// @brief Called when a device enters or exits the given geofence. +/// @since_tizen 2.4 +/// @param[in] geofence_id The specified geofence ID +/// @param[in] state The geofence state +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). +/// @see geofence_state_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_state_changed_cb() +typedef geofence_state_changed_cb + = ffi.Pointer>; +typedef geofence_state_changed_cbFunction = ffi.Void Function( + ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartgeofence_state_changed_cbFunction = void Function( + int geofence_id, int state, ffi.Pointer user_data); + +/// @deprecated Deprecated since 8.0. +/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. +/// @details The events of public geofence is also received if there are public geofences. +/// @since_tizen 2.4 +/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. +/// @param[in] place_id The place ID +/// @param[in] geofence_id The specified geofence ID +/// @param[in] error The error code for the particular action +/// @param[in] manage The result code for the particular place and geofence management +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() +/// @see geofence_manage_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_event_cb() +typedef geofence_event_cb + = ffi.Pointer>; +typedef geofence_event_cbFunction = ffi.Void Function( + ffi.Int place_id, + ffi.Int geofence_id, + ffi.Int32 error, + ffi.Int32 manage, + ffi.Pointer user_data); +typedef Dartgeofence_event_cbFunction = void Function(int place_id, + int geofence_id, int error, int manage, ffi.Pointer user_data); + /// @deprecated Deprecated since 8.0. /// @brief Called when a proximity state of device is changed. /// @since_tizen 3.0 @@ -1414,43 +1467,6 @@ typedef geofence_proximity_state_changed_cbFunction = ffi.Void Function( typedef Dartgeofence_proximity_state_changed_cbFunction = void Function( int geofence_id, int state, int provider, ffi.Pointer user_data); -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for the state of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_state_e { - /// < Uncertain state of proximity - static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; - - /// < Far state of proximity - static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; - - /// < Near state of proximity - static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; - - /// < Immediate state of proximity - static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; -} - -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for the provider of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_provider_e { - /// < Proximity is specified by geospatial coordinate - static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; - - /// < Proximity is specified by Wi-Fi access point - static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; - - /// < Proximity is specified by Bluetooth device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; - - /// < Proximity is specified by Bluetooth low energy device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; - - /// < Proximity is specified by Sensor - static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; -} - /// @deprecated Deprecated since 8.0. /// @brief Called when the fence list is requested. /// @since_tizen 2.4 @@ -1508,23 +1524,7 @@ typedef Dartgeofence_manager_place_cbFunction = bool Function( int place_cnt, ffi.Pointer user_data); -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for geofence type. -/// @since_tizen 2.4 -abstract class geofence_type_e { - /// < Geofence is specified by geospatial coordinate - static const int GEOFENCE_TYPE_GEOPOINT = 1; - - /// < Geofence is specified by Wi-Fi access point - static const int GEOFENCE_TYPE_WIFI = 2; - - /// < Geofence is specified by Bluetooth device - static const int GEOFENCE_TYPE_BT = 3; -} - /// @deprecated Deprecated since 8.0. /// @brief The geofence status handle. /// @since_tizen 2.4 typedef geofence_status_h = ffi.Pointer; - -final class geofence_status_s extends ffi.Opaque {} diff --git a/lib/src/bindings/8.0/generated_bindings_capi_media_controller.dart b/lib/src/bindings/8.0/generated_bindings_capi_media_controller.dart index 5e522401..12ae86b4 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_media_controller.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_media_controller.dart @@ -6781,72 +6781,44 @@ class Tizen80CapiMediaController { .asFunction)>(); } -/// @brief The structure type for the media controller playlist handle. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -typedef mc_playlist_h = ffi.Pointer; +/// @brief Enumeration for the media controller error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_error_e { + /// < Successful + static const int MEDIA_CONTROLLER_ERROR_NONE = 0; -/// @brief Called for every playlist item in the playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a index and @a metadata should not be released by the application. \n -/// The @a index can be used only in the callback. To use outside, make a copy. -/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] index The ID of the playlist member. -/// @param[in] metadata The handle to metadata of the playlist item. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_item() will invoke this function. -/// -/// @see mc_playlist_foreach_item() -/// @see mc_metadata_clone() -/// @see mc_metadata_get() -typedef mc_playlist_item_cb - = ffi.Pointer>; -typedef mc_playlist_item_cbFunction = ffi.Bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); -typedef Dartmc_playlist_item_cbFunction = bool Function( - ffi.Pointer index, - mc_metadata_h metadata, - ffi.Pointer user_data); + /// < Invalid parameter + static const int MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER = -22; -/// @brief The structure type for the media controller metadata handle. + /// < Out of memory + static const int MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int MEDIA_CONTROLLER_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED = -13; + + /// < Limited by server application (since 5.5) + static const int MEDIA_CONTROLLER_ERROR_ABILITY_LIMITED_BY_SERVER_APP = + -50462719; +} + +/// @brief Enumeration for the media controller server state. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef mc_metadata_h = ffi.Pointer; +abstract class mc_server_state_e { + /// < None state + static const int MC_SERVER_STATE_NONE = 0; -/// @brief Called for every playlist. -/// -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -/// -/// @remarks The @a playlist should not be released by the application. \n -/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n -/// The callback is called in the main loop. -/// -/// @param[in] playlist The handle of the media controller playlist. -/// @param[in] user_data The user data passed from the foreach function -/// -/// @return @c true to continue with the next iteration of the loop, -/// otherwise @c false to break out of the loop -/// -/// @pre mc_playlist_foreach_playlist() will invoke this function. -/// -/// @see mc_playlist_clone() -/// @see mc_playlist_foreach_playlist() -/// @see mc_playlist_get_name() -/// @see mc_playlist_foreach_item() -typedef mc_playlist_cb - = ffi.Pointer>; -typedef mc_playlist_cbFunction = ffi.Bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); -typedef Dartmc_playlist_cbFunction = bool Function( - mc_playlist_h playlist, ffi.Pointer user_data); + /// < Activate state + static const int MC_SERVER_STATE_ACTIVATE = 1; + + /// < Deactivate state + static const int MC_SERVER_STATE_DEACTIVATE = 2; +} /// @brief Enumeration for the media meta info. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif @@ -6894,9 +6866,42 @@ abstract class mc_meta_e { static const int MC_META_MEDIA_RESOLUTION = 13; } -/// @brief The structure type for the media controller ability handle. -/// @since_tizen 5.0 -typedef mc_playback_ability_h = ffi.Pointer; +/// @brief Enumeration for the media playback state. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_playback_states_e { + /// < None + static const int MC_PLAYBACK_STATE_NONE = 0; + + /// < Playing + static const int MC_PLAYBACK_STATE_PLAYING = 1; + + /// < Paused + static const int MC_PLAYBACK_STATE_PAUSED = 2; + + /// < Stopped + static const int MC_PLAYBACK_STATE_STOPPED = 3; + + /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; + + /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; + + /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; + + /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_PLAYBACK_STATE_REWINDING = 11; + + /// < Connecting (Since 6.0) + static const int MC_PLAYBACK_STATE_CONNECTING = 12; + + /// < Buffering (Since 6.0) + static const int MC_PLAYBACK_STATE_BUFFERING = 13; + + /// < Error (Since 6.0) + static const int MC_PLAYBACK_STATE_ERROR = 14; +} /// @brief Enumeration for the media playback action. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif @@ -6926,22 +6931,78 @@ abstract class mc_playback_action_e { static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; } -/// @brief Enumeration for the support of the ability. -/// @since_tizen 5.0 -abstract class mc_ability_support_e { - /// < Supported - static const int MC_ABILITY_SUPPORTED_YES = 0; +/// @brief Enumeration for the shuffle mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_shuffle_mode_e { + /// < Shuffle mode on + static const int MC_SHUFFLE_MODE_ON = 0; - /// < Not supported - static const int MC_ABILITY_SUPPORTED_NO = 1; + /// < Shuffle mode off + static const int MC_SHUFFLE_MODE_OFF = 1; +} - /// < Not decided - static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +/// @brief Enumeration for the repeat mode. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_repeat_mode_e { + /// < Repeat mode on for all media + static const int MC_REPEAT_MODE_ON = 0; + + /// < Repeat mode off + static const int MC_REPEAT_MODE_OFF = 1; + + /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_REPEAT_MODE_ONE_MEDIA = 2; } -/// @brief The structure type for the media controller search handle. -/// @since_tizen 5.0 -typedef mc_search_h = ffi.Pointer; +/// @brief Enumeration for the subscription type. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class mc_subscription_type_e { + /// < Server state + static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; + + /// < Playback + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; + + /// < Metadata + static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; + + /// < Shuffle mode + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; + + /// < Repeat mode + static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; + + /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) + static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; + + /// < Playback ability (Since 5.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; + + /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; + + /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) + static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; + + /// < Ability support (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; + + /// < Display mode ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; + + /// < Display rotation ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; +} + +/// @brief Enumeration for the playlist update mode. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +abstract class mc_playlist_update_mode_e { + /// < Create or Update playlist + static const int MC_PLAYLIST_UPDATED = 0; + + /// < Remove playlist + static const int MC_PLAYLIST_REMOVED = 1; +} /// @brief Enumeration for the content type of the content. /// @since_tizen 5.0 @@ -6962,6 +7023,111 @@ abstract class mc_content_type_e { static const int MC_CONTENT_TYPE_UNDECIDED = 4; } +/// @brief Enumeration for the content age rating of the content. +/// @since_tizen 5.0 +abstract class mc_content_age_rating_e { + /// < Suitable for all ages + static const int MC_CONTENT_RATING_ALL = 0; + + /// < Suitable for ages 1 and up + static const int MC_CONTENT_RATING_1_PLUS = 1; + + /// < Suitable for ages 2 and up + static const int MC_CONTENT_RATING_2_PLUS = 2; + + /// < Suitable for ages 3 and up + static const int MC_CONTENT_RATING_3_PLUS = 3; + + /// < Suitable for ages 4 and up + static const int MC_CONTENT_RATING_4_PLUS = 4; + + /// < Suitable for ages 5 and up + static const int MC_CONTENT_RATING_5_PLUS = 5; + + /// < Suitable for ages 6 and up + static const int MC_CONTENT_RATING_6_PLUS = 6; + + /// < Suitable for ages 7 and up + static const int MC_CONTENT_RATING_7_PLUS = 7; + + /// < Suitable for ages 8 and up + static const int MC_CONTENT_RATING_8_PLUS = 8; + + /// < Suitable for ages 9 and up + static const int MC_CONTENT_RATING_9_PLUS = 9; + + /// < Suitable for ages 10 and up + static const int MC_CONTENT_RATING_10_PLUS = 10; + + /// < Suitable for ages 11 and up + static const int MC_CONTENT_RATING_11_PLUS = 11; + + /// < Suitable for ages 12 and up + static const int MC_CONTENT_RATING_12_PLUS = 12; + + /// < Suitable for ages 13 and up + static const int MC_CONTENT_RATING_13_PLUS = 13; + + /// < Suitable for ages 14 and up + static const int MC_CONTENT_RATING_14_PLUS = 14; + + /// < Suitable for ages 15 and up + static const int MC_CONTENT_RATING_15_PLUS = 15; + + /// < Suitable for ages 16 and up + static const int MC_CONTENT_RATING_16_PLUS = 16; + + /// < Suitable for ages 17 and up + static const int MC_CONTENT_RATING_17_PLUS = 17; + + /// < Suitable for ages 18 and up + static const int MC_CONTENT_RATING_18_PLUS = 18; + + /// < Suitable for ages 19 and up + static const int MC_CONTENT_RATING_19_PLUS = 19; +} + +/// @brief Enumeration for the support of the ability. +/// @since_tizen 5.0 +abstract class mc_ability_support_e { + /// < Supported + static const int MC_ABILITY_SUPPORTED_YES = 0; + + /// < Not supported + static const int MC_ABILITY_SUPPORTED_NO = 1; + + /// < Not decided + static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +} + +/// @brief Enumeration for the ability. +/// @since_tizen 5.5 +abstract class mc_ability_e { + /// < Shuffle + static const int MC_ABILITY_SHUFFLE = 0; + + /// < Repeat + static const int MC_ABILITY_REPEAT = 1; + + /// < Playback Position + static const int MC_ABILITY_PLAYBACK_POSITION = 2; + + /// < Playlist + static const int MC_ABILITY_PLAYLIST = 3; + + /// < Custom command from a client + static const int MC_ABILITY_CLIENT_CUSTOM = 4; + + /// < Search + static const int MC_ABILITY_SEARCH = 5; + + /// < Subtitles display + static const int MC_ABILITY_SUBTITLES = 6; + + /// < 360 content mode display + static const int MC_ABILITY_360_MODE = 7; +} + /// @brief Enumeration for the search category. /// @since_tizen 5.0 abstract class mc_search_category_e { @@ -6980,9 +7146,170 @@ abstract class mc_search_category_e { /// < Search by content genre static const int MC_SEARCH_GENRE = 4; - /// < Search by Time Place Occasion - static const int MC_SEARCH_TPO = 5; -} + /// < Search by Time Place Occasion + static const int MC_SEARCH_TPO = 5; +} + +/// @brief Enumeration for the display mode. +/// @since_tizen 5.5 +abstract class mc_display_mode_e { + /// < Letter box + static const int MC_DISPLAY_MODE_LETTER_BOX = 1; + + /// < Origin size + static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; + + /// < Full-screen + static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; + + /// < Cropped full-screen + static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; +} + +/// @brief Enumeration for the display rotation. +/// @since_tizen 5.5 +abstract class mc_display_rotation_e { + /// < Display is not rotated + static const int MC_DISPLAY_ROTATION_NONE = 1; + + /// < Display is rotated 90 degrees + static const int MC_DISPLAY_ROTATION_90 = 2; + + /// < Display is rotated 180 degrees + static const int MC_DISPLAY_ROTATION_180 = 4; + + /// < Display is rotated 270 degrees + static const int MC_DISPLAY_ROTATION_270 = 8; +} + +/// @brief The result codes of the reply for the command or the event. +/// @since_tizen 6.0 +/// +/// @see mc_cmd_reply_received_cb() +/// @see mc_client_send_event_reply() +/// @see mc_server_event_reply_received_cb() +/// @see mc_server_send_cmd_reply() +abstract class mc_result_code_e { + /// < The command or the event has been successfully completed. + static const int MC_RESULT_CODE_SUCCESS = 0; + + /// < The command or the event had already been completed. + static const int MC_RESULT_CODE_ALREADY_DONE = 200; + + /// < The command or the event is aborted by some external event (e.g. aborted play command by incoming call). + static const int MC_RESULT_CODE_ABORTED = 300; + + /// < The command or the event is denied due to application policy (e.g. cannot rewind in recording). + static const int MC_RESULT_CODE_DENIED = 301; + + /// < The command or the event is not supported. + static const int MC_RESULT_CODE_NOT_SUPPORTED = 302; + + /// < The command or the event is out of supported range or the limit is reached. + static const int MC_RESULT_CODE_INVALID = 303; + + /// < Timeout has occurred. + static const int MC_RESULT_CODE_TIMEOUT = 400; + + /// < The application has failed. + static const int MC_RESULT_CODE_APP_FAILED = 401; + + /// < The command or the event has failed because the application has no media. + static const int MC_RESULT_CODE_NO_MEDIA = 402; + + /// < The command or the event has failed because there is no audio output device. + static const int MC_RESULT_CODE_NO_AUDIO_OUTPUT_DEVICE = 403; + + /// < The command or the event has failed because there is no peer. + static const int MC_RESULT_CODE_NO_PEER = 404; + + /// < The network has failed. + static const int MC_RESULT_CODE_NETWORK_FAILED = 500; + + /// < The application needs to have an account to which it's logged in. + static const int MC_RESULT_CODE_NO_ACCOUNT = 600; + + /// < The application could not log in. + static const int MC_RESULT_CODE_LOGIN_FAILED = 601; + + /// < Unknown error. + static const int MC_RESULT_CODE_UNKNOWN = 2147483647; +} + +/// @brief The structure type for the media controller playlist handle. +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +typedef mc_playlist_h = ffi.Pointer; + +/// @brief Called for every playlist item in the playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a index and @a metadata should not be released by the application. \n +/// The @a index can be used only in the callback. To use outside, make a copy. +/// And @a metadata also can be used only in the callback. To use outside, make a copy with the mc_metadata_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] index The ID of the playlist member. +/// @param[in] metadata The handle to metadata of the playlist item. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_item() will invoke this function. +/// +/// @see mc_playlist_foreach_item() +/// @see mc_metadata_clone() +/// @see mc_metadata_get() +typedef mc_playlist_item_cb + = ffi.Pointer>; +typedef mc_playlist_item_cbFunction = ffi.Bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); +typedef Dartmc_playlist_item_cbFunction = bool Function( + ffi.Pointer index, + mc_metadata_h metadata, + ffi.Pointer user_data); + +/// @brief The structure type for the media controller metadata handle. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef mc_metadata_h = ffi.Pointer; + +/// @brief Called for every playlist. +/// +/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif +/// +/// @remarks The @a playlist should not be released by the application. \n +/// To use the @a playlist outside this function, copy the handle with the mc_playlist_clone() function. \n +/// The callback is called in the main loop. +/// +/// @param[in] playlist The handle of the media controller playlist. +/// @param[in] user_data The user data passed from the foreach function +/// +/// @return @c true to continue with the next iteration of the loop, +/// otherwise @c false to break out of the loop +/// +/// @pre mc_playlist_foreach_playlist() will invoke this function. +/// +/// @see mc_playlist_clone() +/// @see mc_playlist_foreach_playlist() +/// @see mc_playlist_get_name() +/// @see mc_playlist_foreach_item() +typedef mc_playlist_cb + = ffi.Pointer>; +typedef mc_playlist_cbFunction = ffi.Bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); +typedef Dartmc_playlist_cbFunction = bool Function( + mc_playlist_h playlist, ffi.Pointer user_data); + +/// @brief The structure type for the media controller ability handle. +/// @since_tizen 5.0 +typedef mc_playback_ability_h = ffi.Pointer; + +/// @brief The structure type for the media controller search handle. +/// @since_tizen 5.0 +typedef mc_search_h = ffi.Pointer; /// @brief Called for every search condition information in the obtained list of search. /// @details Iterates over a search list. @@ -7048,19 +7375,6 @@ typedef Dartmc_server_state_updated_cbFunction = void Function( int state, ffi.Pointer user_data); -/// @brief Enumeration for the media controller server state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_server_state_e { - /// < None state - static const int MC_SERVER_STATE_NONE = 0; - - /// < Activate state - static const int MC_SERVER_STATE_ACTIVATE = 1; - - /// < Deactivate state - static const int MC_SERVER_STATE_DEACTIVATE = 2; -} - /// @brief Called when the playback information of the media controller server is updated. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7146,16 +7460,6 @@ typedef Dartmc_shuffle_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the shuffle mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_shuffle_mode_e { - /// < Shuffle mode on - static const int MC_SHUFFLE_MODE_ON = 0; - - /// < Shuffle mode off - static const int MC_SHUFFLE_MODE_OFF = 1; -} - /// @brief Called when the repeat mode of the media controller server is updated. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7181,19 +7485,6 @@ typedef Dartmc_repeat_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the repeat mode. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_repeat_mode_e { - /// < Repeat mode on for all media - static const int MC_REPEAT_MODE_ON = 0; - - /// < Repeat mode off - static const int MC_REPEAT_MODE_OFF = 1; - - /// < Repeat mode on for one media (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_REPEAT_MODE_ONE_MEDIA = 2; -} - /// @brief Called when the playback ability support of the media controller server is updated. /// @since_tizen 5.0 /// @@ -7299,34 +7590,6 @@ typedef Dartmc_ability_support_updated_cbFunction = void Function( int support, ffi.Pointer user_data); -/// @brief Enumeration for the ability. -/// @since_tizen 5.5 -abstract class mc_ability_e { - /// < Shuffle - static const int MC_ABILITY_SHUFFLE = 0; - - /// < Repeat - static const int MC_ABILITY_REPEAT = 1; - - /// < Playback Position - static const int MC_ABILITY_PLAYBACK_POSITION = 2; - - /// < Playlist - static const int MC_ABILITY_PLAYLIST = 3; - - /// < Custom command from a client - static const int MC_ABILITY_CLIENT_CUSTOM = 4; - - /// < Search - static const int MC_ABILITY_SEARCH = 5; - - /// < Subtitles display - static const int MC_ABILITY_SUBTITLES = 6; - - /// < 360 content mode display - static const int MC_ABILITY_360_MODE = 7; -} - /// @brief Called when a media controller server's supported items for an ability is updated. /// @since_tizen 5.5 /// @@ -7416,16 +7679,6 @@ typedef Dartmc_playlist_updated_cbFunction = void Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the playlist update mode. -/// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif -abstract class mc_playlist_update_mode_e { - /// < Create or Update playlist - static const int MC_PLAYLIST_UPDATED = 0; - - /// < Remove playlist - static const int MC_PLAYLIST_REMOVED = 1; -} - /// @brief Called when the status of a media controller server's boolean attribute (subtitles or 360 mode) is updated. /// @since_tizen 5.5 /// @@ -7473,22 +7726,6 @@ typedef Dartmc_display_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the display mode. -/// @since_tizen 5.5 -abstract class mc_display_mode_e { - /// < Letter box - static const int MC_DISPLAY_MODE_LETTER_BOX = 1; - - /// < Origin size - static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; - - /// < Full-screen - static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; - - /// < Cropped full-screen - static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; -} - /// @brief Called when a media controller server's display rotation is updated. /// @since_tizen 5.5 /// @@ -7512,22 +7749,6 @@ typedef Dartmc_display_rotation_updated_cbFunction = void Function( int rotation, ffi.Pointer user_data); -/// @brief Enumeration for the display rotation. -/// @since_tizen 5.5 -abstract class mc_display_rotation_e { - /// < Display is not rotated - static const int MC_DISPLAY_ROTATION_NONE = 1; - - /// < Display is rotated 90 degrees - static const int MC_DISPLAY_ROTATION_90 = 2; - - /// < Display is rotated 180 degrees - static const int MC_DISPLAY_ROTATION_180 = 4; - - /// < Display is rotated 270 degrees - static const int MC_DISPLAY_ROTATION_270 = 8; -} - /// @brief Called when receiving custom event of media controller servers. /// @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif /// @@ -7563,46 +7784,6 @@ typedef Dartmc_client_custom_event_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @brief Enumeration for the subscription type. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_subscription_type_e { - /// < Server state - static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; - - /// < Playback - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; - - /// < Metadata - static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; - - /// < Shuffle mode - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; - - /// < Repeat mode - static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; - - /// < Playlist (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; - - /// < Playback ability (Since 5.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; - - /// < Shuffle ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_ABILITY = 7; - - /// < Repeat ability (Since 5.0) (Deprecated since 5.5. Use #MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT instead) - static const int MC_SUBSCRIPTION_TYPE_REPEAT_ABILITY = 8; - - /// < Ability support (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; - - /// < Display mode ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; - - /// < Display rotation ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; -} - /// @brief Called when requesting the list of subscribed servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -7626,107 +7807,6 @@ typedef mc_subscribed_server_cbFunction = ffi.Bool Function( typedef Dartmc_subscribed_server_cbFunction = bool Function( ffi.Pointer server_name, ffi.Pointer user_data); -/// @brief Enumeration for the media playback state. -/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -abstract class mc_playback_states_e { - /// < None - static const int MC_PLAYBACK_STATE_NONE = 0; - - /// < Playing - static const int MC_PLAYBACK_STATE_PLAYING = 1; - - /// < Paused - static const int MC_PLAYBACK_STATE_PAUSED = 2; - - /// < Stopped - static const int MC_PLAYBACK_STATE_STOPPED = 3; - - /// < Moving to the next item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; - - /// < Moving to the previous item (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; - - /// < Fast forwarding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; - - /// < Rewinding (Since @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif) - static const int MC_PLAYBACK_STATE_REWINDING = 11; - - /// < Connecting (Since 6.0) - static const int MC_PLAYBACK_STATE_CONNECTING = 12; - - /// < Buffering (Since 6.0) - static const int MC_PLAYBACK_STATE_BUFFERING = 13; - - /// < Error (Since 6.0) - static const int MC_PLAYBACK_STATE_ERROR = 14; -} - -/// @brief Enumeration for the content age rating of the content. -/// @since_tizen 5.0 -abstract class mc_content_age_rating_e { - /// < Suitable for all ages - static const int MC_CONTENT_RATING_ALL = 0; - - /// < Suitable for ages 1 and up - static const int MC_CONTENT_RATING_1_PLUS = 1; - - /// < Suitable for ages 2 and up - static const int MC_CONTENT_RATING_2_PLUS = 2; - - /// < Suitable for ages 3 and up - static const int MC_CONTENT_RATING_3_PLUS = 3; - - /// < Suitable for ages 4 and up - static const int MC_CONTENT_RATING_4_PLUS = 4; - - /// < Suitable for ages 5 and up - static const int MC_CONTENT_RATING_5_PLUS = 5; - - /// < Suitable for ages 6 and up - static const int MC_CONTENT_RATING_6_PLUS = 6; - - /// < Suitable for ages 7 and up - static const int MC_CONTENT_RATING_7_PLUS = 7; - - /// < Suitable for ages 8 and up - static const int MC_CONTENT_RATING_8_PLUS = 8; - - /// < Suitable for ages 9 and up - static const int MC_CONTENT_RATING_9_PLUS = 9; - - /// < Suitable for ages 10 and up - static const int MC_CONTENT_RATING_10_PLUS = 10; - - /// < Suitable for ages 11 and up - static const int MC_CONTENT_RATING_11_PLUS = 11; - - /// < Suitable for ages 12 and up - static const int MC_CONTENT_RATING_12_PLUS = 12; - - /// < Suitable for ages 13 and up - static const int MC_CONTENT_RATING_13_PLUS = 13; - - /// < Suitable for ages 14 and up - static const int MC_CONTENT_RATING_14_PLUS = 14; - - /// < Suitable for ages 15 and up - static const int MC_CONTENT_RATING_15_PLUS = 15; - - /// < Suitable for ages 16 and up - static const int MC_CONTENT_RATING_16_PLUS = 16; - - /// < Suitable for ages 17 and up - static const int MC_CONTENT_RATING_17_PLUS = 17; - - /// < Suitable for ages 18 and up - static const int MC_CONTENT_RATING_18_PLUS = 18; - - /// < Suitable for ages 19 and up - static const int MC_CONTENT_RATING_19_PLUS = 19; -} - /// @brief Called when requesting the list of created servers. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif /// @@ -8131,3 +8211,5 @@ typedef Dartmc_server_search_cmd_received_cbFunction = void Function( ffi.Pointer request_id, mc_search_h search, ffi.Pointer user_data); + +const int MEDIA_CONTROLLER_ERROR_CLASS = -50462720; diff --git a/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_editor.dart b/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_editor.dart index 20ae7caf..15ec7021 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_editor.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_editor.dart @@ -368,9 +368,34 @@ class Tizen80CapiMediaMetadataEditor { } /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE -/// @brief The handle of media metadata. +/// @brief The enumerations of media metadata error. /// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif -typedef metadata_editor_h = ffi.Pointer; +abstract class metadata_editor_error_e { + /// < Successful + static const int METADATA_EDITOR_ERROR_NONE = 0; + + /// < Invalid parameter + static const int METADATA_EDITOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EDITOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File not exist + static const int METADATA_EDITOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EDITOR_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported type + static const int METADATA_EDITOR_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Invalid internal operation + static const int METADATA_EDITOR_ERROR_OPERATION_FAILED = -27000831; + + /// < Update not possible (Since 6.0) + static const int METADATA_EDITOR_ERROR_METADATA_UPDATE_NOT_POSSIBLE = + -27000830; +} /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @brief The enumerations of attribute. @@ -415,3 +440,10 @@ abstract class metadata_editor_attr_e { /// < Unsynchronized lyric static const int METADATA_EDITOR_ATTR_UNSYNCLYRICS = 12; } + +/// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE +/// @brief The handle of media metadata. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +typedef metadata_editor_h = ffi.Pointer; + +const int METADATA_EDITOR_ERROR_CLASS = -27000832; diff --git a/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_extractor.dart b/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_extractor.dart index b1daaa5e..f4e9551e 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_extractor.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_media_metadata_extractor.dart @@ -384,11 +384,27 @@ class Tizen80CapiMediaMetadataExtractor { } /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE -/// @brief The metadata extractor handle. +/// @brief Enumeration for metadata extractor error. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif -typedef metadata_extractor_h = ffi.Pointer; +abstract class metadata_extractor_error_e { + /// < Successful + static const int METADATA_EXTRACTOR_ERROR_NONE = 0; -final class metadata_extractor_s extends ffi.Opaque {} + /// < Invalid parameter + static const int METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EXTRACTOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File does not exist + static const int METADATA_EXTRACTOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED = -13; + + /// < Invalid internal operation + static const int METADATA_EXTRACTOR_ERROR_OPERATION_FAILED = -26411007; +} /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE /// @brief Enumeration for attribute. @@ -499,3 +515,12 @@ abstract class metadata_extractor_attr_e { /// < Flag indicating if the video is a spherical video (Since 3.0) static const int METADATA_360 = 34; } + +final class metadata_extractor_s extends ffi.Opaque {} + +/// @ingroup CAPI_METADATA_EXTRACTOR_MODULE +/// @brief The metadata extractor handle. +/// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif +typedef metadata_extractor_h = ffi.Pointer; + +const int METADATA_EXTRACTOR_ERROR_CLASS = -26411008; diff --git a/lib/src/bindings/8.0/generated_bindings_capi_media_screen_mirroring.dart b/lib/src/bindings/8.0/generated_bindings_capi_media_screen_mirroring.dart index c5f3eb6a..9779d928 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_media_screen_mirroring.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_media_screen_mirroring.dart @@ -880,29 +880,6 @@ class Tizen80CapiMediaScreenMirroring { int Function(scmirroring_sink_h, ffi.Pointer)>(); } -/// @brief The handle to the screen mirroring sink. -/// @since_tizen 2.4 -typedef scmirroring_sink_h = ffi.Pointer; - -/// @brief Called when each status is changed. -/// @since_tizen 2.4 -/// -/// @details This callback is called for state and error of screen mirroring sink -/// -/// @param[in] error The error code -/// @param[in] state The screen mirroring sink state -/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function -/// -/// @pre scmirroring_sink_create() -/// -/// @see scmirroring_sink_create() -typedef scmirroring_sink_state_cb - = ffi.Pointer>; -typedef scmirroring_sink_state_cbFunction = ffi.Void Function( - ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartscmirroring_sink_state_cbFunction = void Function( - int error, int state, ffi.Pointer user_data); - /// @brief Enumeration for screen mirroring error. /// @since_tizen 2.4 abstract class scmirroring_error_e { @@ -957,6 +934,41 @@ abstract class scmirroring_sink_state_e { static const int SCMIRRORING_SINK_STATE_MAX = 7; } +/// @brief Enumeration for screen mirroring resolution. +/// @since_tizen 2.4 +abstract class scmirroring_resolution_e { + static const int SCMIRRORING_RESOLUTION_UNKNOWN = 0; + + /// < W-1920, H-1080, 30 fps + static const int SCMIRRORING_RESOLUTION_1920x1080_P30 = 1; + + /// < W-1280, H-720, 30 fps + static const int SCMIRRORING_RESOLUTION_1280x720_P30 = 2; + + /// < W-960, H-540, 30 fps + static const int SCMIRRORING_RESOLUTION_960x540_P30 = 4; + + /// < W-864, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_864x480_P30 = 8; + + /// < W-720, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_720x480_P60 = 16; + + /// < W-640, H-480, 60 fps + static const int SCMIRRORING_RESOLUTION_640x480_P60 = 32; + + /// < W-640, H-360, 30 fps + static const int SCMIRRORING_RESOLUTION_640x360_P30 = 64; + static const int SCMIRRORING_RESOLUTION_MAX = 128; +} + +/// @brief Ability to send to multisink. +/// @since_tizen 3.0 +abstract class scmirroring_multisink_e { + static const int SCMIRRORING_MULTISINK_DISABLE = 0; + static const int SCMIRRORING_MULTISINK_ENABLE = 1; +} + /// @brief Enumeration for screen mirroring display surface type. /// @since_tizen 2.4 abstract class scmirroring_display_type_e { @@ -968,16 +980,6 @@ abstract class scmirroring_display_type_e { static const int SCMIRRORING_DISPLAY_TYPE_MAX = 2; } -/// @brief Enumeration for screen mirroring video codec. -/// @since_tizen 2.4 -abstract class scmirroring_video_codec_e { - /// < Screen mirroring is not negotiated yet - static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; - - /// < H.264 codec for video - static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; -} - /// @brief Enumeration for screen mirroring audio codec. /// @since_tizen 2.4 abstract class scmirroring_audio_codec_e { @@ -993,3 +995,56 @@ abstract class scmirroring_audio_codec_e { /// < LPCM codec for audio static const int SCMIRRORING_AUDIO_CODEC_LPCM = 3; } + +/// @brief Enumeration for screen mirroring video codec. +/// @since_tizen 2.4 +abstract class scmirroring_video_codec_e { + /// < Screen mirroring is not negotiated yet + static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; + + /// < H.264 codec for video + static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; +} + +/// @brief Enumeration for screen mirroring direct streaming mode. +/// @since_tizen 3.0 +abstract class scmirroring_direct_streaming_e { + /// < Disable screen mirroring direct streaming mode + static const int SCMIRRORING_DIRECT_STREAMING_DISABLED = 0; + + /// < Enable direct streaming for files + static const int SCMIRRORING_DIRECT_STREAMING_ENABLED = 1; +} + +/// @brief Enumeration for screen mirroring AV streaming transport. +/// @since_tizen 3.0 +abstract class scmirroring_av_transport_e { + /// < UDP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_UDP = 0; + + /// < TCP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_TCP = 1; +} + +/// @brief The handle to the screen mirroring sink. +/// @since_tizen 2.4 +typedef scmirroring_sink_h = ffi.Pointer; + +/// @brief Called when each status is changed. +/// @since_tizen 2.4 +/// +/// @details This callback is called for state and error of screen mirroring sink +/// +/// @param[in] error The error code +/// @param[in] state The screen mirroring sink state +/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function +/// +/// @pre scmirroring_sink_create() +/// +/// @see scmirroring_sink_create() +typedef scmirroring_sink_state_cb + = ffi.Pointer>; +typedef scmirroring_sink_state_cbFunction = ffi.Void Function( + ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartscmirroring_sink_state_cbFunction = void Function( + int error, int state, ffi.Pointer user_data); diff --git a/lib/src/bindings/8.0/generated_bindings_capi_media_sound_pool.dart b/lib/src/bindings/8.0/generated_bindings_capi_media_sound_pool.dart index 582e1bcc..d9507535 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_media_sound_pool.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_media_sound_pool.dart @@ -865,10 +865,52 @@ class Tizen80CapiMediaSoundPool { .asFunction)>(); } -/// @brief Sound pool handle type. +/// @brief Enumeration for Tizen Sound Pool error. /// /// @since_tizen 4.0 -typedef sound_pool_h = ffi.Pointer; +abstract class sound_pool_error_e { + static const int SOUND_POOL_ERROR_NONE = 0; + static const int SOUND_POOL_ERROR_KEY_NOT_AVAILABLE = -126; + static const int SOUND_POOL_ERROR_OUT_OF_MEMORY = -12; + static const int SOUND_POOL_ERROR_INVALID_PARAMETER = -22; + static const int SOUND_POOL_ERROR_INVALID_OPERATION = -38; + static const int SOUND_POOL_ERROR_NOT_PERMITTED = -1; + static const int SOUND_POOL_ERROR_NO_SUCH_FILE = -2; +} + +/// @brief Enumeration of sound pool stream state. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_state_e { + /// < Stream state isn't determined + static const int SOUND_POOL_STREAM_STATE_NONE = 0; + + /// < Stream state is playing + static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; + + /// < Stream state is paused + static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; + + /// < Stream state is stopped + static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; + + /// < Stream state is finished + static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; + + /// < Stream state is suspended + static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; +} + +/// @brief Enumeration of sound pool stream priority policy. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_priority_policy_e { + /// < Stream priority policy is mute + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; + + /// < Stream priority policy is suspended + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; +} /// @brief Enumeration of sound pool state. /// @@ -881,6 +923,11 @@ abstract class sound_pool_state_e { static const int SOUND_POOL_STATE_INACTIVE = 1; } +/// @brief Sound pool handle type. +/// +/// @since_tizen 4.0 +typedef sound_pool_h = ffi.Pointer; + /// @brief Called when the sound pool state is changed. /// /// @since_tizen 4.0 @@ -911,17 +958,6 @@ typedef Dartsound_pool_state_changed_cbFunction = void Function( int cur_state, ffi.Pointer user_data); -/// @brief Enumeration of sound pool stream priority policy. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_priority_policy_e { - /// < Stream priority policy is mute - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; - - /// < Stream priority policy is suspended - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; -} - /// @brief Called when the sound pool stream state is changed. /// /// @since_tizen 4.0 @@ -954,26 +990,3 @@ typedef Dartsound_pool_stream_state_changed_cbFunction = void Function( int prev_state, int cur_state, ffi.Pointer user_data); - -/// @brief Enumeration of sound pool stream state. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_state_e { - /// < Stream state isn't determined - static const int SOUND_POOL_STREAM_STATE_NONE = 0; - - /// < Stream state is playing - static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; - - /// < Stream state is paused - static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; - - /// < Stream state is stopped - static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; - - /// < Stream state is finished - static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; - - /// < Stream state is suspended - static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; -} diff --git a/lib/src/bindings/8.0/generated_bindings_capi_media_thumbnail_util.dart b/lib/src/bindings/8.0/generated_bindings_capi_media_thumbnail_util.dart index 6bd88b41..c3559a01 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_media_thumbnail_util.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_media_thumbnail_util.dart @@ -156,3 +156,31 @@ class Tizen80CapiMediaThumbnailUtil { ffi.Pointer, ffi.Pointer)>(); } + +/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE +/// @brief Enumeration for a thumbnail util error. +/// @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +abstract class thumbnail_util_error_e { + /// < Successful + static const int THUMBNAIL_UTIL_ERROR_NONE = 0; + + /// < Invalid parameter + static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported Content (Since 4.0) + static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; +} + +const int THUMBNAIL_UTIL_ERROR_CLASS = -49872896; diff --git a/lib/src/bindings/8.0/generated_bindings_capi_network_bluetooth.dart b/lib/src/bindings/8.0/generated_bindings_capi_network_bluetooth.dart index e33337c5..fd5bf353 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_network_bluetooth.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_network_bluetooth.dart @@ -10730,6 +10730,188 @@ class Tizen80CapiNetworkBluetooth { ffi.Pointer>)>(); } +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of PBAP fields. +/// @since_tizen 3.0 +abstract class bt_pbap_field_e { + /// < All field + static const int BT_PBAP_FIELD_ALL = -1; + + /// < vCard Version + static const int BT_PBAP_FIELD_VERSION = 1; + + /// < Formatted Name + static const int BT_PBAP_FIELD_FN = 2; + + /// < Structured Presentation of Name + static const int BT_PBAP_FIELD_N = 4; + + /// < Associated Image or Photo + static const int BT_PBAP_FIELD_PHOTO = 8; + + /// < Birthday + static const int BT_PBAP_FIELD_BDAY = 16; + + /// < Delivery Address + static const int BT_PBAP_FIELD_ADR = 32; + + /// < Delivery + static const int BT_PBAP_FIELD_LABEL = 64; + + /// < Telephone Number + static const int BT_PBAP_FIELD_TEL = 128; + + /// < Electronic Mail Address + static const int BT_PBAP_FIELD_EMAIL = 256; + + /// < Electronic Mail + static const int BT_PBAP_FIELD_MAILER = 512; + + /// < Time Zone + static const int BT_PBAP_FIELD_TZ = 1024; + + /// < Geographic Position + static const int BT_PBAP_FIELD_GEO = 2048; + + /// < Job + static const int BT_PBAP_FIELD_TITLE = 4096; + + /// < Role within the Organization + static const int BT_PBAP_FIELD_ROLE = 8192; + + /// < Organization Logo + static const int BT_PBAP_FIELD_LOGO = 16384; + + /// < vCard of Person Representing + static const int BT_PBAP_FIELD_AGENT = 32768; + + /// < Name of Organization + static const int BT_PBAP_FIELD_ORG = 65536; + + /// < Comments + static const int BT_PBAP_FIELD_NOTE = 131072; + + /// < Revision + static const int BT_PBAP_FIELD_REV = 262144; + + /// < Pronunciation of Name + static const int BT_PBAP_FIELD_SOUND = 524288; + + /// < Uniform Resource Locator + static const int BT_PBAP_FIELD_URL = 1048576; + + /// < Unique ID + static const int BT_PBAP_FIELD_UID = 2097152; + + /// < Public Encryption Key + static const int BT_PBAP_FIELD_KEY = 4194304; + + /// < Nickname + static const int BT_PBAP_FIELD_NICKNAME = 8388608; + + /// < Categories + static const int BT_PBAP_FIELD_CATEGORIES = 16777216; + + /// < Product ID + static const int BT_PBAP_FIELD_PROID = 33554432; + + /// < Class information + static const int BT_PBAP_FIELD_CLASS = 67108864; + + /// < String used for sorting operations + static const int BT_PBAP_FIELD_SORT_STRING = 134217728; + + /// < Time stamp + static const int BT_PBAP_FIELD_X_IRMC_CALL_DATETIME = 268435456; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_MODULE +/// @brief Enumerations of Bluetooth error codes. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_error_e { + /// < Successful + static const int BT_ERROR_NONE = 0; + + /// < Operation cancelled + static const int BT_ERROR_CANCELLED = -125; + + /// < Invalid parameter + static const int BT_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int BT_ERROR_OUT_OF_MEMORY = -12; + + /// < Device or resource busy + static const int BT_ERROR_RESOURCE_BUSY = -16; + + /// < Timeout error + static const int BT_ERROR_TIMED_OUT = -1073741823; + + /// < Operation now in progress + static const int BT_ERROR_NOW_IN_PROGRESS = -115; + + /// < BT is Not Supported + static const int BT_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Permission denied + static const int BT_ERROR_PERMISSION_DENIED = -13; + + /// < Quota exceeded + static const int BT_ERROR_QUOTA_EXCEEDED = -122; + + /// < No data available + static const int BT_ERROR_NO_DATA = -61; + + /// < Device policy restriction (Since 3.0) + static const int BT_ERROR_DEVICE_POLICY_RESTRICTION = -1073741820; + + /// < Local adapter not initialized + static const int BT_ERROR_NOT_INITIALIZED = -29359871; + + /// < Local adapter not enabled + static const int BT_ERROR_NOT_ENABLED = -29359870; + + /// < Operation already done + static const int BT_ERROR_ALREADY_DONE = -29359869; + + /// < Operation failed + static const int BT_ERROR_OPERATION_FAILED = -29359868; + + /// < Operation not in progress + static const int BT_ERROR_NOT_IN_PROGRESS = -29359867; + + /// < Remote device not bonded + static const int BT_ERROR_REMOTE_DEVICE_NOT_BONDED = -29359866; + + /// < Authentication rejected + static const int BT_ERROR_AUTH_REJECTED = -29359865; + + /// < Authentication failed + static const int BT_ERROR_AUTH_FAILED = -29359864; + + /// < Remote device not found + static const int BT_ERROR_REMOTE_DEVICE_NOT_FOUND = -29359863; + + /// < Service search failed + static const int BT_ERROR_SERVICE_SEARCH_FAILED = -29359862; + + /// < Remote device is not connected + static const int BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = -29359861; + + /// < Resource temporarily unavailable + static const int BT_ERROR_AGAIN = -29359860; + + /// < Service Not Found + static const int BT_ERROR_SERVICE_NOT_FOUND = -29359859; + + /// < Authorization rejected (Since 5.0) + static const int BT_ERROR_AUTHORIZATION_REJECTED = -29359858; + + /// < Max of connection exceeded (Since 8.0) + static const int BT_ERROR_MAX_CONNECTION = -29359857; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Enumerations of the Bluetooth adapter state. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10756,6 +10938,198 @@ abstract class bt_adapter_visibility_mode_e { static const int BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE = 2; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Enumerations of the discovery state of Bluetooth device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_device_discovery_state_e { + /// < Device discovery is started + static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; + + /// < Device discovery is finished + static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; + + /// < The remote Bluetooth device is found + static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_state_e { + /// < Bluetooth advertising is stopped + static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; + + /// < Bluetooth advertising is started + static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising mode. +/// @since_tizen 2.3.1 +abstract class bt_adapter_le_advertising_mode_e { + /// < Balanced advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; + + /// < Low latency advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; + + /// < Low energy advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; + + /// < Custom mode to set advertising parameters + static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising filter policy. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_advertising_filter_policy_e { + /// < White list is not in use + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_DEFAULT = 0; + + /// < Allow the scan + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_WL = 1; + + /// < Allow the connection + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_CONN_WL = 2; + + /// < Allow the + /// scan and connection request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_CONN_WL = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE advertising flags. +/// @since_tizen 8.0 +abstract class bt_adapter_le_advertising_flags_e { + /// < LE Limited Discoverable Mode + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_LIM_DISC = 1; + + /// < LE General Discoverable Mode + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_GEN_DISC = 2; + + /// < BR/EDR Not Supported + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_BREDR_UNSUP = 4; + + /// < Simultaneous LE and BR/EDR to Same Device Capable (Controller) + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_CONTROLLER = 8; + + /// < Simultaneous LE and BR/EDR to Same Device Capable (Host) + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_SIM_HOST = 16; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE packet type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_adapter_le_packet_type_e { + /// < Advertising packet + static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; + + /// < Scan response packet + static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth le scan mode. +/// @since_tizen 3.0 +abstract class bt_adapter_le_scan_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device disconnect reason. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_disconnect_reason_e { + /// < Disconnected by unknown reason + static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; + + /// < Disconnected by timeout + static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; + + /// < Disconnected by local host + static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; + + /// < Disconnected by remote + static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of connection link type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_connection_link_type_e { + /// < BR/EDR link + static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; + + /// < LE link + static const int BT_DEVICE_CONNECTION_LINK_LE = 1; + + /// < The connection type default + static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device authorization state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_authorization_e { + /// < The remote Bluetooth device is authorized + static const int BT_DEVICE_AUTHORIZED = 0; + + /// < The remote Bluetooth device is unauthorized + static const int BT_DEVICE_UNAUTHORIZED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of Bluetooth profile. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_profile_e { + /// < RFCOMM Profile + static const int BT_PROFILE_RFCOMM = 1; + + /// < Advanced Audio Distribution Profile Source role + static const int BT_PROFILE_A2DP = 2; + + /// < Headset Profile + static const int BT_PROFILE_HSP = 4; + + /// < Human Interface Device Profile + static const int BT_PROFILE_HID = 8; + + /// < Network Access Point Profile + static const int BT_PROFILE_NAP = 16; + + /// < Audio Gateway Profile + static const int BT_PROFILE_AG = 32; + + /// < Generic Attribute Profile + static const int BT_PROFILE_GATT = 64; + + /// < NAP server Profile + static const int BT_PROFILE_NAP_SERVER = 128; + + /// < Advanced Audio Distribution Profile Sink role + static const int BT_PROFILE_A2DP_SINK = 256; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device address type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_device_address_type_e { + /// < Public address + static const int BT_DEVICE_PUBLIC_ADDRESS = 0; + + /// < Random address + static const int BT_DEVICE_RANDOM_ADDRESS = 1; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Enumerations of service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -10839,88 +11213,36 @@ abstract class bt_service_class_t { static const int BT_SC_MAX = 16777216; } -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Called when you get bonded devices repeatedly. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @param[in] device_info The bonded device information -/// @param[in] user_data The user data passed from the foreach function -/// @return @c true to continue with the next iteration of the loop, -/// \n @c false to break out of the loop. -/// @pre bt_adapter_foreach_bonded_device() will invoke this function. -/// -/// @see bt_adapter_foreach_bonded_device() -typedef bt_adapter_bonded_device_cb - = ffi.Pointer>; -typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); -typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device information structure used for identifying pear device. +/// @brief Enumerations of major service class. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_device_bond_created_cb() -final class bt_device_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; +abstract class bt_major_service_class_e { + /// < Limited discoverable mode + static const int BT_MAJOR_SERVICE_CLASS_LIMITED_DISCOVERABLE_MODE = 8192; - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; + /// < Positioning class + static const int BT_MAJOR_SERVICE_CLASS_POSITIONING = 65536; - /// < The connection state - @ffi.Bool() - external bool is_connected; + /// < Networking class + static const int BT_MAJOR_SERVICE_CLASS_NETWORKING = 131072; - /// < The authorization state - @ffi.Bool() - external bool is_authorized; + /// < Rendering class + static const int BT_MAJOR_SERVICE_CLASS_RENDERING = 262144; - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; + /// < Capturing class + static const int BT_MAJOR_SERVICE_CLASS_CAPTURING = 524288; - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} + /// < Object transferring class + static const int BT_MAJOR_SERVICE_CLASS_OBJECT_TRANSFER = 1048576; -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Class structure of device and service. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_device_info_s -/// @see #bt_adapter_device_discovery_info_s -/// @see bt_device_bond_created_cb() -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_class_s extends ffi.Struct { - /// < Major device class. - @ffi.Int32() - external int major_device_class; + /// < Audio class + static const int BT_MAJOR_SERVICE_CLASS_AUDIO = 2097152; - /// < Minor device class. - @ffi.Int32() - external int minor_device_class; + /// < Telephony class + static const int BT_MAJOR_SERVICE_CLASS_TELEPHONY = 4194304; - /// < Major service class mask. - /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO - @ffi.Int() - external int major_service_class_mask; + /// < Information class + static const int BT_MAJOR_SERVICE_CLASS_INFORMATION = 8388608; } /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE @@ -11136,91 +11458,1114 @@ abstract class bt_minor_device_class_e { static const int BT_MINOR_DEVICE_CLASS_PERIPHERAL_HANDHELD_GESTURAL_INPUT_DEVICE = 36; - /// < Display minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_DISPLAY = 16; + /// < Display minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_DISPLAY = 16; + + /// < Camera minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_CAMERA = 32; + + /// < Scanner minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_SCANNER = 64; + + /// < Printer minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_PRINTER = 128; + + /// < Wrist watch minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_WRIST_WATCH = 4; + + /// < Pager minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_PAGER = 8; + + /// < Jacket minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_JACKET = 12; + + /// < Helmet minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_HELMET = 16; + + /// < Glasses minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_GLASSES = 20; + + /// < Robot minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_ROBOT = 4; + + /// < Vehicle minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_VEHICLE = 8; + + /// < Doll/Action minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_DOLL_ACTION = 12; + + /// < Controller minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_CONTROLLER = 16; + + /// < Game minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_GAME = 20; + + /// < Uncategorized minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_UNCATEGORIZED = 0; + + /// < Blood pressure monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_BLOOD_PRESSURE_MONITOR = 4; + + /// < Thermometer minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_THERMOMETER = 8; + + /// < Weighing scale minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_WEIGHING_SCALE = 12; + + /// < Glucose minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_GLUCOSE_METER = 16; + + /// < Pulse oximeter minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_PULSE_OXIMETER = 20; + + /// < Heart/Pulse rate monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_HEART_PULSE_RATE_MONITOR = 24; + + /// < Health data display minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_DATA_DISPLAY = 28; + + /// < Step counter minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_STEP_COUNTER = 32; + + /// < Body composition analyzer minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_BODY_COMPOSITION_ANALYZER = 36; + + /// < Peak flow monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_PEAK_FLOW_MONITOR = 40; + + /// < Medication monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_MEDICATION_MONITOR = 44; + + /// < Knee prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; + + /// < Ankle prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of gap appearance type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_appearance_type_e { + /// < Unknown appearance type + static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; + + /// < Generic Phone type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; + + /// < Generic Computer type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; + + /// < Generic Watch type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth device's LE connection mode. +/// @since_tizen 3.0 +abstract class bt_device_le_connection_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of connected Bluetooth device event role. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_role_e { + /// < Unknown role + static const int BT_SOCKET_UNKNOWN = 0; + + /// < Server role + static const int BT_SOCKET_SERVER = 1; + + /// < Client role + static const int BT_SOCKET_CLIENT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of Bluetooth socket connection state. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_socket_connection_state_e { + /// < RFCOMM is connected + static const int BT_SOCKET_CONNECTED = 0; + + /// < RFCOMM is disconnected + static const int BT_SOCKET_DISCONNECTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE +/// @brief Enumerations for the types of profiles related with audio. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_audio_profile_type_e { + /// < All supported profiles related with audio (Both Host and Device role) + static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; + + /// < local device AG and remote device HF Client (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; + + /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; + + /// < local device HF Client and remote device AG (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_AG = 3; + + /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_call_handling_event_e { + /// < Request to answer an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_ANSWER = 0; + + /// < Request to release a call + static const int BT_AG_CALL_HANDLING_EVENT_RELEASE = 1; + + /// < Request to reject an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_REJECT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the multi call handling event. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_ag_multi_call_handling_event_e { + /// < Request to release held calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_HELD_CALLS = 0; + + /// < Request to release active calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_ACTIVE_CALLS = 1; + + /// < Request to put active calls into hold state and activate another (held or waiting) call + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_ACTIVATE_HELD_CALL = 2; + + /// < Request to add a held call to the conversation + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_MERGE_CALLS = 3; + + /// < Request to let a user who has two calls to connect these two calls together and release its connections to both other parties + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_EXPLICIT_CALL_TRANSFER = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the equalizer state. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_equalizer_state_e { + /// < Equalizer Off + static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; + + /// < Equalizer On + static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the repeat mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_repeat_mode_e { + /// < Repeat Off + static const int BT_AVRCP_REPEAT_MODE_OFF = 1; + + /// < Single track repeat + static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; + + /// < All track repeat + static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; + + /// < Group repeat + static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the shuffle mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_shuffle_mode_e { + /// < Shuffle Off + static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; + + /// < All tracks shuffle + static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; + + /// < Group shuffle + static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the scan mode. +/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif +abstract class bt_avrcp_scan_mode_e { + /// < Scan Off + static const int BT_AVRCP_SCAN_MODE_OFF = 1; + + /// < All tracks scan + static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; + + /// < Group scan + static const int BT_AVRCP_SCAN_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the player state. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_state_e { + /// < Stopped + static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; + + /// < Playing + static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; + + /// < Paused + static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; + + /// < Seek Forward + static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; + + /// < Seek Rewind + static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumeration for the player control commands. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_command_e { + /// < Play + static const int BT_AVRCP_CONTROL_PLAY = 1; + + /// < Pause + static const int BT_AVRCP_CONTROL_PAUSE = 2; + + /// < Stop + static const int BT_AVRCP_CONTROL_STOP = 3; + + /// < Next Track + static const int BT_AVRCP_CONTROL_NEXT = 4; + + /// < Previous track + static const int BT_AVRCP_CONTROL_PREVIOUS = 5; + + /// < Fast Forward + static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; + + /// < Rewind + static const int BT_AVRCP_CONTROL_REWIND = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Structure of Track metadata information. +/// @since_tizen 3.0 +/// +/// @see #bt_class_s +final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { + /// < Title + external ffi.Pointer title; + + /// < Artist + external ffi.Pointer artist; + + /// < Album name + external ffi.Pointer album; + + /// < Album Genre + external ffi.Pointer genre; + + /// < The total number of tracks + @ffi.UnsignedInt() + external int total_tracks; + + /// < Track number + @ffi.UnsignedInt() + external int number; + + /// < Duration + @ffi.UnsignedInt() + external int duration; +} + +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Enumerations for the data channel type. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @remarks Deprecated, because of no usecase and supported devices. +abstract class bt_hdp_channel_type_e { + /// < Reliable Data Channel + static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; + + /// < Streaming Data Channel + static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the integer type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_int_e { + /// < 8 bit signed int type + static const int BT_DATA_TYPE_SINT8 = 0; + + /// < 16 bit signed int type + static const int BT_DATA_TYPE_SINT16 = 1; + + /// < 32 bit signed int type + static const int BT_DATA_TYPE_SINT32 = 2; + + /// < 8 bit unsigned int type + static const int BT_DATA_TYPE_UINT8 = 3; + + /// < 16 bit unsigned int type + static const int BT_DATA_TYPE_UINT16 = 4; + + /// < 32 bit unsigned int type + static const int BT_DATA_TYPE_UINT32 = 5; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the float type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_float_e { + /// < 32 bit float type + static const int BT_DATA_TYPE_FLOAT = 0; + + /// < 16 bit float type + static const int BT_DATA_TYPE_SFLOAT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the write type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_write_type_e { + /// < Write without response type + static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; + + /// < Write type + static const int BT_GATT_WRITE_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the GATT handle's type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_type_e { + /// < GATT service type + static const int BT_GATT_TYPE_SERVICE = 1; + + /// < GATT characteristic type + static const int BT_GATT_TYPE_CHARACTERISTIC = 2; + + /// < GATT descriptor type + static const int BT_GATT_TYPE_DESCRIPTOR = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the service type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_service_type_e { + /// < GATT primary service type + static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; + + /// < GATT secondary service type + static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the characteristic's property. +/// @since_tizen 2.3.1 +abstract class bt_gatt_property_e { + /// < Broadcast property + static const int BT_GATT_PROPERTY_BROADCAST = 1; + + /// < Read property + static const int BT_GATT_PROPERTY_READ = 2; + + /// < Write without response property + static const int BT_GATT_PROPERTY_WRITE_WITHOUT_RESPONSE = 4; + + /// < Write property + static const int BT_GATT_PROPERTY_WRITE = 8; + + /// < Notify property + static const int BT_GATT_PROPERTY_NOTIFY = 16; + + /// < Indicate property + static const int BT_GATT_PROPERTY_INDICATE = 32; + + /// < Authenticated signed writes property + static const int BT_GATT_PROPERTY_AUTHENTICATED_SIGNED_WRITES = 64; + + /// < Extended properties + static const int BT_GATT_PROPERTY_EXTENDED_PROPERTIES = 128; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Enumerations of gatt server's service changing mode. +/// @since_tizen 3.0 +abstract class bt_gatt_client_service_change_type_e { + /// < Service added + static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; + + /// < Service removed + static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; + + /// < Resync is required (Since 6.5) + static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the attribute's permission. +/// @since_tizen 3.0 +abstract class bt_gatt_permission_e { + /// < Readable permission + static const int BT_GATT_PERMISSION_READ = 1; + + /// < Writable permission + static const int BT_GATT_PERMISSION_WRITE = 2; + + /// < Readable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_READ = 4; + + /// < Writable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_WRITE = 8; + + /// < Readable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_READ = 16; + + /// < Writable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_WRITE = 32; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE +/// @brief Enumerations of the remote device request types for attributes. +/// @since_tizen 3.0 +abstract class bt_gatt_att_request_type_e { + /// < Read Requested + static const int BT_GATT_REQUEST_TYPE_READ = 0; + + /// < Write Requested + static const int BT_GATT_REQUEST_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE +/// @brief Enumerations for the types of PAN (Personal Area Networking) service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +abstract class bt_panu_service_type_e { + /// < Network Access Point + static const int BT_PANU_SERVICE_TYPE_NAP = 0; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of address book location for PBAP. +/// @since_tizen 3.0 +abstract class bt_pbap_address_book_source_e { + /// < Request for Addressbook from remote device + static const int BT_PBAP_SOURCE_DEVICE = 0; + + /// < Request for address book from SIM + static const int BT_PBAP_SOURCE_SIM = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of folder type. +/// @since_tizen 3.0 +abstract class bt_pbap_folder_type_e { + /// < Request for address book + static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; + + /// < Request for incoming calls + static const int BT_PBAP_FOLDER_INCOMING = 1; + + /// < Request for outgoing calls + static const int BT_PBAP_FOLDER_OUTGOING = 2; + + /// < Request for missed calls + static const int BT_PBAP_FOLDER_MISSED = 3; + + /// < Request for combined calls + static const int BT_PBAP_FOLDER_COMBINED = 4; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of phone book search fields. +/// @since_tizen 3.0 +abstract class bt_pbap_search_field_e { + /// < Request for search by name (default) + static const int BT_PBAP_SEARCH_NAME = 0; + + /// < Request for search by phone number + static const int BT_PBAP_SEARCH_NUMBER = 1; + + /// < Request for search by sound + static const int BT_PBAP_SEARCH_SOUND = 2; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of vCard Formats. +/// @since_tizen 3.0 +abstract class bt_pbap_vcard_format_e { + /// < vCard format 2.1 (default) + static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; + + /// < vCard format 3.0 + static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; +} + +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of sorting orders. +/// @since_tizen 3.0 +abstract class bt_pbap_sort_order_e { + /// < Filter order indexed (default) + static const int BT_PBAP_ORDER_INDEXED = 0; + + /// < Filter order alphanumeric + static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; + + /// < Filter order phonetic + static const int BT_PBAP_ORDER_PHONETIC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Class structure of device and service. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_device_info_s +/// @see #bt_adapter_device_discovery_info_s +/// @see bt_device_bond_created_cb() +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_class_s extends ffi.Struct { + /// < Major device class. + @ffi.Int32() + external int major_device_class; + + /// < Minor device class. + @ffi.Int32() + external int minor_device_class; + + /// < Major service class mask. + /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO + @ffi.Int() + external int major_service_class_mask; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Structure of device discovery information. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_adapter_device_discovery_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The Bluetooth appearance + @ffi.Int32() + external int appearance; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Structure of le scan result information. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The address type of remote device + @ffi.Int32() + external int address_type; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < advertising indication data length + @ffi.Int() + external int adv_data_len; + + /// < advertising indication data + external ffi.Pointer adv_data; + + /// < scan response data length + @ffi.Int() + external int scan_data_len; + + /// < scan response data + external ffi.Pointer scan_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief The structure for LE iBeacon scan result information. +/// @since_tizen 4.0 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { + /// < Company ID + @ffi.Int() + external int company_id; + + /// < iBeacon type + @ffi.Int() + external int ibeacon_type; + + /// < UUID + external ffi.Pointer uuid; + + /// < Major ID + @ffi.Int() + external int major_id; + + /// < Minor ID + @ffi.Int() + external int minor_id; + + /// < Measured power + @ffi.Int() + external int measured_power; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief LE service data structure. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_get_scan_result_service_data() +final class bt_adapter_le_service_data_s extends ffi.Struct { + /// < 16 bit UUID of the service data + external ffi.Pointer service_uuid; + + /// < Service data + external ffi.Pointer service_data; + + /// < Service data length + @ffi.Int() + external int service_data_len; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device information structure used for identifying pear device. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see #bt_class_s +/// @see bt_device_bond_created_cb() +final class bt_device_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The connection state + @ffi.Bool() + external bool is_connected; + + /// < The authorization state + @ffi.Bool() + external bool is_authorized; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Service Discovery Protocol (SDP) data structure. +/// +/// @details This protocol is used for discovering available services or pear device, +/// and finding one to connect with. +/// +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @see bt_device_service_searched_cb() +final class bt_device_sdp_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services. + @ffi.Int() + external int service_count; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device connection information structure. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_device_connection_state_changed_cb() +final class bt_device_connection_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < Link type + @ffi.Int32() + external int link; + + /// < Disconnection reason + @ffi.Int32() + external int disconn_reason; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @see bt_socket_connection_state_changed_cb() +final class bt_socket_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The service UUId + external ffi.Pointer service_uuid; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Structure of RFCOMM received data. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @remarks User can use standard linux functions for reading/writing \n +/// data from/to sockets. +/// +/// @see bt_socket_data_received_cb() +final class bt_socket_received_data_s extends ffi.Struct { + /// < The socket fd + @ffi.Int() + external int socket_fd; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Attribute protocol MTU change information structure. +/// @since_tizen 4.0 +/// +/// @see bt_gatt_client_att_mtu_changed_cb() +final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < MTU value + @ffi.UnsignedInt() + external int mtu; + + /// < Request status + @ffi.UnsignedInt() + external int status; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID mouse's button. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_mouse_button_e { + /// key; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID header type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_header_type_e { + /// < The Bluetooth HID header type: Handshake + static const int BT_HID_HEADER_HANDSHAKE = 0; + + /// < The Bluetooth HID header type: HID control + static const int BT_HID_HEADER_HID_CONTROL = 1; + + /// < The Bluetooth HID header type: Get report + static const int BT_HID_HEADER_GET_REPORT = 2; + + /// < The Bluetooth HID header type: Set report + static const int BT_HID_HEADER_SET_REPORT = 3; + + /// < The Bluetooth HID header type: Get protocol + static const int BT_HID_HEADER_GET_PROTOCOL = 4; + + /// < The Bluetooth HID header type: Set protocol + static const int BT_HID_HEADER_SET_PROTOCOL = 5; + + /// < The Bluetooth HID header type: Data + static const int BT_HID_HEADER_DATA = 6; + + /// < The Bluetooth HID header type: Unknown + static const int BT_HID_HEADER_UNKNOWN = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID parameter type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_param_type_e { + /// < Parameter type: Input + static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; + + /// < Parameter type: Output + static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID handshake type. +/// @since_tizen @if WEARABLE 3.0 @endif +abstract class bt_hid_handshake_type_e { + /// < Handshake error code none + static const int BT_HID_HANDSHAKE_SUCCESSFUL = 0; - /// < Camera minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_CAMERA = 32; + /// < Handshake error code Not Ready + static const int BT_HID_HANDSHAKE_NOT_READY = 1; - /// < Scanner minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_SCANNER = 64; + /// < Handshake error code send invalid report id + static const int BT_HID_HANDSHAKE_ERR_INVALID_REPORT_ID = 2; - /// < Printer minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_PRINTER = 128; + /// < Handshake error code request unsupported request + static const int BT_HID_HANDSHAKE_ERR_UNSUPPORTED_REQUEST = 3; - /// < Wrist watch minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_WRIST_WATCH = 4; + /// < Handshake error code received invalid parameter + static const int BT_HID_HANDSHAKE_ERR_INVALID_PARAMETER = 4; - /// < Pager minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_PAGER = 8; + /// < unknown error + static const int BT_HID_HANDSHAKE_ERR_UNKNOWN = 14; - /// < Jacket minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_JACKET = 12; + /// < Fatal error + static const int BT_HID_HANDSHAKE_ERR_FATAL = 15; +} - /// < Helmet minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_HELMET = 16; +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief The structure type containing data received from the HID Host. +/// @since_tizen @if WEARABLE 3.0 @endif +final class bt_hid_device_received_data_s extends ffi.Struct { + /// < The remote device's address + external ffi.Pointer address; - /// < Glasses minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_GLASSES = 20; + /// < The header type + @ffi.Int32() + external int header_type; - /// < Robot minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_ROBOT = 4; + /// < The parameter type + @ffi.Int32() + external int param_type; - /// < Vehicle minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_VEHICLE = 8; + /// < The length of the received data + @ffi.Int() + external int data_size; - /// < Doll/Action minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_DOLL_ACTION = 12; + /// < The received data + external ffi.Pointer data; +} - /// < Controller minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_CONTROLLER = 16; +/// @WEARABLE_ONLY +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief The structure type containing vCard information. +/// @since_tizen 3.0 +/// +/// @see bt_pbap_client_pull_vcard() +final class bt_pbap_vcard_info_s extends ffi.Struct { + /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() + @ffi.Int() + external int index; - /// < Game minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_GAME = 20; + /// < The contact name of the vCard + external ffi.Pointer contact_name; +} - /// < Uncategorized minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_UNCATEGORIZED = 0; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumeration for the scan filter type. +/// @since_tizen 4.0 +/// @see bt_adapter_le_scan_filter_set_type() +abstract class bt_adapter_le_scan_filter_type_e { + /// < iBeacon filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - /// < Blood pressure monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_BLOOD_PRESSURE_MONITOR = 4; + /// < Proximity UUID filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; +} - /// < Thermometer minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_THERMOMETER = 8; +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. +/// @since_tizen 7.0 +/// +/// @see bt_socket_l2cap_channel_connection_state_changed_cb() +final class bt_socket_l2cap_le_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; - /// < Weighing scale minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_WEIGHING_SCALE = 12; + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; - /// < Glucose minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_GLUCOSE_METER = 16; + /// < The local device role in this connection + @ffi.Int32() + external int local_role; - /// < Pulse oximeter minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_PULSE_OXIMETER = 20; + /// < The remote device address + external ffi.Pointer remote_address; - /// < Heart/Pulse rate monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_HEART_PULSE_RATE_MONITOR = 24; + /// < The psm of the connected socket + @ffi.Int() + external int psm; +} - /// < Health data display minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_DATA_DISPLAY = 28; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE +/// @brief Enumerations of the Bluetooth LE scan role. +/// @since_tizen 8.0 +abstract class bt_adapter_le_scan_role_e { + /// < Scan all + static const int BT_ADAPTER_LE_SCAN_ALL = 0; - /// < Step counter minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_STEP_COUNTER = 32; + /// < Legacy scan only + static const int BT_ADAPTER_LE_SCAN_LEGACY_ONLY = 1; - /// < Body composition analyzer minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_BODY_COMPOSITION_ANALYZER = 36; + /// < Extended scan only + static const int BT_ADAPTER_LE_SCAN_EXTENDED_ONLY = 2; +} - /// < Peak flow monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_PEAK_FLOW_MONITOR = 40; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE +/// @brief Enumerations of the Bluetooth LE phy. +/// @since_tizen 8.0 +abstract class bt_adapter_le_phy_e { + /// < All phy + static const int BT_LE_ALL_PHY = 0; - /// < Medication monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_MEDICATION_MONITOR = 44; + /// < 1M phy + static const int BT_LE_1M_PHY = 1; - /// < Knee prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; + /// < 2M phy + static const int BT_LE_2M_PHY = 2; - /// < Ankle prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; + /// < Coded phy + static const int BT_LE_CODED_PHY = 3; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Called when you get bonded devices repeatedly. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// +/// @param[in] device_info The bonded device information +/// @param[in] user_data The user data passed from the foreach function +/// @return @c true to continue with the next iteration of the loop, +/// \n @c false to break out of the loop. +/// @pre bt_adapter_foreach_bonded_device() will invoke this function. +/// +/// @see bt_adapter_foreach_bonded_device() +typedef bt_adapter_bonded_device_cb + = ffi.Pointer>; +typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); +typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Called when the Bluetooth adapter state changes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11309,98 +12654,24 @@ typedef Dartbt_adapter_visibility_duration_changed_cbFunction = void Function( /// @pre Either bt_adapter_start_device_discovery() or bt_adapter_stop_device_discovery() will invoke this function /// if you register this callback using bt_adapter_set_device_discovery_state_changed_cb(). /// -/// @see bt_adapter_start_device_discovery() -/// @see bt_adapter_stop_device_discovery() -/// @see bt_adapter_set_device_discovery_state_changed_cb() -/// @see bt_adapter_unset_device_discovery_state_changed_cb() -typedef bt_adapter_device_discovery_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_adapter_device_discovery_state_changed_cbFunction - = ffi.Void Function( - ffi.Int result, - ffi.Int32 discovery_state, - ffi.Pointer discovery_info, - ffi.Pointer user_data); -typedef Dartbt_adapter_device_discovery_state_changed_cbFunction - = void Function( - int result, - int discovery_state, - ffi.Pointer discovery_info, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Enumerations of the discovery state of Bluetooth device. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_device_discovery_state_e { - /// < Device discovery is started - static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; - - /// < Device discovery is finished - static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; - - /// < The remote Bluetooth device is found - static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Structure of device discovery information. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see #bt_class_s -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_adapter_device_discovery_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The Bluetooth appearance - @ffi.Int32() - external int appearance; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of gap appearance type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_appearance_type_e { - /// < Unknown appearance type - static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; - - /// < Generic Phone type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; - - /// < Generic Computer type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; - - /// < Generic Watch type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; -} +/// @see bt_adapter_start_device_discovery() +/// @see bt_adapter_stop_device_discovery() +/// @see bt_adapter_set_device_discovery_state_changed_cb() +/// @see bt_adapter_unset_device_discovery_state_changed_cb() +typedef bt_adapter_device_discovery_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_adapter_device_discovery_state_changed_cbFunction + = ffi.Void Function( + ffi.Int result, + ffi.Int32 discovery_state, + ffi.Pointer discovery_info, + ffi.Pointer user_data); +typedef Dartbt_adapter_device_discovery_state_changed_cbFunction + = void Function( + int result, + int discovery_state, + ffi.Pointer discovery_info, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief Called when the LE advertisement has been found. @@ -11422,107 +12693,6 @@ typedef Dartbt_adapter_le_scan_result_cbFunction = void Function( ffi.Pointer info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Structure of le scan result information. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The address type of remote device - @ffi.Int32() - external int address_type; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < advertising indication data length - @ffi.Int() - external int adv_data_len; - - /// < advertising indication data - external ffi.Pointer adv_data; - - /// < scan response data length - @ffi.Int() - external int scan_data_len; - - /// < scan response data - external ffi.Pointer scan_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device address type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_address_type_e { - /// < Public address - static const int BT_DEVICE_PUBLIC_ADDRESS = 0; - - /// < Random address - static const int BT_DEVICE_RANDOM_ADDRESS = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth LE packet type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_packet_type_e { - /// < Advertising packet - static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; - - /// < Scan response packet - static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief LE service data structure. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_get_scan_result_service_data() -final class bt_adapter_le_service_data_s extends ffi.Struct { - /// < 16 bit UUID of the service data - external ffi.Pointer service_uuid; - - /// < Service data - external ffi.Pointer service_data; - - /// < Service data length - @ffi.Int() - external int service_data_len; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief The structure for LE iBeacon scan result information. -/// @since_tizen 4.0 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { - /// < Company ID - @ffi.Int() - external int company_id; - - /// < iBeacon type - @ffi.Int() - external int ibeacon_type; - - /// < UUID - external ffi.Pointer uuid; - - /// < Major ID - @ffi.Int() - external int major_id; - - /// < Minor ID - @ffi.Int() - external int minor_id; - - /// < Measured power - @ffi.Int() - external int measured_power; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle to control Bluetooth LE advertising. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11592,59 +12762,6 @@ typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( int adv_state, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_adapter_le_advertising_state_e { - /// < Bluetooth advertising is stopped - static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; - - /// < Bluetooth advertising is started - static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising mode. -/// @since_tizen 2.3.1 -abstract class bt_adapter_le_advertising_mode_e { - /// < Balanced advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; - - /// < Low latency advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; - - /// < Low energy advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; - - /// < Custom mode to set advertising parameters - static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth le scan mode. -/// @since_tizen 3.0 -abstract class bt_adapter_le_scan_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device authorization state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_authorization_e { - /// < The remote Bluetooth device is authorized - static const int BT_DEVICE_AUTHORIZED = 0; - - /// < The remote Bluetooth device is unauthorized - static const int BT_DEVICE_UNAUTHORIZED = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when you get connected profiles repeatedly. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11662,52 +12779,6 @@ typedef bt_device_connected_profileFunction = ffi.Bool Function( typedef Dartbt_device_connected_profileFunction = bool Function( int profile, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of Bluetooth profile. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_profile_e { - /// < RFCOMM Profile - static const int BT_PROFILE_RFCOMM = 1; - - /// < Advanced Audio Distribution Profile Source role - static const int BT_PROFILE_A2DP = 2; - - /// < Headset Profile - static const int BT_PROFILE_HSP = 4; - - /// < Human Interface Device Profile - static const int BT_PROFILE_HID = 8; - - /// < Network Access Point Profile - static const int BT_PROFILE_NAP = 16; - - /// < Audio Gateway Profile - static const int BT_PROFILE_AG = 32; - - /// < Generic Attribute Profile - static const int BT_PROFILE_GATT = 64; - - /// < NAP server Profile - static const int BT_PROFILE_NAP_SERVER = 128; - - /// < Advanced Audio Distribution Profile Sink role - static const int BT_PROFILE_A2DP_SINK = 256; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth device's LE connection mode. -/// @since_tizen 3.0 -abstract class bt_device_le_connection_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the process of creating bond finishes. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11784,44 +12855,24 @@ typedef Dartbt_device_authorization_changed_cbFunction = void Function( /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif /// /// @param[in] result The result of the service searching -/// @param[in] sdp_info The structure of service lists found on a device -/// @param[in] user_data The user data passed from the callback registration function -/// @pre Either bt_device_start_service_search() will invoke this function -/// if you register this callback using bt_device_set_service_searched_cb(). -/// -/// @see bt_device_start_service_search() -/// @see bt_device_set_service_searched_cb() -/// @see bt_device_unset_service_searched_cb() -typedef bt_device_service_searched_cb - = ffi.Pointer>; -typedef bt_device_service_searched_cbFunction = ffi.Void Function( - ffi.Int result, - ffi.Pointer sdp_info, - ffi.Pointer user_data); -typedef Dartbt_device_service_searched_cbFunction = void Function( - int result, - ffi.Pointer sdp_info, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Service Discovery Protocol (SDP) data structure. -/// -/// @details This protocol is used for discovering available services or pear device, -/// and finding one to connect with. -/// -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @see bt_device_service_searched_cb() -final class bt_device_sdp_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services. - @ffi.Int() - external int service_count; -} +/// @param[in] sdp_info The structure of service lists found on a device +/// @param[in] user_data The user data passed from the callback registration function +/// @pre Either bt_device_start_service_search() will invoke this function +/// if you register this callback using bt_device_set_service_searched_cb(). +/// +/// @see bt_device_start_service_search() +/// @see bt_device_set_service_searched_cb() +/// @see bt_device_unset_service_searched_cb() +typedef bt_device_service_searched_cb + = ffi.Pointer>; +typedef bt_device_service_searched_cbFunction = ffi.Void Function( + ffi.Int result, + ffi.Pointer sdp_info, + ffi.Pointer user_data); +typedef Dartbt_device_service_searched_cbFunction = void Function( + int result, + ffi.Pointer sdp_info, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the connection state is changed. @@ -11843,55 +12894,6 @@ typedef Dartbt_device_connection_state_changed_cbFunction = void Function( ffi.Pointer conn_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device connection information structure. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_device_connection_state_changed_cb() -final class bt_device_connection_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < Link type - @ffi.Int32() - external int link; - - /// < Disconnection reason - @ffi.Int32() - external int disconn_reason; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of connection link type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_connection_link_type_e { - /// < BR/EDR link - static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; - - /// < LE link - static const int BT_DEVICE_CONNECTION_LINK_LE = 1; - - /// < The connection type default - static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device disconnect reason. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_device_disconnect_reason_e { - /// < Disconnected by unknown reason - static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; - - /// < Disconnected by timeout - static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; - - /// < Disconnected by local host - static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; - - /// < Disconnected by remote - static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when you receive data. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11914,27 +12916,6 @@ typedef Dartbt_socket_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Structure of RFCOMM received data. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @remarks User can use standard linux functions for reading/writing \n -/// data from/to sockets. -/// -/// @see bt_socket_data_received_cb() -final class bt_socket_received_data_s extends ffi.Struct { - /// < The socket fd - @ffi.Int() - external int socket_fd; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when a RFCOMM connection is requested. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -11982,56 +12963,6 @@ typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of Bluetooth socket connection state. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_connection_state_e { - /// < RFCOMM is connected - static const int BT_SOCKET_CONNECTED = 0; - - /// < RFCOMM is disconnected - static const int BT_SOCKET_DISCONNECTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// -/// @see bt_socket_connection_state_changed_cb() -final class bt_socket_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The service UUId - external ffi.Pointer service_uuid; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of connected Bluetooth device event role. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_socket_role_e { - /// < Unknown role - static const int BT_SOCKET_UNKNOWN = 0; - - /// < Server role - static const int BT_SOCKET_SERVER = 1; - - /// < Client role - static const int BT_SOCKET_CLIENT = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_OPP_SERVER_MODULE /// @brief Called when an OPP connection is requested. /// @@ -12192,155 +13123,33 @@ typedef bt_hid_device_connection_state_changed_cb = ffi.Pointer< ffi.NativeFunction>; typedef bt_hid_device_connection_state_changed_cbFunction = ffi.Void Function( ffi.Int result, - ffi.Bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); -typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( - int result, - bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID mouse event information. -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_mouse_event() -final class bt_hid_mouse_data_s extends ffi.Struct { - /// < The button values, we can combine key's values when we pressed multiple mouse buttons - @ffi.Int() - external int buttons; - - /// < The location's x value, -128 ~127 - @ffi.Int() - external int axis_x; - - /// < The location's y value, -128 ~127 - @ffi.Int() - external int axis_y; - - /// < The padding value, -128 ~127 - @ffi.Int() - external int padding; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID keyboard event information. -/// @details If you want to know more detail values, refer to http://www.usb.org/developers/hidpage/ and see "HID Usage Tables" -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @see bt_hid_device_send_key_event() -final class bt_hid_key_data_s extends ffi.Struct { - /// < The modifier keys : such as shift, alt - @ffi.UnsignedChar() - external int modifier; - - /// < The key value - currently pressed keys : Max 8 at once - @ffi.Array.multi([8]) - external ffi.Array key; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Called when the HID Device receives data from the HID Host. -/// @details The following error codes can be delivered: \n -/// #BT_ERROR_NONE \n -/// #BT_ERROR_OPERATION_FAILED \n -/// @since_tizen @if WEARABLE 3.0 @endif -/// -/// @param[in] data The data received from the HID Host. -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hid_device_set_data_received_cb() -typedef bt_hid_device_data_received_cb - = ffi.Pointer>; -typedef bt_hid_device_data_received_cbFunction = ffi.Void Function( - ffi.Pointer data, - ffi.Pointer user_data); -typedef Dartbt_hid_device_data_received_cbFunction = void Function( - ffi.Pointer data, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing data received from the HID Host. -/// @since_tizen @if WEARABLE 3.0 @endif -final class bt_hid_device_received_data_s extends ffi.Struct { - /// < The remote device's address - external ffi.Pointer address; - - /// < The header type - @ffi.Int32() - external int header_type; - - /// < The parameter type - @ffi.Int32() - external int param_type; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID header type. -/// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_header_type_e { - /// < The Bluetooth HID header type: Handshake - static const int BT_HID_HEADER_HANDSHAKE = 0; - - /// < The Bluetooth HID header type: HID control - static const int BT_HID_HEADER_HID_CONTROL = 1; - - /// < The Bluetooth HID header type: Get report - static const int BT_HID_HEADER_GET_REPORT = 2; - - /// < The Bluetooth HID header type: Set report - static const int BT_HID_HEADER_SET_REPORT = 3; - - /// < The Bluetooth HID header type: Get protocol - static const int BT_HID_HEADER_GET_PROTOCOL = 4; - - /// < The Bluetooth HID header type: Set protocol - static const int BT_HID_HEADER_SET_PROTOCOL = 5; - - /// < The Bluetooth HID header type: Data - static const int BT_HID_HEADER_DATA = 6; - - /// < The Bluetooth HID header type: Unknown - static const int BT_HID_HEADER_UNKNOWN = 7; -} + ffi.Bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); +typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( + int result, + bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID parameter type. +/// @brief Called when the HID Device receives data from the HID Host. +/// @details The following error codes can be delivered: \n +/// #BT_ERROR_NONE \n +/// #BT_ERROR_OPERATION_FAILED \n /// @since_tizen @if WEARABLE 3.0 @endif -abstract class bt_hid_param_type_e { - /// < Parameter type: Input - static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; - - /// < Parameter type: Output - static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE -/// @brief Enumerations for the types of profiles related with audio. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -abstract class bt_audio_profile_type_e { - /// < All supported profiles related with audio (Both Host and Device role) - static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; - - /// < local device AG and remote device HF Client (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; - - /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; - - /// < local device HF Client and remote device AG (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_AG = 3; - - /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; -} +/// +/// @param[in] data The data received from the HID Host. +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hid_device_set_data_received_cb() +typedef bt_hid_device_data_received_cb + = ffi.Pointer>; +typedef bt_hid_device_data_received_cbFunction = ffi.Void Function( + ffi.Pointer data, + ffi.Pointer user_data); +typedef Dartbt_hid_device_data_received_cbFunction = void Function( + ffi.Pointer data, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE /// @brief Called when the connection state is changed. @@ -12390,82 +13199,6 @@ typedef Dartbt_avrcp_target_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the equalizer state. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_equalizer_state_e { - /// < Equalizer Off - static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; - - /// < Equalizer On - static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the repeat mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_repeat_mode_e { - /// < Repeat Off - static const int BT_AVRCP_REPEAT_MODE_OFF = 1; - - /// < Single track repeat - static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; - - /// < All track repeat - static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; - - /// < Group repeat - static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the shuffle mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_shuffle_mode_e { - /// < Shuffle Off - static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; - - /// < All tracks shuffle - static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; - - /// < Group shuffle - static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the scan mode. -/// @since_tizen @if WEARABLE 3.0 @else 2.4 @endif -abstract class bt_avrcp_scan_mode_e { - /// < Scan Off - static const int BT_AVRCP_SCAN_MODE_OFF = 1; - - /// < All tracks scan - static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; - - /// < Group scan - static const int BT_AVRCP_SCAN_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the player state. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_state_e { - /// < Stopped - static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; - - /// < Playing - static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; - - /// < Paused - static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; - - /// < Seek Forward - static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; - - /// < Seek Rewind - static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the equalizer state is changed by the remote control device. /// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif @@ -12570,37 +13303,6 @@ typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( ffi.Pointer track, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Structure of Track metadata information. -/// @since_tizen 3.0 -/// -/// @see #bt_class_s -final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { - /// < Title - external ffi.Pointer title; - - /// < Artist - external ffi.Pointer artist; - - /// < Album name - external ffi.Pointer album; - - /// < Album Genre - external ffi.Pointer genre; - - /// < The total number of tracks - @ffi.UnsignedInt() - external int total_tracks; - - /// < Track number - @ffi.UnsignedInt() - external int number; - - /// < Duration - @ffi.UnsignedInt() - external int duration; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the connection state is changed. /// @since_tizen 3.0 @@ -12618,32 +13320,6 @@ typedef Dartbt_avrcp_control_connection_state_changed_cbFunction = void Function(bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumeration for the player control commands. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_command_e { - /// < Play - static const int BT_AVRCP_CONTROL_PLAY = 1; - - /// < Pause - static const int BT_AVRCP_CONTROL_PAUSE = 2; - - /// < Stop - static const int BT_AVRCP_CONTROL_STOP = 3; - - /// < Next Track - static const int BT_AVRCP_CONTROL_NEXT = 4; - - /// < Previous track - static const int BT_AVRCP_CONTROL_PREVIOUS = 5; - - /// < Fast Forward - static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; - - /// < Rewind - static const int BT_AVRCP_CONTROL_REWIND = 7; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is established. @@ -12675,19 +13351,6 @@ typedef Dartbt_hdp_connected_cbFunction = void Function( int channel, ffi.Pointer user_data); -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Enumerations for the data channel type. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @remarks Deprecated, because of no usecase and supported devices. -abstract class bt_hdp_channel_type_e { - /// < Reliable Data Channel - static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; - - /// < Streaming Data Channel - static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is disconnected. @@ -12715,78 +13378,30 @@ typedef Dartbt_hdp_disconnected_cbFunction = void Function( /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Called when the you receive the data. -/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif -/// @remarks Deprecated, because of no usecase and supported devices. -/// -/// @param[in] channel The connected data channel -/// @param[in] data The received data -/// @param[in] size The size of received data (byte) -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hdp_set_data_received_cb() -/// @see bt_hdp_unset_data_received_cb() -typedef bt_hdp_data_received_cb - = ffi.Pointer>; -typedef bt_hdp_data_received_cbFunction = ffi.Void Function( - ffi.UnsignedInt channel, - ffi.Pointer data, - ffi.UnsignedInt size, - ffi.Pointer user_data); -typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, - ffi.Pointer data, int size, ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief The handle of a service, characteristic or descriptor. -/// @since_tizen 2.3.1 -typedef bt_gatt_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the integer type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_int_e { - /// < 8 bit signed int type - static const int BT_DATA_TYPE_SINT8 = 0; - - /// < 16 bit signed int type - static const int BT_DATA_TYPE_SINT16 = 1; - - /// < 32 bit signed int type - static const int BT_DATA_TYPE_SINT32 = 2; - - /// < 8 bit unsigned int type - static const int BT_DATA_TYPE_UINT8 = 3; - - /// < 16 bit unsigned int type - static const int BT_DATA_TYPE_UINT16 = 4; - - /// < 32 bit unsigned int type - static const int BT_DATA_TYPE_UINT32 = 5; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the float type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_float_e { - /// < 32 bit float type - static const int BT_DATA_TYPE_FLOAT = 0; - - /// < 16 bit float type - static const int BT_DATA_TYPE_SFLOAT = 1; -} +/// @brief Called when the you receive the data. +/// @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif +/// @remarks Deprecated, because of no usecase and supported devices. +/// +/// @param[in] channel The connected data channel +/// @param[in] data The received data +/// @param[in] size The size of received data (byte) +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hdp_set_data_received_cb() +/// @see bt_hdp_unset_data_received_cb() +typedef bt_hdp_data_received_cb + = ffi.Pointer>; +typedef bt_hdp_data_received_cbFunction = ffi.Void Function( + ffi.UnsignedInt channel, + ffi.Pointer data, + ffi.UnsignedInt size, + ffi.Pointer user_data); +typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, + ffi.Pointer data, int size, ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the GATT handle's type. +/// @brief The handle of a service, characteristic or descriptor. /// @since_tizen 2.3.1 -abstract class bt_gatt_type_e { - /// < GATT service type - static const int BT_GATT_TYPE_SERVICE = 1; - - /// < GATT characteristic type - static const int BT_GATT_TYPE_CHARACTERISTIC = 2; - - /// < GATT descriptor type - static const int BT_GATT_TYPE_DESCRIPTOR = 3; -} +typedef bt_gatt_h = ffi.Pointer; /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief The handle of a GATT client which is associated with a remote device. @@ -12813,17 +13428,6 @@ typedef bt_gatt_foreach_cbFunction = ffi.Bool Function(ffi.Int total, typedef Dartbt_gatt_foreach_cbFunction = bool Function(int total, int index, bt_gatt_h gatt_handle, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the write type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_write_type_e { - /// < Write without response type - static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; - - /// < Write type - static const int BT_GATT_WRITE_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when the client request(e.g. read / write) has been completed. /// @since_tizen 2.3.1 @@ -12864,24 +13468,6 @@ typedef Dartbt_gatt_client_att_mtu_changed_cbFunction = void Function( ffi.Pointer mtu_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Attribute protocol MTU change information structure. -/// @since_tizen 4.0 -/// -/// @see bt_gatt_client_att_mtu_changed_cb() -final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < MTU value - @ffi.UnsignedInt() - external int mtu; - - /// < Request status - @ffi.UnsignedInt() - external int status; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when a value of a watched characteristic's GATT handle has been changed. /// @since_tizen 2.3.1 @@ -12927,20 +13513,6 @@ typedef Dartbt_gatt_client_service_changed_cbFunction = void Function( ffi.Pointer service_uuid, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Enumerations of gatt server's service changing mode. -/// @since_tizen 3.0 -abstract class bt_gatt_client_service_change_type_e { - /// < Service added - static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; - - /// < Service removed - static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; - - /// < Resync is required (Since 6.5) - static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE /// @brief Called when the connection state is changed. /// @@ -12970,17 +13542,6 @@ typedef Dartbt_gatt_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the service type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_service_type_e { - /// < GATT primary service type - static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; - - /// < GATT secondary service type - static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief The handle of a GATT server. /// @since_tizen 3.0 @@ -13095,17 +13656,6 @@ typedef Dartbt_gatt_server_write_value_requested_cbFunction = void Function( int len, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE -/// @brief Enumerations of the remote device request types for attributes. -/// @since_tizen 3.0 -abstract class bt_gatt_att_request_type_e { - /// < Read Requested - static const int BT_GATT_REQUEST_TYPE_READ = 0; - - /// < Write Requested - static const int BT_GATT_REQUEST_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief Called when the sending notification / indication is done. /// @since_tizen 3.0 @@ -13174,39 +13724,6 @@ typedef Dartbt_pbap_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of address book location for PBAP. -/// @since_tizen 3.0 -abstract class bt_pbap_address_book_source_e { - /// < Request for Addressbook from remote device - static const int BT_PBAP_SOURCE_DEVICE = 0; - - /// < Request for address book from SIM - static const int BT_PBAP_SOURCE_SIM = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of folder type. -/// @since_tizen 3.0 -abstract class bt_pbap_folder_type_e { - /// < Request for address book - static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; - - /// < Request for incoming calls - static const int BT_PBAP_FOLDER_INCOMING = 1; - - /// < Request for outgoing calls - static const int BT_PBAP_FOLDER_OUTGOING = 2; - - /// < Request for missed calls - static const int BT_PBAP_FOLDER_MISSED = 3; - - /// < Request for combined calls - static const int BT_PBAP_FOLDER_COMBINED = 4; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook size calculation completes. @@ -13235,33 +13752,6 @@ typedef Dartbt_pbap_phone_book_size_cbFunction = void Function( int size, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of vCard Formats. -/// @since_tizen 3.0 -abstract class bt_pbap_vcard_format_e { - /// < vCard format 2.1 (default) - static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; - - /// < vCard format 3.0 - static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of sorting orders. -/// @since_tizen 3.0 -abstract class bt_pbap_sort_order_e { - /// < Filter order indexed (default) - static const int BT_PBAP_ORDER_INDEXED = 0; - - /// < Filter order alphanumeric - static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; - - /// < Filter order phonetic - static const int BT_PBAP_ORDER_PHONETIC = 2; -} - /// @WEARABLE_ONLY /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook Pull completes. @@ -13322,53 +13812,11 @@ typedef Dartbt_pbap_list_vcards_cbFunction = void Function( int count, ffi.Pointer user_data); -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief The structure type containing vCard information. -/// @since_tizen 3.0 -/// -/// @see bt_pbap_client_pull_vcard() -final class bt_pbap_vcard_info_s extends ffi.Struct { - /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() - @ffi.Int() - external int index; - - /// < The contact name of the vCard - external ffi.Pointer contact_name; -} - -/// @WEARABLE_ONLY -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of phone book search fields. -/// @since_tizen 3.0 -abstract class bt_pbap_search_field_e { - /// < Request for search by name (default) - static const int BT_PBAP_SEARCH_NAME = 0; - - /// < Request for search by phone number - static const int BT_PBAP_SEARCH_NUMBER = 1; - - /// < Request for search by sound - static const int BT_PBAP_SEARCH_SOUND = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle of a Bluetooth LE scan filter. /// @since_tizen 4.0 typedef bt_scan_filter_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumeration for the scan filter type. -/// @since_tizen 4.0 -/// @see bt_adapter_le_scan_filter_set_type() -abstract class bt_adapter_le_scan_filter_type_e { - /// < iBeacon filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - - /// < Proximity UUID filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when the l2cap channel socket connection state changes. /// @since_tizen 7.0 @@ -13399,32 +13847,6 @@ typedef Dartbt_socket_l2cap_channel_connection_state_changed_cbFunction ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. -/// @since_tizen 7.0 -/// -/// @see bt_socket_l2cap_channel_connection_state_changed_cb() -final class bt_socket_l2cap_le_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The psm of the connected socket - @ffi.Int() - external int psm; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE /// @brief Called when the LE advertisement has been found. /// @since_tizen 8.0 @@ -13447,34 +13869,3 @@ typedef Dartbt_adapter_le_new_scan_result_cbFunction = void Function( /// @brief The handle of a new scan result. /// @since_tizen 8.0 typedef bt_new_scan_result_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE -/// @brief Enumerations of the Bluetooth LE scan role. -/// @since_tizen 8.0 -abstract class bt_adapter_le_scan_role_e { - /// < Scan all - static const int BT_ADAPTER_LE_SCAN_ALL = 0; - - /// < Legacy scan only - static const int BT_ADAPTER_LE_SCAN_LEGACY_ONLY = 1; - - /// < Extended scan only - static const int BT_ADAPTER_LE_SCAN_EXTENDED_ONLY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE -/// @brief Enumerations of the Bluetooth LE phy. -/// @since_tizen 8.0 -abstract class bt_adapter_le_phy_e { - /// < All phy - static const int BT_LE_ALL_PHY = 0; - - /// < 1M phy - static const int BT_LE_1M_PHY = 1; - - /// < 2M phy - static const int BT_LE_2M_PHY = 2; - - /// < Coded phy - static const int BT_LE_CODED_PHY = 3; -} diff --git a/lib/src/bindings/8.0/generated_bindings_capi_system_info.dart b/lib/src/bindings/8.0/generated_bindings_capi_system_info.dart index f1da076b..0aeb987e 100644 --- a/lib/src/bindings/8.0/generated_bindings_capi_system_info.dart +++ b/lib/src/bindings/8.0/generated_bindings_capi_system_info.dart @@ -369,6 +369,38 @@ class Tizen80CapiSystemInfo { int Function(ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for system information error codes. +abstract class system_info_error_e { + /// < Successful + static const int SYSTEM_INFO_ERROR_NONE = 0; + + /// < Invalid parameter + static const int SYSTEM_INFO_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int SYSTEM_INFO_ERROR_OUT_OF_MEMORY = -12; + + /// < An input/output error occurred when reading value from system + static const int SYSTEM_INFO_ERROR_IO_ERROR = -5; + + /// < No permission to use the API + static const int SYSTEM_INFO_ERROR_PERMISSION_DENIED = -13; + + /// < Not supported parameter (Since 3.0) + static const int SYSTEM_INFO_ERROR_NOT_SUPPORTED = -1073741822; +} + +/// @internal +/// @brief It is not decided if it should be opened to public. +abstract class system_info_type_e { + static const int SYSTEM_INFO_TYPE_MIN = 0; + static const int SYSTEM_INFO_BOOL = 0; + static const int SYSTEM_INFO_INT = 1; + static const int SYSTEM_INFO_DOUBLE = 2; + static const int SYSTEM_INFO_STRING = 3; + static const int SYSTEM_INFO_TYPE_MAX = 4; +} + /// @internal /// @brief Enumeration for system information key. abstract class system_info_key_e { @@ -417,14 +449,3 @@ abstract class system_info_key_e { /// < @internal Indicates whether the device supports tethering static const int SYSTEM_INFO_KEY_TETHERING_SUPPORTED = 14; } - -/// @internal -/// @brief It is not decided if it should be opened to public. -abstract class system_info_type_e { - static const int SYSTEM_INFO_TYPE_MIN = 0; - static const int SYSTEM_INFO_BOOL = 0; - static const int SYSTEM_INFO_INT = 1; - static const int SYSTEM_INFO_DOUBLE = 2; - static const int SYSTEM_INFO_STRING = 3; - static const int SYSTEM_INFO_TYPE_MAX = 4; -} diff --git a/lib/src/bindings/8.0/generated_bindings_mv_barcode_detector.dart b/lib/src/bindings/8.0/generated_bindings_mv_barcode_detector.dart index af8fd774..98817940 100644 --- a/lib/src/bindings/8.0/generated_bindings_mv_barcode_detector.dart +++ b/lib/src/bindings/8.0/generated_bindings_mv_barcode_detector.dart @@ -81,6 +81,123 @@ class Tizen80MvBarcodeDetector { ffi.Pointer)>(); } +/// @brief Enumeration for supported barcode types. +/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead +abstract class mv_barcode_type_e { + /// < 2D barcode - Quick Response code + static const int MV_BARCODE_QR = 0; + + /// < 1D barcode - Universal Product Code with 12-digit + static const int MV_BARCODE_UPC_A = 1; + + /// < 1D barcode - Universal Product Code with 6-digit + static const int MV_BARCODE_UPC_E = 2; + + /// < 1D barcode - International Article Number with 8-digit + static const int MV_BARCODE_EAN_8 = 3; + + /// < 1D barcode - International Article Number with 13-digit + static const int MV_BARCODE_EAN_13 = 4; + + /// < 1D barcode - Code 128 + static const int MV_BARCODE_CODE128 = 5; + + /// < 1D barcode - Code 39 + static const int MV_BARCODE_CODE39 = 6; + + /// < 1D barcode - Interleaved Two of Five + static const int MV_BARCODE_I2_5 = 7; + + /// < @deprecated Undefined (Deprecated since 6.0) + static const int MV_BARCODE_UNDEFINED = 8; + + /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_2 = 9; + + /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_5 = 10; + + /// < 1D barcode - Code 93 (since 6.0) + static const int MV_BARCODE_CODE93 = 11; + + /// < 1D barcode - CODABAR (since 6.0) + static const int MV_BARCODE_CODABAR = 12; + + /// < 1D barcode - GS1 DATABAR (since 6.0) + static const int MV_BARCODE_DATABAR = 13; + + /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) + static const int MV_BARCODE_DATABAR_EXPAND = 14; + + /// < Unknown (since 6.0) + static const int MV_BARCODE_UNKNOWN = 100; +} + +/// @brief Enumeration for supported QR code error correction level. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_ecc_e { + /// < Recovery up to 7% losses + static const int MV_BARCODE_QR_ECC_LOW = 0; + + /// < Recovery up to 15% losses + static const int MV_BARCODE_QR_ECC_MEDIUM = 1; + + /// < Recovery up to 25% losses + static const int MV_BARCODE_QR_ECC_QUARTILE = 2; + + /// < Recovery up to 30% losses + static const int MV_BARCODE_QR_ECC_HIGH = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_ECC_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported QR code encoding mode. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_mode_e { + /// < Numeric digits + static const int MV_BARCODE_QR_MODE_NUMERIC = 0; + + /// < Alphanumeric characters + static const int MV_BARCODE_QR_MODE_ALPHANUMERIC = 1; + + /// < Raw 8-bit bytes + static const int MV_BARCODE_QR_MODE_BYTE = 2; + + /// < UTF-8 character encoding + static const int MV_BARCODE_QR_MODE_UTF8 = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_MODE_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported image formats for the barcode generating. +/// +/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif +abstract class mv_barcode_image_format_e { + /// < Unavailable image format + static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; + + /// < BMP image format + static const int MV_BARCODE_IMAGE_FORMAT_BMP = 0; + + /// < JPEG image format + static const int MV_BARCODE_IMAGE_FORMAT_JPG = 1; + + /// < PNG image format + static const int MV_BARCODE_IMAGE_FORMAT_PNG = 2; + + /// < The number of supported image format + static const int MV_BARCODE_IMAGE_FORMAT_NUM = 3; +} + /// @brief Enumeration to target attribute /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif @@ -151,61 +268,6 @@ typedef Dartmv_barcode_detected_cbFunction = void Function( int number_of_barcodes, ffi.Pointer user_data); -/// @brief Enumeration for supported barcode types. -/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported -/// -/// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead -abstract class mv_barcode_type_e { - /// < 2D barcode - Quick Response code - static const int MV_BARCODE_QR = 0; - - /// < 1D barcode - Universal Product Code with 12-digit - static const int MV_BARCODE_UPC_A = 1; - - /// < 1D barcode - Universal Product Code with 6-digit - static const int MV_BARCODE_UPC_E = 2; - - /// < 1D barcode - International Article Number with 8-digit - static const int MV_BARCODE_EAN_8 = 3; - - /// < 1D barcode - International Article Number with 13-digit - static const int MV_BARCODE_EAN_13 = 4; - - /// < 1D barcode - Code 128 - static const int MV_BARCODE_CODE128 = 5; - - /// < 1D barcode - Code 39 - static const int MV_BARCODE_CODE39 = 6; - - /// < 1D barcode - Interleaved Two of Five - static const int MV_BARCODE_I2_5 = 7; - - /// < @deprecated Undefined (Deprecated since 6.0) - static const int MV_BARCODE_UNDEFINED = 8; - - /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_2 = 9; - - /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_5 = 10; - - /// < 1D barcode - Code 93 (since 6.0) - static const int MV_BARCODE_CODE93 = 11; - - /// < 1D barcode - CODABAR (since 6.0) - static const int MV_BARCODE_CODABAR = 12; - - /// < 1D barcode - GS1 DATABAR (since 6.0) - static const int MV_BARCODE_DATABAR = 13; - - /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) - static const int MV_BARCODE_DATABAR_EXPAND = 14; - - /// < Unknown (since 6.0) - static const int MV_BARCODE_UNKNOWN = 100; -} - const String MV_BARCODE_DETECT_ATTR_TARGET = 'MV_BARCODE_DETECT_ATTR_TARGET'; const String MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES = diff --git a/lib/src/bindings/8.0/generated_bindings_mv_barcode_generator.dart b/lib/src/bindings/8.0/generated_bindings_mv_barcode_generator.dart index f39e05fd..7c5408e8 100644 --- a/lib/src/bindings/8.0/generated_bindings_mv_barcode_generator.dart +++ b/lib/src/bindings/8.0/generated_bindings_mv_barcode_generator.dart @@ -277,7 +277,7 @@ abstract class _mv_barcode_type_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_mode_e { +abstract class _mv_barcode_qr_mode_e { /// < Numeric digits static const int MV_BARCODE_QR_MODE_NUMERIC = 0; @@ -298,7 +298,7 @@ abstract class mv_barcode_qr_mode_e { /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_ecc_e { +abstract class _mv_barcode_qr_ecc_e { /// < Recovery up to 7% losses static const int MV_BARCODE_QR_ECC_LOW = 0; @@ -318,7 +318,7 @@ abstract class mv_barcode_qr_ecc_e { /// @brief Enumeration for supported image formats for the barcode generating. /// /// @since_tizen @if MOBILE 2.4 @else 3.0 @endif -abstract class mv_barcode_image_format_e { +abstract class _mv_barcode_image_format_e { /// < Unavailable image format static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; diff --git a/lib/src/bindings/8.0/generated_bindings_mv_face.dart b/lib/src/bindings/8.0/generated_bindings_mv_face.dart index 3c05c140..12cc5943 100644 --- a/lib/src/bindings/8.0/generated_bindings_mv_face.dart +++ b/lib/src/bindings/8.0/generated_bindings_mv_face.dart @@ -1100,6 +1100,53 @@ class Tizen80MvFace { ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for eyes state type. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_eye_condition_recognize() +abstract class mv_face_eye_condition_e { + /// < Eyes are open + static const int MV_FACE_EYES_OPEN = 0; + + /// < Eyes are closed + static const int MV_FACE_EYES_CLOSED = 1; + + /// < The eyes condition wasn't determined + static const int MV_FACE_EYES_NOT_FOUND = 2; +} + +/// @brief Enumeration for expression types can be determined for faces. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_facial_expression_recognize() +abstract class mv_face_facial_expression_e { + /// < Unknown face expression + static const int MV_FACE_UNKNOWN = 0; + + /// < Face expression is neutral + static const int MV_FACE_NEUTRAL = 1; + + /// < Face expression is smiling + static const int MV_FACE_SMILE = 2; + + /// < Face expression is sadness + static const int MV_FACE_SADNESS = 3; + + /// < Face expression is surprise + static const int MV_FACE_SURPRISE = 4; + + /// < Face expression is anger + static const int MV_FACE_ANGER = 5; + + /// < Face expression is fear + static const int MV_FACE_FEAR = 6; + + /// < Face expression is disgust + static const int MV_FACE_DISGUST = 7; +} + /// @brief Called when faces are detected for the @a source. /// @details This type callback can be invoked each time when /// mv_face_detect() is called to process the results of face @@ -1311,22 +1358,6 @@ typedef Dartmv_face_eye_condition_recognized_cbFunction = void Function( int eye_condition, ffi.Pointer user_data); -/// @brief Enumeration for eyes state type. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_eye_condition_recognize() -abstract class mv_face_eye_condition_e { - /// < Eyes are open - static const int MV_FACE_EYES_OPEN = 0; - - /// < Eyes are closed - static const int MV_FACE_EYES_CLOSED = 1; - - /// < The eyes condition wasn't determined - static const int MV_FACE_EYES_NOT_FOUND = 2; -} - /// @brief Called when facial expression is recognized. /// @details This type callback can be invoked each time when /// mv_face_facial_expression_recognize() is called for @a face_location to @@ -1363,37 +1394,6 @@ typedef Dartmv_face_facial_expression_recognized_cbFunction = void Function( int facial_expression, ffi.Pointer user_data); -/// @brief Enumeration for expression types can be determined for faces. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_facial_expression_recognize() -abstract class mv_face_facial_expression_e { - /// < Unknown face expression - static const int MV_FACE_UNKNOWN = 0; - - /// < Face expression is neutral - static const int MV_FACE_NEUTRAL = 1; - - /// < Face expression is smiling - static const int MV_FACE_SMILE = 2; - - /// < Face expression is sadness - static const int MV_FACE_SADNESS = 3; - - /// < Face expression is surprise - static const int MV_FACE_SURPRISE = 4; - - /// < Face expression is anger - static const int MV_FACE_ANGER = 5; - - /// < Face expression is fear - static const int MV_FACE_FEAR = 6; - - /// < Face expression is disgust - static const int MV_FACE_DISGUST = 7; -} - const String MV_FACE_DETECTION_MODEL_FILE_PATH = 'MV_FACE_DETECTION_MODEL_FILE_PATH'; diff --git a/lib/src/bindings/8.0/generated_bindings_mv_inference.dart b/lib/src/bindings/8.0/generated_bindings_mv_inference.dart index 63811e78..09721e15 100644 --- a/lib/src/bindings/8.0/generated_bindings_mv_inference.dart +++ b/lib/src/bindings/8.0/generated_bindings_mv_inference.dart @@ -821,6 +821,164 @@ class Tizen80MvInference { ffi.Pointer)>(); } +/// @brief Enumeration for inference backend. +/// #MV_INFERENCE_BACKEND_OPENCV An open source computer vision and machine learning +/// software library. +/// (https://opencv.org/about/) +/// #MV_INFERENCE_BACKEND_TFLITE Google-introduced open source inference engine for embedded systems, +/// which runs Tensorflow Lite model. +/// (https://www.tensorflow.org/lite/guide/get_started) +/// #MV_INFERENCE_BACKEND_ARMNN ARM-introduced open source inference engine for CPUs, GPUs and NPUs, which +/// enables efficient translation of existing neural network frameworks +/// such as TensorFlow, TensorFlow Lite and Caffes, allowing them to +/// run efficiently without modification on Embedded hardware. +/// (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn) +/// #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which +/// runs various NN models via tensor filters of NNStreamer. (Deprecated since 7.0) +/// (https://github.com/nnstreamer/nnstreamer) +/// #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which +/// performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU. +/// (https://github.com/Samsung/ONE) +/// +/// @since_tizen 5.5 +/// +/// @see mv_inference_prepare() +abstract class mv_inference_backend_type_e { + /// < None + static const int MV_INFERENCE_BACKEND_NONE = -1; + + /// < OpenCV + static const int MV_INFERENCE_BACKEND_OPENCV = 0; + + /// < TensorFlow-Lite + static const int MV_INFERENCE_BACKEND_TFLITE = 1; + + /// < @deprecated ARMNN (Since 6.0) (Deprecated since 8.0) + static const int MV_INFERENCE_BACKEND_ARMNN = 2; + + /// < @deprecated ML Single API of NNStreamer (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MLAPI = 3; + + /// < On-device Neural Engine (Since 6.0) + static const int MV_INFERENCE_BACKEND_ONE = 4; + + /// < NNTrainer (Since 7.0) + static const int MV_INFERENCE_BACKEND_NNTRAINER = 5; + + /// < SNPE Engine (Since 7.0) + static const int MV_INFERENCE_BACKEND_SNPE = 6; + + /// < @deprecated Backend MAX (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MAX = 7; +} + +/// @brief Enumeration for inference target. +/// +/// @since_tizen 6.0 +abstract class mv_inference_target_device_e { + /// < None + static const int MV_INFERENCE_TARGET_DEVICE_NONE = 0; + + /// < CPU + static const int MV_INFERENCE_TARGET_DEVICE_CPU = 1; + + /// < GPU + static const int MV_INFERENCE_TARGET_DEVICE_GPU = 2; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_DEVICE_CUSTOM = 4; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_DEVICE_MAX = 8; +} + +/// @brief Enumeration for input data type. +/// +/// @since_tizen 6.0 +abstract class mv_inference_data_type_e { + /// < Data type of a given pre-trained model is float. + static const int MV_INFERENCE_DATA_FLOAT32 = 0; + + /// < Data type of a given pre-trained model is unsigned char. + static const int MV_INFERENCE_DATA_UINT8 = 1; +} + +/// @brief Enumeration for human pose landmark. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_pose_landmark_e { + /// < Head of human pose + static const int MV_INFERENCE_HUMAN_POSE_HEAD = 1; + + /// < Neck of human pose + static const int MV_INFERENCE_HUMAN_POSE_NECK = 2; + + /// < Thorax of human pose + static const int MV_INFERENCE_HUMAN_POSE_THORAX = 3; + + /// < Right shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_SHOULDER = 4; + + /// < Right elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ELBOW = 5; + + /// < Right wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_WRIST = 6; + + /// < Left shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_SHOULDER = 7; + + /// < Left elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ELBOW = 8; + + /// < Left wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_WRIST = 9; + + /// < Pelvis of human pose + static const int MV_INFERENCE_HUMAN_POSE_PELVIS = 10; + + /// < Right hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_HIP = 11; + + /// < Right knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_KNEE = 12; + + /// < Right ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ANKLE = 13; + + /// < Left hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_HIP = 14; + + /// < Left knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_KNEE = 15; + + /// < Left ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ANKLE = 16; +} + +/// @brief Enumeration for human body parts. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_body_part_e { + /// < HEAD, NECK, and THORAX + static const int MV_INFERENCE_HUMAN_BODY_PART_HEAD = 1; + + /// < RIGHT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_RIGHT = 2; + + /// < LEFT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_LEFT = 4; + + /// < THORAX, PELVIS, RIGHT HIP, and LEFT HIP + static const int MV_INFERENCE_HUMAN_BODY_PART_BODY = 8; + + /// < RIGHT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_RIGHT = 16; + + /// < LEFT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_LEFT = 32; +} + /// @brief The inference handle. /// @details Contains information about location of /// detected landmarks for one or more poses. diff --git a/lib/src/bindings/8.0/generated_bindings_tbm.dart b/lib/src/bindings/8.0/generated_bindings_tbm.dart index dbeaf34b..58ab1df7 100644 --- a/lib/src/bindings/8.0/generated_bindings_tbm.dart +++ b/lib/src/bindings/8.0/generated_bindings_tbm.dart @@ -449,6 +449,8 @@ class Tizen80Tbm { _tbm_surface_get_formatPtr.asFunction(); } +final class _tbm_surface extends ffi.Opaque {} + /// @brief Enumeration for tbm_surface error type. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif abstract class tbm_surface_error_e { @@ -544,12 +546,128 @@ typedef tbm_surface_plane_s = _tbm_surface_plane; /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_h = ffi.Pointer<_tbm_surface>; -final class _tbm_surface extends ffi.Opaque {} - /// @brief Definition for the TBM surface information struct. /// @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif typedef tbm_surface_info_s = _tbm_surface_info; +const int TBM_FORMAT_C8 = 538982467; + +const int TBM_FORMAT_RGB332 = 943867730; + +const int TBM_FORMAT_BGR233 = 944916290; + +const int TBM_FORMAT_XRGB4444 = 842093144; + +const int TBM_FORMAT_XBGR4444 = 842089048; + +const int TBM_FORMAT_RGBX4444 = 842094674; + +const int TBM_FORMAT_BGRX4444 = 842094658; + +const int TBM_FORMAT_ARGB4444 = 842093121; + +const int TBM_FORMAT_ABGR4444 = 842089025; + +const int TBM_FORMAT_RGBA4444 = 842088786; + +const int TBM_FORMAT_BGRA4444 = 842088770; + +const int TBM_FORMAT_XRGB1555 = 892424792; + +const int TBM_FORMAT_XBGR1555 = 892420696; + +const int TBM_FORMAT_RGBX5551 = 892426322; + +const int TBM_FORMAT_BGRX5551 = 892426306; + +const int TBM_FORMAT_ARGB1555 = 892424769; + +const int TBM_FORMAT_ABGR1555 = 892420673; + +const int TBM_FORMAT_RGBA5551 = 892420434; + +const int TBM_FORMAT_BGRA5551 = 892420418; + +const int TBM_FORMAT_RGB565 = 909199186; + +const int TBM_FORMAT_BGR565 = 909199170; + +const int TBM_FORMAT_RGB888 = 875710290; + +const int TBM_FORMAT_BGR888 = 875710274; + +const int TBM_FORMAT_XRGB8888 = 875713112; + +const int TBM_FORMAT_XBGR8888 = 875709016; + +const int TBM_FORMAT_RGBX8888 = 875714642; + +const int TBM_FORMAT_BGRX8888 = 875714626; + +const int TBM_FORMAT_ARGB8888 = 875713089; + +const int TBM_FORMAT_ABGR8888 = 875708993; + +const int TBM_FORMAT_RGBA8888 = 875708754; + +const int TBM_FORMAT_BGRA8888 = 875708738; + +const int TBM_FORMAT_XRGB2101010 = 808669784; + +const int TBM_FORMAT_XBGR2101010 = 808665688; + +const int TBM_FORMAT_RGBX1010102 = 808671314; + +const int TBM_FORMAT_BGRX1010102 = 808671298; + +const int TBM_FORMAT_ARGB2101010 = 808669761; + +const int TBM_FORMAT_ABGR2101010 = 808665665; + +const int TBM_FORMAT_RGBA1010102 = 808665426; + +const int TBM_FORMAT_BGRA1010102 = 808665410; + +const int TBM_FORMAT_YUYV = 1448695129; + +const int TBM_FORMAT_YVYU = 1431918169; + +const int TBM_FORMAT_UYVY = 1498831189; + +const int TBM_FORMAT_VYUY = 1498765654; + +const int TBM_FORMAT_AYUV = 1448433985; + +const int TBM_FORMAT_NV12 = 842094158; + +const int TBM_FORMAT_NV21 = 825382478; + +const int TBM_FORMAT_NV16 = 909203022; + +const int TBM_FORMAT_NV61 = 825644622; + +const int TBM_FORMAT_YUV410 = 961959257; + +const int TBM_FORMAT_YVU410 = 961893977; + +const int TBM_FORMAT_YUV411 = 825316697; + +const int TBM_FORMAT_YVU411 = 825316953; + +const int TBM_FORMAT_YUV420 = 842093913; + +const int TBM_FORMAT_YVU420 = 842094169; + +const int TBM_FORMAT_YUV422 = 909202777; + +const int TBM_FORMAT_YVU422 = 909203033; + +const int TBM_FORMAT_YUV444 = 875713881; + +const int TBM_FORMAT_YVU444 = 875714137; + +const int TBM_FORMAT_NV12MT = 842091860; + const int TBM_SURF_PLANE_MAX = 4; const int TBM_SURF_OPTION_READ = 1; diff --git a/lib/src/bindings/9.0/generated_bindings_capi_base_common.dart b/lib/src/bindings/9.0/generated_bindings_capi_base_common.dart index c28e7504..1cc8a968 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_base_common.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_base_common.dart @@ -386,6 +386,8 @@ abstract class tizen_error_e { static const int TIZEN_ERROR_END_OF_COLLECTION = -1073741819; } +const int NULL = 0; + const int TIZEN_ERROR_MAX_PLATFORM_ERROR = 0; const int TIZEN_ERROR_MIN_PLATFORM_ERROR = -1073741824; diff --git a/lib/src/bindings/9.0/generated_bindings_capi_geofence_manager.dart b/lib/src/bindings/9.0/generated_bindings_capi_geofence_manager.dart index a1b2f928..2a35861c 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_geofence_manager.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_geofence_manager.dart @@ -1259,76 +1259,6 @@ class Tizen90CapiGeofenceManager { .asFunction)>(); } -/// @deprecated Deprecated since 8.0. -/// @brief The geofence manager handle. -/// @since_tizen 2.4 -typedef geofence_manager_h = ffi.Pointer; - -final class geofence_manager_s extends ffi.Opaque {} - -/// @deprecated Deprecated since 8.0. -/// @brief The geofence handle. -/// @since_tizen 2.4 -typedef geofence_h = ffi.Pointer; - -final class geofence_s extends ffi.Opaque {} - -/// @deprecated Deprecated since 8.0. -/// @brief Called when a device enters or exits the given geofence. -/// @since_tizen 2.4 -/// @param[in] geofence_id The specified geofence ID -/// @param[in] state The geofence state -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). -/// @see geofence_state_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_state_changed_cb() -typedef geofence_state_changed_cb - = ffi.Pointer>; -typedef geofence_state_changed_cbFunction = ffi.Void Function( - ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartgeofence_state_changed_cbFunction = void Function( - int geofence_id, int state, ffi.Pointer user_data); - -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for the state of geofence manager. -/// @since_tizen 2.4 -abstract class geofence_state_e { - /// < Uncertain state of geofence - static const int GEOFENCE_STATE_UNCERTAIN = 0; - - /// < Geofence In state - static const int GEOFENCE_STATE_IN = 1; - - /// < Geofence Out state - static const int GEOFENCE_STATE_OUT = 2; -} - -/// @deprecated Deprecated since 8.0. -/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. -/// @details The events of public geofence is also received if there are public geofences. -/// @since_tizen 2.4 -/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. -/// @param[in] place_id The place ID -/// @param[in] geofence_id The specified geofence ID -/// @param[in] error The error code for the particular action -/// @param[in] manage The result code for the particular place and geofence management -/// @param[in] user_data The user data passed from callback registration function -/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() -/// @see geofence_manage_e -/// @see geofence_manager_start() -/// @see geofence_manager_set_geofence_event_cb() -typedef geofence_event_cb - = ffi.Pointer>; -typedef geofence_event_cbFunction = ffi.Void Function( - ffi.Int place_id, - ffi.Int geofence_id, - ffi.Int32 error, - ffi.Int32 manage, - ffi.Pointer user_data); -typedef Dartgeofence_event_cbFunction = void Function(int place_id, - int geofence_id, int error, int manage, ffi.Pointer user_data); - /// @deprecated Deprecated since 8.0. /// @brief Enumeration for Geofence manager of error code. /// @since_tizen 2.4 @@ -1376,6 +1306,71 @@ abstract class geofence_manager_error_e { static const int GEOFENCE_MANAGER_ERROR_GEOFENCE_ACCESS_DENIED = -46202871; } +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for the state of geofence manager. +/// @since_tizen 2.4 +abstract class geofence_state_e { + /// < Uncertain state of geofence + static const int GEOFENCE_STATE_UNCERTAIN = 0; + + /// < Geofence In state + static const int GEOFENCE_STATE_IN = 1; + + /// < Geofence Out state + static const int GEOFENCE_STATE_OUT = 2; +} + +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for the state of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_state_e { + /// < Uncertain state of proximity + static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; + + /// < Far state of proximity + static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; + + /// < Near state of proximity + static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; + + /// < Immediate state of proximity + static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; +} + +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for the provider of proximity. +/// @since_tizen 3.0 +abstract class geofence_proximity_provider_e { + /// < Proximity is specified by geospatial coordinate + static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; + + /// < Proximity is specified by Wi-Fi access point + static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; + + /// < Proximity is specified by Bluetooth device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; + + /// < Proximity is specified by Bluetooth low energy device + static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; + + /// < Proximity is specified by Sensor + static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; +} + +/// @deprecated Deprecated since 8.0. +/// @brief Enumeration for geofence type. +/// @since_tizen 2.4 +abstract class geofence_type_e { + /// < Geofence is specified by geospatial coordinate + static const int GEOFENCE_TYPE_GEOPOINT = 1; + + /// < Geofence is specified by Wi-Fi access point + static const int GEOFENCE_TYPE_WIFI = 2; + + /// < Geofence is specified by Bluetooth device + static const int GEOFENCE_TYPE_BT = 3; +} + /// @deprecated Deprecated since 8.0. /// @brief Enumeration for geofence management events. /// @since_tizen 2.4 @@ -1408,6 +1403,64 @@ abstract class geofence_manage_e { static const int GEOFENCE_MANAGE_SETTING_DISABLED = 33; } +final class geofence_manager_s extends ffi.Opaque {} + +final class geofence_s extends ffi.Opaque {} + +final class geofence_status_s extends ffi.Opaque {} + +/// @deprecated Deprecated since 8.0. +/// @brief The geofence manager handle. +/// @since_tizen 2.4 +typedef geofence_manager_h = ffi.Pointer; + +/// @deprecated Deprecated since 8.0. +/// @brief The geofence handle. +/// @since_tizen 2.4 +typedef geofence_h = ffi.Pointer; + +/// @deprecated Deprecated since 8.0. +/// @brief Called when a device enters or exits the given geofence. +/// @since_tizen 2.4 +/// @param[in] geofence_id The specified geofence ID +/// @param[in] state The geofence state +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_state_changed_cb(). +/// @see geofence_state_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_state_changed_cb() +typedef geofence_state_changed_cb + = ffi.Pointer>; +typedef geofence_state_changed_cbFunction = ffi.Void Function( + ffi.Int geofence_id, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartgeofence_state_changed_cbFunction = void Function( + int geofence_id, int state, ffi.Pointer user_data); + +/// @deprecated Deprecated since 8.0. +/// @brief Called when the some event occurs in geofence and place such as add, update, etc.. +/// @details The events of public geofence is also received if there are public geofences. +/// @since_tizen 2.4 +/// @remarks The value of place_id or geofence_id is -1 when the place ID or geofence ID is not assigned. +/// @param[in] place_id The place ID +/// @param[in] geofence_id The specified geofence ID +/// @param[in] error The error code for the particular action +/// @param[in] manage The result code for the particular place and geofence management +/// @param[in] user_data The user data passed from callback registration function +/// @pre geofence_manager_start() will invoke this callback if you register this callback using geofence_manager_set_geofence_event_cb() +/// @see geofence_manage_e +/// @see geofence_manager_start() +/// @see geofence_manager_set_geofence_event_cb() +typedef geofence_event_cb + = ffi.Pointer>; +typedef geofence_event_cbFunction = ffi.Void Function( + ffi.Int place_id, + ffi.Int geofence_id, + ffi.Int32 error, + ffi.Int32 manage, + ffi.Pointer user_data); +typedef Dartgeofence_event_cbFunction = void Function(int place_id, + int geofence_id, int error, int manage, ffi.Pointer user_data); + /// @deprecated Deprecated since 8.0. /// @brief Called when a proximity state of device is changed. /// @since_tizen 3.0 @@ -1430,43 +1483,6 @@ typedef geofence_proximity_state_changed_cbFunction = ffi.Void Function( typedef Dartgeofence_proximity_state_changed_cbFunction = void Function( int geofence_id, int state, int provider, ffi.Pointer user_data); -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for the state of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_state_e { - /// < Uncertain state of proximity - static const int GEOFENCE_PROXIMITY_STATE_UNCERTAIN = 0; - - /// < Far state of proximity - static const int GEOFENCE_PROXIMITY_STATE_FAR = 1; - - /// < Near state of proximity - static const int GEOFENCE_PROXIMITY_STATE_NEAR = 2; - - /// < Immediate state of proximity - static const int GEOFENCE_PROXIMITY_STATE_IMMEDIATE = 3; -} - -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for the provider of proximity. -/// @since_tizen 3.0 -abstract class geofence_proximity_provider_e { - /// < Proximity is specified by geospatial coordinate - static const int GEOFENCE_PROXIMITY_PROVIDER_LOCATION = 0; - - /// < Proximity is specified by Wi-Fi access point - static const int GEOFENCE_PROXIMITY_PROVIDER_WIFI = 1; - - /// < Proximity is specified by Bluetooth device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLUETOOTH = 2; - - /// < Proximity is specified by Bluetooth low energy device - static const int GEOFENCE_PROXIMITY_PROVIDER_BLE = 3; - - /// < Proximity is specified by Sensor - static const int GEOFENCE_PROXIMITY_PROVIDER_SENSOR = 4; -} - /// @deprecated Deprecated since 8.0. /// @brief Called when the fence list is requested. /// @since_tizen 2.4 @@ -1524,23 +1540,7 @@ typedef Dartgeofence_manager_place_cbFunction = bool Function( int place_cnt, ffi.Pointer user_data); -/// @deprecated Deprecated since 8.0. -/// @brief Enumeration for geofence type. -/// @since_tizen 2.4 -abstract class geofence_type_e { - /// < Geofence is specified by geospatial coordinate - static const int GEOFENCE_TYPE_GEOPOINT = 1; - - /// < Geofence is specified by Wi-Fi access point - static const int GEOFENCE_TYPE_WIFI = 2; - - /// < Geofence is specified by Bluetooth device - static const int GEOFENCE_TYPE_BT = 3; -} - /// @deprecated Deprecated since 8.0. /// @brief The geofence status handle. /// @since_tizen 2.4 typedef geofence_status_h = ffi.Pointer; - -final class geofence_status_s extends ffi.Opaque {} diff --git a/lib/src/bindings/9.0/generated_bindings_capi_media_controller.dart b/lib/src/bindings/9.0/generated_bindings_capi_media_controller.dart index 4c1232fa..2cc4e039 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_media_controller.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_media_controller.dart @@ -6452,6 +6452,535 @@ class Tizen90CapiMediaController { .asFunction)>(); } +/// @brief Enumeration for the media controller error. +/// @since_tizen 2.4 +abstract class mc_error_e { + /// < Successful + static const int MEDIA_CONTROLLER_ERROR_NONE = 0; + + /// < Invalid parameter + static const int MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int MEDIA_CONTROLLER_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED = -13; + + /// < Limited by server application (since 5.5) + static const int MEDIA_CONTROLLER_ERROR_ABILITY_LIMITED_BY_SERVER_APP = + -50462719; +} + +/// @brief Enumeration for the media controller server state. +/// @since_tizen 2.4 +/// +/// @see mc_client_get_latest_server_info() +/// @see mc_server_state_updated_cb() +abstract class mc_server_state_e { + /// < None state + static const int MC_SERVER_STATE_NONE = 0; + + /// < Activate state + static const int MC_SERVER_STATE_ACTIVATE = 1; + + /// < Deactivate state + static const int MC_SERVER_STATE_DEACTIVATE = 2; +} + +/// @brief Enumeration for the media meta info. +/// @since_tizen 2.4 +/// +/// @see mc_server_set_metadata() +/// @see mc_server_add_item_to_playlist() +/// @see mc_metadata_get() +abstract class mc_meta_e { + /// < Title + static const int MC_META_MEDIA_TITLE = 0; + + /// < Artist + static const int MC_META_MEDIA_ARTIST = 1; + + /// < Album + static const int MC_META_MEDIA_ALBUM = 2; + + /// < Author + static const int MC_META_MEDIA_AUTHOR = 3; + + /// < Genre + static const int MC_META_MEDIA_GENRE = 4; + + /// < Duration + static const int MC_META_MEDIA_DURATION = 5; + + /// < Date + static const int MC_META_MEDIA_DATE = 6; + + /// < Copyright + static const int MC_META_MEDIA_COPYRIGHT = 7; + + /// < Description + static const int MC_META_MEDIA_DESCRIPTION = 8; + + /// < Track Number + static const int MC_META_MEDIA_TRACK_NUM = 9; + + /// < Picture. Album Art + static const int MC_META_MEDIA_PICTURE = 10; + + /// < Season (Since 5.5) + static const int MC_META_MEDIA_SEASON = 11; + + /// < Episode (Since 5.5) + static const int MC_META_MEDIA_EPISODE = 12; + + /// < Content resolution (Since 5.5) + static const int MC_META_MEDIA_RESOLUTION = 13; +} + +/// @brief Enumeration for the media playback state of the media controller server. +/// @since_tizen 2.4 +/// +/// @see mc_server_set_playback_state() +/// @see mc_client_get_playback_state() +abstract class mc_playback_states_e { + /// < None + static const int MC_PLAYBACK_STATE_NONE = 0; + + /// < Playing + static const int MC_PLAYBACK_STATE_PLAYING = 1; + + /// < Paused + static const int MC_PLAYBACK_STATE_PAUSED = 2; + + /// < Stopped + static const int MC_PLAYBACK_STATE_STOPPED = 3; + + /// < Moving to the next item (Since 4.0) + static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; + + /// < Moving to the previous item (Since 4.0) + static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; + + /// < Fast forwarding (Since 4.0) + static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; + + /// < Rewinding (Since 4.0) + static const int MC_PLAYBACK_STATE_REWINDING = 11; + + /// < Connecting (Since 6.0) + static const int MC_PLAYBACK_STATE_CONNECTING = 12; + + /// < Buffering (Since 6.0) + static const int MC_PLAYBACK_STATE_BUFFERING = 13; + + /// < Error (Since 6.0) + static const int MC_PLAYBACK_STATE_ERROR = 14; +} + +/// @brief Enumeration for the media playback action. +/// @details Media controller clients can control media controller server's playback by calling mc_client_send_playback_action_cmd() or mc_client_send_playlist_cmd(). \n +/// Media controller servers have to set proper playback ability by using mc_server_set_playback_ability(). +/// @since_tizen 4.0 +/// +/// @see mc_server_set_playback_ability() +/// @see mc_client_send_playback_action_cmd() +/// @see mc_client_send_playlist_cmd() +/// @see mc_playback_action_is_supported() +/// @see mc_server_playback_action_cmd_received_cb() +/// @see mc_server_playlist_cmd_received_cb() +abstract class mc_playback_action_e { + /// < Play + static const int MC_PLAYBACK_ACTION_PLAY = 0; + + /// < Pause + static const int MC_PLAYBACK_ACTION_PAUSE = 1; + + /// < Stop + static const int MC_PLAYBACK_ACTION_STOP = 2; + + /// < Next item + static const int MC_PLAYBACK_ACTION_NEXT = 3; + + /// < Previous item + static const int MC_PLAYBACK_ACTION_PREV = 4; + + /// < Fast forward + static const int MC_PLAYBACK_ACTION_FAST_FORWARD = 5; + + /// < Rewind + static const int MC_PLAYBACK_ACTION_REWIND = 6; + + /// < Play/Pause toggle + static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; +} + +/// @brief Enumeration for the shuffle mode of the media controller server. +/// @since_tizen 2.4 +/// +/// @see mc_server_update_shuffle_mode() +/// @see mc_server_shuffle_mode_cmd_received_cb() +/// @see mc_client_get_server_shuffle_mode() +/// @see mc_client_send_shuffle_mode_cmd() +/// @see mc_shuffle_mode_updated_cb() +abstract class mc_shuffle_mode_e { + /// < Shuffle mode on + static const int MC_SHUFFLE_MODE_ON = 0; + + /// < Shuffle mode off + static const int MC_SHUFFLE_MODE_OFF = 1; +} + +/// @brief Enumeration for the repeat mode of the media controller server. +/// @since_tizen 2.4 +/// +/// @see mc_server_update_repeat_mode() +/// @see mc_server_repeat_mode_cmd_received_cb() +/// @see mc_client_get_server_repeat_mode() +/// @see mc_client_send_repeat_mode_cmd() +/// @see mc_repeat_mode_updated_cb() +abstract class mc_repeat_mode_e { + /// < Repeat mode on for all media + static const int MC_REPEAT_MODE_ON = 0; + + /// < Repeat mode off + static const int MC_REPEAT_MODE_OFF = 1; + + /// < Repeat mode on for one media (Since 4.0) + static const int MC_REPEAT_MODE_ONE_MEDIA = 2; +} + +/// @brief Enumeration for the subscription type of the media controller client. +/// @since_tizen 2.4 +/// +/// @see mc_client_subscribe() +/// @see mc_client_unsubscribe() +/// @see mc_client_foreach_server_subscribed() +abstract class mc_subscription_type_e { + /// < Server state + static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; + + /// < Playback + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; + + /// < Metadata + static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; + + /// < Shuffle mode + static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; + + /// < Repeat mode + static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; + + /// < Playlist (Since 4.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; + + /// < Playback ability (Since 5.0) + static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; + + /// < Ability support (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; + + /// < Display mode ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; + + /// < Display rotation ability (Since 5.5) + static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; +} + +/// @brief Enumeration for the playlist update mode. +/// @details Media controller clients can know the playlist change status of the media controller server by calling mc_client_set_playlist_updated_cb(). \n +/// @since_tizen 4.0 +/// +/// @see mc_client_set_playlist_updated_cb() +/// @see mc_playlist_updated_cb() +/// @see mc_server_update_playlist_done() +/// @see mc_server_delete_playlist() +abstract class mc_playlist_update_mode_e { + /// < Create or Update playlist + static const int MC_PLAYLIST_UPDATED = 0; + + /// < Remove playlist + static const int MC_PLAYLIST_REMOVED = 1; +} + +/// @brief Enumeration for the content type of the media content by the media controller server. +/// @details Media controller clients can use this to know the playback status of the media controller server. \n +/// And media controller clients can also use to search for the content provided by the media controller server. +/// @since_tizen 5.0 +/// +/// @see mc_server_set_playback_content_type() +/// @see mc_client_get_playback_content_type() +/// @see mc_search_set_condition() +abstract class mc_content_type_e { + /// < Image content type + static const int MC_CONTENT_TYPE_IMAGE = 0; + + /// < Video content type + static const int MC_CONTENT_TYPE_VIDEO = 1; + + /// < Music content type + static const int MC_CONTENT_TYPE_MUSIC = 2; + + /// < Other content type + static const int MC_CONTENT_TYPE_OTHER = 3; + + /// < Not decided + static const int MC_CONTENT_TYPE_UNDECIDED = 4; +} + +/// @brief Enumeration for the content age rating of the media content by the media controller server. +/// @since_tizen 5.0 +/// +/// @see mc_server_set_content_age_rating() +/// @see mc_client_get_age_rating() +abstract class mc_content_age_rating_e { + /// < Suitable for all ages + static const int MC_CONTENT_RATING_ALL = 0; + + /// < Suitable for ages 1 and up + static const int MC_CONTENT_RATING_1_PLUS = 1; + + /// < Suitable for ages 2 and up + static const int MC_CONTENT_RATING_2_PLUS = 2; + + /// < Suitable for ages 3 and up + static const int MC_CONTENT_RATING_3_PLUS = 3; + + /// < Suitable for ages 4 and up + static const int MC_CONTENT_RATING_4_PLUS = 4; + + /// < Suitable for ages 5 and up + static const int MC_CONTENT_RATING_5_PLUS = 5; + + /// < Suitable for ages 6 and up + static const int MC_CONTENT_RATING_6_PLUS = 6; + + /// < Suitable for ages 7 and up + static const int MC_CONTENT_RATING_7_PLUS = 7; + + /// < Suitable for ages 8 and up + static const int MC_CONTENT_RATING_8_PLUS = 8; + + /// < Suitable for ages 9 and up + static const int MC_CONTENT_RATING_9_PLUS = 9; + + /// < Suitable for ages 10 and up + static const int MC_CONTENT_RATING_10_PLUS = 10; + + /// < Suitable for ages 11 and up + static const int MC_CONTENT_RATING_11_PLUS = 11; + + /// < Suitable for ages 12 and up + static const int MC_CONTENT_RATING_12_PLUS = 12; + + /// < Suitable for ages 13 and up + static const int MC_CONTENT_RATING_13_PLUS = 13; + + /// < Suitable for ages 14 and up + static const int MC_CONTENT_RATING_14_PLUS = 14; + + /// < Suitable for ages 15 and up + static const int MC_CONTENT_RATING_15_PLUS = 15; + + /// < Suitable for ages 16 and up + static const int MC_CONTENT_RATING_16_PLUS = 16; + + /// < Suitable for ages 17 and up + static const int MC_CONTENT_RATING_17_PLUS = 17; + + /// < Suitable for ages 18 and up + static const int MC_CONTENT_RATING_18_PLUS = 18; + + /// < Suitable for ages 19 and up + static const int MC_CONTENT_RATING_19_PLUS = 19; +} + +/// @brief Enumeration for the support of the ability by the media controller server. +/// @since_tizen 5.0 +/// +/// @remarks The media controller server should set the proper abilities. \n +/// Only then can media controller clients send the appropriate control commands. +/// +/// @see mc_server_set_playback_ability() +/// @see mc_server_set_ability_support() +/// @see mc_server_set_display_mode_ability() +/// @see mc_server_set_display_rotation_ability() +/// @see mc_client_get_server_ability_support() +/// @see mc_ability_support_updated_cb() +/// @see mc_playback_action_is_supported() +abstract class mc_ability_support_e { + /// < Supported + static const int MC_ABILITY_SUPPORTED_YES = 0; + + /// < Not supported + static const int MC_ABILITY_SUPPORTED_NO = 1; + + /// < Not decided + static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; +} + +/// @brief Enumeration for the ability of the media controller server. +/// @since_tizen 5.5 +/// +/// @see mc_server_set_ability_support() +/// @see mc_client_get_server_ability_support() +/// @see mc_ability_support_updated_cb() +abstract class mc_ability_e { + /// < Shuffle + static const int MC_ABILITY_SHUFFLE = 0; + + /// < Repeat + static const int MC_ABILITY_REPEAT = 1; + + /// < Playback Position + static const int MC_ABILITY_PLAYBACK_POSITION = 2; + + /// < Playlist + static const int MC_ABILITY_PLAYLIST = 3; + + /// < Custom command from a client + static const int MC_ABILITY_CLIENT_CUSTOM = 4; + + /// < Search + static const int MC_ABILITY_SEARCH = 5; + + /// < Subtitles display + static const int MC_ABILITY_SUBTITLES = 6; + + /// < 360 content mode display + static const int MC_ABILITY_360_MODE = 7; +} + +/// @brief Enumeration for the search category. +/// @details Media controller clients can use this to search for the content provided by the media controller server. +/// @since_tizen 5.0 +/// +/// @see mc_search_set_condition() +abstract class mc_search_category_e { + /// < No search category + static const int MC_SEARCH_NO_CATEGORY = 0; + + /// < Search by content title + static const int MC_SEARCH_TITLE = 1; + + /// < Search by content artist + static const int MC_SEARCH_ARTIST = 2; + + /// < Search by content album + static const int MC_SEARCH_ALBUM = 3; + + /// < Search by content genre + static const int MC_SEARCH_GENRE = 4; + + /// < Search by Time Place Occasion + static const int MC_SEARCH_TPO = 5; +} + +/// @brief Enumeration for the display mode of the media controller server. +/// @since_tizen 5.5 +/// +/// @see mc_server_update_display_mode() +/// @see mc_server_display_mode_cmd_received_cb() +/// @see mc_client_get_server_display_mode() +/// @see mc_client_send_display_mode_cmd() +/// @see mc_display_mode_updated_cb() +abstract class mc_display_mode_e { + /// < Letter box + static const int MC_DISPLAY_MODE_LETTER_BOX = 1; + + /// < Origin size + static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; + + /// < Full-screen + static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; + + /// < Cropped full-screen + static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; +} + +/// @brief Enumeration for the display rotation of the media controller server. +/// @since_tizen 5.5 +/// +/// @see mc_server_update_display_rotation() +/// @see mc_server_display_rotation_cmd_received_cb() +/// @see mc_client_get_server_display_rotation() +/// @see mc_client_send_display_rotation_cmd() +/// @see mc_display_rotation_updated_cb() +abstract class mc_display_rotation_e { + /// < Display is not rotated + static const int MC_DISPLAY_ROTATION_NONE = 1; + + /// < Display is rotated 90 degrees + static const int MC_DISPLAY_ROTATION_90 = 2; + + /// < Display is rotated 180 degrees + static const int MC_DISPLAY_ROTATION_180 = 4; + + /// < Display is rotated 270 degrees + static const int MC_DISPLAY_ROTATION_270 = 8; +} + +/// @brief The result codes of the reply for the command or the event. +/// @since_tizen 6.0 +/// +/// @see mc_cmd_reply_received_cb() +/// @see mc_client_send_event_reply() +/// @see mc_server_event_reply_received_cb() +/// @see mc_server_send_cmd_reply() +abstract class mc_result_code_e { + /// < The command or the event has been successfully completed. + static const int MC_RESULT_CODE_SUCCESS = 0; + + /// < The command or the event had already been completed. + static const int MC_RESULT_CODE_ALREADY_DONE = 200; + + /// < The command or the event is aborted by some external event (e.g. aborted play command by incoming call). + static const int MC_RESULT_CODE_ABORTED = 300; + + /// < The command or the event is denied due to application policy (e.g. cannot rewind in recording). + static const int MC_RESULT_CODE_DENIED = 301; + + /// < The command or the event is not supported. + static const int MC_RESULT_CODE_NOT_SUPPORTED = 302; + + /// < The command or the event is out of supported range or the limit is reached. + static const int MC_RESULT_CODE_INVALID = 303; + + /// < Timeout has occurred. + static const int MC_RESULT_CODE_TIMEOUT = 400; + + /// < The application has failed. + static const int MC_RESULT_CODE_APP_FAILED = 401; + + /// < The command or the event has failed because the application has no media. + static const int MC_RESULT_CODE_NO_MEDIA = 402; + + /// < The command or the event has failed because there is no audio output device. + static const int MC_RESULT_CODE_NO_AUDIO_OUTPUT_DEVICE = 403; + + /// < The command or the event has failed because there is no peer. + static const int MC_RESULT_CODE_NO_PEER = 404; + + /// < The network has failed. + static const int MC_RESULT_CODE_NETWORK_FAILED = 500; + + /// < The application needs to have an account to which it's logged in. + static const int MC_RESULT_CODE_NO_ACCOUNT = 600; + + /// < The application could not log in. + static const int MC_RESULT_CODE_LOGIN_FAILED = 601; + + /// < Unknown error. + static const int MC_RESULT_CODE_UNKNOWN = 2147483647; +} + /// @brief The structure type for the media controller playlist handle. /// @since_tizen 4.0 typedef mc_playlist_h = ffi.Pointer; @@ -6519,175 +7048,14 @@ typedef mc_playlist_cbFunction = ffi.Bool Function( typedef Dartmc_playlist_cbFunction = bool Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the media meta info. -/// @since_tizen 2.4 -/// -/// @see mc_server_set_metadata() -/// @see mc_server_add_item_to_playlist() -/// @see mc_metadata_get() -abstract class mc_meta_e { - /// < Title - static const int MC_META_MEDIA_TITLE = 0; - - /// < Artist - static const int MC_META_MEDIA_ARTIST = 1; - - /// < Album - static const int MC_META_MEDIA_ALBUM = 2; - - /// < Author - static const int MC_META_MEDIA_AUTHOR = 3; - - /// < Genre - static const int MC_META_MEDIA_GENRE = 4; - - /// < Duration - static const int MC_META_MEDIA_DURATION = 5; - - /// < Date - static const int MC_META_MEDIA_DATE = 6; - - /// < Copyright - static const int MC_META_MEDIA_COPYRIGHT = 7; - - /// < Description - static const int MC_META_MEDIA_DESCRIPTION = 8; - - /// < Track Number - static const int MC_META_MEDIA_TRACK_NUM = 9; - - /// < Picture. Album Art - static const int MC_META_MEDIA_PICTURE = 10; - - /// < Season (Since 5.5) - static const int MC_META_MEDIA_SEASON = 11; - - /// < Episode (Since 5.5) - static const int MC_META_MEDIA_EPISODE = 12; - - /// < Content resolution (Since 5.5) - static const int MC_META_MEDIA_RESOLUTION = 13; -} - /// @brief The structure type for the media controller ability handle. /// @since_tizen 5.0 typedef mc_playback_ability_h = ffi.Pointer; -/// @brief Enumeration for the media playback action. -/// @details Media controller clients can control media controller server's playback by calling mc_client_send_playback_action_cmd() or mc_client_send_playlist_cmd(). \n -/// Media controller servers have to set proper playback ability by using mc_server_set_playback_ability(). -/// @since_tizen 4.0 -/// -/// @see mc_server_set_playback_ability() -/// @see mc_client_send_playback_action_cmd() -/// @see mc_client_send_playlist_cmd() -/// @see mc_playback_action_is_supported() -/// @see mc_server_playback_action_cmd_received_cb() -/// @see mc_server_playlist_cmd_received_cb() -abstract class mc_playback_action_e { - /// < Play - static const int MC_PLAYBACK_ACTION_PLAY = 0; - - /// < Pause - static const int MC_PLAYBACK_ACTION_PAUSE = 1; - - /// < Stop - static const int MC_PLAYBACK_ACTION_STOP = 2; - - /// < Next item - static const int MC_PLAYBACK_ACTION_NEXT = 3; - - /// < Previous item - static const int MC_PLAYBACK_ACTION_PREV = 4; - - /// < Fast forward - static const int MC_PLAYBACK_ACTION_FAST_FORWARD = 5; - - /// < Rewind - static const int MC_PLAYBACK_ACTION_REWIND = 6; - - /// < Play/Pause toggle - static const int MC_PLAYBACK_ACTION_TOGGLE_PLAY_PAUSE = 7; -} - -/// @brief Enumeration for the support of the ability by the media controller server. -/// @since_tizen 5.0 -/// -/// @remarks The media controller server should set the proper abilities. \n -/// Only then can media controller clients send the appropriate control commands. -/// -/// @see mc_server_set_playback_ability() -/// @see mc_server_set_ability_support() -/// @see mc_server_set_display_mode_ability() -/// @see mc_server_set_display_rotation_ability() -/// @see mc_client_get_server_ability_support() -/// @see mc_ability_support_updated_cb() -/// @see mc_playback_action_is_supported() -abstract class mc_ability_support_e { - /// < Supported - static const int MC_ABILITY_SUPPORTED_YES = 0; - - /// < Not supported - static const int MC_ABILITY_SUPPORTED_NO = 1; - - /// < Not decided - static const int MC_ABILITY_SUPPORTED_UNDECIDED = 2; -} - /// @brief The structure type for the media controller search handle. /// @since_tizen 5.0 typedef mc_search_h = ffi.Pointer; -/// @brief Enumeration for the content type of the media content by the media controller server. -/// @details Media controller clients can use this to know the playback status of the media controller server. \n -/// And media controller clients can also use to search for the content provided by the media controller server. -/// @since_tizen 5.0 -/// -/// @see mc_server_set_playback_content_type() -/// @see mc_client_get_playback_content_type() -/// @see mc_search_set_condition() -abstract class mc_content_type_e { - /// < Image content type - static const int MC_CONTENT_TYPE_IMAGE = 0; - - /// < Video content type - static const int MC_CONTENT_TYPE_VIDEO = 1; - - /// < Music content type - static const int MC_CONTENT_TYPE_MUSIC = 2; - - /// < Other content type - static const int MC_CONTENT_TYPE_OTHER = 3; - - /// < Not decided - static const int MC_CONTENT_TYPE_UNDECIDED = 4; -} - -/// @brief Enumeration for the search category. -/// @details Media controller clients can use this to search for the content provided by the media controller server. -/// @since_tizen 5.0 -/// -/// @see mc_search_set_condition() -abstract class mc_search_category_e { - /// < No search category - static const int MC_SEARCH_NO_CATEGORY = 0; - - /// < Search by content title - static const int MC_SEARCH_TITLE = 1; - - /// < Search by content artist - static const int MC_SEARCH_ARTIST = 2; - - /// < Search by content album - static const int MC_SEARCH_ALBUM = 3; - - /// < Search by content genre - static const int MC_SEARCH_GENRE = 4; - - /// < Search by Time Place Occasion - static const int MC_SEARCH_TPO = 5; -} - /// @brief Called for every search condition information in the obtained list of search. /// @details Iterates over a search list. /// @@ -6752,22 +7120,6 @@ typedef Dartmc_server_state_updated_cbFunction = void Function( int state, ffi.Pointer user_data); -/// @brief Enumeration for the media controller server state. -/// @since_tizen 2.4 -/// -/// @see mc_client_get_latest_server_info() -/// @see mc_server_state_updated_cb() -abstract class mc_server_state_e { - /// < None state - static const int MC_SERVER_STATE_NONE = 0; - - /// < Activate state - static const int MC_SERVER_STATE_ACTIVATE = 1; - - /// < Deactivate state - static const int MC_SERVER_STATE_DEACTIVATE = 2; -} - /// @brief Called when the playback information of the media controller server is updated. /// @since_tizen 2.4 /// @@ -6853,65 +7205,30 @@ typedef Dartmc_shuffle_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the shuffle mode of the media controller server. -/// @since_tizen 2.4 -/// -/// @see mc_server_update_shuffle_mode() -/// @see mc_server_shuffle_mode_cmd_received_cb() -/// @see mc_client_get_server_shuffle_mode() -/// @see mc_client_send_shuffle_mode_cmd() -/// @see mc_shuffle_mode_updated_cb() -abstract class mc_shuffle_mode_e { - /// < Shuffle mode on - static const int MC_SHUFFLE_MODE_ON = 0; - - /// < Shuffle mode off - static const int MC_SHUFFLE_MODE_OFF = 1; -} - /// @brief Called when the repeat mode of the media controller server is updated. /// @since_tizen 4.0 /// /// @remarks The callback is called in the dbus event loop.\n /// The @a server_name should not be released by the application. \n /// The @a server_name can be used only in the callback. To use outside, make a copy. -/// -/// @param[in] server_name The app_id of the media controller server which sent the notification -/// @param[in] mode The repeat mode of the updated media controller server -/// @param[in] user_data The user data passed from the mc_client_set_repeat_mode_updated_cb() function -/// -/// @pre mc_client_set_repeat_mode_updated_cb() -/// -/// @see mc_client_set_repeat_mode_updated_cb() -typedef mc_repeat_mode_updated_cb - = ffi.Pointer>; -typedef mc_repeat_mode_updated_cbFunction = ffi.Void Function( - ffi.Pointer server_name, - ffi.Int32 mode, - ffi.Pointer user_data); -typedef Dartmc_repeat_mode_updated_cbFunction = void Function( - ffi.Pointer server_name, - int mode, - ffi.Pointer user_data); - -/// @brief Enumeration for the repeat mode of the media controller server. -/// @since_tizen 2.4 -/// -/// @see mc_server_update_repeat_mode() -/// @see mc_server_repeat_mode_cmd_received_cb() -/// @see mc_client_get_server_repeat_mode() -/// @see mc_client_send_repeat_mode_cmd() -/// @see mc_repeat_mode_updated_cb() -abstract class mc_repeat_mode_e { - /// < Repeat mode on for all media - static const int MC_REPEAT_MODE_ON = 0; - - /// < Repeat mode off - static const int MC_REPEAT_MODE_OFF = 1; - - /// < Repeat mode on for one media (Since 4.0) - static const int MC_REPEAT_MODE_ONE_MEDIA = 2; -} +/// +/// @param[in] server_name The app_id of the media controller server which sent the notification +/// @param[in] mode The repeat mode of the updated media controller server +/// @param[in] user_data The user data passed from the mc_client_set_repeat_mode_updated_cb() function +/// +/// @pre mc_client_set_repeat_mode_updated_cb() +/// +/// @see mc_client_set_repeat_mode_updated_cb() +typedef mc_repeat_mode_updated_cb + = ffi.Pointer>; +typedef mc_repeat_mode_updated_cbFunction = ffi.Void Function( + ffi.Pointer server_name, + ffi.Int32 mode, + ffi.Pointer user_data); +typedef Dartmc_repeat_mode_updated_cbFunction = void Function( + ffi.Pointer server_name, + int mode, + ffi.Pointer user_data); /// @brief Called when the playback ability support of the media controller server is updated. /// @since_tizen 5.0 @@ -6967,38 +7284,6 @@ typedef Dartmc_ability_support_updated_cbFunction = void Function( int support, ffi.Pointer user_data); -/// @brief Enumeration for the ability of the media controller server. -/// @since_tizen 5.5 -/// -/// @see mc_server_set_ability_support() -/// @see mc_client_get_server_ability_support() -/// @see mc_ability_support_updated_cb() -abstract class mc_ability_e { - /// < Shuffle - static const int MC_ABILITY_SHUFFLE = 0; - - /// < Repeat - static const int MC_ABILITY_REPEAT = 1; - - /// < Playback Position - static const int MC_ABILITY_PLAYBACK_POSITION = 2; - - /// < Playlist - static const int MC_ABILITY_PLAYLIST = 3; - - /// < Custom command from a client - static const int MC_ABILITY_CLIENT_CUSTOM = 4; - - /// < Search - static const int MC_ABILITY_SEARCH = 5; - - /// < Subtitles display - static const int MC_ABILITY_SUBTITLES = 6; - - /// < 360 content mode display - static const int MC_ABILITY_360_MODE = 7; -} - /// @brief Called when a media controller server's supported items for an ability is updated. /// @since_tizen 5.5 /// @@ -7092,22 +7377,6 @@ typedef Dartmc_playlist_updated_cbFunction = void Function( mc_playlist_h playlist, ffi.Pointer user_data); -/// @brief Enumeration for the playlist update mode. -/// @details Media controller clients can know the playlist change status of the media controller server by calling mc_client_set_playlist_updated_cb(). \n -/// @since_tizen 4.0 -/// -/// @see mc_client_set_playlist_updated_cb() -/// @see mc_playlist_updated_cb() -/// @see mc_server_update_playlist_done() -/// @see mc_server_delete_playlist() -abstract class mc_playlist_update_mode_e { - /// < Create or Update playlist - static const int MC_PLAYLIST_UPDATED = 0; - - /// < Remove playlist - static const int MC_PLAYLIST_REMOVED = 1; -} - /// @brief Called when the status of a media controller server's boolean attribute (subtitles or 360 mode) is updated. /// @since_tizen 5.5 /// @@ -7155,28 +7424,6 @@ typedef Dartmc_display_mode_updated_cbFunction = void Function( int mode, ffi.Pointer user_data); -/// @brief Enumeration for the display mode of the media controller server. -/// @since_tizen 5.5 -/// -/// @see mc_server_update_display_mode() -/// @see mc_server_display_mode_cmd_received_cb() -/// @see mc_client_get_server_display_mode() -/// @see mc_client_send_display_mode_cmd() -/// @see mc_display_mode_updated_cb() -abstract class mc_display_mode_e { - /// < Letter box - static const int MC_DISPLAY_MODE_LETTER_BOX = 1; - - /// < Origin size - static const int MC_DISPLAY_MODE_ORIGIN_SIZE = 2; - - /// < Full-screen - static const int MC_DISPLAY_MODE_FULL_SCREEN = 4; - - /// < Cropped full-screen - static const int MC_DISPLAY_MODE_CROPPED_FULL = 8; -} - /// @brief Called when a media controller server's display rotation is updated. /// @since_tizen 5.5 /// @@ -7200,28 +7447,6 @@ typedef Dartmc_display_rotation_updated_cbFunction = void Function( int rotation, ffi.Pointer user_data); -/// @brief Enumeration for the display rotation of the media controller server. -/// @since_tizen 5.5 -/// -/// @see mc_server_update_display_rotation() -/// @see mc_server_display_rotation_cmd_received_cb() -/// @see mc_client_get_server_display_rotation() -/// @see mc_client_send_display_rotation_cmd() -/// @see mc_display_rotation_updated_cb() -abstract class mc_display_rotation_e { - /// < Display is not rotated - static const int MC_DISPLAY_ROTATION_NONE = 1; - - /// < Display is rotated 90 degrees - static const int MC_DISPLAY_ROTATION_90 = 2; - - /// < Display is rotated 180 degrees - static const int MC_DISPLAY_ROTATION_180 = 4; - - /// < Display is rotated 270 degrees - static const int MC_DISPLAY_ROTATION_270 = 8; -} - /// @brief Called when receiving custom event from media controller servers. /// @since_tizen 4.0 /// @@ -7257,44 +7482,6 @@ typedef Dartmc_client_custom_event_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @brief Enumeration for the subscription type of the media controller client. -/// @since_tizen 2.4 -/// -/// @see mc_client_subscribe() -/// @see mc_client_unsubscribe() -/// @see mc_client_foreach_server_subscribed() -abstract class mc_subscription_type_e { - /// < Server state - static const int MC_SUBSCRIPTION_TYPE_SERVER_STATE = 0; - - /// < Playback - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK = 1; - - /// < Metadata - static const int MC_SUBSCRIPTION_TYPE_METADATA = 2; - - /// < Shuffle mode - static const int MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE = 3; - - /// < Repeat mode - static const int MC_SUBSCRIPTION_TYPE_REPEAT_MODE = 4; - - /// < Playlist (Since 4.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYLIST = 5; - - /// < Playback ability (Since 5.0) - static const int MC_SUBSCRIPTION_TYPE_PLAYBACK_ABILITY = 6; - - /// < Ability support (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_ABILITY_SUPPORT = 9; - - /// < Display mode ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_MODE_ABILITY = 10; - - /// < Display rotation ability (Since 5.5) - static const int MC_SUBSCRIPTION_TYPE_DISPLAY_ROTATION_ABILITY = 11; -} - /// @brief Called when requesting the list of subscribed servers. /// @since_tizen 2.4 /// @@ -7318,113 +7505,6 @@ typedef mc_subscribed_server_cbFunction = ffi.Bool Function( typedef Dartmc_subscribed_server_cbFunction = bool Function( ffi.Pointer server_name, ffi.Pointer user_data); -/// @brief Enumeration for the media playback state of the media controller server. -/// @since_tizen 2.4 -/// -/// @see mc_server_set_playback_state() -/// @see mc_client_get_playback_state() -abstract class mc_playback_states_e { - /// < None - static const int MC_PLAYBACK_STATE_NONE = 0; - - /// < Playing - static const int MC_PLAYBACK_STATE_PLAYING = 1; - - /// < Paused - static const int MC_PLAYBACK_STATE_PAUSED = 2; - - /// < Stopped - static const int MC_PLAYBACK_STATE_STOPPED = 3; - - /// < Moving to the next item (Since 4.0) - static const int MC_PLAYBACK_STATE_MOVING_TO_NEXT = 8; - - /// < Moving to the previous item (Since 4.0) - static const int MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS = 9; - - /// < Fast forwarding (Since 4.0) - static const int MC_PLAYBACK_STATE_FAST_FORWARDING = 10; - - /// < Rewinding (Since 4.0) - static const int MC_PLAYBACK_STATE_REWINDING = 11; - - /// < Connecting (Since 6.0) - static const int MC_PLAYBACK_STATE_CONNECTING = 12; - - /// < Buffering (Since 6.0) - static const int MC_PLAYBACK_STATE_BUFFERING = 13; - - /// < Error (Since 6.0) - static const int MC_PLAYBACK_STATE_ERROR = 14; -} - -/// @brief Enumeration for the content age rating of the media content by the media controller server. -/// @since_tizen 5.0 -/// -/// @see mc_server_set_content_age_rating() -/// @see mc_client_get_age_rating() -abstract class mc_content_age_rating_e { - /// < Suitable for all ages - static const int MC_CONTENT_RATING_ALL = 0; - - /// < Suitable for ages 1 and up - static const int MC_CONTENT_RATING_1_PLUS = 1; - - /// < Suitable for ages 2 and up - static const int MC_CONTENT_RATING_2_PLUS = 2; - - /// < Suitable for ages 3 and up - static const int MC_CONTENT_RATING_3_PLUS = 3; - - /// < Suitable for ages 4 and up - static const int MC_CONTENT_RATING_4_PLUS = 4; - - /// < Suitable for ages 5 and up - static const int MC_CONTENT_RATING_5_PLUS = 5; - - /// < Suitable for ages 6 and up - static const int MC_CONTENT_RATING_6_PLUS = 6; - - /// < Suitable for ages 7 and up - static const int MC_CONTENT_RATING_7_PLUS = 7; - - /// < Suitable for ages 8 and up - static const int MC_CONTENT_RATING_8_PLUS = 8; - - /// < Suitable for ages 9 and up - static const int MC_CONTENT_RATING_9_PLUS = 9; - - /// < Suitable for ages 10 and up - static const int MC_CONTENT_RATING_10_PLUS = 10; - - /// < Suitable for ages 11 and up - static const int MC_CONTENT_RATING_11_PLUS = 11; - - /// < Suitable for ages 12 and up - static const int MC_CONTENT_RATING_12_PLUS = 12; - - /// < Suitable for ages 13 and up - static const int MC_CONTENT_RATING_13_PLUS = 13; - - /// < Suitable for ages 14 and up - static const int MC_CONTENT_RATING_14_PLUS = 14; - - /// < Suitable for ages 15 and up - static const int MC_CONTENT_RATING_15_PLUS = 15; - - /// < Suitable for ages 16 and up - static const int MC_CONTENT_RATING_16_PLUS = 16; - - /// < Suitable for ages 17 and up - static const int MC_CONTENT_RATING_17_PLUS = 17; - - /// < Suitable for ages 18 and up - static const int MC_CONTENT_RATING_18_PLUS = 18; - - /// < Suitable for ages 19 and up - static const int MC_CONTENT_RATING_19_PLUS = 19; -} - /// @brief Called when requesting the list of created servers. /// @since_tizen 2.4 /// @@ -7825,3 +7905,5 @@ typedef Dartmc_server_search_cmd_received_cbFunction = void Function( ffi.Pointer request_id, mc_search_h search, ffi.Pointer user_data); + +const int MEDIA_CONTROLLER_ERROR_CLASS = -50462720; diff --git a/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_editor.dart b/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_editor.dart index f88e5d4a..f4a27b78 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_editor.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_editor.dart @@ -378,9 +378,34 @@ class Tizen90CapiMediaMetadataEditor { /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @deprecated Deprecated since 9.0. -/// @brief The handle of media metadata. +/// @brief The enumerations of media metadata error. /// @since_tizen 2.4 -typedef metadata_editor_h = ffi.Pointer; +abstract class metadata_editor_error_e { + /// < Successful + static const int METADATA_EDITOR_ERROR_NONE = 0; + + /// < Invalid parameter + static const int METADATA_EDITOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EDITOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File not exist + static const int METADATA_EDITOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EDITOR_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported type + static const int METADATA_EDITOR_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Invalid internal operation + static const int METADATA_EDITOR_ERROR_OPERATION_FAILED = -27000831; + + /// < Update not possible (Since 6.0) + static const int METADATA_EDITOR_ERROR_METADATA_UPDATE_NOT_POSSIBLE = + -27000830; +} /// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE /// @deprecated Deprecated since 9.0. @@ -426,3 +451,11 @@ abstract class metadata_editor_attr_e { /// < Unsynchronized lyric static const int METADATA_EDITOR_ATTR_UNSYNCLYRICS = 12; } + +/// @ingroup CAPI_MEDIA_METADATA_EDITOR_MODULE +/// @deprecated Deprecated since 9.0. +/// @brief The handle of media metadata. +/// @since_tizen 2.4 +typedef metadata_editor_h = ffi.Pointer; + +const int METADATA_EDITOR_ERROR_CLASS = -27000832; diff --git a/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_extractor.dart b/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_extractor.dart index d4719e51..a80ea187 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_extractor.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_media_metadata_extractor.dart @@ -386,11 +386,27 @@ class Tizen90CapiMediaMetadataExtractor { } /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE -/// @brief The metadata extractor handle. +/// @brief Enumeration for metadata extractor error. /// @since_tizen 2.3 -typedef metadata_extractor_h = ffi.Pointer; +abstract class metadata_extractor_error_e { + /// < Successful + static const int METADATA_EXTRACTOR_ERROR_NONE = 0; -final class metadata_extractor_s extends ffi.Opaque {} + /// < Invalid parameter + static const int METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int METADATA_EXTRACTOR_ERROR_OUT_OF_MEMORY = -12; + + /// < File does not exist + static const int METADATA_EXTRACTOR_ERROR_FILE_EXISTS = -17; + + /// < Permission denied + static const int METADATA_EXTRACTOR_ERROR_PERMISSION_DENIED = -13; + + /// < Invalid internal operation + static const int METADATA_EXTRACTOR_ERROR_OPERATION_FAILED = -26411007; +} /// @ingroup CAPI_METADATA_EXTRACTOR_MODULE /// @brief Enumeration for attribute. @@ -504,3 +520,12 @@ abstract class metadata_extractor_attr_e { /// < Stitched type. (0:None, 1:Non-stitched, 2:stitched) (Since 9.0) static const int METADATA_360_STITCHED = 35; } + +final class metadata_extractor_s extends ffi.Opaque {} + +/// @ingroup CAPI_METADATA_EXTRACTOR_MODULE +/// @brief The metadata extractor handle. +/// @since_tizen 2.3 +typedef metadata_extractor_h = ffi.Pointer; + +const int METADATA_EXTRACTOR_ERROR_CLASS = -26411008; diff --git a/lib/src/bindings/9.0/generated_bindings_capi_media_screen_mirroring.dart b/lib/src/bindings/9.0/generated_bindings_capi_media_screen_mirroring.dart index fdeb3338..0663257b 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_media_screen_mirroring.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_media_screen_mirroring.dart @@ -886,30 +886,6 @@ class Tizen90CapiMediaScreenMirroring { int Function(scmirroring_sink_h, ffi.Pointer)>(); } -/// @brief The handle to the screen mirroring sink. -/// @since_tizen 2.4 -typedef scmirroring_sink_h = ffi.Pointer; - -/// @brief Called when state of screen mirroring sink handle is changed. -/// @since_tizen 2.4 -/// -/// @details This callback is called for state and error of screen mirroring sink will be delivered together. -/// Error can be handled by return value of CAPIs. so there is no need to handle it here. -/// -/// @param[in] error The error code -/// @param[in] state The screen mirroring sink state -/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function -/// -/// @pre scmirroring_sink_create() -/// -/// @see scmirroring_sink_create() -typedef scmirroring_sink_state_cb - = ffi.Pointer>; -typedef scmirroring_sink_state_cbFunction = ffi.Void Function( - ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); -typedef Dartscmirroring_sink_state_cbFunction = void Function( - int error, int state, ffi.Pointer user_data); - /// @brief Enumeration to provide screen mirroring error information. /// @since_tizen 2.4 abstract class scmirroring_error_e { @@ -964,6 +940,41 @@ abstract class scmirroring_sink_state_e { static const int SCMIRRORING_SINK_STATE_MAX = 7; } +/// @brief Enumeration for screen mirroring resolution. +/// @since_tizen 2.4 +abstract class scmirroring_resolution_e { + static const int SCMIRRORING_RESOLUTION_UNKNOWN = 0; + + /// < W-1920, H-1080, 30 fps + static const int SCMIRRORING_RESOLUTION_1920x1080_P30 = 1; + + /// < W-1280, H-720, 30 fps + static const int SCMIRRORING_RESOLUTION_1280x720_P30 = 2; + + /// < W-960, H-540, 30 fps + static const int SCMIRRORING_RESOLUTION_960x540_P30 = 4; + + /// < W-864, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_864x480_P30 = 8; + + /// < W-720, H-480, 30 fps + static const int SCMIRRORING_RESOLUTION_720x480_P60 = 16; + + /// < W-640, H-480, 60 fps + static const int SCMIRRORING_RESOLUTION_640x480_P60 = 32; + + /// < W-640, H-360, 30 fps + static const int SCMIRRORING_RESOLUTION_640x360_P30 = 64; + static const int SCMIRRORING_RESOLUTION_MAX = 128; +} + +/// @brief Ability to send to multisink. +/// @since_tizen 3.0 +abstract class scmirroring_multisink_e { + static const int SCMIRRORING_MULTISINK_DISABLE = 0; + static const int SCMIRRORING_MULTISINK_ENABLE = 1; +} + /// @brief Enumeration for screen mirroring display surface type. /// @since_tizen 2.4 abstract class scmirroring_display_type_e { @@ -975,16 +986,6 @@ abstract class scmirroring_display_type_e { static const int SCMIRRORING_DISPLAY_TYPE_MAX = 2; } -/// @brief Enumeration for screen mirroring video codec. -/// @since_tizen 2.4 -abstract class scmirroring_video_codec_e { - /// < Screen mirroring is not negotiated yet - static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; - - /// < H.264 codec for video - static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; -} - /// @brief Enumeration for screen mirroring audio codec. /// @since_tizen 2.4 abstract class scmirroring_audio_codec_e { @@ -1000,3 +1001,57 @@ abstract class scmirroring_audio_codec_e { /// < LPCM codec for audio static const int SCMIRRORING_AUDIO_CODEC_LPCM = 3; } + +/// @brief Enumeration for screen mirroring video codec. +/// @since_tizen 2.4 +abstract class scmirroring_video_codec_e { + /// < Screen mirroring is not negotiated yet + static const int SCMIRRORING_VIDEO_CODEC_NONE = 0; + + /// < H.264 codec for video + static const int SCMIRRORING_VIDEO_CODEC_H264 = 1; +} + +/// @brief Enumeration for screen mirroring direct streaming mode. +/// @since_tizen 3.0 +abstract class scmirroring_direct_streaming_e { + /// < Disable screen mirroring direct streaming mode + static const int SCMIRRORING_DIRECT_STREAMING_DISABLED = 0; + + /// < Enable direct streaming for files + static const int SCMIRRORING_DIRECT_STREAMING_ENABLED = 1; +} + +/// @brief Enumeration for screen mirroring AV streaming transport. +/// @since_tizen 3.0 +abstract class scmirroring_av_transport_e { + /// < UDP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_UDP = 0; + + /// < TCP transport for AV streaming data + static const int SCMIRRORING_AV_TRANSPORT_TCP = 1; +} + +/// @brief The handle to the screen mirroring sink. +/// @since_tizen 2.4 +typedef scmirroring_sink_h = ffi.Pointer; + +/// @brief Called when state of screen mirroring sink handle is changed. +/// @since_tizen 2.4 +/// +/// @details This callback is called for state and error of screen mirroring sink will be delivered together. +/// Error can be handled by return value of CAPIs. so there is no need to handle it here. +/// +/// @param[in] error The error code +/// @param[in] state The screen mirroring sink state +/// @param[in] user_data The user data passed from the scmirroring_sink_set_state_cb() function +/// +/// @pre scmirroring_sink_create() +/// +/// @see scmirroring_sink_create() +typedef scmirroring_sink_state_cb + = ffi.Pointer>; +typedef scmirroring_sink_state_cbFunction = ffi.Void Function( + ffi.Int32 error, ffi.Int32 state, ffi.Pointer user_data); +typedef Dartscmirroring_sink_state_cbFunction = void Function( + int error, int state, ffi.Pointer user_data); diff --git a/lib/src/bindings/9.0/generated_bindings_capi_media_sound_pool.dart b/lib/src/bindings/9.0/generated_bindings_capi_media_sound_pool.dart index 3c876bac..db4d8a51 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_media_sound_pool.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_media_sound_pool.dart @@ -865,10 +865,52 @@ class Tizen90CapiMediaSoundPool { .asFunction)>(); } -/// @brief Sound pool handle type. +/// @brief Enumeration for Tizen Sound Pool error. /// /// @since_tizen 4.0 -typedef sound_pool_h = ffi.Pointer; +abstract class sound_pool_error_e { + static const int SOUND_POOL_ERROR_NONE = 0; + static const int SOUND_POOL_ERROR_KEY_NOT_AVAILABLE = -126; + static const int SOUND_POOL_ERROR_OUT_OF_MEMORY = -12; + static const int SOUND_POOL_ERROR_INVALID_PARAMETER = -22; + static const int SOUND_POOL_ERROR_INVALID_OPERATION = -38; + static const int SOUND_POOL_ERROR_NOT_PERMITTED = -1; + static const int SOUND_POOL_ERROR_NO_SUCH_FILE = -2; +} + +/// @brief Enumeration of sound pool stream state. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_state_e { + /// < Stream state isn't determined + static const int SOUND_POOL_STREAM_STATE_NONE = 0; + + /// < Stream state is playing + static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; + + /// < Stream state is paused + static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; + + /// < Stream state is stopped + static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; + + /// < Stream state is finished + static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; + + /// < Stream state is suspended + static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; +} + +/// @brief Enumeration of sound pool stream priority policy. +/// +/// @since_tizen 4.0 +abstract class sound_pool_stream_priority_policy_e { + /// < Stream priority policy is mute + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; + + /// < Stream priority policy is suspended + static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; +} /// @brief Enumeration of sound pool state. /// @@ -881,6 +923,11 @@ abstract class sound_pool_state_e { static const int SOUND_POOL_STATE_INACTIVE = 1; } +/// @brief Sound pool handle type. +/// +/// @since_tizen 4.0 +typedef sound_pool_h = ffi.Pointer; + /// @brief Called when the sound pool state is changed. /// /// @since_tizen 4.0 @@ -911,17 +958,6 @@ typedef Dartsound_pool_state_changed_cbFunction = void Function( int cur_state, ffi.Pointer user_data); -/// @brief Enumeration of sound pool stream priority policy. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_priority_policy_e { - /// < Stream priority policy is mute - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_MUTE = 0; - - /// < Stream priority policy is suspended - static const int SOUND_POOL_STREAM_PRIORITY_POLICY_SUSPENDED = 1; -} - /// @brief Called when the sound pool stream state is changed. /// /// @since_tizen 4.0 @@ -954,26 +990,3 @@ typedef Dartsound_pool_stream_state_changed_cbFunction = void Function( int prev_state, int cur_state, ffi.Pointer user_data); - -/// @brief Enumeration of sound pool stream state. -/// -/// @since_tizen 4.0 -abstract class sound_pool_stream_state_e { - /// < Stream state isn't determined - static const int SOUND_POOL_STREAM_STATE_NONE = 0; - - /// < Stream state is playing - static const int SOUND_POOL_STREAM_STATE_PLAYING = 1; - - /// < Stream state is paused - static const int SOUND_POOL_STREAM_STATE_PAUSED = 2; - - /// < Stream state is stopped - static const int SOUND_POOL_STREAM_STATE_STOPPED = 3; - - /// < Stream state is finished - static const int SOUND_POOL_STREAM_STATE_FINISHED = 4; - - /// < Stream state is suspended - static const int SOUND_POOL_STREAM_STATE_SUSPENDED = 5; -} diff --git a/lib/src/bindings/9.0/generated_bindings_capi_media_thumbnail_util.dart b/lib/src/bindings/9.0/generated_bindings_capi_media_thumbnail_util.dart index a1e1c98e..93c24bb1 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_media_thumbnail_util.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_media_thumbnail_util.dart @@ -156,3 +156,31 @@ class Tizen90CapiMediaThumbnailUtil { ffi.Pointer, ffi.Pointer)>(); } + +/// @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE +/// @brief Enumeration for a thumbnail util error. +/// @since_tizen 2.4 +abstract class thumbnail_util_error_e { + /// < Successful + static const int THUMBNAIL_UTIL_ERROR_NONE = 0; + + /// < Invalid parameter + static const int THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY = -12; + + /// < Invalid Operation + static const int THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = -38; + + /// < No space left on device + static const int THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = -28; + + /// < Permission denied + static const int THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = -13; + + /// < Unsupported Content (Since 4.0) + static const int THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = -49872895; +} + +const int THUMBNAIL_UTIL_ERROR_CLASS = -49872896; diff --git a/lib/src/bindings/9.0/generated_bindings_capi_network_bluetooth.dart b/lib/src/bindings/9.0/generated_bindings_capi_network_bluetooth.dart index 69c98957..782c0ae8 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_network_bluetooth.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_network_bluetooth.dart @@ -10739,6 +10739,187 @@ class Tizen90CapiNetworkBluetooth { ffi.Pointer>)>(); } +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of PBAP fields. +/// @since_tizen 3.0 +abstract class bt_pbap_field_e { + /// < All field + static const int BT_PBAP_FIELD_ALL = -1; + + /// < vCard Version + static const int BT_PBAP_FIELD_VERSION = 1; + + /// < Formatted Name + static const int BT_PBAP_FIELD_FN = 2; + + /// < Structured Presentation of Name + static const int BT_PBAP_FIELD_N = 4; + + /// < Associated Image or Photo + static const int BT_PBAP_FIELD_PHOTO = 8; + + /// < Birthday + static const int BT_PBAP_FIELD_BDAY = 16; + + /// < Delivery Address + static const int BT_PBAP_FIELD_ADR = 32; + + /// < Delivery + static const int BT_PBAP_FIELD_LABEL = 64; + + /// < Telephone Number + static const int BT_PBAP_FIELD_TEL = 128; + + /// < Electronic Mail Address + static const int BT_PBAP_FIELD_EMAIL = 256; + + /// < Electronic Mail + static const int BT_PBAP_FIELD_MAILER = 512; + + /// < Time Zone + static const int BT_PBAP_FIELD_TZ = 1024; + + /// < Geographic Position + static const int BT_PBAP_FIELD_GEO = 2048; + + /// < Job + static const int BT_PBAP_FIELD_TITLE = 4096; + + /// < Role within the Organization + static const int BT_PBAP_FIELD_ROLE = 8192; + + /// < Organization Logo + static const int BT_PBAP_FIELD_LOGO = 16384; + + /// < vCard of Person Representing + static const int BT_PBAP_FIELD_AGENT = 32768; + + /// < Name of Organization + static const int BT_PBAP_FIELD_ORG = 65536; + + /// < Comments + static const int BT_PBAP_FIELD_NOTE = 131072; + + /// < Revision + static const int BT_PBAP_FIELD_REV = 262144; + + /// < Pronunciation of Name + static const int BT_PBAP_FIELD_SOUND = 524288; + + /// < Uniform Resource Locator + static const int BT_PBAP_FIELD_URL = 1048576; + + /// < Unique ID + static const int BT_PBAP_FIELD_UID = 2097152; + + /// < Public Encryption Key + static const int BT_PBAP_FIELD_KEY = 4194304; + + /// < Nickname + static const int BT_PBAP_FIELD_NICKNAME = 8388608; + + /// < Categories + static const int BT_PBAP_FIELD_CATEGORIES = 16777216; + + /// < Product ID + static const int BT_PBAP_FIELD_PROID = 33554432; + + /// < Class information + static const int BT_PBAP_FIELD_CLASS = 67108864; + + /// < String used for sorting operations + static const int BT_PBAP_FIELD_SORT_STRING = 134217728; + + /// < Time stamp + static const int BT_PBAP_FIELD_X_IRMC_CALL_DATETIME = 268435456; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_MODULE +/// @brief Enumerations of Bluetooth error codes. +/// @since_tizen 2.3 +abstract class bt_error_e { + /// < Successful + static const int BT_ERROR_NONE = 0; + + /// < Operation cancelled + static const int BT_ERROR_CANCELLED = -125; + + /// < Invalid parameter + static const int BT_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int BT_ERROR_OUT_OF_MEMORY = -12; + + /// < Device or resource busy + static const int BT_ERROR_RESOURCE_BUSY = -16; + + /// < Timeout error + static const int BT_ERROR_TIMED_OUT = -1073741823; + + /// < Operation now in progress + static const int BT_ERROR_NOW_IN_PROGRESS = -115; + + /// < BT is Not Supported + static const int BT_ERROR_NOT_SUPPORTED = -1073741822; + + /// < Permission denied + static const int BT_ERROR_PERMISSION_DENIED = -13; + + /// < Quota exceeded + static const int BT_ERROR_QUOTA_EXCEEDED = -122; + + /// < No data available + static const int BT_ERROR_NO_DATA = -61; + + /// < Device policy restriction (Since 3.0) + static const int BT_ERROR_DEVICE_POLICY_RESTRICTION = -1073741820; + + /// < Local adapter not initialized + static const int BT_ERROR_NOT_INITIALIZED = -29359871; + + /// < Local adapter not enabled + static const int BT_ERROR_NOT_ENABLED = -29359870; + + /// < Operation already done + static const int BT_ERROR_ALREADY_DONE = -29359869; + + /// < Operation failed + static const int BT_ERROR_OPERATION_FAILED = -29359868; + + /// < Operation not in progress + static const int BT_ERROR_NOT_IN_PROGRESS = -29359867; + + /// < Remote device not bonded + static const int BT_ERROR_REMOTE_DEVICE_NOT_BONDED = -29359866; + + /// < Authentication rejected + static const int BT_ERROR_AUTH_REJECTED = -29359865; + + /// < Authentication failed + static const int BT_ERROR_AUTH_FAILED = -29359864; + + /// < Remote device not found + static const int BT_ERROR_REMOTE_DEVICE_NOT_FOUND = -29359863; + + /// < Service search failed + static const int BT_ERROR_SERVICE_SEARCH_FAILED = -29359862; + + /// < Remote device is not connected + static const int BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = -29359861; + + /// < Resource temporarily unavailable + static const int BT_ERROR_AGAIN = -29359860; + + /// < Service Not Found + static const int BT_ERROR_SERVICE_NOT_FOUND = -29359859; + + /// < Authorization rejected (Since 5.0) + static const int BT_ERROR_AUTHORIZATION_REJECTED = -29359858; + + /// < Max of connection exceeded (Since 8.0) + static const int BT_ERROR_MAX_CONNECTION = -29359857; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Enumerations of the Bluetooth adapter state. /// @since_tizen 2.3 @@ -10765,6 +10946,201 @@ abstract class bt_adapter_visibility_mode_e { static const int BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE = 2; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Enumerations of the discovery state of Bluetooth device. +/// @since_tizen 2.3 +abstract class bt_adapter_device_discovery_state_e { + /// < Device discovery is started + static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; + + /// < Device discovery is finished + static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; + + /// < The remote Bluetooth device is found + static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising state. +/// @since_tizen 2.3 +abstract class bt_adapter_le_advertising_state_e { + /// < Bluetooth advertising is stopped + static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; + + /// < Bluetooth advertising is started + static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising mode. +/// @since_tizen 2.3.1 +abstract class bt_adapter_le_advertising_mode_e { + /// < Balanced advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; + + /// < Low latency advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; + + /// < Low energy advertising mode + static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; + + /// < Custom mode to set advertising parameters + static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth advertising filter policy. +/// @since_tizen 2.3 +abstract class bt_adapter_le_advertising_filter_policy_e { + /// < White list is not in use + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_DEFAULT = 0; + + /// < Allow the scan + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_WL = 1; + + /// < Allow the connection + /// request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_CONN_WL = 2; + + /// < Allow the + /// scan and connection request that in the White list + static const int BT_ADAPTER_LE_ADVERTISING_FILTER_ALLOW_SCAN_CONN_WL = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE advertising flags. +/// @since_tizen 8.0 +abstract class bt_adapter_le_advertising_flags_e { + /// < LE Limited Discoverable Mode + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_LIM_DISC = 1; + + /// < LE General Discoverable Mode + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_GEN_DISC = 2; + + /// < BR/EDR Not Supported + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_BREDR_UNSUP = 4; + + /// < Simultaneous LE and BR/EDR to Same Device Capable (Controller) + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_CONTROLLER = 8; + + /// < Simultaneous LE and BR/EDR to Same Device Capable (Host) + static const int BT_ADAPTER_LE_ADVERTISING_FLAGS_SIM_HOST = 16; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth LE packet type. +/// @since_tizen 2.3 +abstract class bt_adapter_le_packet_type_e { + /// < Advertising packet + static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; + + /// < Scan response packet + static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumerations of the Bluetooth le scan mode. +/// @since_tizen 3.0 +abstract class bt_adapter_le_scan_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device disconnect reason. +/// @since_tizen 2.3 +abstract class bt_device_disconnect_reason_e { + /// < Disconnected by unknown reason + static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; + + /// < Disconnected by timeout + static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; + + /// < Disconnected by local host + static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; + + /// < Disconnected by remote + static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; + + /// < Disconnected by MIC failure (Since 9.0) + static const int BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of connection link type. +/// @since_tizen 2.3 +abstract class bt_device_connection_link_type_e { + /// < BR/EDR link + static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; + + /// < LE link + static const int BT_DEVICE_CONNECTION_LINK_LE = 1; + + /// < The connection type default + static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device authorization state. +/// @since_tizen 2.3 +abstract class bt_device_authorization_e { + /// < The remote Bluetooth device is authorized + static const int BT_DEVICE_AUTHORIZED = 0; + + /// < The remote Bluetooth device is unauthorized + static const int BT_DEVICE_UNAUTHORIZED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of Bluetooth profile. +/// @since_tizen 2.3 +abstract class bt_profile_e { + /// < RFCOMM Profile + static const int BT_PROFILE_RFCOMM = 1; + + /// < Advanced Audio Distribution Profile Source role + static const int BT_PROFILE_A2DP = 2; + + /// < Headset Profile + static const int BT_PROFILE_HSP = 4; + + /// < Human Interface Device Profile + static const int BT_PROFILE_HID = 8; + + /// < Network Access Point Profile + static const int BT_PROFILE_NAP = 16; + + /// < Audio Gateway Profile + static const int BT_PROFILE_AG = 32; + + /// < Generic Attribute Profile + static const int BT_PROFILE_GATT = 64; + + /// < NAP server Profile + static const int BT_PROFILE_NAP_SERVER = 128; + + /// < Advanced Audio Distribution Profile Sink role + static const int BT_PROFILE_A2DP_SINK = 256; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of device address type. +/// @since_tizen 2.3 +abstract class bt_device_address_type_e { + /// < Public address + static const int BT_DEVICE_PUBLIC_ADDRESS = 0; + + /// < Random address + static const int BT_DEVICE_RANDOM_ADDRESS = 1; +} + /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Enumerations of service class. /// @since_tizen 2.3 @@ -10848,88 +11224,36 @@ abstract class bt_service_class_t { static const int BT_SC_MAX = 16777216; } -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Called when you get bonded devices repeatedly. -/// @since_tizen 2.3 -/// -/// @param[in] device_info The bonded device information -/// @param[in] user_data The user data passed from the foreach function -/// @return @c true to continue with the next iteration of the loop, -/// \n @c false to break out of the loop. -/// @pre bt_adapter_foreach_bonded_device() will invoke this function. -/// -/// @see bt_adapter_foreach_bonded_device() -typedef bt_adapter_bonded_device_cb - = ffi.Pointer>; -typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); -typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( - ffi.Pointer device_info, ffi.Pointer user_data); - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device information structure used for identifying pear device. +/// @brief Enumerations of major service class. /// @since_tizen 2.3 -/// -/// @see #bt_class_s -/// @see bt_device_bond_created_cb() -final class bt_device_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; +abstract class bt_major_service_class_e { + /// < Limited discoverable mode + static const int BT_MAJOR_SERVICE_CLASS_LIMITED_DISCOVERABLE_MODE = 8192; - /// < The bonding state - @ffi.Bool() - external bool is_bonded; + /// < Positioning class + static const int BT_MAJOR_SERVICE_CLASS_POSITIONING = 65536; - /// < The connection state - @ffi.Bool() - external bool is_connected; + /// < Networking class + static const int BT_MAJOR_SERVICE_CLASS_NETWORKING = 131072; - /// < The authorization state - @ffi.Bool() - external bool is_authorized; + /// < Rendering class + static const int BT_MAJOR_SERVICE_CLASS_RENDERING = 262144; - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; + /// < Capturing class + static const int BT_MAJOR_SERVICE_CLASS_CAPTURING = 524288; - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} + /// < Object transferring class + static const int BT_MAJOR_SERVICE_CLASS_OBJECT_TRANSFER = 1048576; -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Class structure of device and service. -/// @since_tizen 2.3 -/// -/// @see #bt_device_info_s -/// @see #bt_adapter_device_discovery_info_s -/// @see bt_device_bond_created_cb() -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_class_s extends ffi.Struct { - /// < Major device class. - @ffi.Int32() - external int major_device_class; + /// < Audio class + static const int BT_MAJOR_SERVICE_CLASS_AUDIO = 2097152; - /// < Minor device class. - @ffi.Int32() - external int minor_device_class; + /// < Telephony class + static const int BT_MAJOR_SERVICE_CLASS_TELEPHONY = 4194304; - /// < Major service class mask. - /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO - @ffi.Int() - external int major_service_class_mask; + /// < Information class + static const int BT_MAJOR_SERVICE_CLASS_INFORMATION = 8388608; } /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE @@ -11145,91 +11469,1111 @@ abstract class bt_minor_device_class_e { static const int BT_MINOR_DEVICE_CLASS_PERIPHERAL_HANDHELD_GESTURAL_INPUT_DEVICE = 36; - /// < Display minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_DISPLAY = 16; + /// < Display minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_DISPLAY = 16; + + /// < Camera minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_CAMERA = 32; + + /// < Scanner minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_SCANNER = 64; + + /// < Printer minor device class of imaging + static const int BT_MINOR_DEVICE_CLASS_IMAGING_PRINTER = 128; + + /// < Wrist watch minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_WRIST_WATCH = 4; + + /// < Pager minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_PAGER = 8; + + /// < Jacket minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_JACKET = 12; + + /// < Helmet minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_HELMET = 16; + + /// < Glasses minor device class of wearable + static const int BT_MINOR_DEVICE_CLASS_WEARABLE_GLASSES = 20; + + /// < Robot minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_ROBOT = 4; + + /// < Vehicle minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_VEHICLE = 8; + + /// < Doll/Action minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_DOLL_ACTION = 12; + + /// < Controller minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_CONTROLLER = 16; + + /// < Game minor device class of toy + static const int BT_MINOR_DEVICE_CLASS_TOY_GAME = 20; + + /// < Uncategorized minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_UNCATEGORIZED = 0; + + /// < Blood pressure monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_BLOOD_PRESSURE_MONITOR = 4; + + /// < Thermometer minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_THERMOMETER = 8; + + /// < Weighing scale minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_WEIGHING_SCALE = 12; + + /// < Glucose minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_GLUCOSE_METER = 16; + + /// < Pulse oximeter minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_PULSE_OXIMETER = 20; + + /// < Heart/Pulse rate monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_HEART_PULSE_RATE_MONITOR = 24; + + /// < Health data display minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_DATA_DISPLAY = 28; + + /// < Step counter minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_STEP_COUNTER = 32; + + /// < Body composition analyzer minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_BODY_COMPOSITION_ANALYZER = 36; + + /// < Peak flow monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_PEAK_FLOW_MONITOR = 40; + + /// < Medication monitor minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_MEDICATION_MONITOR = 44; + + /// < Knee prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; + + /// < Ankle prosthesis minor device class of health + static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of gap appearance type. +/// @since_tizen 2.3 +abstract class bt_appearance_type_e { + /// < Unknown appearance type + static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; + + /// < Generic Phone type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; + + /// < Generic Computer type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; + + /// < Generic Watch type - Generic category + static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth device's LE connection mode. +/// @since_tizen 3.0 +abstract class bt_device_le_connection_mode_e { + /// < Balanced mode of power consumption and connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; + + /// < Low connection latency but high power consumption + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; + + /// < Low power consumption but high connection latency + static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of connected Bluetooth device event role. +/// @since_tizen 2.3 +abstract class bt_socket_role_e { + /// < Unknown role + static const int BT_SOCKET_UNKNOWN = 0; + + /// < Server role + static const int BT_SOCKET_SERVER = 1; + + /// < Client role + static const int BT_SOCKET_CLIENT = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Enumerations of Bluetooth socket connection state. +/// @since_tizen 2.3 +abstract class bt_socket_connection_state_e { + /// < RFCOMM is connected + static const int BT_SOCKET_CONNECTED = 0; + + /// < RFCOMM is disconnected + static const int BT_SOCKET_DISCONNECTED = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE +/// @brief Enumerations for the types of profiles related with audio. +/// @since_tizen 2.3 +abstract class bt_audio_profile_type_e { + /// < All supported profiles related with audio (Both Host and Device role) + static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; + + /// < local device AG and remote device HF Client (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; + + /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) + static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; + + /// < local device HF Client and remote device AG (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_AG = 3; + + /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) + static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; +} + +/// @internal +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the call handling event. +/// @since_tizen 2.3 +abstract class bt_ag_call_handling_event_e { + /// < Request to answer an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_ANSWER = 0; + + /// < Request to release a call + static const int BT_AG_CALL_HANDLING_EVENT_RELEASE = 1; + + /// < Request to reject an incoming call + static const int BT_AG_CALL_HANDLING_EVENT_REJECT = 2; +} + +/// @internal +/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE +/// @brief Enumerations for the multi call handling event. +/// @since_tizen 2.3 +abstract class bt_ag_multi_call_handling_event_e { + /// < Request to release held calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_HELD_CALLS = 0; + + /// < Request to release active calls + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_RELEASE_ACTIVE_CALLS = 1; + + /// < Request to put active calls into hold state and activate another (held or waiting) call + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_ACTIVATE_HELD_CALL = 2; + + /// < Request to add a held call to the conversation + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_MERGE_CALLS = 3; + + /// < Request to let a user who has two calls to connect these two calls together and release its connections to both other parties + static const int BT_AG_MULTI_CALL_HANDLING_EVENT_EXPLICIT_CALL_TRANSFER = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the equalizer state. +/// @since_tizen 2.4 +abstract class bt_avrcp_equalizer_state_e { + /// < Equalizer Off + static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; + + /// < Equalizer On + static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the repeat mode. +/// @since_tizen 2.4 +abstract class bt_avrcp_repeat_mode_e { + /// < Repeat Off + static const int BT_AVRCP_REPEAT_MODE_OFF = 1; + + /// < Single track repeat + static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; + + /// < All track repeat + static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; + + /// < Group repeat + static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the shuffle mode. +/// @since_tizen 2.4 +abstract class bt_avrcp_shuffle_mode_e { + /// < Shuffle Off + static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; + + /// < All tracks shuffle + static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; + + /// < Group shuffle + static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the scan mode. +/// @since_tizen 2.4 +abstract class bt_avrcp_scan_mode_e { + /// < Scan Off + static const int BT_AVRCP_SCAN_MODE_OFF = 1; + + /// < All tracks scan + static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; + + /// < Group scan + static const int BT_AVRCP_SCAN_MODE_GROUP = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumerations for the player state. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_state_e { + /// < Stopped + static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; + + /// < Playing + static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; + + /// < Paused + static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; + + /// < Seek Forward + static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; + + /// < Seek Rewind + static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Enumeration for the player control commands. +/// @since_tizen 3.0 +abstract class bt_avrcp_player_command_e { + /// < Play + static const int BT_AVRCP_CONTROL_PLAY = 1; + + /// < Pause + static const int BT_AVRCP_CONTROL_PAUSE = 2; + + /// < Stop + static const int BT_AVRCP_CONTROL_STOP = 3; + + /// < Next Track + static const int BT_AVRCP_CONTROL_NEXT = 4; + + /// < Previous track + static const int BT_AVRCP_CONTROL_PREVIOUS = 5; + + /// < Fast Forward + static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; + + /// < Rewind + static const int BT_AVRCP_CONTROL_REWIND = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE +/// @brief Structure of Track metadata information. +/// @since_tizen 3.0 +/// +/// @see #bt_class_s +final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { + /// < Title + external ffi.Pointer title; + + /// < Artist + external ffi.Pointer artist; + + /// < Album name + external ffi.Pointer album; + + /// < Album Genre + external ffi.Pointer genre; + + /// < The total number of tracks + @ffi.UnsignedInt() + external int total_tracks; + + /// < Track number + @ffi.UnsignedInt() + external int number; + + /// < Duration + @ffi.UnsignedInt() + external int duration; +} + +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Enumerations for the data channel type. +/// @since_tizen 2.3 +/// @remarks Deprecated, because of no usecase and supported devices. +abstract class bt_hdp_channel_type_e { + /// < Reliable Data Channel + static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; + + /// < Streaming Data Channel + static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the integer type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_int_e { + /// < 8 bit signed int type + static const int BT_DATA_TYPE_SINT8 = 0; + + /// < 16 bit signed int type + static const int BT_DATA_TYPE_SINT16 = 1; + + /// < 32 bit signed int type + static const int BT_DATA_TYPE_SINT32 = 2; + + /// < 8 bit unsigned int type + static const int BT_DATA_TYPE_UINT8 = 3; + + /// < 16 bit unsigned int type + static const int BT_DATA_TYPE_UINT16 = 4; + + /// < 32 bit unsigned int type + static const int BT_DATA_TYPE_UINT32 = 5; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the float type for GATT handle's value. +/// @since_tizen 2.3.1 +abstract class bt_data_type_float_e { + /// < 32 bit float type + static const int BT_DATA_TYPE_FLOAT = 0; + + /// < 16 bit float type + static const int BT_DATA_TYPE_SFLOAT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the write type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_write_type_e { + /// < Write without response type + static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; + + /// < Write type + static const int BT_GATT_WRITE_TYPE_WRITE = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the GATT handle's type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_type_e { + /// < GATT service type + static const int BT_GATT_TYPE_SERVICE = 1; + + /// < GATT characteristic type + static const int BT_GATT_TYPE_CHARACTERISTIC = 2; + + /// < GATT descriptor type + static const int BT_GATT_TYPE_DESCRIPTOR = 3; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the service type. +/// @since_tizen 2.3.1 +abstract class bt_gatt_service_type_e { + /// < GATT primary service type + static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; + + /// < GATT secondary service type + static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the characteristic's property. +/// @since_tizen 2.3.1 +abstract class bt_gatt_property_e { + /// < Broadcast property + static const int BT_GATT_PROPERTY_BROADCAST = 1; + + /// < Read property + static const int BT_GATT_PROPERTY_READ = 2; + + /// < Write without response property + static const int BT_GATT_PROPERTY_WRITE_WITHOUT_RESPONSE = 4; + + /// < Write property + static const int BT_GATT_PROPERTY_WRITE = 8; + + /// < Notify property + static const int BT_GATT_PROPERTY_NOTIFY = 16; + + /// < Indicate property + static const int BT_GATT_PROPERTY_INDICATE = 32; + + /// < Authenticated signed writes property + static const int BT_GATT_PROPERTY_AUTHENTICATED_SIGNED_WRITES = 64; + + /// < Extended properties + static const int BT_GATT_PROPERTY_EXTENDED_PROPERTIES = 128; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Enumerations of gatt server's service changing mode. +/// @since_tizen 3.0 +abstract class bt_gatt_client_service_change_type_e { + /// < Service added + static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; + + /// < Service removed + static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; + + /// < Resync is required (Since 6.5) + static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE +/// @brief Enumerations of the attribute's permission. +/// @since_tizen 3.0 +abstract class bt_gatt_permission_e { + /// < Readable permission + static const int BT_GATT_PERMISSION_READ = 1; + + /// < Writable permission + static const int BT_GATT_PERMISSION_WRITE = 2; + + /// < Readable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_READ = 4; + + /// < Writable permission required encryption + static const int BT_GATT_PERMISSION_ENCRYPT_WRITE = 8; + + /// < Readable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_READ = 16; + + /// < Writable permission required encryption and authentication + static const int BT_GATT_PERMISSION_ENCRYPT_AUTHENTICATED_WRITE = 32; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE +/// @brief Enumerations of the remote device request types for attributes. +/// @since_tizen 3.0 +abstract class bt_gatt_att_request_type_e { + /// < Read Requested + static const int BT_GATT_REQUEST_TYPE_READ = 0; + + /// < Write Requested + static const int BT_GATT_REQUEST_TYPE_WRITE = 1; +} + +/// @internal +/// @ingroup CAPI_NETWORK_BLUETOOTH_PAN_NAP_MODULE +/// @brief Enumerations for the types of PAN (Personal Area Networking) service. +/// @since_tizen 2.3 +abstract class bt_panu_service_type_e { + /// < Network Access Point + static const int BT_PANU_SERVICE_TYPE_NAP = 0; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of address book location for PBAP. +/// @since_tizen 3.0 +abstract class bt_pbap_address_book_source_e { + /// < Request for Addressbook from remote device + static const int BT_PBAP_SOURCE_DEVICE = 0; + + /// < Request for address book from SIM + static const int BT_PBAP_SOURCE_SIM = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of folder type. +/// @since_tizen 3.0 +abstract class bt_pbap_folder_type_e { + /// < Request for address book + static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; + + /// < Request for incoming calls + static const int BT_PBAP_FOLDER_INCOMING = 1; + + /// < Request for outgoing calls + static const int BT_PBAP_FOLDER_OUTGOING = 2; + + /// < Request for missed calls + static const int BT_PBAP_FOLDER_MISSED = 3; + + /// < Request for combined calls + static const int BT_PBAP_FOLDER_COMBINED = 4; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of phone book search fields. +/// @since_tizen 3.0 +abstract class bt_pbap_search_field_e { + /// < Request for search by name (default) + static const int BT_PBAP_SEARCH_NAME = 0; + + /// < Request for search by phone number + static const int BT_PBAP_SEARCH_NUMBER = 1; + + /// < Request for search by sound + static const int BT_PBAP_SEARCH_SOUND = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of vCard Formats. +/// @since_tizen 3.0 +abstract class bt_pbap_vcard_format_e { + /// < vCard format 2.1 (default) + static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; + + /// < vCard format 3.0 + static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief Enumeration of sorting orders. +/// @since_tizen 3.0 +abstract class bt_pbap_sort_order_e { + /// < Filter order indexed (default) + static const int BT_PBAP_ORDER_INDEXED = 0; + + /// < Filter order alphanumeric + static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; + + /// < Filter order phonetic + static const int BT_PBAP_ORDER_PHONETIC = 2; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Class structure of device and service. +/// @since_tizen 2.3 +/// +/// @see #bt_device_info_s +/// @see #bt_adapter_device_discovery_info_s +/// @see bt_device_bond_created_cb() +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_class_s extends ffi.Struct { + /// < Major device class. + @ffi.Int32() + external int major_device_class; + + /// < Minor device class. + @ffi.Int32() + external int minor_device_class; + + /// < Major service class mask. + /// This value can be a combination of #bt_major_service_class_e like #BT_MAJOR_SERVICE_CLASS_RENDERING | #BT_MAJOR_SERVICE_CLASS_AUDIO + @ffi.Int() + external int major_service_class_mask; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Structure of device discovery information. +/// @since_tizen 2.3 +/// +/// @see #bt_class_s +/// @see bt_adapter_device_discovery_state_changed_cb() +final class bt_adapter_device_discovery_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The Bluetooth appearance + @ffi.Int32() + external int appearance; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Structure of le scan result information. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The address type of remote device + @ffi.Int32() + external int address_type; + + /// < The strength indicator of received signal + @ffi.Int() + external int rssi; + + /// < advertising indication data length + @ffi.Int() + external int adv_data_len; + + /// < advertising indication data + external ffi.Pointer adv_data; + + /// < scan response data length + @ffi.Int() + external int scan_data_len; + + /// < scan response data + external ffi.Pointer scan_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief The structure for LE iBeacon scan result information. +/// @since_tizen 4.0 +/// +/// @see bt_adapter_le_start_scan() +final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { + /// < Company ID + @ffi.Int() + external int company_id; + + /// < iBeacon type + @ffi.Int() + external int ibeacon_type; + + /// < UUID + external ffi.Pointer uuid; + + /// < Major ID + @ffi.Int() + external int major_id; + + /// < Minor ID + @ffi.Int() + external int minor_id; + + /// < Measured power + @ffi.Int() + external int measured_power; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief LE service data structure. +/// @since_tizen 2.3.1 +/// +/// @see bt_adapter_le_get_scan_result_service_data() +final class bt_adapter_le_service_data_s extends ffi.Struct { + /// < 16 bit UUID of the service data + external ffi.Pointer service_uuid; + + /// < Service data + external ffi.Pointer service_data; + + /// < Service data length + @ffi.Int() + external int service_data_len; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device information structure used for identifying pear device. +/// @since_tizen 2.3 +/// +/// @see #bt_class_s +/// @see bt_device_bond_created_cb() +final class bt_device_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The name of remote device + external ffi.Pointer remote_name; + + /// < The Bluetooth classes + external bt_class_s bt_class; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services + @ffi.Int() + external int service_count; + + /// < The bonding state + @ffi.Bool() + external bool is_bonded; + + /// < The connection state + @ffi.Bool() + external bool is_connected; + + /// < The authorization state + @ffi.Bool() + external bool is_authorized; + + /// < manufacturer specific data length + @ffi.Int() + external int manufacturer_data_len; + + /// < manufacturer specific data + external ffi.Pointer manufacturer_data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Service Discovery Protocol (SDP) data structure. +/// +/// @details This protocol is used for discovering available services or pear device, +/// and finding one to connect with. +/// +/// @since_tizen 2.3 +/// @see bt_device_service_searched_cb() +final class bt_device_sdp_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < The UUID list of service + external ffi.Pointer> service_uuid; + + /// < The number of services. + @ffi.Int() + external int service_count; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE +/// @brief Device connection information structure. +/// @since_tizen 2.3 +/// +/// @see bt_device_connection_state_changed_cb() +final class bt_device_connection_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < Link type + @ffi.Int32() + external int link; + + /// < Disconnection reason + @ffi.Int32() + external int disconn_reason; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. +/// @since_tizen 2.3 +/// +/// @see bt_socket_connection_state_changed_cb() +final class bt_socket_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; + + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; + + /// < The local device role in this connection + @ffi.Int32() + external int local_role; + + /// < The remote device address + external ffi.Pointer remote_address; + + /// < The service UUId + external ffi.Pointer service_uuid; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief Structure of RFCOMM received data. +/// @since_tizen 2.3 +/// +/// @remarks User can use standard linux functions for reading/writing \n +/// data from/to sockets. +/// +/// @see bt_socket_data_received_cb() +final class bt_socket_received_data_s extends ffi.Struct { + /// < The socket fd + @ffi.Int() + external int socket_fd; + + /// < The length of the received data + @ffi.Int() + external int data_size; + + /// < The received data + external ffi.Pointer data; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE +/// @brief Attribute protocol MTU change information structure. +/// @since_tizen 4.0 +/// +/// @see bt_gatt_client_att_mtu_changed_cb() +final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { + /// < The address of remote device + external ffi.Pointer remote_address; + + /// < MTU value + @ffi.UnsignedInt() + external int mtu; + + /// < Request status + @ffi.UnsignedInt() + external int status; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID mouse's button. +/// @since_tizen 3.0 +abstract class bt_hid_mouse_button_e { + /// key; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID header type. +/// @since_tizen 3.0 +abstract class bt_hid_header_type_e { + /// < The Bluetooth HID header type: Handshake + static const int BT_HID_HEADER_HANDSHAKE = 0; + + /// < The Bluetooth HID header type: HID control + static const int BT_HID_HEADER_HID_CONTROL = 1; + + /// < The Bluetooth HID header type: Get report + static const int BT_HID_HEADER_GET_REPORT = 2; + + /// < The Bluetooth HID header type: Set report + static const int BT_HID_HEADER_SET_REPORT = 3; + + /// < The Bluetooth HID header type: Get protocol + static const int BT_HID_HEADER_GET_PROTOCOL = 4; + + /// < The Bluetooth HID header type: Set protocol + static const int BT_HID_HEADER_SET_PROTOCOL = 5; + + /// < The Bluetooth HID header type: Data + static const int BT_HID_HEADER_DATA = 6; + + /// < The Bluetooth HID header type: Unknown + static const int BT_HID_HEADER_UNKNOWN = 7; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID parameter type. +/// @since_tizen 3.0 +abstract class bt_hid_param_type_e { + /// < Parameter type: Input + static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; + + /// < Parameter type: Output + static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; +} + +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief Enumerations of the Bluetooth HID handshake type. +/// @since_tizen 3.0 +abstract class bt_hid_handshake_type_e { + /// < Handshake error code none + static const int BT_HID_HANDSHAKE_SUCCESSFUL = 0; - /// < Camera minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_CAMERA = 32; + /// < Handshake error code Not Ready + static const int BT_HID_HANDSHAKE_NOT_READY = 1; - /// < Scanner minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_SCANNER = 64; + /// < Handshake error code send invalid report id + static const int BT_HID_HANDSHAKE_ERR_INVALID_REPORT_ID = 2; - /// < Printer minor device class of imaging - static const int BT_MINOR_DEVICE_CLASS_IMAGING_PRINTER = 128; + /// < Handshake error code request unsupported request + static const int BT_HID_HANDSHAKE_ERR_UNSUPPORTED_REQUEST = 3; - /// < Wrist watch minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_WRIST_WATCH = 4; + /// < Handshake error code received invalid parameter + static const int BT_HID_HANDSHAKE_ERR_INVALID_PARAMETER = 4; - /// < Pager minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_PAGER = 8; + /// < unknown error + static const int BT_HID_HANDSHAKE_ERR_UNKNOWN = 14; - /// < Jacket minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_JACKET = 12; + /// < Fatal error + static const int BT_HID_HANDSHAKE_ERR_FATAL = 15; +} - /// < Helmet minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_HELMET = 16; +/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE +/// @brief The structure type containing data received from the HID Host. +/// @since_tizen 3.0 +final class bt_hid_device_received_data_s extends ffi.Struct { + /// < The remote device's address + external ffi.Pointer address; - /// < Glasses minor device class of wearable - static const int BT_MINOR_DEVICE_CLASS_WEARABLE_GLASSES = 20; + /// < The header type + @ffi.Int32() + external int header_type; - /// < Robot minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_ROBOT = 4; + /// < The parameter type + @ffi.Int32() + external int param_type; - /// < Vehicle minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_VEHICLE = 8; + /// < The length of the received data + @ffi.Int() + external int data_size; - /// < Doll/Action minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_DOLL_ACTION = 12; + /// < The received data + external ffi.Pointer data; +} - /// < Controller minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_CONTROLLER = 16; +/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE +/// @brief The structure type containing vCard information. +/// @since_tizen 3.0 +/// +/// @see bt_pbap_client_pull_vcard() +final class bt_pbap_vcard_info_s extends ffi.Struct { + /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() + @ffi.Int() + external int index; - /// < Game minor device class of toy - static const int BT_MINOR_DEVICE_CLASS_TOY_GAME = 20; + /// < The contact name of the vCard + external ffi.Pointer contact_name; +} - /// < Uncategorized minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_UNCATEGORIZED = 0; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE +/// @brief Enumeration for the scan filter type. +/// @since_tizen 4.0 +/// @see bt_adapter_le_scan_filter_set_type() +abstract class bt_adapter_le_scan_filter_type_e { + /// < iBeacon filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - /// < Blood pressure monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_BLOOD_PRESSURE_MONITOR = 4; + /// < Proximity UUID filter type + static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; +} - /// < Thermometer minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_THERMOMETER = 8; +/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE +/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. +/// @since_tizen 7.0 +/// +/// @see bt_socket_l2cap_channel_connection_state_changed_cb() +final class bt_socket_l2cap_le_connection_s extends ffi.Struct { + /// < The file descriptor of connected socket + @ffi.Int() + external int socket_fd; - /// < Weighing scale minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_WEIGHING_SCALE = 12; + /// < The file descriptor of the server socket or -1 for client connection + @ffi.Int() + external int server_fd; - /// < Glucose minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_GLUCOSE_METER = 16; + /// < The local device role in this connection + @ffi.Int32() + external int local_role; - /// < Pulse oximeter minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_PULSE_OXIMETER = 20; + /// < The remote device address + external ffi.Pointer remote_address; - /// < Heart/Pulse rate monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_HEART_PULSE_RATE_MONITOR = 24; + /// < The psm of the connected socket + @ffi.Int() + external int psm; +} - /// < Health data display minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_DATA_DISPLAY = 28; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE +/// @brief Enumerations of the Bluetooth LE scan role. +/// @since_tizen 8.0 +abstract class bt_adapter_le_scan_role_e { + /// < Scan all + static const int BT_ADAPTER_LE_SCAN_ALL = 0; - /// < Step counter minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_STEP_COUNTER = 32; + /// < Legacy scan only + static const int BT_ADAPTER_LE_SCAN_LEGACY_ONLY = 1; - /// < Body composition analyzer minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_BODY_COMPOSITION_ANALYZER = 36; + /// < Extended scan only + static const int BT_ADAPTER_LE_SCAN_EXTENDED_ONLY = 2; +} - /// < Peak flow monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_PEAK_FLOW_MONITOR = 40; +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE +/// @brief Enumerations of the Bluetooth LE phy. +/// @since_tizen 8.0 +abstract class bt_adapter_le_phy_e { + /// < All phy + static const int BT_LE_ALL_PHY = 0; - /// < Medication monitor minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_MEDICATION_MONITOR = 44; + /// < 1M phy + static const int BT_LE_1M_PHY = 1; - /// < Knee prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_KNEE_PROSTHESIS = 48; + /// < 2M phy + static const int BT_LE_2M_PHY = 2; - /// < Ankle prosthesis minor device class of health - static const int BT_MINOR_DEVICE_CLASS_HEALTH_ANKLE_PROSTHESIS = 52; + /// < Coded phy + static const int BT_LE_CODED_PHY = 3; } +/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE +/// @brief Called when you get bonded devices repeatedly. +/// @since_tizen 2.3 +/// +/// @param[in] device_info The bonded device information +/// @param[in] user_data The user data passed from the foreach function +/// @return @c true to continue with the next iteration of the loop, +/// \n @c false to break out of the loop. +/// @pre bt_adapter_foreach_bonded_device() will invoke this function. +/// +/// @see bt_adapter_foreach_bonded_device() +typedef bt_adapter_bonded_device_cb + = ffi.Pointer>; +typedef bt_adapter_bonded_device_cbFunction = ffi.Bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); +typedef Dartbt_adapter_bonded_device_cbFunction = bool Function( + ffi.Pointer device_info, ffi.Pointer user_data); + /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE /// @brief Called when the Bluetooth adapter state changes. /// @since_tizen 2.3 @@ -11315,101 +12659,27 @@ typedef Dartbt_adapter_visibility_duration_changed_cbFunction = void Function( /// #BT_ADAPTER_DEVICE_DISCOVERY_FINISHED, then \a discovery_info is NULL. /// @param[in] user_data The user data passed from the callback registration function /// -/// @pre Either bt_adapter_start_device_discovery() or bt_adapter_stop_device_discovery() will invoke this function -/// if you register this callback using bt_adapter_set_device_discovery_state_changed_cb(). -/// -/// @see bt_adapter_start_device_discovery() -/// @see bt_adapter_stop_device_discovery() -/// @see bt_adapter_set_device_discovery_state_changed_cb() -/// @see bt_adapter_unset_device_discovery_state_changed_cb() -typedef bt_adapter_device_discovery_state_changed_cb = ffi.Pointer< - ffi.NativeFunction>; -typedef bt_adapter_device_discovery_state_changed_cbFunction - = ffi.Void Function( - ffi.Int result, - ffi.Int32 discovery_state, - ffi.Pointer discovery_info, - ffi.Pointer user_data); -typedef Dartbt_adapter_device_discovery_state_changed_cbFunction - = void Function( - int result, - int discovery_state, - ffi.Pointer discovery_info, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Enumerations of the discovery state of Bluetooth device. -/// @since_tizen 2.3 -abstract class bt_adapter_device_discovery_state_e { - /// < Device discovery is started - static const int BT_ADAPTER_DEVICE_DISCOVERY_STARTED = 0; - - /// < Device discovery is finished - static const int BT_ADAPTER_DEVICE_DISCOVERY_FINISHED = 1; - - /// < The remote Bluetooth device is found - static const int BT_ADAPTER_DEVICE_DISCOVERY_FOUND = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE -/// @brief Structure of device discovery information. -/// @since_tizen 2.3 -/// -/// @see #bt_class_s -/// @see bt_adapter_device_discovery_state_changed_cb() -final class bt_adapter_device_discovery_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The name of remote device - external ffi.Pointer remote_name; - - /// < The Bluetooth classes - external bt_class_s bt_class; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < The bonding state - @ffi.Bool() - external bool is_bonded; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services - @ffi.Int() - external int service_count; - - /// < The Bluetooth appearance - @ffi.Int32() - external int appearance; - - /// < manufacturer specific data length - @ffi.Int() - external int manufacturer_data_len; - - /// < manufacturer specific data - external ffi.Pointer manufacturer_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of gap appearance type. -/// @since_tizen 2.3 -abstract class bt_appearance_type_e { - /// < Unknown appearance type - static const int BT_APPEARANCE_TYPE_UNKNOWN = 0; - - /// < Generic Phone type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_PHONE = 64; - - /// < Generic Computer type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_COMPUTER = 128; - - /// < Generic Watch type - Generic category - static const int BT_APPEARANCE_TYPE_GENERIC_WATCH = 192; -} +/// @pre Either bt_adapter_start_device_discovery() or bt_adapter_stop_device_discovery() will invoke this function +/// if you register this callback using bt_adapter_set_device_discovery_state_changed_cb(). +/// +/// @see bt_adapter_start_device_discovery() +/// @see bt_adapter_stop_device_discovery() +/// @see bt_adapter_set_device_discovery_state_changed_cb() +/// @see bt_adapter_unset_device_discovery_state_changed_cb() +typedef bt_adapter_device_discovery_state_changed_cb = ffi.Pointer< + ffi.NativeFunction>; +typedef bt_adapter_device_discovery_state_changed_cbFunction + = ffi.Void Function( + ffi.Int result, + ffi.Int32 discovery_state, + ffi.Pointer discovery_info, + ffi.Pointer user_data); +typedef Dartbt_adapter_device_discovery_state_changed_cbFunction + = void Function( + int result, + int discovery_state, + ffi.Pointer discovery_info, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief Called when the LE advertisement has been found. @@ -11431,107 +12701,6 @@ typedef Dartbt_adapter_le_scan_result_cbFunction = void Function( ffi.Pointer info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Structure of le scan result information. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_device_scan_result_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The address type of remote device - @ffi.Int32() - external int address_type; - - /// < The strength indicator of received signal - @ffi.Int() - external int rssi; - - /// < advertising indication data length - @ffi.Int() - external int adv_data_len; - - /// < advertising indication data - external ffi.Pointer adv_data; - - /// < scan response data length - @ffi.Int() - external int scan_data_len; - - /// < scan response data - external ffi.Pointer scan_data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device address type. -/// @since_tizen 2.3 -abstract class bt_device_address_type_e { - /// < Public address - static const int BT_DEVICE_PUBLIC_ADDRESS = 0; - - /// < Random address - static const int BT_DEVICE_RANDOM_ADDRESS = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth LE packet type. -/// @since_tizen 2.3 -abstract class bt_adapter_le_packet_type_e { - /// < Advertising packet - static const int BT_ADAPTER_LE_PACKET_ADVERTISING = 0; - - /// < Scan response packet - static const int BT_ADAPTER_LE_PACKET_SCAN_RESPONSE = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief LE service data structure. -/// @since_tizen 2.3.1 -/// -/// @see bt_adapter_le_get_scan_result_service_data() -final class bt_adapter_le_service_data_s extends ffi.Struct { - /// < 16 bit UUID of the service data - external ffi.Pointer service_uuid; - - /// < Service data - external ffi.Pointer service_data; - - /// < Service data length - @ffi.Int() - external int service_data_len; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief The structure for LE iBeacon scan result information. -/// @since_tizen 4.0 -/// -/// @see bt_adapter_le_start_scan() -final class bt_adapter_le_ibeacon_scan_result_info_s extends ffi.Struct { - /// < Company ID - @ffi.Int() - external int company_id; - - /// < iBeacon type - @ffi.Int() - external int ibeacon_type; - - /// < UUID - external ffi.Pointer uuid; - - /// < Major ID - @ffi.Int() - external int major_id; - - /// < Minor ID - @ffi.Int() - external int minor_id; - - /// < Measured power - @ffi.Int() - external int measured_power; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle to control Bluetooth LE advertising. /// @since_tizen 2.3 @@ -11601,59 +12770,6 @@ typedef Dartbt_adapter_le_advertising_state_changed_cbFunction = void Function( int adv_state, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising state. -/// @since_tizen 2.3 -abstract class bt_adapter_le_advertising_state_e { - /// < Bluetooth advertising is stopped - static const int BT_ADAPTER_LE_ADVERTISING_STOPPED = 0; - - /// < Bluetooth advertising is started - static const int BT_ADAPTER_LE_ADVERTISING_STARTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth advertising mode. -/// @since_tizen 2.3.1 -abstract class bt_adapter_le_advertising_mode_e { - /// < Balanced advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_BALANCED = 0; - - /// < Low latency advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_LATENCY = 1; - - /// < Low energy advertising mode - static const int BT_ADAPTER_LE_ADVERTISING_MODE_LOW_ENERGY = 2; - - /// < Custom mode to set advertising parameters - static const int BT_ADAPTER_LE_ADVERTISING_MODE_CUSTOM = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumerations of the Bluetooth le scan mode. -/// @since_tizen 3.0 -abstract class bt_adapter_le_scan_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device authorization state. -/// @since_tizen 2.3 -abstract class bt_device_authorization_e { - /// < The remote Bluetooth device is authorized - static const int BT_DEVICE_AUTHORIZED = 0; - - /// < The remote Bluetooth device is unauthorized - static const int BT_DEVICE_UNAUTHORIZED = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when you get connected profiles repeatedly. /// @since_tizen 2.3 @@ -11671,52 +12787,6 @@ typedef bt_device_connected_profileFunction = ffi.Bool Function( typedef Dartbt_device_connected_profileFunction = bool Function( int profile, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of Bluetooth profile. -/// @since_tizen 2.3 -abstract class bt_profile_e { - /// < RFCOMM Profile - static const int BT_PROFILE_RFCOMM = 1; - - /// < Advanced Audio Distribution Profile Source role - static const int BT_PROFILE_A2DP = 2; - - /// < Headset Profile - static const int BT_PROFILE_HSP = 4; - - /// < Human Interface Device Profile - static const int BT_PROFILE_HID = 8; - - /// < Network Access Point Profile - static const int BT_PROFILE_NAP = 16; - - /// < Audio Gateway Profile - static const int BT_PROFILE_AG = 32; - - /// < Generic Attribute Profile - static const int BT_PROFILE_GATT = 64; - - /// < NAP server Profile - static const int BT_PROFILE_NAP_SERVER = 128; - - /// < Advanced Audio Distribution Profile Sink role - static const int BT_PROFILE_A2DP_SINK = 256; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth device's LE connection mode. -/// @since_tizen 3.0 -abstract class bt_device_le_connection_mode_e { - /// < Balanced mode of power consumption and connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_BALANCED = 0; - - /// < Low connection latency but high power consumption - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_LATENCY = 1; - - /// < Low power consumption but high connection latency - static const int BT_DEVICE_LE_CONNECTION_MODE_LOW_ENERGY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the process of creating bond finishes. /// @since_tizen 2.3 @@ -11796,41 +12866,21 @@ typedef Dartbt_device_authorization_changed_cbFunction = void Function( /// @param[in] sdp_info The structure of service lists found on a device /// @param[in] user_data The user data passed from the callback registration function /// @pre Either bt_device_start_service_search() will invoke this function -/// if you register this callback using bt_device_set_service_searched_cb(). -/// -/// @see bt_device_start_service_search() -/// @see bt_device_set_service_searched_cb() -/// @see bt_device_unset_service_searched_cb() -typedef bt_device_service_searched_cb - = ffi.Pointer>; -typedef bt_device_service_searched_cbFunction = ffi.Void Function( - ffi.Int result, - ffi.Pointer sdp_info, - ffi.Pointer user_data); -typedef Dartbt_device_service_searched_cbFunction = void Function( - int result, - ffi.Pointer sdp_info, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Service Discovery Protocol (SDP) data structure. -/// -/// @details This protocol is used for discovering available services or pear device, -/// and finding one to connect with. -/// -/// @since_tizen 2.3 -/// @see bt_device_service_searched_cb() -final class bt_device_sdp_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < The UUID list of service - external ffi.Pointer> service_uuid; - - /// < The number of services. - @ffi.Int() - external int service_count; -} +/// if you register this callback using bt_device_set_service_searched_cb(). +/// +/// @see bt_device_start_service_search() +/// @see bt_device_set_service_searched_cb() +/// @see bt_device_unset_service_searched_cb() +typedef bt_device_service_searched_cb + = ffi.Pointer>; +typedef bt_device_service_searched_cbFunction = ffi.Void Function( + ffi.Int result, + ffi.Pointer sdp_info, + ffi.Pointer user_data); +typedef Dartbt_device_service_searched_cbFunction = void Function( + int result, + ffi.Pointer sdp_info, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE /// @brief Called when the connection state is changed. @@ -11852,58 +12902,6 @@ typedef Dartbt_device_connection_state_changed_cbFunction = void Function( ffi.Pointer conn_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Device connection information structure. -/// @since_tizen 2.3 -/// -/// @see bt_device_connection_state_changed_cb() -final class bt_device_connection_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < Link type - @ffi.Int32() - external int link; - - /// < Disconnection reason - @ffi.Int32() - external int disconn_reason; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of connection link type. -/// @since_tizen 2.3 -abstract class bt_device_connection_link_type_e { - /// < BR/EDR link - static const int BT_DEVICE_CONNECTION_LINK_BREDR = 0; - - /// < LE link - static const int BT_DEVICE_CONNECTION_LINK_LE = 1; - - /// < The connection type default - static const int BT_DEVICE_CONNECTION_LINK_DEFAULT = 255; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE -/// @brief Enumerations of device disconnect reason. -/// @since_tizen 2.3 -abstract class bt_device_disconnect_reason_e { - /// < Disconnected by unknown reason - static const int BT_DEVICE_DISCONNECT_REASON_UNKNOWN = 0; - - /// < Disconnected by timeout - static const int BT_DEVICE_DISCONNECT_REASON_TIMEOUT = 1; - - /// < Disconnected by local host - static const int BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST = 2; - - /// < Disconnected by remote - static const int BT_DEVICE_DISCONNECT_REASON_REMOTE = 3; - - /// < Disconnected by MIC failure (Since 9.0) - static const int BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when you receive data. /// @since_tizen 2.3 @@ -11926,27 +12924,6 @@ typedef Dartbt_socket_data_received_cbFunction = void Function( ffi.Pointer data, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Structure of RFCOMM received data. -/// @since_tizen 2.3 -/// -/// @remarks User can use standard linux functions for reading/writing \n -/// data from/to sockets. -/// -/// @see bt_socket_data_received_cb() -final class bt_socket_received_data_s extends ffi.Struct { - /// < The socket fd - @ffi.Int() - external int socket_fd; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when a RFCOMM connection is requested. /// @since_tizen 2.3 @@ -11994,56 +12971,6 @@ typedef Dartbt_socket_connection_state_changed_cbFunction = void Function( ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of Bluetooth socket connection state. -/// @since_tizen 2.3 -abstract class bt_socket_connection_state_e { - /// < RFCOMM is connected - static const int BT_SOCKET_CONNECTED = 0; - - /// < RFCOMM is disconnected - static const int BT_SOCKET_DISCONNECTED = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Rfcomm connection data used for exchanging data between Bluetooth devices. -/// @since_tizen 2.3 -/// -/// @see bt_socket_connection_state_changed_cb() -final class bt_socket_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The service UUId - external ffi.Pointer service_uuid; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief Enumerations of connected Bluetooth device event role. -/// @since_tizen 2.3 -abstract class bt_socket_role_e { - /// < Unknown role - static const int BT_SOCKET_UNKNOWN = 0; - - /// < Server role - static const int BT_SOCKET_SERVER = 1; - - /// < Client role - static const int BT_SOCKET_CLIENT = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_OPP_SERVER_MODULE /// @brief Called when an OPP connection is requested. /// @@ -12204,155 +13131,33 @@ typedef bt_hid_device_connection_state_changed_cb = ffi.Pointer< ffi.NativeFunction>; typedef bt_hid_device_connection_state_changed_cbFunction = ffi.Void Function( ffi.Int result, - ffi.Bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); -typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( - int result, - bool connected, - ffi.Pointer remote_address, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID mouse event information. -/// @since_tizen 3.0 -/// -/// @see bt_hid_device_send_mouse_event() -final class bt_hid_mouse_data_s extends ffi.Struct { - /// < The button values, we can combine key's values when we pressed multiple mouse buttons - @ffi.Int() - external int buttons; - - /// < The location's x value, -128 ~127 - @ffi.Int() - external int axis_x; - - /// < The location's y value, -128 ~127 - @ffi.Int() - external int axis_y; - - /// < The padding value, -128 ~127 - @ffi.Int() - external int padding; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing the HID keyboard event information. -/// @details If you want to know more detail values, refer to http://www.usb.org/developers/hidpage/ and see "HID Usage Tables" -/// @since_tizen 3.0 -/// -/// @see bt_hid_device_send_key_event() -final class bt_hid_key_data_s extends ffi.Struct { - /// < The modifier keys : such as shift, alt - @ffi.UnsignedChar() - external int modifier; - - /// < The key value - currently pressed keys : Max 8 at once - @ffi.Array.multi([8]) - external ffi.Array key; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Called when the HID Device receives data from the HID Host. -/// @details The following error codes can be delivered: \n -/// #BT_ERROR_NONE \n -/// #BT_ERROR_OPERATION_FAILED \n -/// @since_tizen 3.0 -/// -/// @param[in] data The data received from the HID Host. -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hid_device_set_data_received_cb() -typedef bt_hid_device_data_received_cb - = ffi.Pointer>; -typedef bt_hid_device_data_received_cbFunction = ffi.Void Function( - ffi.Pointer data, - ffi.Pointer user_data); -typedef Dartbt_hid_device_data_received_cbFunction = void Function( - ffi.Pointer data, - ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief The structure type containing data received from the HID Host. -/// @since_tizen 3.0 -final class bt_hid_device_received_data_s extends ffi.Struct { - /// < The remote device's address - external ffi.Pointer address; - - /// < The header type - @ffi.Int32() - external int header_type; - - /// < The parameter type - @ffi.Int32() - external int param_type; - - /// < The length of the received data - @ffi.Int() - external int data_size; - - /// < The received data - external ffi.Pointer data; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID header type. -/// @since_tizen 3.0 -abstract class bt_hid_header_type_e { - /// < The Bluetooth HID header type: Handshake - static const int BT_HID_HEADER_HANDSHAKE = 0; - - /// < The Bluetooth HID header type: HID control - static const int BT_HID_HEADER_HID_CONTROL = 1; - - /// < The Bluetooth HID header type: Get report - static const int BT_HID_HEADER_GET_REPORT = 2; - - /// < The Bluetooth HID header type: Set report - static const int BT_HID_HEADER_SET_REPORT = 3; - - /// < The Bluetooth HID header type: Get protocol - static const int BT_HID_HEADER_GET_PROTOCOL = 4; - - /// < The Bluetooth HID header type: Set protocol - static const int BT_HID_HEADER_SET_PROTOCOL = 5; - - /// < The Bluetooth HID header type: Data - static const int BT_HID_HEADER_DATA = 6; - - /// < The Bluetooth HID header type: Unknown - static const int BT_HID_HEADER_UNKNOWN = 7; -} + ffi.Bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); +typedef Dartbt_hid_device_connection_state_changed_cbFunction = void Function( + int result, + bool connected, + ffi.Pointer remote_address, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_HID_DEVICE_MODULE -/// @brief Enumerations of the Bluetooth HID parameter type. +/// @brief Called when the HID Device receives data from the HID Host. +/// @details The following error codes can be delivered: \n +/// #BT_ERROR_NONE \n +/// #BT_ERROR_OPERATION_FAILED \n /// @since_tizen 3.0 -abstract class bt_hid_param_type_e { - /// < Parameter type: Input - static const int BT_HID_PARAM_DATA_RTYPE_INPUT = 0; - - /// < Parameter type: Output - static const int BT_HID_PARAM_DATA_RTYPE_OUTPUT = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE -/// @brief Enumerations for the types of profiles related with audio. -/// @since_tizen 2.3 -abstract class bt_audio_profile_type_e { - /// < All supported profiles related with audio (Both Host and Device role) - static const int BT_AUDIO_PROFILE_TYPE_ALL = 0; - - /// < local device AG and remote device HF Client (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_HSP_HFP = 1; - - /// < A2DP Source Connection, remote device is A2DP Sink (Host role, ex: mobile) - static const int BT_AUDIO_PROFILE_TYPE_A2DP = 2; - - /// < local device HF Client and remote device AG (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_AG = 3; - - /// < A2DP Sink Connection, remote device is A2DP Source (Device role, ex: headset) - static const int BT_AUDIO_PROFILE_TYPE_A2DP_SINK = 4; -} +/// +/// @param[in] data The data received from the HID Host. +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hid_device_set_data_received_cb() +typedef bt_hid_device_data_received_cb + = ffi.Pointer>; +typedef bt_hid_device_data_received_cbFunction = ffi.Void Function( + ffi.Pointer data, + ffi.Pointer user_data); +typedef Dartbt_hid_device_data_received_cbFunction = void Function( + ffi.Pointer data, + ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_MODULE /// @brief Called when the connection state is changed. @@ -12402,82 +13207,6 @@ typedef Dartbt_avrcp_target_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the equalizer state. -/// @since_tizen 2.4 -abstract class bt_avrcp_equalizer_state_e { - /// < Equalizer Off - static const int BT_AVRCP_EQUALIZER_STATE_OFF = 1; - - /// < Equalizer On - static const int BT_AVRCP_EQUALIZER_STATE_ON = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the repeat mode. -/// @since_tizen 2.4 -abstract class bt_avrcp_repeat_mode_e { - /// < Repeat Off - static const int BT_AVRCP_REPEAT_MODE_OFF = 1; - - /// < Single track repeat - static const int BT_AVRCP_REPEAT_MODE_SINGLE_TRACK = 2; - - /// < All track repeat - static const int BT_AVRCP_REPEAT_MODE_ALL_TRACK = 3; - - /// < Group repeat - static const int BT_AVRCP_REPEAT_MODE_GROUP = 4; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the shuffle mode. -/// @since_tizen 2.4 -abstract class bt_avrcp_shuffle_mode_e { - /// < Shuffle Off - static const int BT_AVRCP_SHUFFLE_MODE_OFF = 1; - - /// < All tracks shuffle - static const int BT_AVRCP_SHUFFLE_MODE_ALL_TRACK = 2; - - /// < Group shuffle - static const int BT_AVRCP_SHUFFLE_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the scan mode. -/// @since_tizen 2.4 -abstract class bt_avrcp_scan_mode_e { - /// < Scan Off - static const int BT_AVRCP_SCAN_MODE_OFF = 1; - - /// < All tracks scan - static const int BT_AVRCP_SCAN_MODE_ALL_TRACK = 2; - - /// < Group scan - static const int BT_AVRCP_SCAN_MODE_GROUP = 3; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumerations for the player state. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_state_e { - /// < Stopped - static const int BT_AVRCP_PLAYER_STATE_STOPPED = 0; - - /// < Playing - static const int BT_AVRCP_PLAYER_STATE_PLAYING = 1; - - /// < Paused - static const int BT_AVRCP_PLAYER_STATE_PAUSED = 2; - - /// < Seek Forward - static const int BT_AVRCP_PLAYER_STATE_FORWARD_SEEK = 3; - - /// < Seek Rewind - static const int BT_AVRCP_PLAYER_STATE_REWIND_SEEK = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the equalizer state is changed by the remote control device. /// @since_tizen 2.3 @@ -12582,37 +13311,6 @@ typedef Dartbt_avrcp_track_info_changed_cbFunction = void Function( ffi.Pointer track, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Structure of Track metadata information. -/// @since_tizen 3.0 -/// -/// @see #bt_class_s -final class bt_avrcp_metadata_attributes_info_s extends ffi.Struct { - /// < Title - external ffi.Pointer title; - - /// < Artist - external ffi.Pointer artist; - - /// < Album name - external ffi.Pointer album; - - /// < Album Genre - external ffi.Pointer genre; - - /// < The total number of tracks - @ffi.UnsignedInt() - external int total_tracks; - - /// < Track number - @ffi.UnsignedInt() - external int number; - - /// < Duration - @ffi.UnsignedInt() - external int duration; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE /// @brief Called when the connection state is changed. /// @since_tizen 3.0 @@ -12630,32 +13328,6 @@ typedef Dartbt_avrcp_control_connection_state_changed_cbFunction = void Function(bool connected, ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_MODULE -/// @brief Enumeration for the player control commands. -/// @since_tizen 3.0 -abstract class bt_avrcp_player_command_e { - /// < Play - static const int BT_AVRCP_CONTROL_PLAY = 1; - - /// < Pause - static const int BT_AVRCP_CONTROL_PAUSE = 2; - - /// < Stop - static const int BT_AVRCP_CONTROL_STOP = 3; - - /// < Next Track - static const int BT_AVRCP_CONTROL_NEXT = 4; - - /// < Previous track - static const int BT_AVRCP_CONTROL_PREVIOUS = 5; - - /// < Fast Forward - static const int BT_AVRCP_CONTROL_FAST_FORWARD = 6; - - /// < Rewind - static const int BT_AVRCP_CONTROL_REWIND = 7; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is established. @@ -12687,19 +13359,6 @@ typedef Dartbt_hdp_connected_cbFunction = void Function( int channel, ffi.Pointer user_data); -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Enumerations for the data channel type. -/// @since_tizen 2.3 -/// @remarks Deprecated, because of no usecase and supported devices. -abstract class bt_hdp_channel_type_e { - /// < Reliable Data Channel - static const int BT_HDP_CHANNEL_TYPE_RELIABLE = 1; - - /// < Streaming Data Channel - static const int BT_HDP_CHANNEL_TYPE_STREAMING = 2; -} - /// @deprecated Deprecated since 5.0. /// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE /// @brief Called when the connection is disconnected. @@ -12723,82 +13382,34 @@ typedef Dartbt_hdp_disconnected_cbFunction = void Function( int result, ffi.Pointer remote_address, int channel, - ffi.Pointer user_data); - -/// @deprecated Deprecated since 5.0. -/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE -/// @brief Called when the you receive the data. -/// @since_tizen 2.3 -/// @remarks Deprecated, because of no usecase and supported devices. -/// -/// @param[in] channel The connected data channel -/// @param[in] data The received data -/// @param[in] size The size of received data (byte) -/// @param[in] user_data The user data passed from the callback registration function -/// @see bt_hdp_set_data_received_cb() -/// @see bt_hdp_unset_data_received_cb() -typedef bt_hdp_data_received_cb - = ffi.Pointer>; -typedef bt_hdp_data_received_cbFunction = ffi.Void Function( - ffi.UnsignedInt channel, - ffi.Pointer data, - ffi.UnsignedInt size, - ffi.Pointer user_data); -typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, - ffi.Pointer data, int size, ffi.Pointer user_data); - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief The handle of a service, characteristic or descriptor. -/// @since_tizen 2.3.1 -typedef bt_gatt_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the integer type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_int_e { - /// < 8 bit signed int type - static const int BT_DATA_TYPE_SINT8 = 0; - - /// < 16 bit signed int type - static const int BT_DATA_TYPE_SINT16 = 1; - - /// < 32 bit signed int type - static const int BT_DATA_TYPE_SINT32 = 2; - - /// < 8 bit unsigned int type - static const int BT_DATA_TYPE_UINT8 = 3; - - /// < 16 bit unsigned int type - static const int BT_DATA_TYPE_UINT16 = 4; - - /// < 32 bit unsigned int type - static const int BT_DATA_TYPE_UINT32 = 5; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the float type for GATT handle's value. -/// @since_tizen 2.3.1 -abstract class bt_data_type_float_e { - /// < 32 bit float type - static const int BT_DATA_TYPE_FLOAT = 0; + ffi.Pointer user_data); - /// < 16 bit float type - static const int BT_DATA_TYPE_SFLOAT = 1; -} +/// @deprecated Deprecated since 5.0. +/// @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE +/// @brief Called when the you receive the data. +/// @since_tizen 2.3 +/// @remarks Deprecated, because of no usecase and supported devices. +/// +/// @param[in] channel The connected data channel +/// @param[in] data The received data +/// @param[in] size The size of received data (byte) +/// @param[in] user_data The user data passed from the callback registration function +/// @see bt_hdp_set_data_received_cb() +/// @see bt_hdp_unset_data_received_cb() +typedef bt_hdp_data_received_cb + = ffi.Pointer>; +typedef bt_hdp_data_received_cbFunction = ffi.Void Function( + ffi.UnsignedInt channel, + ffi.Pointer data, + ffi.UnsignedInt size, + ffi.Pointer user_data); +typedef Dartbt_hdp_data_received_cbFunction = void Function(int channel, + ffi.Pointer data, int size, ffi.Pointer user_data); /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the GATT handle's type. +/// @brief The handle of a service, characteristic or descriptor. /// @since_tizen 2.3.1 -abstract class bt_gatt_type_e { - /// < GATT service type - static const int BT_GATT_TYPE_SERVICE = 1; - - /// < GATT characteristic type - static const int BT_GATT_TYPE_CHARACTERISTIC = 2; - - /// < GATT descriptor type - static const int BT_GATT_TYPE_DESCRIPTOR = 3; -} +typedef bt_gatt_h = ffi.Pointer; /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief The handle of a GATT client which is associated with a remote device. @@ -12825,17 +13436,6 @@ typedef bt_gatt_foreach_cbFunction = ffi.Bool Function(ffi.Int total, typedef Dartbt_gatt_foreach_cbFunction = bool Function(int total, int index, bt_gatt_h gatt_handle, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the write type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_write_type_e { - /// < Write without response type - static const int BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE = 0; - - /// < Write type - static const int BT_GATT_WRITE_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when the client request(e.g. read / write) has been completed. /// @since_tizen 2.3.1 @@ -12876,24 +13476,6 @@ typedef Dartbt_gatt_client_att_mtu_changed_cbFunction = void Function( ffi.Pointer mtu_info, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Attribute protocol MTU change information structure. -/// @since_tizen 4.0 -/// -/// @see bt_gatt_client_att_mtu_changed_cb() -final class bt_gatt_client_att_mtu_info_s extends ffi.Struct { - /// < The address of remote device - external ffi.Pointer remote_address; - - /// < MTU value - @ffi.UnsignedInt() - external int mtu; - - /// < Request status - @ffi.UnsignedInt() - external int status; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE /// @brief Called when a value of a watched characteristic's GATT handle has been changed. /// @since_tizen 2.3.1 @@ -12939,20 +13521,6 @@ typedef Dartbt_gatt_client_service_changed_cbFunction = void Function( ffi.Pointer service_uuid, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_CLIENT_MODULE -/// @brief Enumerations of gatt server's service changing mode. -/// @since_tizen 3.0 -abstract class bt_gatt_client_service_change_type_e { - /// < Service added - static const int BT_GATT_CLIENT_SERVICE_ADDED = 0; - - /// < Service removed - static const int BT_GATT_CLIENT_SERVICE_REMOVED = 1; - - /// < Resync is required (Since 6.5) - static const int BT_GATT_CLIENT_SERVICE_RESYNC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE /// @brief Called when the connection state is changed. /// @@ -12982,17 +13550,6 @@ typedef Dartbt_gatt_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE -/// @brief Enumerations of the service type. -/// @since_tizen 2.3.1 -abstract class bt_gatt_service_type_e { - /// < GATT primary service type - static const int BT_GATT_SERVICE_TYPE_PRIMARY = 1; - - /// < GATT secondary service type - static const int BT_GATT_SERVICE_TYPE_SECONDARY = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief The handle of a GATT server. /// @since_tizen 3.0 @@ -13107,17 +13664,6 @@ typedef Dartbt_gatt_server_write_value_requested_cbFunction = void Function( int len, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE -/// @brief Enumerations of the remote device request types for attributes. -/// @since_tizen 3.0 -abstract class bt_gatt_att_request_type_e { - /// < Read Requested - static const int BT_GATT_REQUEST_TYPE_READ = 0; - - /// < Write Requested - static const int BT_GATT_REQUEST_TYPE_WRITE = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE /// @brief Called when the sending notification / indication is done. /// @since_tizen 3.0 @@ -13185,37 +13731,6 @@ typedef Dartbt_pbap_connection_state_changed_cbFunction = void Function( ffi.Pointer remote_address, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of address book location for PBAP. -/// @since_tizen 3.0 -abstract class bt_pbap_address_book_source_e { - /// < Request for Addressbook from remote device - static const int BT_PBAP_SOURCE_DEVICE = 0; - - /// < Request for address book from SIM - static const int BT_PBAP_SOURCE_SIM = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of folder type. -/// @since_tizen 3.0 -abstract class bt_pbap_folder_type_e { - /// < Request for address book - static const int BT_PBAP_FOLDER_PHONE_BOOK = 0; - - /// < Request for incoming calls - static const int BT_PBAP_FOLDER_INCOMING = 1; - - /// < Request for outgoing calls - static const int BT_PBAP_FOLDER_OUTGOING = 2; - - /// < Request for missed calls - static const int BT_PBAP_FOLDER_MISSED = 3; - - /// < Request for combined calls - static const int BT_PBAP_FOLDER_COMBINED = 4; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook size calculation completes. /// @details The following error codes can be delivered: \n @@ -13243,31 +13758,6 @@ typedef Dartbt_pbap_phone_book_size_cbFunction = void Function( int size, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of vCard Formats. -/// @since_tizen 3.0 -abstract class bt_pbap_vcard_format_e { - /// < vCard format 2.1 (default) - static const int BT_PBAP_VCARD_FORMAT_VCARD21 = 0; - - /// < vCard format 3.0 - static const int BT_PBAP_VCARD_FORMAT_VCARD30 = 1; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of sorting orders. -/// @since_tizen 3.0 -abstract class bt_pbap_sort_order_e { - /// < Filter order indexed (default) - static const int BT_PBAP_ORDER_INDEXED = 0; - - /// < Filter order alphanumeric - static const int BT_PBAP_ORDER_ALPHANUMERIC = 1; - - /// < Filter order phonetic - static const int BT_PBAP_ORDER_PHONETIC = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE /// @brief Called when PBAP Phonebook Pull completes. /// @details The received phone book file will be saved in the platform downloads folder. \n @@ -13326,51 +13816,11 @@ typedef Dartbt_pbap_list_vcards_cbFunction = void Function( int count, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief The structure type containing vCard information. -/// @since_tizen 3.0 -/// -/// @see bt_pbap_client_pull_vcard() -final class bt_pbap_vcard_info_s extends ffi.Struct { - /// < The vcard index, used as a parameter for bt_pbap_client_pull_vcard() - @ffi.Int() - external int index; - - /// < The contact name of the vCard - external ffi.Pointer contact_name; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_PBAP_MODULE -/// @brief Enumeration of phone book search fields. -/// @since_tizen 3.0 -abstract class bt_pbap_search_field_e { - /// < Request for search by name (default) - static const int BT_PBAP_SEARCH_NAME = 0; - - /// < Request for search by phone number - static const int BT_PBAP_SEARCH_NUMBER = 1; - - /// < Request for search by sound - static const int BT_PBAP_SEARCH_SOUND = 2; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE /// @brief The handle of a Bluetooth LE scan filter. /// @since_tizen 4.0 typedef bt_scan_filter_h = ffi.Pointer; -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE -/// @brief Enumeration for the scan filter type. -/// @since_tizen 4.0 -/// @see bt_adapter_le_scan_filter_set_type() -abstract class bt_adapter_le_scan_filter_type_e { - /// < iBeacon filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON = 0; - - /// < Proximity UUID filter type - static const int BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID = 1; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE /// @brief Called when the l2cap channel socket connection state changes. /// @since_tizen 7.0 @@ -13401,32 +13851,6 @@ typedef Dartbt_socket_l2cap_channel_connection_state_changed_cbFunction ffi.Pointer connection, ffi.Pointer user_data); -/// @ingroup CAPI_NETWORK_BLUETOOTH_SOCKET_MODULE -/// @brief L2CAP CoC connection data used for exchanging data between Bluetooth devices. -/// @since_tizen 7.0 -/// -/// @see bt_socket_l2cap_channel_connection_state_changed_cb() -final class bt_socket_l2cap_le_connection_s extends ffi.Struct { - /// < The file descriptor of connected socket - @ffi.Int() - external int socket_fd; - - /// < The file descriptor of the server socket or -1 for client connection - @ffi.Int() - external int server_fd; - - /// < The local device role in this connection - @ffi.Int32() - external int local_role; - - /// < The remote device address - external ffi.Pointer remote_address; - - /// < The psm of the connected socket - @ffi.Int() - external int psm; -} - /// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE /// @brief Called when the LE advertisement has been found. /// @since_tizen 8.0 @@ -13449,34 +13873,3 @@ typedef Dartbt_adapter_le_new_scan_result_cbFunction = void Function( /// @brief The handle of a new scan result. /// @since_tizen 8.0 typedef bt_new_scan_result_h = ffi.Pointer; - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE -/// @brief Enumerations of the Bluetooth LE scan role. -/// @since_tizen 8.0 -abstract class bt_adapter_le_scan_role_e { - /// < Scan all - static const int BT_ADAPTER_LE_SCAN_ALL = 0; - - /// < Legacy scan only - static const int BT_ADAPTER_LE_SCAN_LEGACY_ONLY = 1; - - /// < Extended scan only - static const int BT_ADAPTER_LE_SCAN_EXTENDED_ONLY = 2; -} - -/// @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_ADV_EXT_MODULE -/// @brief Enumerations of the Bluetooth LE phy. -/// @since_tizen 8.0 -abstract class bt_adapter_le_phy_e { - /// < All phy - static const int BT_LE_ALL_PHY = 0; - - /// < 1M phy - static const int BT_LE_1M_PHY = 1; - - /// < 2M phy - static const int BT_LE_2M_PHY = 2; - - /// < Coded phy - static const int BT_LE_CODED_PHY = 3; -} diff --git a/lib/src/bindings/9.0/generated_bindings_capi_system_info.dart b/lib/src/bindings/9.0/generated_bindings_capi_system_info.dart index 0b7f95c3..1bfa422f 100644 --- a/lib/src/bindings/9.0/generated_bindings_capi_system_info.dart +++ b/lib/src/bindings/9.0/generated_bindings_capi_system_info.dart @@ -377,6 +377,38 @@ class Tizen90CapiSystemInfo { int Function(ffi.Pointer, ffi.Pointer)>(); } +/// @brief Enumeration for system information error codes. +abstract class system_info_error_e { + /// < Successful + static const int SYSTEM_INFO_ERROR_NONE = 0; + + /// < Invalid parameter + static const int SYSTEM_INFO_ERROR_INVALID_PARAMETER = -22; + + /// < Out of memory + static const int SYSTEM_INFO_ERROR_OUT_OF_MEMORY = -12; + + /// < An input/output error occurred when reading value from system + static const int SYSTEM_INFO_ERROR_IO_ERROR = -5; + + /// < No permission to use the API + static const int SYSTEM_INFO_ERROR_PERMISSION_DENIED = -13; + + /// < Not supported parameter (Since 3.0) + static const int SYSTEM_INFO_ERROR_NOT_SUPPORTED = -1073741822; +} + +/// @internal +/// @brief It is not decided if it should be opened to public. +abstract class system_info_type_e { + static const int SYSTEM_INFO_TYPE_MIN = 0; + static const int SYSTEM_INFO_BOOL = 0; + static const int SYSTEM_INFO_INT = 1; + static const int SYSTEM_INFO_DOUBLE = 2; + static const int SYSTEM_INFO_STRING = 3; + static const int SYSTEM_INFO_TYPE_MAX = 4; +} + /// @internal /// @brief Enumeration for system information key. abstract class system_info_key_e { @@ -425,14 +457,3 @@ abstract class system_info_key_e { /// < @internal Indicates whether the device supports tethering static const int SYSTEM_INFO_KEY_TETHERING_SUPPORTED = 14; } - -/// @internal -/// @brief It is not decided if it should be opened to public. -abstract class system_info_type_e { - static const int SYSTEM_INFO_TYPE_MIN = 0; - static const int SYSTEM_INFO_BOOL = 0; - static const int SYSTEM_INFO_INT = 1; - static const int SYSTEM_INFO_DOUBLE = 2; - static const int SYSTEM_INFO_STRING = 3; - static const int SYSTEM_INFO_TYPE_MAX = 4; -} diff --git a/lib/src/bindings/9.0/generated_bindings_mv_barcode_detector.dart b/lib/src/bindings/9.0/generated_bindings_mv_barcode_detector.dart index f20b602e..e0674899 100644 --- a/lib/src/bindings/9.0/generated_bindings_mv_barcode_detector.dart +++ b/lib/src/bindings/9.0/generated_bindings_mv_barcode_detector.dart @@ -83,6 +83,123 @@ class Tizen90MvBarcodeDetector { ffi.Pointer)>(); } +/// @brief Enumeration for supported barcode types. +/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported +/// +/// @since_tizen 2.4 +/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead +abstract class mv_barcode_type_e { + /// < 2D barcode - Quick Response code + static const int MV_BARCODE_QR = 0; + + /// < 1D barcode - Universal Product Code with 12-digit + static const int MV_BARCODE_UPC_A = 1; + + /// < 1D barcode - Universal Product Code with 6-digit + static const int MV_BARCODE_UPC_E = 2; + + /// < 1D barcode - International Article Number with 8-digit + static const int MV_BARCODE_EAN_8 = 3; + + /// < 1D barcode - International Article Number with 13-digit + static const int MV_BARCODE_EAN_13 = 4; + + /// < 1D barcode - Code 128 + static const int MV_BARCODE_CODE128 = 5; + + /// < 1D barcode - Code 39 + static const int MV_BARCODE_CODE39 = 6; + + /// < 1D barcode - Interleaved Two of Five + static const int MV_BARCODE_I2_5 = 7; + + /// < @deprecated Undefined (Deprecated since 6.0) + static const int MV_BARCODE_UNDEFINED = 8; + + /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_2 = 9; + + /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) + static const int MV_BARCODE_EAN_5 = 10; + + /// < 1D barcode - Code 93 (since 6.0) + static const int MV_BARCODE_CODE93 = 11; + + /// < 1D barcode - CODABAR (since 6.0) + static const int MV_BARCODE_CODABAR = 12; + + /// < 1D barcode - GS1 DATABAR (since 6.0) + static const int MV_BARCODE_DATABAR = 13; + + /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) + static const int MV_BARCODE_DATABAR_EXPAND = 14; + + /// < Unknown (since 6.0) + static const int MV_BARCODE_UNKNOWN = 100; +} + +/// @brief Enumeration for supported QR code error correction level. +/// +/// @since_tizen 2.4 +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_ecc_e { + /// < Recovery up to 7% losses + static const int MV_BARCODE_QR_ECC_LOW = 0; + + /// < Recovery up to 15% losses + static const int MV_BARCODE_QR_ECC_MEDIUM = 1; + + /// < Recovery up to 25% losses + static const int MV_BARCODE_QR_ECC_QUARTILE = 2; + + /// < Recovery up to 30% losses + static const int MV_BARCODE_QR_ECC_HIGH = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_ECC_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported QR code encoding mode. +/// +/// @since_tizen 2.4 +/// @remarks This is unavailable for 1D barcodes +abstract class mv_barcode_qr_mode_e { + /// < Numeric digits + static const int MV_BARCODE_QR_MODE_NUMERIC = 0; + + /// < Alphanumeric characters + static const int MV_BARCODE_QR_MODE_ALPHANUMERIC = 1; + + /// < Raw 8-bit bytes + static const int MV_BARCODE_QR_MODE_BYTE = 2; + + /// < UTF-8 character encoding + static const int MV_BARCODE_QR_MODE_UTF8 = 3; + + /// < Unavailable + static const int MV_BARCODE_QR_MODE_UNAVAILABLE = 4; +} + +/// @brief Enumeration for supported image formats for the barcode generating. +/// +/// @since_tizen 2.4 +abstract class mv_barcode_image_format_e { + /// < Unavailable image format + static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; + + /// < BMP image format + static const int MV_BARCODE_IMAGE_FORMAT_BMP = 0; + + /// < JPEG image format + static const int MV_BARCODE_IMAGE_FORMAT_JPG = 1; + + /// < PNG image format + static const int MV_BARCODE_IMAGE_FORMAT_PNG = 2; + + /// < The number of supported image format + static const int MV_BARCODE_IMAGE_FORMAT_NUM = 3; +} + /// @brief Enumeration to target attribute /// /// @since_tizen 2.4 @@ -153,61 +270,6 @@ typedef Dartmv_barcode_detected_cbFunction = void Function( int number_of_barcodes, ffi.Pointer user_data); -/// @brief Enumeration for supported barcode types. -/// @details QR codes (versions 1 to 40) and set of 1D barcodes are supported -/// -/// @since_tizen 2.4 -/// @remarks #MV_BARCODE_UNDEFINED is deprecated. Use #MV_BARCODE_UNKNOWN instead -abstract class mv_barcode_type_e { - /// < 2D barcode - Quick Response code - static const int MV_BARCODE_QR = 0; - - /// < 1D barcode - Universal Product Code with 12-digit - static const int MV_BARCODE_UPC_A = 1; - - /// < 1D barcode - Universal Product Code with 6-digit - static const int MV_BARCODE_UPC_E = 2; - - /// < 1D barcode - International Article Number with 8-digit - static const int MV_BARCODE_EAN_8 = 3; - - /// < 1D barcode - International Article Number with 13-digit - static const int MV_BARCODE_EAN_13 = 4; - - /// < 1D barcode - Code 128 - static const int MV_BARCODE_CODE128 = 5; - - /// < 1D barcode - Code 39 - static const int MV_BARCODE_CODE39 = 6; - - /// < 1D barcode - Interleaved Two of Five - static const int MV_BARCODE_I2_5 = 7; - - /// < @deprecated Undefined (Deprecated since 6.0) - static const int MV_BARCODE_UNDEFINED = 8; - - /// < 1D barcode - International Article Number with 2-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_2 = 9; - - /// < 1D barcode - International Article Number with 5-digit(add-on) (since 6.0) - static const int MV_BARCODE_EAN_5 = 10; - - /// < 1D barcode - Code 93 (since 6.0) - static const int MV_BARCODE_CODE93 = 11; - - /// < 1D barcode - CODABAR (since 6.0) - static const int MV_BARCODE_CODABAR = 12; - - /// < 1D barcode - GS1 DATABAR (since 6.0) - static const int MV_BARCODE_DATABAR = 13; - - /// < 1D barcode - GS1 DATABAR EXPAND(since 6.0) - static const int MV_BARCODE_DATABAR_EXPAND = 14; - - /// < Unknown (since 6.0) - static const int MV_BARCODE_UNKNOWN = 100; -} - const String MV_BARCODE_DETECT_ATTR_TARGET = 'MV_BARCODE_DETECT_ATTR_TARGET'; const String MV_BARCODE_DETECT_ATTR_ROTATION_DEGREES = diff --git a/lib/src/bindings/9.0/generated_bindings_mv_barcode_generator.dart b/lib/src/bindings/9.0/generated_bindings_mv_barcode_generator.dart index 02e10fdf..d29feb3b 100644 --- a/lib/src/bindings/9.0/generated_bindings_mv_barcode_generator.dart +++ b/lib/src/bindings/9.0/generated_bindings_mv_barcode_generator.dart @@ -279,7 +279,7 @@ abstract class _mv_barcode_type_e { /// /// @since_tizen 2.4 /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_mode_e { +abstract class _mv_barcode_qr_mode_e { /// < Numeric digits static const int MV_BARCODE_QR_MODE_NUMERIC = 0; @@ -300,7 +300,7 @@ abstract class mv_barcode_qr_mode_e { /// /// @since_tizen 2.4 /// @remarks This is unavailable for 1D barcodes -abstract class mv_barcode_qr_ecc_e { +abstract class _mv_barcode_qr_ecc_e { /// < Recovery up to 7% losses static const int MV_BARCODE_QR_ECC_LOW = 0; @@ -320,7 +320,7 @@ abstract class mv_barcode_qr_ecc_e { /// @brief Enumeration for supported image formats for the barcode generating. /// /// @since_tizen 2.4 -abstract class mv_barcode_image_format_e { +abstract class _mv_barcode_image_format_e { /// < Unavailable image format static const int MV_BARCODE_IMAGE_FORMAT_UNAVAILABLE = -1; diff --git a/lib/src/bindings/9.0/generated_bindings_mv_face.dart b/lib/src/bindings/9.0/generated_bindings_mv_face.dart index aa91d1f3..894c6b3d 100644 --- a/lib/src/bindings/9.0/generated_bindings_mv_face.dart +++ b/lib/src/bindings/9.0/generated_bindings_mv_face.dart @@ -1120,6 +1120,55 @@ class Tizen90MvFace { ffi.Pointer, ffi.Pointer)>(); } +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for eyes state type. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_eye_condition_recognize() +abstract class mv_face_eye_condition_e { + /// < Eyes are open + static const int MV_FACE_EYES_OPEN = 0; + + /// < Eyes are closed + static const int MV_FACE_EYES_CLOSED = 1; + + /// < The eyes condition wasn't determined + static const int MV_FACE_EYES_NOT_FOUND = 2; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for expression types can be determined for faces. +/// +/// @since_tizen 3.0 +/// +/// @see mv_face_facial_expression_recognize() +abstract class mv_face_facial_expression_e { + /// < Unknown face expression + static const int MV_FACE_UNKNOWN = 0; + + /// < Face expression is neutral + static const int MV_FACE_NEUTRAL = 1; + + /// < Face expression is smiling + static const int MV_FACE_SMILE = 2; + + /// < Face expression is sadness + static const int MV_FACE_SADNESS = 3; + + /// < Face expression is surprise + static const int MV_FACE_SURPRISE = 4; + + /// < Face expression is anger + static const int MV_FACE_ANGER = 5; + + /// < Face expression is fear + static const int MV_FACE_FEAR = 6; + + /// < Face expression is disgust + static const int MV_FACE_DISGUST = 7; +} + /// @deprecated Deprecated since 9.0 /// @brief Called when faces are detected for the @a source. /// @details This type callback can be invoked each time when @@ -1337,23 +1386,6 @@ typedef Dartmv_face_eye_condition_recognized_cbFunction = void Function( int eye_condition, ffi.Pointer user_data); -/// @deprecated Deprecated since 9.0 -/// @brief Enumeration for eyes state type. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_eye_condition_recognize() -abstract class mv_face_eye_condition_e { - /// < Eyes are open - static const int MV_FACE_EYES_OPEN = 0; - - /// < Eyes are closed - static const int MV_FACE_EYES_CLOSED = 1; - - /// < The eyes condition wasn't determined - static const int MV_FACE_EYES_NOT_FOUND = 2; -} - /// @deprecated Deprecated since 9.0 /// @brief Called when facial expression is recognized. /// @details This type callback can be invoked each time when @@ -1391,38 +1423,6 @@ typedef Dartmv_face_facial_expression_recognized_cbFunction = void Function( int facial_expression, ffi.Pointer user_data); -/// @deprecated Deprecated since 9.0 -/// @brief Enumeration for expression types can be determined for faces. -/// -/// @since_tizen 3.0 -/// -/// @see mv_face_facial_expression_recognize() -abstract class mv_face_facial_expression_e { - /// < Unknown face expression - static const int MV_FACE_UNKNOWN = 0; - - /// < Face expression is neutral - static const int MV_FACE_NEUTRAL = 1; - - /// < Face expression is smiling - static const int MV_FACE_SMILE = 2; - - /// < Face expression is sadness - static const int MV_FACE_SADNESS = 3; - - /// < Face expression is surprise - static const int MV_FACE_SURPRISE = 4; - - /// < Face expression is anger - static const int MV_FACE_ANGER = 5; - - /// < Face expression is fear - static const int MV_FACE_FEAR = 6; - - /// < Face expression is disgust - static const int MV_FACE_DISGUST = 7; -} - const String MV_FACE_DETECTION_MODEL_FILE_PATH = 'MV_FACE_DETECTION_MODEL_FILE_PATH'; diff --git a/lib/src/bindings/9.0/generated_bindings_mv_inference.dart b/lib/src/bindings/9.0/generated_bindings_mv_inference.dart index b1ef1687..27beda27 100644 --- a/lib/src/bindings/9.0/generated_bindings_mv_inference.dart +++ b/lib/src/bindings/9.0/generated_bindings_mv_inference.dart @@ -839,6 +839,169 @@ class Tizen90MvInference { ffi.Pointer)>(); } +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for inference backend. +/// #MV_INFERENCE_BACKEND_OPENCV An open source computer vision and machine learning +/// software library. +/// (https://opencv.org/about/) +/// #MV_INFERENCE_BACKEND_TFLITE Google-introduced open source inference engine for embedded systems, +/// which runs Tensorflow Lite model. +/// (https://www.tensorflow.org/lite/guide/get_started) +/// #MV_INFERENCE_BACKEND_ARMNN ARM-introduced open source inference engine for CPUs, GPUs and NPUs, which +/// enables efficient translation of existing neural network frameworks +/// such as TensorFlow, TensorFlow Lite and Caffes, allowing them to +/// run efficiently without modification on Embedded hardware. +/// (https://developer.arm.com/ip-products/processors/machine-learning/arm-nn) +/// #MV_INFERENCE_BACKEND_MLAPI Samsung-introduced open source ML single API framework of NNStreamer, which +/// runs various NN models via tensor filters of NNStreamer. (Deprecated since 7.0) +/// (https://github.com/nnstreamer/nnstreamer) +/// #MV_INFERENCE_BACKEND_ONE Samsung-introduced open source inference engine called On-device Neural Engine, which +/// performs inference of a given NN model on various devices such as CPU, GPU, DSP and NPU. +/// (https://github.com/Samsung/ONE) +/// +/// @since_tizen 5.5 +/// +/// @see mv_inference_prepare() +abstract class mv_inference_backend_type_e { + /// < None + static const int MV_INFERENCE_BACKEND_NONE = -1; + + /// < OpenCV + static const int MV_INFERENCE_BACKEND_OPENCV = 0; + + /// < TensorFlow-Lite + static const int MV_INFERENCE_BACKEND_TFLITE = 1; + + /// < @deprecated ARMNN (Since 6.0) (Deprecated since 8.0) + static const int MV_INFERENCE_BACKEND_ARMNN = 2; + + /// < @deprecated ML Single API of NNStreamer (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MLAPI = 3; + + /// < On-device Neural Engine (Since 6.0) + static const int MV_INFERENCE_BACKEND_ONE = 4; + + /// < NNTrainer (Since 7.0) + static const int MV_INFERENCE_BACKEND_NNTRAINER = 5; + + /// < SNPE Engine (Since 7.0) + static const int MV_INFERENCE_BACKEND_SNPE = 6; + + /// < @deprecated Backend MAX (Deprecated since 7.0) + static const int MV_INFERENCE_BACKEND_MAX = 7; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for inference target. +/// +/// @since_tizen 6.0 +abstract class mv_inference_target_device_e { + /// < None + static const int MV_INFERENCE_TARGET_DEVICE_NONE = 0; + + /// < CPU + static const int MV_INFERENCE_TARGET_DEVICE_CPU = 1; + + /// < GPU + static const int MV_INFERENCE_TARGET_DEVICE_GPU = 2; + + /// < CUSTOM + static const int MV_INFERENCE_TARGET_DEVICE_CUSTOM = 4; + + /// < Target MAX + static const int MV_INFERENCE_TARGET_DEVICE_MAX = 8; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for input data type. +/// +/// @since_tizen 6.0 +abstract class mv_inference_data_type_e { + /// < Data type of a given pre-trained model is float. + static const int MV_INFERENCE_DATA_FLOAT32 = 0; + + /// < Data type of a given pre-trained model is unsigned char. + static const int MV_INFERENCE_DATA_UINT8 = 1; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for human pose landmark. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_pose_landmark_e { + /// < Head of human pose + static const int MV_INFERENCE_HUMAN_POSE_HEAD = 1; + + /// < Neck of human pose + static const int MV_INFERENCE_HUMAN_POSE_NECK = 2; + + /// < Thorax of human pose + static const int MV_INFERENCE_HUMAN_POSE_THORAX = 3; + + /// < Right shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_SHOULDER = 4; + + /// < Right elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ELBOW = 5; + + /// < Right wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_WRIST = 6; + + /// < Left shoulder of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_SHOULDER = 7; + + /// < Left elbow of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ELBOW = 8; + + /// < Left wrist of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_WRIST = 9; + + /// < Pelvis of human pose + static const int MV_INFERENCE_HUMAN_POSE_PELVIS = 10; + + /// < Right hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_HIP = 11; + + /// < Right knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_KNEE = 12; + + /// < Right ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_RIGHT_ANKLE = 13; + + /// < Left hip of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_HIP = 14; + + /// < Left knee of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_KNEE = 15; + + /// < Left ankle of human pose + static const int MV_INFERENCE_HUMAN_POSE_LEFT_ANKLE = 16; +} + +/// @deprecated Deprecated since 9.0 +/// @brief Enumeration for human body parts. +/// +/// @since_tizen 6.0 +abstract class mv_inference_human_body_part_e { + /// < HEAD, NECK, and THORAX + static const int MV_INFERENCE_HUMAN_BODY_PART_HEAD = 1; + + /// < RIGHT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_RIGHT = 2; + + /// < LEFT SHOULDER, ELBOW, and WRIST + static const int MV_INFERENCE_HUMAN_BODY_PART_ARM_LEFT = 4; + + /// < THORAX, PELVIS, RIGHT HIP, and LEFT HIP + static const int MV_INFERENCE_HUMAN_BODY_PART_BODY = 8; + + /// < RIGHT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_RIGHT = 16; + + /// < LEFT HIP, KNEE, and ANKLE + static const int MV_INFERENCE_HUMAN_BODY_PART_LEG_LEFT = 32; +} + /// @deprecated Deprecated since 9.0 /// @brief The inference handle. /// @details Contains information about location of diff --git a/lib/src/bindings/9.0/generated_bindings_mv_landmark_detection.dart b/lib/src/bindings/9.0/generated_bindings_mv_landmark_detection.dart index 6a6f8cb6..2c385175 100644 --- a/lib/src/bindings/9.0/generated_bindings_mv_landmark_detection.dart +++ b/lib/src/bindings/9.0/generated_bindings_mv_landmark_detection.dart @@ -331,9 +331,320 @@ class Tizen90MvLandmarkDetection { _mv_facial_landmark_get_positionPtr.asFunction< int Function(mv_facial_landmark_h, int, ffi.Pointer, ffi.Pointer)>(); + + /// @brief Creates pose landmark object handle. + /// @details Use this function to create an pose landmark object handle. + /// After creation the handle has to be prepared with + /// mv_pose_landmark_prepare() function to prepare + /// a pose landmark object. + /// + /// @since_tizen 9.0 + /// + /// @param[out] handle The handle to the pose landmark object to be created + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INTERNAL Internal Error + /// + /// @post Release @a handle by using + /// mv_pose_landmark_destroy() function when it is not needed + /// anymore + /// + /// @code + /// #include + /// ... + /// mv_pose_landmark_h handle = NULL; + /// mv_pose_landmark_create(&handle); + /// ... + /// mv_pose_landmark_destroy(handle); + /// @endcode + /// + /// @see mv_pose_landmark_destroy() + int mv_pose_landmark_create( + ffi.Pointer handle, + ) { + return _mv_pose_landmark_create( + handle, + ); + } + + late final _mv_pose_landmark_createPtr = _lookup< + ffi + .NativeFunction)>>( + 'mv_pose_landmark_create'); + late final _mv_pose_landmark_create = _mv_pose_landmark_createPtr + .asFunction)>(); + + /// @brief Destroys pose landmark handle and releases all its resources. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the pose landmark object to be destroyed. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create an pose landmark handle by using mv_pose_landmark_create() + /// + /// @see mv_pose_landmark_create() + int mv_pose_landmark_destroy( + mv_pose_landmark_h handle, + ) { + return _mv_pose_landmark_destroy( + handle, + ); + } + + late final _mv_pose_landmark_destroyPtr = + _lookup>( + 'mv_pose_landmark_destroy'); + late final _mv_pose_landmark_destroy = _mv_pose_landmark_destroyPtr + .asFunction(); + + /// @brief Configures the backend to the inference handle. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + int mv_pose_landmark_configure( + mv_pose_landmark_h handle, + ) { + return _mv_pose_landmark_configure( + handle, + ); + } + + late final _mv_pose_landmark_configurePtr = + _lookup>( + 'mv_pose_landmark_configure'); + late final _mv_pose_landmark_configure = _mv_pose_landmark_configurePtr + .asFunction(); + + /// @brief Prepares inference. + /// @details Use this function to prepare inference based on + /// the configured network. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INVALID_DATA Invalid model data + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + int mv_pose_landmark_prepare( + mv_pose_landmark_h handle, + ) { + return _mv_pose_landmark_prepare( + handle, + ); + } + + late final _mv_pose_landmark_preparePtr = + _lookup>( + 'mv_pose_landmark_prepare'); + late final _mv_pose_landmark_prepare = _mv_pose_landmark_preparePtr + .asFunction(); + + /// @brief Inferences with a given facial on the @a source. + /// @details Use this function to inference with a given source. + /// + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the pose landmark object. + /// @param[in] source The handle to the source of the media. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an pose landmark handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an pose landmark by calling mv_pose_landmark_prepare() + /// + /// @par Inference Example + /// @snippet pose_landmark_sync.c PLD sync + int mv_pose_landmark_inference( + mv_pose_landmark_h handle, + mv_common.mv_source_h source, + ) { + return _mv_pose_landmark_inference( + handle, + source, + ); + } + + late final _mv_pose_landmark_inferencePtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_pose_landmark_h, + mv_common.mv_source_h)>>('mv_pose_landmark_inference'); + late final _mv_pose_landmark_inference = _mv_pose_landmark_inferencePtr + .asFunction(); + + /// @brief Performs asynchronously the pose landmark inference on the @a source. + /// + /// @since_tizen 9.0 + /// @remarks This function operates asynchronously, so it returns immediately upon invocation. + /// The inference results are inserted into the outgoing queue within the framework + /// in the order of processing, and the results can be obtained through mv_pose_landmark_get_result_count() + /// and mv_pose_landmark_get_position(). + /// + /// @param[in] handle The handle to the inference + /// @param[in] source The handle to the source of the media + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an inference by calling mv_pose_landmark_prepare() + /// + /// @par Async Inference Example + /// @snippet pose_landmark_async.c PLD async + int mv_pose_landmark_inference_async( + mv_pose_landmark_h handle, + mv_common.mv_source_h source, + ) { + return _mv_pose_landmark_inference_async( + handle, + source, + ); + } + + late final _mv_pose_landmark_inference_asyncPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_pose_landmark_h, + mv_common.mv_source_h)>>('mv_pose_landmark_inference_async'); + late final _mv_pose_landmark_inference_async = + _mv_pose_landmark_inference_asyncPtr.asFunction< + int Function(mv_pose_landmark_h, mv_common.mv_source_h)>(); + + /// @brief Gets the result count to objects. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// @param[out] frame_number A frame number inferenced. + /// @param[out] result_cnt A number of results. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an inference by calling mv_pose_landmark_prepare() + /// @pre Request an inference by calling mv_pose_landmark_inference() + int mv_pose_landmark_get_result_count( + mv_pose_landmark_h handle, + ffi.Pointer frame_number, + ffi.Pointer result_cnt, + ) { + return _mv_pose_landmark_get_result_count( + handle, + frame_number, + result_cnt, + ); + } + + late final _mv_pose_landmark_get_result_countPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_pose_landmark_h, + ffi.Pointer, + ffi.Pointer)>>( + 'mv_pose_landmark_get_result_count'); + late final _mv_pose_landmark_get_result_count = + _mv_pose_landmark_get_result_countPtr.asFunction< + int Function(mv_pose_landmark_h, ffi.Pointer, + ffi.Pointer)>(); + + /// @brief Gets the pose landmark position values to a given index. + /// + /// @since_tizen 9.0 + /// @remarks pos_x and pos_y arrays are allocated internally by the framework and will remain valid + /// until the handle is released. + /// Please do not deallocate them directly, and if you want to use them after the handle is released, + /// please copy them to user memory and use the copy. + /// + /// This function operates differently depending on the inference request method. + /// - After mv_facial_landmark_inference() calls, this function returns facial landmark positions immediately. + /// - After mv_facial_landmark_inference_async() calls, this function can be blocked until the asynchronous inference request is completed + /// or the timeout occurs if no result within 3 seconds. + /// + /// Additionally, after calling the mv_facial_landmark_inference_async function, the function operates + /// in asynchronous mode until the handle is released. + /// + /// @param[in] handle The handle to the inference + /// @param[in] index A result index. + /// @param[out] pos_x An array containing x-coordinate values. + /// @param[out] pos_y An array containing y-coordinate values. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_pose_landmark_create() + /// @pre Prepare an inference by calling mv_pose_landmark_configure() + /// @pre Prepare an inference by calling mv_pose_landmark_prepare() + /// @pre Prepare an inference by calling mv_pose_landmark_inference() + /// @pre Get result count by calling mv_pose_landmark_get_result_count() + int mv_pose_landmark_get_position( + mv_pose_landmark_h handle, + int index, + ffi.Pointer pos_x, + ffi.Pointer pos_y, + ) { + return _mv_pose_landmark_get_position( + handle, + index, + pos_x, + pos_y, + ); + } + + late final _mv_pose_landmark_get_positionPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_pose_landmark_h, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer)>>('mv_pose_landmark_get_position'); + late final _mv_pose_landmark_get_position = + _mv_pose_landmark_get_positionPtr.asFunction< + int Function(mv_pose_landmark_h, int, ffi.Pointer, + ffi.Pointer)>(); } /// @brief The facial landmark object handle. /// /// @since_tizen 9.0 typedef mv_facial_landmark_h = ffi.Pointer; + +/// @brief The pose landmark object handle. +/// +/// @since_tizen 9.0 +typedef mv_pose_landmark_h = ffi.Pointer; diff --git a/lib/src/bindings/9.0/generated_bindings_mv_object_detection.dart b/lib/src/bindings/9.0/generated_bindings_mv_object_detection.dart index 7d5c52f8..d0d40681 100644 --- a/lib/src/bindings/9.0/generated_bindings_mv_object_detection.dart +++ b/lib/src/bindings/9.0/generated_bindings_mv_object_detection.dart @@ -25,6 +25,321 @@ class Tizen90MvObjectDetection { lookup) : _lookup = lookup; + /// @brief Creates a inference handle for face detection object. + /// @details Use this function to create a inference handle. After the creation + /// the face detection task has to be prepared with + /// mv_face_detection_prepare() function to prepare a network + /// for the inference. + /// + /// @since_tizen 9.0 + /// + /// @remarks The @a handle should be released using mv_face_detection_destroy(). + /// + /// @param[out] handle The handle to the inference to be created. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INTERNAL Internal Error + /// + /// @code + /// #include + /// ... + /// mv_face_detection_h handle = NULL; + /// mv_face_detection_create(&handle); + /// ... + /// mv_face_detection_destroy(handle); + /// @endcode + /// + /// @see mv_face_detection_destroy() + /// @see mv_face_detection_prepare() + int mv_face_detection_create( + ffi.Pointer handle, + ) { + return _mv_face_detection_create( + handle, + ); + } + + late final _mv_face_detection_createPtr = _lookup< + ffi + .NativeFunction)>>( + 'mv_face_detection_create'); + late final _mv_face_detection_create = _mv_face_detection_createPtr + .asFunction)>(); + + /// @brief Destroys inference handle and releases all its resources. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference to be destroyed. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create inference handle by using mv_face_detection_create() + /// + /// @see mv_face_detection_create() + int mv_face_detection_destroy( + mv_face_detection_h handle, + ) { + return _mv_face_detection_destroy( + handle, + ); + } + + late final _mv_face_detection_destroyPtr = + _lookup>( + 'mv_face_detection_destroy'); + late final _mv_face_detection_destroy = _mv_face_detection_destroyPtr + .asFunction(); + + /// @brief Configures the backend for the face detection inference. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + /// + /// @pre Create an inference handle by calling mv_face_detection_create() + int mv_face_detection_configure( + mv_face_detection_h handle, + ) { + return _mv_face_detection_configure( + handle, + ); + } + + late final _mv_face_detection_configurePtr = + _lookup>( + 'mv_face_detection_configure'); + late final _mv_face_detection_configure = _mv_face_detection_configurePtr + .asFunction(); + + /// @brief Prepares the face detection inference. + /// @details Use this function to prepare the face detection inference based on + /// the configured network. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_INVALID_DATA Invalid model data + /// @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory + /// @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Not supported format + /// + /// @pre Prepare an inference by calling mv_face_detection_configure() + int mv_face_detection_prepare( + mv_face_detection_h handle, + ) { + return _mv_face_detection_prepare( + handle, + ); + } + + late final _mv_face_detection_preparePtr = + _lookup>( + 'mv_face_detection_prepare'); + late final _mv_face_detection_prepare = _mv_face_detection_preparePtr + .asFunction(); + + /// @brief Performs the face detection inference on the @a source. + /// + /// @since_tizen 9.0 + /// @remarks This function is synchronous and may take considerable time to run. + /// + /// @param[in] handle The handle to the inference + /// @param[in] source The handle to the source of the media + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// + /// @par Inference Example + /// @snippet face_detection_sync.c FD sync + int mv_face_detection_inference( + mv_face_detection_h handle, + mv_common.mv_source_h source, + ) { + return _mv_face_detection_inference( + handle, + source, + ); + } + + late final _mv_face_detection_inferencePtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_face_detection_h, + mv_common.mv_source_h)>>('mv_face_detection_inference'); + late final _mv_face_detection_inference = _mv_face_detection_inferencePtr + .asFunction(); + + /// @brief Performs asynchronously the face detection inference on the @a source. + /// + /// @since_tizen 9.0 + /// @remarks This function operates asynchronously, so it returns immediately upon invocation. + /// The inference results are inserted into the outgoing queue within the framework + /// in the order of processing, and the results can be obtained through mv_face_detection_get_result_count() + /// and mv_face_detection_get_bound_box(). + /// + /// @param[in] handle The handle to the inference + /// @param[in] source The handle to the source of the media + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace + /// isn't supported + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// + /// @par Async Inference Example + /// @snippet face_detection_async.c FD async + int mv_face_detection_inference_async( + mv_face_detection_h handle, + mv_common.mv_source_h source, + ) { + return _mv_face_detection_inference_async( + handle, + source, + ); + } + + late final _mv_face_detection_inference_asyncPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function(mv_face_detection_h, + mv_common.mv_source_h)>>('mv_face_detection_inference_async'); + late final _mv_face_detection_inference_async = + _mv_face_detection_inference_asyncPtr.asFunction< + int Function(mv_face_detection_h, mv_common.mv_source_h)>(); + + /// @brief Gets the face detection inference result on the @a handle. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// @param[out] frame_number A frame number inferenced. + /// @param[out] result_cnt A number of results. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// @pre Request an inference by calling mv_face_detection_inference() + int mv_face_detection_get_result_count( + mv_face_detection_h handle, + ffi.Pointer frame_number, + ffi.Pointer result_cnt, + ) { + return _mv_face_detection_get_result_count( + handle, + frame_number, + result_cnt, + ); + } + + late final _mv_face_detection_get_result_countPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_face_detection_h, + ffi.Pointer, + ffi.Pointer)>>( + 'mv_face_detection_get_result_count'); + late final _mv_face_detection_get_result_count = + _mv_face_detection_get_result_countPtr.asFunction< + int Function(mv_face_detection_h, ffi.Pointer, + ffi.Pointer)>(); + + /// @brief Gets a bound box to detected face region. + /// + /// @since_tizen 9.0 + /// + /// @param[in] handle The handle to the inference + /// @param[in] index A result index. + /// @param[out] left An left position of bound box. + /// @param[out] top An top position of bound box. + /// @param[out] right An right position of bound box. + /// @param[out] bottom An bottom position of bound box. + /// + /// @return @c 0 on success, otherwise a negative error value + /// @retval #MEDIA_VISION_ERROR_NONE Successful + /// @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported + /// @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter + /// + /// @pre Create a source handle by calling mv_create_source() + /// @pre Create an inference handle by calling mv_face_detection_create() + /// @pre Prepare an inference by calling mv_face_detection_configure() + /// @pre Prepare an inference by calling mv_face_detection_prepare() + /// @pre Request an inference by calling mv_face_detection_inference() + /// @pre Get result count by calling mv_face_detection_get_result_count() + int mv_face_detection_get_bound_box( + mv_face_detection_h handle, + int index, + ffi.Pointer left, + ffi.Pointer top, + ffi.Pointer right, + ffi.Pointer bottom, + ) { + return _mv_face_detection_get_bound_box( + handle, + index, + left, + top, + right, + bottom, + ); + } + + late final _mv_face_detection_get_bound_boxPtr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + mv_face_detection_h, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('mv_face_detection_get_bound_box'); + late final _mv_face_detection_get_bound_box = + _mv_face_detection_get_bound_boxPtr.asFunction< + int Function( + mv_face_detection_h, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + /// @brief Creates a inference handle for object detection object. /// @details Use this function to create a inference handle. After the creation /// the object detection 3d task has to be prepared with @@ -336,6 +651,11 @@ class Tizen90MvObjectDetection { ffi.Pointer)>(); } +/// @brief The face detection object handle. +/// +/// @since_tizen 9.0 +typedef mv_face_detection_h = ffi.Pointer; + /// @brief The object detection object handle. /// /// @since_tizen 9.0 diff --git a/lib/src/bindings/9.0/generated_bindings_tbm.dart b/lib/src/bindings/9.0/generated_bindings_tbm.dart index a425618d..5578a4cf 100644 --- a/lib/src/bindings/9.0/generated_bindings_tbm.dart +++ b/lib/src/bindings/9.0/generated_bindings_tbm.dart @@ -449,6 +449,8 @@ class Tizen90Tbm { _tbm_surface_get_formatPtr.asFunction(); } +final class _tbm_surface extends ffi.Opaque {} + /// @brief Enumeration for tbm_surface error type. /// @since_tizen 2.3 abstract class tbm_surface_error_e { @@ -544,12 +546,128 @@ typedef tbm_surface_plane_s = _tbm_surface_plane; /// @since_tizen 2.3 typedef tbm_surface_h = ffi.Pointer<_tbm_surface>; -final class _tbm_surface extends ffi.Opaque {} - /// @brief Definition for the TBM surface information struct. /// @since_tizen 2.3 typedef tbm_surface_info_s = _tbm_surface_info; +const int TBM_FORMAT_C8 = 538982467; + +const int TBM_FORMAT_RGB332 = 943867730; + +const int TBM_FORMAT_BGR233 = 944916290; + +const int TBM_FORMAT_XRGB4444 = 842093144; + +const int TBM_FORMAT_XBGR4444 = 842089048; + +const int TBM_FORMAT_RGBX4444 = 842094674; + +const int TBM_FORMAT_BGRX4444 = 842094658; + +const int TBM_FORMAT_ARGB4444 = 842093121; + +const int TBM_FORMAT_ABGR4444 = 842089025; + +const int TBM_FORMAT_RGBA4444 = 842088786; + +const int TBM_FORMAT_BGRA4444 = 842088770; + +const int TBM_FORMAT_XRGB1555 = 892424792; + +const int TBM_FORMAT_XBGR1555 = 892420696; + +const int TBM_FORMAT_RGBX5551 = 892426322; + +const int TBM_FORMAT_BGRX5551 = 892426306; + +const int TBM_FORMAT_ARGB1555 = 892424769; + +const int TBM_FORMAT_ABGR1555 = 892420673; + +const int TBM_FORMAT_RGBA5551 = 892420434; + +const int TBM_FORMAT_BGRA5551 = 892420418; + +const int TBM_FORMAT_RGB565 = 909199186; + +const int TBM_FORMAT_BGR565 = 909199170; + +const int TBM_FORMAT_RGB888 = 875710290; + +const int TBM_FORMAT_BGR888 = 875710274; + +const int TBM_FORMAT_XRGB8888 = 875713112; + +const int TBM_FORMAT_XBGR8888 = 875709016; + +const int TBM_FORMAT_RGBX8888 = 875714642; + +const int TBM_FORMAT_BGRX8888 = 875714626; + +const int TBM_FORMAT_ARGB8888 = 875713089; + +const int TBM_FORMAT_ABGR8888 = 875708993; + +const int TBM_FORMAT_RGBA8888 = 875708754; + +const int TBM_FORMAT_BGRA8888 = 875708738; + +const int TBM_FORMAT_XRGB2101010 = 808669784; + +const int TBM_FORMAT_XBGR2101010 = 808665688; + +const int TBM_FORMAT_RGBX1010102 = 808671314; + +const int TBM_FORMAT_BGRX1010102 = 808671298; + +const int TBM_FORMAT_ARGB2101010 = 808669761; + +const int TBM_FORMAT_ABGR2101010 = 808665665; + +const int TBM_FORMAT_RGBA1010102 = 808665426; + +const int TBM_FORMAT_BGRA1010102 = 808665410; + +const int TBM_FORMAT_YUYV = 1448695129; + +const int TBM_FORMAT_YVYU = 1431918169; + +const int TBM_FORMAT_UYVY = 1498831189; + +const int TBM_FORMAT_VYUY = 1498765654; + +const int TBM_FORMAT_AYUV = 1448433985; + +const int TBM_FORMAT_NV12 = 842094158; + +const int TBM_FORMAT_NV21 = 825382478; + +const int TBM_FORMAT_NV16 = 909203022; + +const int TBM_FORMAT_NV61 = 825644622; + +const int TBM_FORMAT_YUV410 = 961959257; + +const int TBM_FORMAT_YVU410 = 961893977; + +const int TBM_FORMAT_YUV411 = 825316697; + +const int TBM_FORMAT_YVU411 = 825316953; + +const int TBM_FORMAT_YUV420 = 842093913; + +const int TBM_FORMAT_YVU420 = 842094169; + +const int TBM_FORMAT_YUV422 = 909202777; + +const int TBM_FORMAT_YVU422 = 909203033; + +const int TBM_FORMAT_YUV444 = 875713881; + +const int TBM_FORMAT_YVU444 = 875714137; + +const int TBM_FORMAT_NV12MT = 842091860; + const int TBM_SURF_PLANE_MAX = 4; const int TBM_SURF_OPTION_READ = 1;