~ubuntu-branches/ubuntu/raring/remmina/raring

« back to all changes in this revision

Viewing changes to remmina-plugins/nx/nx_plugin.h

  • Committer: Package Import Robot
  • Author(s): Luca Falavigna
  • Date: 2012-02-11 17:28:48 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120211172848-rh3ffi7075qyobuq
Tags: 1.0.0-1
* New upstream release.
  - Compatible with FreeRDP 1.0 (Closes: #658363).
  - Ported to GTK3, this also fixes an incompatibility with
    GTK2 and recent Avahi with GTK3 support, which lead to
    crashes when scanning network services (Closes: #626499).
* debian/patches/libvncserver.patch:
  - Do not use convenience copy of libvncserver.
* debian/patches/g_thread_init.patch:
  - Do not use deprecated g_thread_init function.
* debian/patches/REMMINA_COMMAND_NONE.patch:
  - Removed, obsoleted by GApplication port.
* debian/clean:
  - Remove spurious files created at build-time.
* debian/compat:
  - Bump compatibility level to 9.
* debian/control:
  - Refresh build-dependencies to match new structure.
  - Drop remmina-dev package, no longer used.
  - Build packages once provided by remmina-plugins.
  - Provide remmina-common package.
  - Provide remmina-plugin-gnome package.
* debian/copyright:
  - Refresh copyright information.
* debian/docs:
  - Documentation is no longer accurate, do not ship it anymore.
* debian/remmina-dev.install:
  - Drop remmina-dev package, no longer used.
* debian/remmina-plugin-telepathy.install:
  - Adjust location for Remmina.client.
  - Disable D-BUS support for now.
* debian/rules:
  - Compile with -DWITH_APPINDICATOR=OFF.
  - Do not treat plugins as shared libraries.
* debian/watch:
  - Adjust watch file to match new download location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Remmina - The GTK+ Remote Desktop Client
 
3
 * Copyright (C) 2010 Vic Lee 
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, 
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef __REMMINAPLUGINNX_H__
 
22
#define __REMMINAPLUGINNX_H__
 
23
 
 
24
G_BEGIN_DECLS
 
25
 
 
26
#include "nx_session.h"
 
27
 
 
28
typedef enum
 
29
{
 
30
        REMMINA_NX_EVENT_CANCEL,
 
31
        REMMINA_NX_EVENT_START,
 
32
        REMMINA_NX_EVENT_RESTORE,
 
33
        REMMINA_NX_EVENT_ATTACH,
 
34
        REMMINA_NX_EVENT_TERMINATE
 
35
} RemminaNXEventType;
 
36
 
 
37
typedef struct _RemminaPluginNxData
 
38
{
 
39
        GtkWidget *socket;
 
40
        gint socket_id;
 
41
 
 
42
        pthread_t thread;
 
43
 
 
44
        RemminaNXSession *nx;
 
45
 
 
46
        Display *display;
 
47
        Window window_id;
 
48
        int (*orig_handler)(Display *, XErrorEvent *);
 
49
 
 
50
        /* Session Manager data */
 
51
        gboolean manager_started;
 
52
        GtkWidget *manager_dialog;
 
53
        gboolean manager_selected;
 
54
 
 
55
        /* Communication between the NX thread and the session manager */
 
56
        gint event_pipe[2];
 
57
        guint session_manager_start_handler;
 
58
        gboolean attach_session;
 
59
        GtkTreeIter iter;
 
60
} RemminaPluginNxData;
 
61
 
 
62
extern RemminaPluginService *remmina_plugin_nx_service;
 
63
 
 
64
G_END_DECLS
 
65
 
 
66
#endif
 
67