diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-07-03 18:49:12 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-07-03 18:49:12 +0000 |
commit | 7882ec57c3ec9bceffd1d8ac611e0b536804e771 (patch) | |
tree | a641ef250f3e5bd1dec76914cf156692684daedd /epan/dissectors/packet-x11.h | |
parent | 7a900c81b300906a3037e9793f005ad351aafd15 (diff) |
Improve use of the value_string x11_keysym_vals_source[]:
- Compile the value_string only as part of packet-x11.c
- Create a value_string_ext to ref the value_string;
- packet_vnc.c: Access the value_string using the value_string_ext;
- packet-x11.c: Access the value-string using the value_string_ext
rather then building a temp GTree from the value_string.
svn path=/trunk/; revision=43558
Diffstat (limited to 'epan/dissectors/packet-x11.h')
-rw-r--r-- | epan/dissectors/packet-x11.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/epan/dissectors/packet-x11.h b/epan/dissectors/packet-x11.h new file mode 100644 index 0000000000..be0eb83475 --- /dev/null +++ b/epan/dissectors/packet-x11.h @@ -0,0 +1,27 @@ +/* packet-x11.h + * + * $Id$ + * + * Put here so as to make packet-x11.c lighter. See packet-x11.c + * This .h file should be included *only* in packet-x11.c + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * 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. + */ + +extern value_string_ext x11_keysym_vals_source_ext; |