diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-06-29 11:20:51 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-06-29 11:20:51 +0800 |
commit | 1719796a3a10eccf91eadb38c019829110e96294 (patch) | |
tree | 47ff1e6401fd5202aad0eccacb94bb19550f294f /device.h | |
parent | b065c82627d83d1b207985d78276eb80f0b7b266 (diff) | |
download | matrix-curl-1719796a3a10eccf91eadb38c019829110e96294.tar.xz |
update get_devices
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 } |