summaryrefslogtreecommitdiffstats
path: root/src/portsandicons.h
blob: a55ee550b13a59bd54dc4df271d22332dc79caa3 (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
/***************************************************************************
** $Id: portsandicons.h,v 1.15 2008/07/31 19:56:26 hoganrobert Exp $
 *   Copyright (C) 2006 - 2008 Robert Hogan                                *
 *   [email protected]                                                *
 *                                                                         *
 *   Based on config method in Tor
 *
 *   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 St, Fifth Floor, Boston, MA 02110-1301, USA.              *
 ***************************************************************************/

/** Enumeration of types which option values can take */
typedef enum display_once_t {
  DISPLAY = 0,   /**< An arbitrary string. */
  DONT_DISPLAY_AGAIN,         /**< A non-negative integer less than MAX_INT */
} display_once_t;

typedef struct portsandicons_t {
  const char *port; /**< The full keyword (case insensitive). */
  const char *icon; /**< String (or null) describing initial value. */
  int secure; /**< String (or null) describing initial value. */
  int screaminglyinsecure; /**< String (or null) describing initial value. */
  display_once_t display; 
} portsandicons_t;


#define MSG(port,icon,secure, screaminglyinsecure, display)                             \
  { port,icon,secure, screaminglyinsecure,display }

static portsandicons_t _port_icon[] = {
    MSG("80","konqueror", 0,0 , DISPLAY),
    MSG("443","tork_konqueror_https",1 ,0 , DISPLAY),
    MSG("http","konqueror",0 ,0 , DISPLAY),
    MSG("https","tork_konqueror_https",1 ,0 , DISPLAY),
    MSG("21","ftp",0 , 1 ,DISPLAY),
    MSG("22","tork_konsole_https",1 ,0 , DISPLAY),
    MSG("ssh","tork_konsole_https",1 ,0 , DISPLAY),
    MSG("telnet","konsole",0 ,1 , DISPLAY),
    MSG("23","konsole",0 ,1 , DISPLAY),
    MSG("25","tork_mail",0 ,1 , DISPLAY),
    MSG("smtp","tork_mail",0 ,1 , DISPLAY),
    MSG("53","error",0 ,0 , DISPLAY),
    MSG("domain","error",0 ,0 , DISPLAY),
    MSG("110","tork_mail",0 ,1 , DISPLAY),
    MSG("pop3","tork_mail",0 ,1 , DISPLAY),
    MSG("1863","tork_msn_protocol",0 ,0 , DISPLAY),
    MSG("mmcc","tork_yahoo_protocol",0 ,0 , DISPLAY),
    MSG("5050","tork_yahoo_protocol",0 ,0 , DISPLAY),
    MSG("6667","tork_irc_protocol",0 ,0 , DISPLAY),
    MSG("ircd","tork_irc_protocol",0 ,0 , DISPLAY),
    MSG("9030","tork_tor",1 , 0 ,DISPLAY),
    MSG("9031","tork_tor",1 , 0 ,DISPLAY),
    MSG("9032","tork_tor",1 , 0 ,DISPLAY),
    MSG("9001","tork_tor",1 , 0 ,DISPLAY),
    MSG("9051","tork_tor",1 , 0 ,DISPLAY),
    MSG("9050","tork_tor",1 , 0 ,DISPLAY),
  { NULL, NULL, 0, 0, DISPLAY }
};
#undef MSG