nm-setting-olpc-mesh.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
  2. /*
  3. * This library is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU Lesser General Public
  5. * License as published by the Free Software Foundation; either
  6. * version 2 of the License, or (at your option) any later version.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * Lesser General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Lesser General Public
  14. * License along with this library; if not, write to the
  15. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. * Boston, MA 02110-1301 USA.
  17. *
  18. * Copyright 2007 - 2008 Red Hat, Inc.
  19. * Copyright 2007 - 2008 Novell, Inc.
  20. * Copyright 2009 One Laptop per Child
  21. */
  22. #ifndef __NM_SETTING_OLPC_MESH_H__
  23. #define __NM_SETTING_OLPC_MESH_H__
  24. #if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
  25. #error "Only <NetworkManager.h> can be included directly."
  26. #endif
  27. #include "nm-setting.h"
  28. G_BEGIN_DECLS
  29. #define NM_TYPE_SETTING_OLPC_MESH (nm_setting_olpc_mesh_get_type ())
  30. #define NM_SETTING_OLPC_MESH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_OLPC_MESH, NMSettingOlpcMesh))
  31. #define NM_SETTING_OLPC_MESH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_OLPC_MESH, NMSettingOlpcMeshClass))
  32. #define NM_IS_SETTING_OLPC_MESH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_OLPC_MESH))
  33. #define NM_IS_SETTING_OLPC_MESH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_OLPC_MESH))
  34. #define NM_SETTING_OLPC_MESH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_OLPC_MESH, NMSettingOlpcMeshClass))
  35. #define NM_SETTING_OLPC_MESH_SETTING_NAME "802-11-olpc-mesh"
  36. #define NM_SETTING_OLPC_MESH_SSID "ssid"
  37. #define NM_SETTING_OLPC_MESH_CHANNEL "channel"
  38. #define NM_SETTING_OLPC_MESH_DHCP_ANYCAST_ADDRESS "dhcp-anycast-address"
  39. /**
  40. * NMSettingOlpcMesh:
  41. *
  42. * OLPC Wireless Mesh Settings
  43. */
  44. struct _NMSettingOlpcMesh {
  45. NMSetting parent;
  46. };
  47. typedef struct {
  48. NMSettingClass parent;
  49. /*< private >*/
  50. gpointer padding[4];
  51. } NMSettingOlpcMeshClass;
  52. GType nm_setting_olpc_mesh_get_type (void);
  53. NMSetting * nm_setting_olpc_mesh_new (void);
  54. GBytes * nm_setting_olpc_mesh_get_ssid (NMSettingOlpcMesh *setting);
  55. guint32 nm_setting_olpc_mesh_get_channel (NMSettingOlpcMesh *setting);
  56. const char * nm_setting_olpc_mesh_get_dhcp_anycast_address (NMSettingOlpcMesh *setting);
  57. G_END_DECLS
  58. #endif /* __NM_SETTING_OLPC_MESH_H__ */