diff --git a/CMakeLists.txt b/CMakeLists.txt index 5171586..796e80a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ add_executable(wormhole ${sources}) # General includes include(CTest) +find_package(RapidJSON) find_package(PkgConfig REQUIRED) find_package(Threads REQUIRED) find_package(SQLite3) @@ -66,6 +67,7 @@ include_directories(wormhole ${LIBMICROHTTPD_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIRS} ${SQLite3_INCLUDE_DIRS} + ${RapidJSON_INCLUDE_DIRS} src/ ) @@ -78,4 +80,5 @@ target_link_libraries(wormhole ${CMAKE_DL_LIBS} ${LIBMICROHTTPD_LIBRARIES} ${YAML_CPP_LIBRARIES} ${SQLite3_LIBRARIES} + ${RapidJSON_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) diff --git a/src/protocol/webfinger/webfinger.cpp b/src/protocol/webfinger/webfinger.cpp new file mode 100644 index 0000000..5f43651 --- /dev/null +++ b/src/protocol/webfinger/webfinger.cpp @@ -0,0 +1,26 @@ +/* + * Wormhole - Federated social network + * Copyright (C) 2022 Nekobit + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#include "webfinger.h" + +using namespace Protocol; + +void init_webfinger() +{ + +} diff --git a/src/protocol/webfinger/webfinger.h b/src/protocol/webfinger/webfinger.h new file mode 100644 index 0000000..5f7229c --- /dev/null +++ b/src/protocol/webfinger/webfinger.h @@ -0,0 +1,27 @@ +/* + * Wormhole - Federated social network + * Copyright (C) 2022 Nekobit + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#pragma once + +namespace Protocol +{ + namespace Webfinger + { + + } +}