summaryrefslogtreecommitdiffstats
path: root/src/ClientInfo.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-28 19:31:25 +0100
committerDavid Robillard <d@drobilla.net>2020-11-28 22:49:10 +0100
commit1c5decf5f85b7808a70885c820596fac013cf644 (patch)
tree34f873fc6099df1e08af0dd7898f67404622b1f0 /src/ClientInfo.hpp
parent37a33e5549354b6142ce4aeacd6a7c627e772f48 (diff)
downloadpatchage-1c5decf5f85b7808a70885c820596fac013cf644.tar.gz
patchage-1c5decf5f85b7808a70885c820596fac013cf644.tar.bz2
patchage-1c5decf5f85b7808a70885c820596fac013cf644.zip
Factor out getting client and port metadata and send it with events
Diffstat (limited to 'src/ClientInfo.hpp')
-rw-r--r--src/ClientInfo.hpp28
1 files changed, 28 insertions, 0 deletions
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 <d@drobilla.net>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef PATCHAGE_CLIENTINFO_HPP
+#define PATCHAGE_CLIENTINFO_HPP
+
+#include <string>
+
+/// Extra information about a client (program) not expressed in its ID
+struct ClientInfo
+{
+ std::string label; ///< Human-friendly label
+};
+
+#endif // PATCHAGE_CLIENTINFO_HPP