Remove s from end of start tunnel function name

This commit is contained in:
Jackson Coxson 2022-06-25 16:45:20 -06:00
parent 443d540025
commit 3ad2ad4540
2 changed files with 2 additions and 3 deletions

View file

@ -4,7 +4,6 @@
#include <stdint.h>
#include <stdlib.h>
/**
* The capacity of the channel for received IP packets.
*/
@ -87,4 +86,4 @@ struct PortForwardConfig *onetun_new_port_forward(const char *source,
* # Safety
* All pointers must be valid and not null.
*/
int32_t onetun_start_tunnels(struct Config *config, struct Bus *bus);
int32_t onetun_start_tunnel(struct Config *config, struct Bus *bus);

View file

@ -20,7 +20,7 @@ use crate::{
/// # Safety
/// All pointers must be valid and not null.
#[no_mangle]
pub unsafe extern "C" fn onetun_start_tunnels(config: *mut config::Config, bus: *mut Bus) -> i32 {
pub unsafe extern "C" fn onetun_start_tunnel(config: *mut config::Config, bus: *mut Bus) -> i32 {
// Unbox the structs
let config = *(std::boxed::Box::from_raw(config));
let bus = *(std::boxed::Box::from_raw(bus));