From 1719796a3a10eccf91eadb38c019829110e96294 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 29 Jun 2018 11:20:51 +0800 Subject: update get_devices --- device.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'device.h') 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 } -- cgit v1.2.3