.h -> .hpp for clearer ABI (non)compatibility
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
#define HYPRLAND_SERVICE_H
|
#define HYPRLAND_SERVICE_H
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include "Workspace.h"
|
#include "Workspace.hpp"
|
||||||
#include "Client.h"
|
#include "Client.hpp"
|
||||||
#include "WindowRule.h"
|
#include "WindowRule.hpp"
|
||||||
|
|
||||||
class HyprlandService {
|
class HyprlandService {
|
||||||
private:
|
private:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../include/Client.h"
|
#include "../include/Client.hpp"
|
||||||
|
|
||||||
void from_json(const json& j, WorkspaceSignature& ws) {
|
void from_json(const json& j, WorkspaceSignature& ws) {
|
||||||
j.at("id").get_to(ws.id);
|
j.at("id").get_to(ws.id);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "../include/FileService.h"
|
#include "../include/FileService.hpp"
|
||||||
#include "../include/Macros.h"
|
#include "../include/Macros.hpp"
|
||||||
#include "../include/ShellService.h"
|
#include "../include/ShellService.hpp"
|
||||||
|
|
||||||
bool FileService::doesNonEmptyFileExist(std::string path) {
|
bool FileService::doesNonEmptyFileExist(std::string path) {
|
||||||
std::ifstream file(path);
|
std::ifstream file(path);
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
#include "../include/HyprlandService.hpp"
|
||||||
|
#include "../include/FileService.hpp"
|
||||||
|
#include "../include/Macros.hpp"
|
||||||
|
#include "../include/ShellService.hpp"
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "../include/HyprlandService.h"
|
|
||||||
#include "../include/ShellService.h"
|
|
||||||
#include "../include/Macros.h"
|
|
||||||
#include "../include/FileService.h"
|
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../include/ShellService.h"
|
#include "../include/ShellService.hpp"
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "../include/WindowRule.h"
|
#include "../include/WindowRule.hpp"
|
||||||
|
|
||||||
std::string WindowRule::toString() {
|
std::string WindowRule::toString() {
|
||||||
std::string mode = this->tile ? "tile on" : "float on";
|
std::string mode = this->tile ? "tile on" : "float on";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../include/Workspace.h"
|
#include "../include/Workspace.hpp"
|
||||||
|
|
||||||
void from_json(const nlohmann::json &j, Workspace &w) {
|
void from_json(const nlohmann::json &j, Workspace &w) {
|
||||||
j.at("id").get_to(w.id);
|
j.at("id").get_to(w.id);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "../include/HyprlandService.h"
|
#include "../include/HyprlandService.hpp"
|
||||||
|
|
||||||
void help(char* execPath) {
|
void help(char* execPath) {
|
||||||
std::cerr << "Usage: " << execPath << " <config_file_path> (flags)\n\n";
|
std::cerr << "Usage: " << execPath << " <config_file_path> (flags)\n\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user