all ifndef replaced with pragma once #19
@@ -1,6 +1,4 @@
|
||||
#ifndef DNS_HPP
|
||||
#define DNS_HPP
|
||||
|
||||
#pragma once
|
||||
#include <json.hpp>
|
||||
|
||||
namespace api
|
||||
@@ -15,5 +13,3 @@ namespace api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // DNS_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef FTP_HPP
|
||||
#define FTP_HPP
|
||||
|
||||
#pragma once
|
||||
namespace api
|
||||
{
|
||||
namespace settings
|
||||
@@ -11,5 +9,3 @@ namespace api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // FTP_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef SETTINGS_HPP
|
||||
#define SETTINGS_HPP
|
||||
|
||||
#pragma once
|
||||
#include <settings/wifi/wifi.hpp>
|
||||
#include <settings/telnet/telnet.hpp>
|
||||
#include <settings/ssh/ssh.hpp>
|
||||
@@ -19,5 +17,3 @@ namespace api
|
||||
void set(const httplib::Request& request, httplib::Response& response);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // SETTINGS_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef SSH_HPP
|
||||
#define SSH_HPP
|
||||
|
||||
#pragma once
|
||||
#include <json.hpp>
|
||||
|
||||
#define DROPBEAR_SSH "dropbear"
|
||||
@@ -20,5 +18,3 @@ namespace api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // SSH_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef SETTINGS_TELNET_HPP
|
||||
#define SETTINGS_TELNET_HPP
|
||||
|
||||
#pragma once
|
||||
namespace api
|
||||
{
|
||||
namespace settings
|
||||
@@ -12,5 +10,3 @@ namespace api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // SETTINGS_TELNET_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef WIFI_HPP
|
||||
#define WIFI_HPP
|
||||
|
||||
#pragma once
|
||||
#include <httplib.h>
|
||||
|
||||
#define WIFI_SETTINGS_PATH "/etc/hostapd/hostapd.conf"
|
||||
@@ -19,5 +17,3 @@ namespace api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // WIFI_HPP
|
||||
|
||||
Reference in New Issue
Block a user