From 3ade071f273aaa973e44bf95d6b1d4913a18f03b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:39:48 +0200 Subject: Adding upstream version 43.2. Signed-off-by: Daniel Baumann --- libnautilus-extension/nautilus-extension.h | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 libnautilus-extension/nautilus-extension.h (limited to 'libnautilus-extension/nautilus-extension.h') diff --git a/libnautilus-extension/nautilus-extension.h b/libnautilus-extension/nautilus-extension.h new file mode 100644 index 0000000..e7dc3c8 --- /dev/null +++ b/libnautilus-extension/nautilus-extension.h @@ -0,0 +1,62 @@ +/* Copyright (C) 2018 Ernestas Kulik + * + * This file is part of libnautilus-extension. + * + * libnautilus-extension 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. + * + * libnautilus-extension 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 libnautilus-extension. If not, see . + */ +#ifndef NAUTILUS_EXTENSION_H +#define NAUTILUS_EXTENSION_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * SECTION:nautilus-extension + * @title: Extension entry points + */ + +/** + * nautilus_module_initialize: (skip) + * @module: a #GTypeModule used in type registration + * + * Called when the extension is begin loaded to register the types it exports + * and to perform other initializations. + */ +void nautilus_module_initialize (GTypeModule *module); +/** + * nautilus_module_shutdown: (skip) + * + * Called when the extension is being unloaded. + */ +void nautilus_module_shutdown (void); +/** + * nautilus_module_list_types: (skip) + * @types: (out) (transfer none) (array length=num_types): array of GType * + * @num_types: the number of types in the array + * + * Called after the extension has been initialized and has registered all the + * types it exports, to load them into Nautilus. + */ +void nautilus_module_list_types (const GType **types, + int *num_types); + +#endif -- cgit v1.2.3