~ubuntu-branches/ubuntu/raring/lxpanel/raring

« back to all changes in this revision

Viewing changes to src/plugins/netstat/netstat.h

  • Committer: Package Import Robot
  • Author(s): Julien Lavergne
  • Date: 2012-02-13 23:40:40 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120213234040-w24ouhodotl76yav
Tags: 0.5.8+git20120212-0ubuntu1
* New upstream snapshot
 - Run dialog opens up in the background (LP: #889414)
 - Abiliy to configure task Bar Font (LP: #690662)
 - Volume applet uses wrong icon (LP: #878117)
 - Add ability for lxpanel sound applet to launch a GUI for sound management
   (LP: #692276)
 - lxpanel indicator support can't be configured (LP: #692260)
 - Task Bar (Window List) - Options on 64bit version are different than 32bit
   version (LP: #909127)
* debian/patches
 - indicator-support.patch: Remove, merged upstream.
 - fix_indicator_dir.patch: Remove, merged upstream.
 - fix_position.patch: Remove, merged upstream.
 - missing_glades.patch: Remove, fixed upstream.
 - default-config.patch: Refresh.
 - configure_desktop_number.patch: Refresh.
 - 99_refresh_autotools.patch: Refresh.
* debian/control:
 - Build-depends on libwnck-dev.
* debian/lxpanel.install:
 - Add new plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HAVE_FNETDAEMON_H
 
2
#define HAVE_FNETDAEMON_H
 
3
 
 
4
#include <stdio.h>
 
5
#include <netinet/in.h>
 
6
#include <gtk/gtk.h>
 
7
#include "wireless.h"
 
8
 
 
9
#define NETDEV_STAT_NORMAL      0
 
10
#define NETDEV_STAT_PROBLEM     1
 
11
#define NETDEV_STAT_RENEW       2
 
12
#define NETDEV_STAT_BOTHRS      3
 
13
#define NETDEV_STAT_SENDDATA    4
 
14
#define NETDEV_STAT_RECVDATA    5
 
15
 
 
16
/* forward declaration for UI interaction. */
 
17
struct statusicon;
 
18
 
 
19
struct pgui {
 
20
    GtkWidget *dlg;
 
21
    GtkWidget *pentry;
 
22
};
 
23
 
 
24
typedef struct {
 
25
        char *ifname;
 
26
        char *mac;
 
27
        char *ipaddr;
 
28
        char *dest;
 
29
        char *bcast;
 
30
        char *mask;
 
31
        int flags;
 
32
        gboolean alive;
 
33
        gboolean enable;
 
34
        gboolean updated;
 
35
        gboolean plug;
 
36
        gboolean connected;
 
37
 
 
38
        /* wireless */
 
39
        gboolean wireless;
 
40
        char *protocol;
 
41
        char *essid;
 
42
        int *quality;
 
43
        struct pgui *pg;
 
44
 
 
45
        int status;
 
46
        gulong recv_bytes;
 
47
        gulong recv_packets;
 
48
        gulong trans_bytes;
 
49
        gulong trans_packets;
 
50
 
 
51
        /* systray */
 
52
        struct statusicon *status_icon;
 
53
} netdevice;
 
54
 
 
55
typedef struct netdevice_node {
 
56
        netdevice             info;
 
57
        struct netdevice_node *prev;
 
58
        struct netdevice_node *next;
 
59
} NETDEVLIST;
 
60
typedef NETDEVLIST *NETDEVLIST_PTR;
 
61
 
 
62
typedef struct {
 
63
        int dev_count;
 
64
        int sockfd;
 
65
        int iwsockfd;
 
66
        GIOChannel *lxnmchannel;
 
67
        FILE *netdev_fp;
 
68
        NETDEVLIST_PTR netdevlist;
 
69
} FNETD;
 
70
 
 
71
typedef struct {
 
72
    GtkWidget *mainw;
 
73
    FNETD *fnetd;
 
74
    char *fixcmd;
 
75
    gint ttag;
 
76
} netstat;
 
77
 
 
78
typedef struct {
 
79
    netstat *ns;
 
80
    NETDEVLIST_PTR netdev_list;
 
81
} netdev_info;
 
82
 
 
83
typedef struct {
 
84
        netdev_info *ni;
 
85
        GIOChannel *gio;
 
86
        ap_info *apinfo;
 
87
        char *ifname;
 
88
} ap_setting;
 
89
 
 
90
#endif