src/util.c: shut up gcc warnings
[vlock.git] / src / plugins.h
blobdb25b58cda1553843d9c23ed972e10ee07c354ea
1 /* plugins.h -- plugins header file for vlock,
2 * the VT locking program for linux
4 * This program is copyright (C) 2007 Frank Benkstein, and is free
5 * software which is freely distributable under the terms of the
6 * GNU General Public License version 2, included as the file COPYING in this
7 * distribution. It is NOT public domain software, and any
8 * redistribution not permitted by the GNU General Public License is
9 * expressly forbidden without prior written permission from
10 * the author.
14 #pragma once
16 #include <stdbool.h>
17 #include <glib.h>
19 /* Load the named plugin. */
20 bool load_plugin(const char *name, GError **error);
22 /* Resolve all the dependencies between all plugins. This function *must* be
23 * called after all plugins were loaded. */
24 bool resolve_dependencies(GError **error);
26 /* Unload all plugins. */
27 void unload_plugins(void);
29 /* Call the given plugin hook. */
30 void plugin_hook(const char *hook_name);