summaryrefslogtreecommitdiff
path: root/src/backend/px-plugin-pacrunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/px-plugin-pacrunner.h')
-rw-r--r--src/backend/px-plugin-pacrunner.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/backend/px-plugin-pacrunner.h b/src/backend/px-plugin-pacrunner.h
new file mode 100644
index 0000000..4b03a24
--- /dev/null
+++ b/src/backend/px-plugin-pacrunner.h
@@ -0,0 +1,40 @@
+/* px-plugin-pacrunner.h
+ *
+ * Copyright 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
+ */
+
+#pragma once
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define PX_TYPE_PACRUNNER (px_pacrunner_get_type ())
+
+G_DECLARE_INTERFACE (PxPacRunner, px_pacrunner, PX, PAC_RUNNER, GObject)
+
+struct _PxPacRunnerInterface
+{
+ GTypeInterface parent_iface;
+
+ gboolean (*set_pac) (PxPacRunner *pacrunner, GBytes *pac_data);
+ char *(*run) (PxPacRunner *self, GUri *uri);
+};
+
+G_END_DECLS