.h -> .hpp for clearer ABI (non)compatibility

This commit is contained in:
2026-01-14 10:29:11 +01:00
parent f7516518e0
commit 0d453ab86b
14 changed files with 17 additions and 17 deletions

View File

@@ -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:

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
#include "../include/ShellService.h" #include "../include/ShellService.hpp"
#include <pwd.h> #include <pwd.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -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";

View File

@@ -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);

View File

@@ -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";