summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'device.h')
-rw-r--r--device.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/device.h b/device.h
index d1234e7..69bc43c 100644
--- a/device.h
+++ b/device.h
@@ -6,7 +6,15 @@
extern "C" {
#endif /* } */
-void get_devices(matrix_session *sess);
+typedef struct
+{
+ char *device_id;
+ char *display_name;
+ char *last_seen_ip;
+ int64_t last_seen_ts;
+} matrix_device;
+
+matrix_device * get_devices(matrix_session *sess, int *n);
#ifdef __cplusplus
}