2019-02-08 17:40:13 +01:00
|
|
|
// Matrix Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
|
|
|
|
namespace ircd::m::sync
|
|
|
|
{
|
2019-02-24 20:59:53 +01:00
|
|
|
static bool device_lists_polylog(data &);
|
|
|
|
static bool device_lists_linear(data &);
|
2019-02-08 17:40:13 +01:00
|
|
|
|
|
|
|
extern item device_lists;
|
|
|
|
}
|
|
|
|
|
2019-09-09 21:05:53 +02:00
|
|
|
ircd::mapi::header
|
|
|
|
IRCD_MODULE
|
|
|
|
{
|
|
|
|
"Client Sync :Device Lists"
|
|
|
|
};
|
|
|
|
|
2019-02-08 17:40:13 +01:00
|
|
|
decltype(ircd::m::sync::device_lists)
|
|
|
|
ircd::m::sync::device_lists
|
|
|
|
{
|
|
|
|
"device_lists",
|
|
|
|
device_lists_polylog,
|
|
|
|
device_lists_linear
|
|
|
|
};
|
|
|
|
|
2019-02-24 20:59:53 +01:00
|
|
|
bool
|
2019-02-08 17:40:13 +01:00
|
|
|
ircd::m::sync::device_lists_linear(data &data)
|
|
|
|
{
|
2019-02-24 20:59:53 +01:00
|
|
|
return false;
|
2019-02-08 17:40:13 +01:00
|
|
|
}
|
|
|
|
|
2019-02-24 20:59:53 +01:00
|
|
|
bool
|
2019-02-08 17:40:13 +01:00
|
|
|
ircd::m::sync::device_lists_polylog(data &data)
|
|
|
|
{
|
|
|
|
json::stack::array
|
|
|
|
{
|
2019-02-27 00:50:58 +01:00
|
|
|
*data.out, "changed"
|
2019-02-08 17:40:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
json::stack::array
|
|
|
|
{
|
2019-02-27 00:50:58 +01:00
|
|
|
*data.out, "left"
|
2019-02-08 17:40:13 +01:00
|
|
|
};
|
2019-02-24 20:59:53 +01:00
|
|
|
|
|
|
|
return false;
|
2019-02-08 17:40:13 +01:00
|
|
|
}
|