93 |
andreas |
1 |
#include "garmin.h"
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
#define SYMBOL_NAME \
|
|
|
5 |
char * \
|
|
|
6 |
garmin_symbol_name ( symbol_value s ) \
|
|
|
7 |
{ \
|
|
|
8 |
char * name = "unknown"; \
|
|
|
9 |
\
|
|
|
10 |
switch ( s )
|
|
|
11 |
|
|
|
12 |
#define SYMBOL_CASE(x) case x: name = #x; break
|
|
|
13 |
|
|
|
14 |
#define SYMBOL_DEFAULT \
|
|
|
15 |
default: break; \
|
|
|
16 |
} \
|
|
|
17 |
\
|
|
|
18 |
return name
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
SYMBOL_NAME {
|
|
|
22 |
SYMBOL_CASE(sym_anchor);
|
|
|
23 |
SYMBOL_CASE(sym_bell);
|
|
|
24 |
SYMBOL_CASE(sym_diamond_grn);
|
|
|
25 |
SYMBOL_CASE(sym_diamond_red);
|
|
|
26 |
SYMBOL_CASE(sym_dive1);
|
|
|
27 |
SYMBOL_CASE(sym_dive2);
|
|
|
28 |
SYMBOL_CASE(sym_dollar);
|
|
|
29 |
SYMBOL_CASE(sym_fish);
|
|
|
30 |
SYMBOL_CASE(sym_fuel);
|
|
|
31 |
SYMBOL_CASE(sym_horn);
|
|
|
32 |
SYMBOL_CASE(sym_house);
|
|
|
33 |
SYMBOL_CASE(sym_knife);
|
|
|
34 |
SYMBOL_CASE(sym_light);
|
|
|
35 |
SYMBOL_CASE(sym_mug);
|
|
|
36 |
SYMBOL_CASE(sym_skull);
|
|
|
37 |
SYMBOL_CASE(sym_square_grn);
|
|
|
38 |
SYMBOL_CASE(sym_square_red);
|
|
|
39 |
SYMBOL_CASE(sym_wbuoy);
|
|
|
40 |
SYMBOL_CASE(sym_wpt_dot);
|
|
|
41 |
SYMBOL_CASE(sym_wreck);
|
|
|
42 |
SYMBOL_CASE(sym_null);
|
|
|
43 |
SYMBOL_CASE(sym_mob);
|
|
|
44 |
SYMBOL_CASE(sym_buoy_ambr);
|
|
|
45 |
SYMBOL_CASE(sym_buoy_blck);
|
|
|
46 |
SYMBOL_CASE(sym_buoy_blue);
|
|
|
47 |
SYMBOL_CASE(sym_buoy_grn);
|
|
|
48 |
SYMBOL_CASE(sym_buoy_grn_red);
|
|
|
49 |
SYMBOL_CASE(sym_buoy_grn_wht);
|
|
|
50 |
SYMBOL_CASE(sym_buoy_orng);
|
|
|
51 |
SYMBOL_CASE(sym_buoy_red);
|
|
|
52 |
SYMBOL_CASE(sym_buoy_red_grn);
|
|
|
53 |
SYMBOL_CASE(sym_buoy_red_wht);
|
|
|
54 |
SYMBOL_CASE(sym_buoy_violet);
|
|
|
55 |
SYMBOL_CASE(sym_buoy_wht);
|
|
|
56 |
SYMBOL_CASE(sym_buoy_wht_grn);
|
|
|
57 |
SYMBOL_CASE(sym_buoy_wht_red);
|
|
|
58 |
SYMBOL_CASE(sym_dot);
|
|
|
59 |
SYMBOL_CASE(sym_rbcn);
|
|
|
60 |
SYMBOL_CASE(sym_boat_ramp);
|
|
|
61 |
SYMBOL_CASE(sym_camp);
|
|
|
62 |
SYMBOL_CASE(sym_restrooms);
|
|
|
63 |
SYMBOL_CASE(sym_showers);
|
|
|
64 |
SYMBOL_CASE(sym_drinking_wtr);
|
|
|
65 |
SYMBOL_CASE(sym_phone);
|
|
|
66 |
SYMBOL_CASE(sym_1st_aid);
|
|
|
67 |
SYMBOL_CASE(sym_info);
|
|
|
68 |
SYMBOL_CASE(sym_parking);
|
|
|
69 |
SYMBOL_CASE(sym_park);
|
|
|
70 |
SYMBOL_CASE(sym_picnic);
|
|
|
71 |
SYMBOL_CASE(sym_scenic);
|
|
|
72 |
SYMBOL_CASE(sym_skiing);
|
|
|
73 |
SYMBOL_CASE(sym_swimming);
|
|
|
74 |
SYMBOL_CASE(sym_dam);
|
|
|
75 |
SYMBOL_CASE(sym_controlled);
|
|
|
76 |
SYMBOL_CASE(sym_danger);
|
|
|
77 |
SYMBOL_CASE(sym_restricted);
|
|
|
78 |
SYMBOL_CASE(sym_null_2);
|
|
|
79 |
SYMBOL_CASE(sym_ball);
|
|
|
80 |
SYMBOL_CASE(sym_car);
|
|
|
81 |
SYMBOL_CASE(sym_deer);
|
|
|
82 |
SYMBOL_CASE(sym_shpng_cart);
|
|
|
83 |
SYMBOL_CASE(sym_lodging);
|
|
|
84 |
SYMBOL_CASE(sym_mine);
|
|
|
85 |
SYMBOL_CASE(sym_trail_head);
|
|
|
86 |
SYMBOL_CASE(sym_truck_stop);
|
|
|
87 |
SYMBOL_CASE(sym_user_exit);
|
|
|
88 |
SYMBOL_CASE(sym_flag);
|
|
|
89 |
SYMBOL_CASE(sym_circle_x);
|
|
|
90 |
SYMBOL_CASE(sym_open_24hr);
|
|
|
91 |
SYMBOL_CASE(sym_fhs_facility);
|
|
|
92 |
SYMBOL_CASE(sym_bot_cond);
|
|
|
93 |
SYMBOL_CASE(sym_tide_pred_stn);
|
|
|
94 |
SYMBOL_CASE(sym_anchor_prohib);
|
|
|
95 |
SYMBOL_CASE(sym_beacon);
|
|
|
96 |
SYMBOL_CASE(sym_coast_guard);
|
|
|
97 |
SYMBOL_CASE(sym_reef);
|
|
|
98 |
SYMBOL_CASE(sym_weedbed);
|
|
|
99 |
SYMBOL_CASE(sym_dropoff);
|
|
|
100 |
SYMBOL_CASE(sym_dock);
|
|
|
101 |
SYMBOL_CASE(sym_marina);
|
|
|
102 |
SYMBOL_CASE(sym_bait_tackle);
|
|
|
103 |
SYMBOL_CASE(sym_stump);
|
|
|
104 |
SYMBOL_CASE(sym_begin_custom);
|
|
|
105 |
SYMBOL_CASE(sym_end_custom);
|
|
|
106 |
SYMBOL_CASE(sym_is_hwy);
|
|
|
107 |
SYMBOL_CASE(sym_us_hwy);
|
|
|
108 |
SYMBOL_CASE(sym_st_hwy);
|
|
|
109 |
SYMBOL_CASE(sym_mi_mrkr);
|
|
|
110 |
SYMBOL_CASE(sym_trcbck);
|
|
|
111 |
SYMBOL_CASE(sym_golf);
|
|
|
112 |
SYMBOL_CASE(sym_sml_cty);
|
|
|
113 |
SYMBOL_CASE(sym_med_cty);
|
|
|
114 |
SYMBOL_CASE(sym_lrg_cty);
|
|
|
115 |
SYMBOL_CASE(sym_freeway);
|
|
|
116 |
SYMBOL_CASE(sym_ntl_hwy);
|
|
|
117 |
SYMBOL_CASE(sym_cap_cty);
|
|
|
118 |
SYMBOL_CASE(sym_amuse_pk);
|
|
|
119 |
SYMBOL_CASE(sym_bowling);
|
|
|
120 |
SYMBOL_CASE(sym_car_rental);
|
|
|
121 |
SYMBOL_CASE(sym_car_repair);
|
|
|
122 |
SYMBOL_CASE(sym_fastfood);
|
|
|
123 |
SYMBOL_CASE(sym_fitness);
|
|
|
124 |
SYMBOL_CASE(sym_movie);
|
|
|
125 |
SYMBOL_CASE(sym_museum);
|
|
|
126 |
SYMBOL_CASE(sym_pharmacy);
|
|
|
127 |
SYMBOL_CASE(sym_pizza);
|
|
|
128 |
SYMBOL_CASE(sym_post_ofc);
|
|
|
129 |
SYMBOL_CASE(sym_rv_park);
|
|
|
130 |
SYMBOL_CASE(sym_school);
|
|
|
131 |
SYMBOL_CASE(sym_stadium);
|
|
|
132 |
SYMBOL_CASE(sym_store);
|
|
|
133 |
SYMBOL_CASE(sym_zoo);
|
|
|
134 |
SYMBOL_CASE(sym_gas_plus);
|
|
|
135 |
SYMBOL_CASE(sym_faces);
|
|
|
136 |
SYMBOL_CASE(sym_ramp_int);
|
|
|
137 |
SYMBOL_CASE(sym_st_int);
|
|
|
138 |
SYMBOL_CASE(sym_weigh_sttn);
|
|
|
139 |
SYMBOL_CASE(sym_toll_booth);
|
|
|
140 |
SYMBOL_CASE(sym_elev_pt);
|
|
|
141 |
SYMBOL_CASE(sym_ex_no_srvc);
|
|
|
142 |
SYMBOL_CASE(sym_geo_place_mm);
|
|
|
143 |
SYMBOL_CASE(sym_geo_place_wtr);
|
|
|
144 |
SYMBOL_CASE(sym_geo_place_lnd);
|
|
|
145 |
SYMBOL_CASE(sym_bridge);
|
|
|
146 |
SYMBOL_CASE(sym_building);
|
|
|
147 |
SYMBOL_CASE(sym_cemetery);
|
|
|
148 |
SYMBOL_CASE(sym_church);
|
|
|
149 |
SYMBOL_CASE(sym_civil);
|
|
|
150 |
SYMBOL_CASE(sym_crossing);
|
|
|
151 |
SYMBOL_CASE(sym_hist_town);
|
|
|
152 |
SYMBOL_CASE(sym_levee);
|
|
|
153 |
SYMBOL_CASE(sym_military);
|
|
|
154 |
SYMBOL_CASE(sym_oil_field);
|
|
|
155 |
SYMBOL_CASE(sym_tunnel);
|
|
|
156 |
SYMBOL_CASE(sym_beach);
|
|
|
157 |
SYMBOL_CASE(sym_forest);
|
|
|
158 |
SYMBOL_CASE(sym_summit);
|
|
|
159 |
SYMBOL_CASE(sym_lrg_ramp_int);
|
|
|
160 |
SYMBOL_CASE(sym_lrg_ex_no_srvc);
|
|
|
161 |
SYMBOL_CASE(sym_badge);
|
|
|
162 |
SYMBOL_CASE(sym_cards);
|
|
|
163 |
SYMBOL_CASE(sym_snowski);
|
|
|
164 |
SYMBOL_CASE(sym_iceskate);
|
|
|
165 |
SYMBOL_CASE(sym_wrecker);
|
|
|
166 |
SYMBOL_CASE(sym_border);
|
|
|
167 |
SYMBOL_CASE(sym_geocache);
|
|
|
168 |
SYMBOL_CASE(sym_geocache_fnd);
|
|
|
169 |
SYMBOL_CASE(sym_cntct_smiley);
|
|
|
170 |
SYMBOL_CASE(sym_cntct_ball_cap);
|
|
|
171 |
SYMBOL_CASE(sym_cntct_big_ears);
|
|
|
172 |
SYMBOL_CASE(sym_cntct_spike);
|
|
|
173 |
SYMBOL_CASE(sym_cntct_goatee);
|
|
|
174 |
SYMBOL_CASE(sym_cntct_afro);
|
|
|
175 |
SYMBOL_CASE(sym_cntct_dreads);
|
|
|
176 |
SYMBOL_CASE(sym_cntct_female1);
|
|
|
177 |
SYMBOL_CASE(sym_cntct_female2);
|
|
|
178 |
SYMBOL_CASE(sym_cntct_female3);
|
|
|
179 |
SYMBOL_CASE(sym_cntct_ranger);
|
|
|
180 |
SYMBOL_CASE(sym_cntct_kung_fu);
|
|
|
181 |
SYMBOL_CASE(sym_cntct_sumo);
|
|
|
182 |
SYMBOL_CASE(sym_cntct_pirate);
|
|
|
183 |
SYMBOL_CASE(sym_cntct_biker);
|
|
|
184 |
SYMBOL_CASE(sym_cntct_alien);
|
|
|
185 |
SYMBOL_CASE(sym_cntct_bug);
|
|
|
186 |
SYMBOL_CASE(sym_cntct_cat);
|
|
|
187 |
SYMBOL_CASE(sym_cntct_dog);
|
|
|
188 |
SYMBOL_CASE(sym_cntct_pig);
|
|
|
189 |
SYMBOL_CASE(sym_hydrant);
|
|
|
190 |
SYMBOL_CASE(sym_flag_blue);
|
|
|
191 |
SYMBOL_CASE(sym_flag_green);
|
|
|
192 |
SYMBOL_CASE(sym_flag_red);
|
|
|
193 |
SYMBOL_CASE(sym_pin_blue);
|
|
|
194 |
SYMBOL_CASE(sym_pin_green);
|
|
|
195 |
SYMBOL_CASE(sym_pin_red);
|
|
|
196 |
SYMBOL_CASE(sym_block_blue);
|
|
|
197 |
SYMBOL_CASE(sym_block_green);
|
|
|
198 |
SYMBOL_CASE(sym_block_red);
|
|
|
199 |
SYMBOL_CASE(sym_bike_trail);
|
|
|
200 |
SYMBOL_CASE(sym_circle_red);
|
|
|
201 |
SYMBOL_CASE(sym_circle_green);
|
|
|
202 |
SYMBOL_CASE(sym_circle_blue);
|
|
|
203 |
SYMBOL_CASE(sym_diamond_blue);
|
|
|
204 |
SYMBOL_CASE(sym_oval_red);
|
|
|
205 |
SYMBOL_CASE(sym_oval_green);
|
|
|
206 |
SYMBOL_CASE(sym_oval_blue);
|
|
|
207 |
SYMBOL_CASE(sym_rect_red);
|
|
|
208 |
SYMBOL_CASE(sym_rect_green);
|
|
|
209 |
SYMBOL_CASE(sym_rect_blue);
|
|
|
210 |
SYMBOL_CASE(sym_square_blue);
|
|
|
211 |
SYMBOL_CASE(sym_letter_a_red);
|
|
|
212 |
SYMBOL_CASE(sym_letter_b_red);
|
|
|
213 |
SYMBOL_CASE(sym_letter_c_red);
|
|
|
214 |
SYMBOL_CASE(sym_letter_d_red);
|
|
|
215 |
SYMBOL_CASE(sym_letter_a_green);
|
|
|
216 |
SYMBOL_CASE(sym_letter_b_green);
|
|
|
217 |
SYMBOL_CASE(sym_letter_c_green);
|
|
|
218 |
SYMBOL_CASE(sym_letter_d_green);
|
|
|
219 |
SYMBOL_CASE(sym_letter_a_blue);
|
|
|
220 |
SYMBOL_CASE(sym_letter_b_blue);
|
|
|
221 |
SYMBOL_CASE(sym_letter_c_blue);
|
|
|
222 |
SYMBOL_CASE(sym_letter_d_blue);
|
|
|
223 |
SYMBOL_CASE(sym_number_0_red);
|
|
|
224 |
SYMBOL_CASE(sym_number_1_red);
|
|
|
225 |
SYMBOL_CASE(sym_number_2_red);
|
|
|
226 |
SYMBOL_CASE(sym_number_3_red);
|
|
|
227 |
SYMBOL_CASE(sym_number_4_red);
|
|
|
228 |
SYMBOL_CASE(sym_number_5_red);
|
|
|
229 |
SYMBOL_CASE(sym_number_6_red);
|
|
|
230 |
SYMBOL_CASE(sym_number_7_red);
|
|
|
231 |
SYMBOL_CASE(sym_number_8_red);
|
|
|
232 |
SYMBOL_CASE(sym_number_9_red);
|
|
|
233 |
SYMBOL_CASE(sym_number_0_green);
|
|
|
234 |
SYMBOL_CASE(sym_number_1_green);
|
|
|
235 |
SYMBOL_CASE(sym_number_2_green);
|
|
|
236 |
SYMBOL_CASE(sym_number_3_green);
|
|
|
237 |
SYMBOL_CASE(sym_number_4_green);
|
|
|
238 |
SYMBOL_CASE(sym_number_5_green);
|
|
|
239 |
SYMBOL_CASE(sym_number_6_green);
|
|
|
240 |
SYMBOL_CASE(sym_number_7_green);
|
|
|
241 |
SYMBOL_CASE(sym_number_8_green);
|
|
|
242 |
SYMBOL_CASE(sym_number_9_green);
|
|
|
243 |
SYMBOL_CASE(sym_number_0_blue);
|
|
|
244 |
SYMBOL_CASE(sym_number_1_blue);
|
|
|
245 |
SYMBOL_CASE(sym_number_2_blue);
|
|
|
246 |
SYMBOL_CASE(sym_number_3_blue);
|
|
|
247 |
SYMBOL_CASE(sym_number_4_blue);
|
|
|
248 |
SYMBOL_CASE(sym_number_5_blue);
|
|
|
249 |
SYMBOL_CASE(sym_number_6_blue);
|
|
|
250 |
SYMBOL_CASE(sym_number_7_blue);
|
|
|
251 |
SYMBOL_CASE(sym_number_8_blue);
|
|
|
252 |
SYMBOL_CASE(sym_number_9_blue);
|
|
|
253 |
SYMBOL_CASE(sym_triangle_blue);
|
|
|
254 |
SYMBOL_CASE(sym_triangle_green);
|
|
|
255 |
SYMBOL_CASE(sym_triangle_red);
|
|
|
256 |
SYMBOL_CASE(sym_food_asian);
|
|
|
257 |
SYMBOL_CASE(sym_food_deli);
|
|
|
258 |
SYMBOL_CASE(sym_food_italian);
|
|
|
259 |
SYMBOL_CASE(sym_food_seafood);
|
|
|
260 |
SYMBOL_CASE(sym_food_steak);
|
|
|
261 |
SYMBOL_CASE(sym_airport);
|
|
|
262 |
SYMBOL_CASE(sym_int);
|
|
|
263 |
SYMBOL_CASE(sym_ndb);
|
|
|
264 |
SYMBOL_CASE(sym_vor);
|
|
|
265 |
SYMBOL_CASE(sym_heliport);
|
|
|
266 |
SYMBOL_CASE(sym_private);
|
|
|
267 |
SYMBOL_CASE(sym_soft_fld);
|
|
|
268 |
SYMBOL_CASE(sym_tall_tower);
|
|
|
269 |
SYMBOL_CASE(sym_short_tower);
|
|
|
270 |
SYMBOL_CASE(sym_glider);
|
|
|
271 |
SYMBOL_CASE(sym_ultralight);
|
|
|
272 |
SYMBOL_CASE(sym_parachute);
|
|
|
273 |
SYMBOL_CASE(sym_vortac);
|
|
|
274 |
SYMBOL_CASE(sym_vordme);
|
|
|
275 |
SYMBOL_CASE(sym_faf);
|
|
|
276 |
SYMBOL_CASE(sym_lom);
|
|
|
277 |
SYMBOL_CASE(sym_map);
|
|
|
278 |
SYMBOL_CASE(sym_tacan);
|
|
|
279 |
SYMBOL_CASE(sym_seaplane);
|
|
|
280 |
SYMBOL_DEFAULT;
|
|
|
281 |
}
|
|
|
282 |
|