Move module/include/api.h to module/api.h

This commit is contained in:
Perttu Ahola 2014-09-19 15:54:23 +03:00
parent f4862fdc0d
commit 601de946b7
12 changed files with 15 additions and 17 deletions

View File

@ -3,8 +3,8 @@
#include "interface/server.h"
#include "interface/event.h"
#include "interface/fs.h"
#include "client_file/include/api.h"
#include "network/include/api.h"
#include "client_file/api.h"
#include "network/api.h"
#include <cereal/archives/binary.hpp>
#include <cereal/types/string.hpp>
#include <fstream>

View File

@ -1,6 +1,6 @@
#pragma once
#include "interface/event.h"
#include "network/include/api.h"
#include "network/api.h"
namespace client_file
{

View File

@ -3,8 +3,8 @@
#include "interface/server.h"
#include "interface/event.h"
#include "interface/sha1.h"
#include "client_file/include/api.h"
#include "network/include/api.h"
#include "client_file/api.h"
#include "network/api.h"
#include <cereal/archives/binary.hpp>
#include <cereal/types/string.hpp>
#include <fstream>

View File

@ -3,8 +3,8 @@
#include "interface/server.h"
#include "interface/event.h"
#include "interface/fs.h"
#include "client_file/include/api.h"
#include "network/include/api.h"
#include "client_file/api.h"
#include "network/api.h"
#include <cereal/archives/binary.hpp>
#include <cereal/types/string.hpp>
#include <fstream>

View File

@ -3,7 +3,7 @@
#include "interface/event.h"
#include "interface/tcpsocket.h"
#include "interface/packet_stream.h"
#include "network/include/api.h"
#include "network/api.h"
#include "core/log.h"
//#include <cereal/archives/binary.hpp>
//#include <cereal/types/string.hpp>

View File

@ -23,8 +23,7 @@ Module structure
module
|-- deps.txt << Module and extension dependencies
|-- <module>.cpp << Server-side code
|-- include
| `-- api.h << Structures for interfacing between modules
|-- api.h << Structures for interfacing between modules
|-- client_lua
| `-- init.lua << Client-side code (by convention)
`-- client_data

View File

@ -1,10 +1,10 @@
#include "interface/module.h"
#include "interface/server.h"
#include "interface/event.h"
#include "test1/include/api.h"
//#include "client_lua/include/api.h"
#include "client_file/include/api.h"
#include "network/include/api.h"
#include "test1/api.h"
//#include "client_lua/api.h"
#include "client_file/api.h"
#include "network/api.h"
#include "core/log.h"
using interface::Event;

View File

@ -1,7 +1,7 @@
#include "interface/module.h"
#include "interface/server.h"
#include "interface/event.h"
#include "test1/include/api.h"
#include "test1/api.h"
#include "core/log.h"
using interface::Event;

View File

@ -9,7 +9,6 @@ Buildat TODO
- Modules should be run in threads.
- Network should leave socket fds in m_server when destructing, and pick them up
on core:continue.
- Move module/include/api.h to module/api.h
- Implement file modification tracking in client_lua or client_file, or somehow
otherwise make newly connected clients get new file contents

View File

@ -5,7 +5,7 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
header_files="$script_dir"/../src/*/*.h
cpp_files="$script_dir"/../src/*/*.cpp
header_files+=" ""$script_dir"/../test/testmodules/*/*/*.h
header_files+=" ""$script_dir"/../test/testmodules/*/*.h
cpp_files+=" ""$script_dir"/../test/testmodules/*/*.cpp
header_files+=" "$(find "$script_dir"/../builtin -name '*.h')