nm-editor-utils.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
  2. /*
  3. * This program is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU General Public License as
  5. * published by the Free Software Foundation; either version 2 of the
  6. * License, or (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. * Copyright 2012, 2013 Red Hat, Inc.
  17. */
  18. #ifndef NM_EDITOR_UTILS_H
  19. #define NM_EDITOR_UTILS_H
  20. #include <glib-object.h>
  21. #include <nm-remote-settings.h>
  22. G_BEGIN_DECLS
  23. typedef struct {
  24. const char *name;
  25. GType setting_type;
  26. GType slave_setting_type;
  27. GType device_type;
  28. gboolean virtual;
  29. } NMEditorConnectionTypeData;
  30. NMEditorConnectionTypeData **nm_editor_utils_get_connection_type_list (void);
  31. NMEditorConnectionTypeData *nm_editor_utils_get_connection_type_data (NMConnection *conn);
  32. NMConnection *nm_editor_utils_create_connection (GType type,
  33. NMConnection *master,
  34. NMRemoteSettings *settings);
  35. G_END_DECLS
  36. #endif /* NM_EDITOR_UTILS_H */