summaryrefslogtreecommitdiff
path: root/clients/tui/nm-editor-bindings.h
blob: b595ef03c1d8ef3d46952efcb43d365e137201b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * Copyright 2013 Red Hat, Inc.
 */

#ifndef NM_EDITOR_BINDINGS_H
#define NM_EDITOR_BINDINGS_H

#include <NetworkManager.h>

G_BEGIN_DECLS

void nm_editor_bindings_init (void);

void nm_editor_bind_ip4_addresses_with_prefix_to_strv (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       target,
                                                       const gchar   *target_property,
                                                       GBindingFlags  flags);
void nm_editor_bind_ip4_addresses_to_strv             (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       target,
                                                       const gchar   *target_property,
                                                       GBindingFlags  flags);
void nm_editor_bind_ip4_gateway_to_string             (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       target,
                                                       const gchar   *target_property,
                                                       GBindingFlags  flags);

void nm_editor_bind_ip4_route_to_strings              (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       dest_target,
                                                       const gchar   *dest_target_property,
                                                       gpointer       next_hop_target,
                                                       const gchar   *next_hop_target_property,
                                                       gpointer       metric_target,
                                                       const gchar   *metric_target_property,
                                                       GBindingFlags  flags);

void nm_editor_bind_ip6_addresses_with_prefix_to_strv (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       target,
                                                       const gchar   *target_property,
                                                       GBindingFlags  flags);
void nm_editor_bind_ip6_addresses_to_strv             (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       target,
                                                       const gchar   *target_property,
                                                       GBindingFlags  flags);
void nm_editor_bind_ip6_gateway_to_string             (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       target,
                                                       const gchar   *target_property,
                                                       GBindingFlags  flags);

void nm_editor_bind_ip6_route_to_strings              (gpointer       source,
                                                       const gchar   *source_property,
                                                       gpointer       dest_target,
                                                       const gchar   *dest_target_property,
                                                       gpointer       next_hop_target,
                                                       const gchar   *next_hop_target_property,
                                                       gpointer       metric_target,
                                                       const gchar   *metric_target_property,
                                                       GBindingFlags  flags);

void nm_editor_bind_wireless_security_method          (NMConnection  *connection,
                                                       NMSettingWirelessSecurity  *s_wsec,
                                                       gpointer       target,
                                                       const char    *target_property,
                                                       GBindingFlags  flags);
void nm_editor_bind_wireless_security_wep_key         (NMSettingWirelessSecurity  *s_wsec,
                                                       gpointer       entry,
                                                       const char    *entry_property,
                                                       gpointer       key_selector,
                                                       const char    *key_selector_property,
                                                       GBindingFlags  flags);

void nm_editor_bind_vlan_name                         (NMSettingVlan       *s_vlan,
                                                       NMSettingConnection *s_con);

G_END_DECLS

#endif /* NM_EDITOR_BINDINGS_H */