diff options
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 } |