mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-20 13:48:12 +02:00
Port to NM 0.7 VPN plugin API git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3838 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
94 lines
3.5 KiB
C
94 lines
3.5 KiB
C
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
/***************************************************************************
|
|
* nm-pptp.h : GNOME UI dialogs for configuring pptp VPN connections
|
|
*
|
|
* Copyright (C) 2008 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_PPTP_H_
|
|
#define _NM_PPTP_H_
|
|
|
|
#include <glib-object.h>
|
|
|
|
typedef enum
|
|
{
|
|
PPTP_PLUGIN_UI_ERROR_UNKNOWN = 0,
|
|
PPTP_PLUGIN_UI_ERROR_INVALID_PROPERTY,
|
|
PPTP_PLUGIN_UI_ERROR_MISSING_PROPERTY,
|
|
PPTP_PLUGIN_UI_ERROR_FILE_NOT_READABLE,
|
|
PPTP_PLUGIN_UI_ERROR_FILE_NOT_PPTP
|
|
} PptpPluginUiError;
|
|
|
|
#define PPTP_TYPE_PLUGIN_UI_ERROR (pptp_plugin_ui_error_get_type ())
|
|
GType pptp_plugin_ui_error_get_type (void);
|
|
|
|
#define PPTP_PLUGIN_UI_ERROR (pptp_plugin_ui_error_quark ())
|
|
GQuark pptp_plugin_ui_error_quark (void);
|
|
|
|
|
|
#define PPTP_TYPE_PLUGIN_UI (pptp_plugin_ui_get_type ())
|
|
#define PPTP_PLUGIN_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PPTP_TYPE_PLUGIN_UI, PptpPluginUi))
|
|
#define PPTP_PLUGIN_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PPTP_TYPE_PLUGIN_UI, PptpPluginUiClass))
|
|
#define PPTP_IS_PLUGIN_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PPTP_TYPE_PLUGIN_UI))
|
|
#define PPTP_IS_PLUGIN_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), PPTP_TYPE_PLUGIN_UI))
|
|
#define PPTP_PLUGIN_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PPTP_TYPE_PLUGIN_UI, PptpPluginUiClass))
|
|
|
|
typedef struct _PptpPluginUi PptpPluginUi;
|
|
typedef struct _PptpPluginUiClass PptpPluginUiClass;
|
|
|
|
struct _PptpPluginUi {
|
|
GObject parent;
|
|
};
|
|
|
|
struct _PptpPluginUiClass {
|
|
GObjectClass parent;
|
|
};
|
|
|
|
GType pptp_plugin_ui_get_type (void);
|
|
|
|
|
|
#define PPTP_TYPE_PLUGIN_UI_WIDGET (pptp_plugin_ui_widget_get_type ())
|
|
#define PPTP_PLUGIN_UI_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PPTP_TYPE_PLUGIN_UI_WIDGET, PptpPluginUiWidget))
|
|
#define PPTP_PLUGIN_UI_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PPTP_TYPE_PLUGIN_UI_WIDGET, PptpPluginUiWidgetClass))
|
|
#define PPTP_IS_PLUGIN_UI_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PPTP_TYPE_PLUGIN_UI_WIDGET))
|
|
#define PPTP_IS_PLUGIN_UI_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), PPTP_TYPE_PLUGIN_UI_WIDGET))
|
|
#define PPTP_PLUGIN_UI_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PPTP_TYPE_PLUGIN_UI_WIDGET, PptpPluginUiWidgetClass))
|
|
|
|
typedef struct _PptpPluginUiWidget PptpPluginUiWidget;
|
|
typedef struct _PptpPluginUiWidgetClass PptpPluginUiWidgetClass;
|
|
|
|
struct _PptpPluginUiWidget {
|
|
GObject parent;
|
|
};
|
|
|
|
struct _PptpPluginUiWidgetClass {
|
|
GObjectClass parent;
|
|
};
|
|
|
|
GType pptp_plugin_ui_widget_get_type (void);
|
|
|
|
GValue *int_to_gvalue (gint i);
|
|
|
|
GValue *uint_to_gvalue (guint32 u);
|
|
|
|
GValue *bool_to_gvalue (gboolean b);
|
|
|
|
GValue *str_to_gvalue (const char *str);
|
|
|
|
#endif /* _NM_PPTP_H_ */
|
|
|