From 76991d70823fd95b585e1b59578c3f0bea7d3132 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 28 Nov 2022 18:39:50 +0200 Subject: [PATCH] Renamed `TUNAdapter` -> `Adapter` --- README.md | 4 ++-- source/libtun/adapter.d | 2 +- source/libtun/testing/app.d | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3e6bcc1..2d627ce 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,9 @@ First add it to your dub-based project via: dub add libtun ``` -### `TUNAdapter` +### `Adapter` -The `TUNAdapter` class provides you with all you need to get started. One can construct a new adapter as follows: +The `Adapter` class provides you with all you need to get started. One can construct a new adapter as follows: ```d import libtun.adapter; diff --git a/source/libtun/adapter.d b/source/libtun/adapter.d index d0e04a4..4eeb682 100644 --- a/source/libtun/adapter.d +++ b/source/libtun/adapter.d @@ -16,7 +16,7 @@ import libtun.tunctl; // extern (C) int tunWrite(int fd, char* data, int length); // extern (C) int tunRead(int fd, char* data, int amount); -public class TUNAdapter +public class Adapter { /* Tunnel device descriptor */ private int tunFD; diff --git a/source/libtun/testing/app.d b/source/libtun/testing/app.d index db05122..e394ddf 100644 --- a/source/libtun/testing/app.d +++ b/source/libtun/testing/app.d @@ -8,7 +8,7 @@ import core.thread; void main() { writeln("Edit source/app.d to start your project."); - TUNAdapter adapter = new TUNAdapter("testInterface0"); + Adapter adapter = new Adapter("testInterface0"); while(true) {