From 1c5decf5f85b7808a70885c820596fac013cf644 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 19:31:25 +0100 Subject: Factor out getting client and port metadata and send it with events --- src/ClientInfo.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/ClientInfo.hpp (limited to 'src/ClientInfo.hpp') diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp new file mode 100644 index 0000000..9229d16 --- /dev/null +++ b/src/ClientInfo.hpp @@ -0,0 +1,28 @@ +/* This file is part of Patchage. + * Copyright 2007-2020 David Robillard + * + * Patchage is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * Patchage 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 General Public License for details. + * + * You should have received a copy of the GNU General Public License + * along with Patchage. If not, see . + */ + +#ifndef PATCHAGE_CLIENTINFO_HPP +#define PATCHAGE_CLIENTINFO_HPP + +#include + +/// Extra information about a client (program) not expressed in its ID +struct ClientInfo +{ + std::string label; ///< Human-friendly label +}; + +#endif // PATCHAGE_CLIENTINFO_HPP -- cgit v1.2.1