aboutsummaryrefslogtreecommitdiffstats
path: root/android/ui-core-protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'android/ui-core-protocol.h')
-rw-r--r--android/ui-core-protocol.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/android/ui-core-protocol.h b/android/ui-core-protocol.h
index f461d21..16f49df 100644
--- a/android/ui-core-protocol.h
+++ b/android/ui-core-protocol.h
@@ -52,4 +52,38 @@ void android_core_set_network_enabled(int enabled);
void android_core_tracing_start(void);
void android_core_tracing_stop(void);
+/* Gets an entry in android_netspeeds array defined in net-android.c
+ * Parameters:
+ * index - Index of the entry to get from the array.
+ * netspeed - Upon successful return contains copy of the requested entry.
+ * Return:
+ * 0 on success, or -1 if requested entry index is too large.
+ */
+int android_core_get_android_netspeed(int index, NetworkSpeed* netspeed);
+
+/* Gets an entry in android_netdelays array defined in net-android.c
+ * Parameters:
+ * index - Index of the entry to get from the array.
+ * netspeed - Upon successful return contains copy of the requested entry.
+ * Return:
+ * 0 on success, or -1 if requested entry index is too large.
+ */
+int android_core_get_android_netdelay(int index, NetworkLatency* delay);
+
+/* Get name of a given audio backend.
+ * Parameters
+ * is_input - If 1, routine should lookup for input audio backend, if zero,
+ * routine should lookup for output audio backend.
+ * index - Index of the registered audio backend to lookup.
+ * name - Upon successful return contains backend name.
+ * name_buf_size - name buffer size (in characters).
+ * descr - Upon successful return contains backend description.
+ * descr_buf_size - descre buffer size (in characters).
+ * Return:
+ * 0 on success, or -1 if requested backend has not been found.
+ */
+int android_core_audio_get_backend_name(int is_input, int index,
+ char* name, size_t name_buf_size,
+ char* descr, size_t descr_buf_size);
+
#endif // QEMU_ANDROID_UI_CORE_PROTOCOL_H