summaryrefslogtreecommitdiff
path: root/src/backend/px-plugin-config.c
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2023-05-02 10:53:36 +0200
committerGitHub <noreply@github.com>2023-05-02 10:53:36 +0200
commitd159c5f40ff7e82354e45116d9b66b1f596d9320 (patch)
tree34506d9ee6c699444a170c6bba8c925c45407d3e /src/backend/px-plugin-config.c
parent8fec01ed4b95afc71bf7710bf5b736a5de03b343 (diff)
parent5272fb3d114f0d012871380bd429546c73f0226d (diff)
downloadlibproxy-git-d159c5f40ff7e82354e45116d9b66b1f596d9320.tar.gz
Merge pull request #201 from janbrummer/rewrite
Complete rewrite
Diffstat (limited to 'src/backend/px-plugin-config.c')
-rw-r--r--src/backend/px-plugin-config.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/backend/px-plugin-config.c b/src/backend/px-plugin-config.c
new file mode 100644
index 0000000..22f369a
--- /dev/null
+++ b/src/backend/px-plugin-config.c
@@ -0,0 +1,37 @@
+/* px-plugin-config.c
+ *
+ * Copyright 2022-2023 The Libproxy Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#include "px-plugin-config.h"
+
+G_DEFINE_INTERFACE (PxConfig, px_config, G_TYPE_OBJECT)
+
+static void
+px_config_default_init (PxConfigInterface *iface)
+{
+ g_object_interface_install_property (iface,
+ g_param_spec_string ("config-option",
+ NULL,
+ NULL,
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
+}