forked from cory/tildefriends
Expose stored connections to script, and only store connections that were explicitly requested.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4131 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
12
src/ssb.db.h
12
src/ssb.db.h
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "ssb.h"
|
||||
|
||||
#include <quickjs.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
@ -41,3 +43,13 @@ const char** tf_ssb_db_following_deep(tf_ssb_t* ssb, const char** ids, int count
|
||||
const char** tf_ssb_db_get_all_visible_identities(tf_ssb_t* ssb, int depth);
|
||||
|
||||
void tf_ssb_db_private(sqlite3* db);
|
||||
|
||||
typedef struct _tf_ssb_db_stored_connection_t
|
||||
{
|
||||
char address[256];
|
||||
int port;
|
||||
char pubkey[k_id_base64_len];
|
||||
} tf_ssb_db_stored_connection_t;
|
||||
|
||||
tf_ssb_db_stored_connection_t* tf_ssb_db_get_stored_connections(tf_ssb_t* ssb, int* out_count);
|
||||
void tf_ssb_db_forget_stored_connection(tf_ssb_t* ssb, const char* address, int port, const char* pubkey);
|
||||
|
Reference in New Issue
Block a user