diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-12-22 20:51:05 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-12-22 20:51:05 +0100 |
commit | c33b387b3ed16bce4058b9088260c4ece1ff6342 (patch) | |
tree | ee0bfb4df1b599890549da40282a3e9e0aaf66f6 /include/plugin.h | |
parent | e8f7754e312aeac4aaca74d304ed6e36ed2f6a0d (diff) | |
download | connman-c33b387b3ed16bce4058b9088260c4ece1ff6342.tar.gz connman-c33b387b3ed16bce4058b9088260c4ece1ff6342.tar.bz2 connman-c33b387b3ed16bce4058b9088260c4ece1ff6342.zip |
Add plugin infrastructure
Diffstat (limited to 'include/plugin.h')
-rw-r--r-- | include/plugin.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/plugin.h b/include/plugin.h new file mode 100644 index 00000000..b7f1eb3a --- /dev/null +++ b/include/plugin.h @@ -0,0 +1,46 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2007 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef __CONNMAN_PLUGIN_H +#define __CONNMAN_PLUGIN_H + +#ifdef __cplusplus +extern "C" { +#endif + +struct connman_plugin_desc { + const char *name; + const char *description; + const char *version; + int (*init) (void); + void (*exit) (void); +}; + +#define CONNMAN_PLUGIN_DEFINE(name,description,version,init,exit) \ + struct connman_plugin_desc connman_plugin_desc = { \ + name, description, version, init, exit \ + }; + +#ifdef __cplusplus +} +#endif + +#endif /* __CONNMAN_PLUGIN_H */ |