What was ssb.rpc.c now lives in ssb.js.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3663 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-09-09 00:37:02 +00:00
parent 3b4f0c1321
commit 059392df8e
5 changed files with 5 additions and 705 deletions

View File

@ -2,7 +2,6 @@
#include "ssb.connections.h"
#include "ssb.db.h"
#include "ssb.rpc.h"
#include "trace.h"
#include <assert.h>
@ -125,7 +124,6 @@ typedef struct _tf_ssb_t {
tf_ssb_connection_t* connections;
tf_ssb_connections_t* connections_tracker;
tf_ssb_rpc_t* rpc_state;
void (*broadcasts_changed)(tf_ssb_t* ssb, void* user_data);
void* broadcasts_changed_user_data;
@ -1347,7 +1345,6 @@ tf_ssb_t* tf_ssb_create(uv_loop_t* loop, JSContext* context, sqlite3* db, const
_tf_ssb_save_keys(ssb);
}
ssb->rpc_state = tf_ssb_rpc_create(ssb);
ssb->connections_tracker = tf_ssb_connections_create(ssb);
return ssb;
@ -1363,11 +1360,6 @@ uv_loop_t* tf_ssb_get_loop(tf_ssb_t* ssb)
return ssb->loop;
}
tf_ssb_rpc_t* tf_ssb_get_rpc(tf_ssb_t* ssb)
{
return ssb->rpc_state;
}
void tf_ssb_generate_keys(tf_ssb_t* ssb)
{
crypto_sign_ed25519_keypair(ssb->pub, ssb->priv);
@ -1407,9 +1399,6 @@ void tf_ssb_destroy(tf_ssb_t* ssb)
}
}
tf_ssb_rpc_destroy(ssb->rpc_state);
ssb->rpc_state = NULL;
if (ssb->broadcast_listener.data && !uv_is_closing((uv_handle_t*)&ssb->broadcast_listener)) {
uv_close((uv_handle_t*)&ssb->broadcast_listener, _tf_ssb_on_handle_close);
}