diff --git a/libp2panda/include/.p2panda.h.swo b/libp2panda/include/.p2panda.h.swo deleted file mode 100644 index ad46322..0000000 Binary files a/libp2panda/include/.p2panda.h.swo and /dev/null differ diff --git a/libp2panda/include/p2panda.h b/libp2panda/include/p2panda.h index 8f1eaed..75448fd 100644 --- a/libp2panda/include/p2panda.h +++ b/libp2panda/include/p2panda.h @@ -172,7 +172,7 @@ typedef enum P2PANDA_TOPIC_FLAGS_PERSISTENT, P2PANDA_TOPIC_FLAGS_EPHEMERAL, P2PANDA_TOPIC_FLAGS_FROM_START, -} P2pandaMdnsDiscoveryMode; +} P2pandaTopicFlags; GType p2panda_topic_flags_get_type(void); @@ -307,8 +307,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(P2pandaRelayUrl, p2panda_relay_url_free) /** * p2panda_node_new: + * @private_key: (nullable): The private key to be used for this node * @database_url: (nullable): A sqlite address - * @default_migrations: Whether to apply default migrations * @network_id: (nullable): The network id of the network to join * @relay_url: (nullable): The url of a iroh Relay Server * @bootstrap_node_id: (nullable): The address of the bootstrap node @@ -320,7 +320,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(P2pandaRelayUrl, p2panda_relay_url_free) */ P2pandaNode *p2panda_node_new(P2pandaPrivateKey *private_key, const char *database_url, - gboolean default_migrations, P2pandaNetworkId *network_id, GUri *relay_url, P2pandaNodeId *bootstrap_node_id, diff --git a/p2panda-gobject/src/boxed.rs b/p2panda-gobject/src/boxed.rs deleted file mode 100644 index 87bfff8..0000000 --- a/p2panda-gobject/src/boxed.rs +++ /dev/null @@ -1,10 +0,0 @@ - -Signature? -Hash? -PublicKey? -Topic (acutally just a Hash or [u8; 32]) - -// No need to expose initially -// Operation -// Header -// Extensions (no idea how they will work ) diff --git a/p2panda-gobject/src/stream_handle.rs b/p2panda-gobject/src/stream_handle.rs deleted file mode 100644 index 11ab9df..0000000 --- a/p2panda-gobject/src/stream_handle.rs +++ /dev/null @@ -1 +0,0 @@ -// GObject with signal emitted on incomming messages diff --git a/tests/libp2panda.py b/tests/libp2panda.py index b2db961..e5ceacb 100755 --- a/tests/libp2panda.py +++ b/tests/libp2panda.py @@ -23,7 +23,7 @@ def main(): assert private_key public_key = private_key.get_public_key() assert public_key - node = P2panda.Node.new(private_key, None, True, network_id, None, None, P2panda.MdnsDiscoveryMode.ACTIVE) + node = P2panda.Node.new(private_key, None, network_id, None, None, P2panda.MdnsDiscoveryMode.ACTIVE) assert node global async_tests_remaining @@ -32,7 +32,7 @@ def main(): node.spawn_async(None, node_spawn_cb, None); private_key2 = P2panda.PrivateKey.new() - node2 = P2panda.Node.new(private_key2, None, True, network_id, None, None, P2panda.MdnsDiscoveryMode.ACTIVE) + node2 = P2panda.Node.new(private_key2, None, network_id, None, None, P2panda.MdnsDiscoveryMode.ACTIVE) assert node2 node2.spawn_async(None, node2_spawn_cb, None);