nm-openconnect-service.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
  2. /* NetworkManager -- Network link manager
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. *
  18. * Copyright © 2008 - 2009 Intel Corporation.
  19. *
  20. * Based on nm-openconnect-vpnc.h:
  21. * Copyright © 2005 - 2008 Red Hat, Inc.
  22. * Copyright © 2007 - 2008 Novell, Inc.
  23. */
  24. #ifndef NM_OPENCONNECT_PLUGIN_H
  25. #define NM_OPENCONNECT_PLUGIN_H
  26. #include <glib.h>
  27. #include <nm-vpn-plugin.h>
  28. #include "nm-openconnect-service-defines.h"
  29. #define NM_TYPE_OPENCONNECT_PLUGIN (nm_openconnect_plugin_get_type ())
  30. #define NM_OPENCONNECT_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_OPENCONNECT_PLUGIN, NMOpenconnectPlugin))
  31. #define NM_OPENCONNECT_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_OPENCONNECT_PLUGIN, NMOpenconnectPluginClass))
  32. #define NM_IS_OPENCONNECT_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_OPENCONNECT_PLUGIN))
  33. #define NM_IS_OPENCONNECT_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_OPENCONNECT_PLUGIN))
  34. #define NM_OPENCONNECT_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_OPENCONNECT_PLUGIN, NMOpenconnectPluginClass))
  35. typedef struct {
  36. NMVPNPlugin parent;
  37. } NMOpenconnectPlugin;
  38. typedef struct {
  39. NMVPNPluginClass parent;
  40. } NMOpenconnectPluginClass;
  41. GType nm_openconnect_plugin_get_type (void);
  42. NMOpenconnectPlugin *nm_openconnect_plugin_new (void);
  43. #define NM_OPENCONNECT_USER "nm-openconnect"
  44. #endif /* NM_OPENCONNECT_PLUGIN_H */