mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:05:10 +00:00
[ADD] Ping homeserver to see if Parsee works
This commit is contained in:
parent
7f41a85a8a
commit
5d13410ac4
5 changed files with 75 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ extern void ASAuthenticateRequest(const ParseeConfig *, HttpClientContext *);
|
|||
extern bool ASRegisterUser(const ParseeConfig *, char *);
|
||||
|
||||
/* Pings the homeserver to get attention. */
|
||||
extern void ASPing(const ParseeConfig *);
|
||||
extern bool ASPing(const ParseeConfig *);
|
||||
|
||||
/** Joins a room from an {id} and a given {user} we want to masquerade
|
||||
* as.
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ typedef struct ParseeCmdArg {
|
|||
X_ROUTE("/_matrix/app/v1/transactions/(.*)", RouteTxns) \
|
||||
X_ROUTE("/_matrix/app/v1/users/(.*)", RouteUserAck) \
|
||||
X_ROUTE("/_matrix/app/v1/rooms/(.*)", RouteRoomAck) \
|
||||
X_ROUTE("/_matrix/app/v1/ping", RoutePing) \
|
||||
X_ROUTE("/_matrix/client/v1/media/download/(.*)/(.*)", RouteMedia)
|
||||
|
||||
#define X_ROUTE(path, name) extern void * name(Array *, void *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue