File: nm-ssh.h

package info (click to toggle)
network-manager-ssh 1.2.11-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,564 kB
  • sloc: ansic: 2,849; makefile: 197; sh: 30
file content (102 lines) | stat: -rw-r--r-- 3,990 bytes parent folder | download | duplicates (4)
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
98
99
100
101
102
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/***************************************************************************
 * nm-ssh.h : GNOME UI dialogs for configuring ssh VPN connections
 *
 * Copyright (C) 2013 Dan Fruehauf, <malkodan@gmail.com>
 * Based on work by Dan Williams, <dcbw@redhat.com>
 *
 * 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, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 **************************************************************************/

#ifndef _NM_SSH_H_
#define _NM_SSH_H_

#include <glib-object.h>

#define SSH_TYPE_EDITOR_PLUGIN            (ssh_editor_plugin_get_type ())
#define SSH_EDITOR_PLUGIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SSH_TYPE_EDITOR_PLUGIN, SshEditorPlugin))
#define SSH_EDITOR_PLUGIN_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SSH_TYPE_EDITOR_PLUGIN, SshEditorPluginClass))
#define SSH_IS_EDITOR_PLUGIN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SSH_TYPE_EDITOR_PLUGIN))
#define SSH_IS_EDITOR_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SSH_TYPE_EDITOR_PLUGIN))
#define SSH_EDITOR_PLUGIN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SSH_TYPE_EDITOR_PLUGIN, SshEditorPluginClass))

typedef struct _SshEditorPlugin SshEditorPlugin;
typedef struct _SshEditorPluginClass SshEditorPluginClass;

struct _SshEditorPlugin {
	GObject parent;
};

struct _SshEditorPluginClass {
	GObjectClass parent;
};

GType ssh_editor_plugin_get_type (void);


#define SSH_TYPE_EDITOR            (ssh_editor_get_type ())
#define SSH_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SSH_TYPE_EDITOR, SshEditor))
#define SSH_EDITOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SSH_TYPE_EDITOR, SshEditorClass))
#define SSH_IS_EDITOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SSH_TYPE_EDITOR))
#define SSH_IS_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SSH_TYPE_EDITOR))
#define SSH_EDITOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SSH_TYPE_EDITOR, SshEditorClass))

typedef struct _SshEditor SshEditor;
typedef struct _SshEditorClass SshEditorClass;

struct _SshEditor {
	GObject parent;
};

struct _SshEditorClass {
	GObjectClass parent;
};

GType ssh_editor_get_type (void);

typedef void (*ChangedCallback) (GtkWidget *widget, gpointer user_data);

void init_auth_widget (GtkBuilder *builder,
                       GtkSizeGroup *group,
                       NMSettingVpn *s_vpn,
                       const char *contype,
                       const char *prefix,
                       ChangedCallback changed_cb,
                       gpointer user_data);

/* Export/Import key dictionary */
#define	REMOTE_KEY "REMOTE"
#define	AUTH_TYPE_KEY "AUTH_TYPE"
#define	KEY_FILE_KEY "KEY_FILE"
#define	PREFERRED_AUTHENTICATION_KEY "PREFERRED_AUTHENTICATION"
#define	PASSWORD_PROMPT_NR_KEY "PASSWORD_PROMPT_NR"
#define	REMOTE_USERNAME_KEY "REMOTE_USERNAME"
#define	REMOTE_IP_KEY "REMOTE_IP"
#define	LOCAL_IP_KEY "LOCAL_IP"
#define	NETMASK_KEY "NETMASK"
#define	IP_6_KEY "IP_6"
#define	REMOTE_IP_6_KEY "REMOTE_IP_6"
#define	LOCAL_IP_6_KEY "LOCAL_IP_6"
#define	NETMASK_6_KEY "NETMASK_6"
#define	PORT_KEY "PORT"
#define	MTU_KEY "MTU"
#define	REMOTE_DEV_KEY "REMOTE_DEV"
#define	DEV_TYPE_KEY "DEV_TYPE"
#define	NO_DEFAULT_ROUTE_KEY "NO_DEFAULT_ROUTE"
#define	TUNNEL_TYPE_KEY "TUNNEL_TYPE"

#endif	/* _NM_SSH_H_ */