diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:59:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:59:36 +0000 |
commit | ec52555862913a23417735f9f7f5402f5230da13 (patch) | |
tree | 5e43a30d289a3daa69dddfbb060216ff6332f197 /libnautilus-extension/nautilus-extension.h | |
parent | Initial commit. (diff) | |
download | nautilus-upstream/3.38.2.tar.xz nautilus-upstream/3.38.2.zip |
Adding upstream version 3.38.2.upstream/3.38.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnautilus-extension/nautilus-extension.h')
-rw-r--r-- | libnautilus-extension/nautilus-extension.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/libnautilus-extension/nautilus-extension.h b/libnautilus-extension/nautilus-extension.h new file mode 100644 index 0000000..1c3ca5a --- /dev/null +++ b/libnautilus-extension/nautilus-extension.h @@ -0,0 +1,62 @@ +/* Copyright (C) 2018 Ernestas Kulik <ernestask@gnome.org> + * + * 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 <https://www.gnu.org/licenses/>. + */ +#ifndef NAUTILUS_EXTENSION_H +#define NAUTILUS_EXTENSION_H + +#include <libnautilus-extension/nautilus-column-provider.h> +#include <libnautilus-extension/nautilus-column.h> +#include <libnautilus-extension/nautilus-extension-enum-types.h> +#include <libnautilus-extension/nautilus-file-info.h> +#include <libnautilus-extension/nautilus-info-provider.h> +#include <libnautilus-extension/nautilus-location-widget-provider.h> +#include <libnautilus-extension/nautilus-menu.h> +#include <libnautilus-extension/nautilus-menu-provider.h> +#include <libnautilus-extension/nautilus-property-page.h> +#include <libnautilus-extension/nautilus-property-page-provider.h> + +/** + * SECTION:nautilus-extension + * @title: Extension entry points + */ + +/** + * nautilus_module_initialize: + * @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: + * + * Called when the extension is being unloaded. + */ +void nautilus_module_shutdown (void); +/** + * nautilus_module_list_types: + * @types: (out) (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 |