This file is indexed.

/usr/share/pygtk/2.0/defs/osmgpsmap.defs is in python-osmgpsmap 0.7.3-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
;; -*- scheme -*-

(include "osmgpsmap-compat.defs")

; object definitions ...
(define-object GpsMap
  (in-module "Osm")
  (parent "GtkDrawingArea")
  (c-name "OsmGpsMap")
  (gtype-id "OSM_TYPE_GPS_MAP")
)

(define-object GpsMapImage
  (in-module "Osm")
  (parent "GObject")
  (c-name "OsmGpsMapImage")
  (gtype-id "OSM_TYPE_GPS_MAP_IMAGE")
)

(define-interface GpsMapLayer
  (in-module "Osm")
  (c-name "OsmGpsMapLayer")
  (gtype-id "OSM_TYPE_GPS_MAP_LAYER")
  (prerequisite "GObject")
)

(define-object GpsMapOsd
  (in-module "Osm")
  (parent "GObject")
  (c-name "OsmGpsMapOsd")
  (gtype-id "OSM_TYPE_GPS_MAP_OSD")
)

(define-object GpsMapTrack
  (in-module "Osm")
  (parent "GObject")
  (c-name "OsmGpsMapTrack")
  (gtype-id "OSM_TYPE_GPS_MAP_TRACK")
)

(define-boxed Point
  (in-module "Osm")
  (c-name "OsmGpsMapPoint")
  (gtype-id "OSM_TYPE_GPS_MAP_POINT")
  (copy-func "osm_gps_map_point_copy")
  (release-func "g_free")
  (fields
    '("gfloat" "rlat")
    '("gfloat" "rlon")
  )
)


;; Enumerations and flags ...
(define-enum MapSource
  (in-module "Osm")
  (c-name "OsmGpsMapSource_t")
  (values
   '("None" "OSM_GPS_MAP_SOURCE_NULL")
   '("OpenStreetMap" "OSM_GPS_MAP_SOURCE_OPENSTREETMAP")
   '("OpenStreetMap Renderer" "OSM_GPS_MAP_SOURCE_OPENSTREETMAP_RENDERER")
   '("OpenAerialMap" "OSM_GPS_MAP_SOURCE_OPENAERIALMAP")
   '("Maps For Free" "OSM_GPS_MAP_SOURCE_MAPS_FOR_FREE")
   '("Google Maps" "OSM_GPS_MAP_SOURCE_GOOGLE_STREET")
   '("Google Satellite" "OSM_GPS_MAP_SOURCE_GOOGLE_SATELLITE")
   '("Google Maps Hybrid" "OSM_GPS_MAP_SOURCE_GOOGLE_HYBRID")
   '("Virtual Earth" "OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_STREET")
   '("Virtual Earth Satellite" "OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_SATELLITE")
   '("Virtual Earth Hybrid" "OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_HYBRID")
   '("Yahoo Maps" "OSM_GPS_MAP_SOURCE_YAHOO_STREET")
   '("Yahoo Maps Satellite" "OSM_GPS_MAP_SOURCE_YAHOO_SATELLITE")
   '("Yahoo Maps Hybrid" "OSM_GPS_MAP_SOURCE_YAHOO_HYBRID")
  )
)

(define-enum Key
  (in-module "Osm")
  (c-name "OsmGpsMapKey_t")
  (values
   '("Fullscreen" "OSM_GPS_MAP_KEY_FULLSCREEN")
   '("Zoom In" "OSM_GPS_MAP_KEY_ZOOMIN")
   '("Zoom Out" "OSM_GPS_MAP_KEY_ZOOMOUT")
   '("Up" "OSM_GPS_MAP_KEY_UP")
   '("Down" "OSM_GPS_MAP_KEY_DOWN")
   '("Left" "OSM_GPS_MAP_KEY_LEFT")
   '("Right" "OSM_GPS_MAP_KEY_RIGHT")
  )
)

;; From osm-gps-map-widget.h

(define-function osm_gps_map_get_type
  (c-name "osm_gps_map_get_type")
  (return-type "GType")
)

(define-function osm_gps_map_new
  (c-name "osm_gps_map_new")
  (is-constructor-of "OsmGpsMap")
  (return-type "GtkWidget*")
  (properties
    '("auto_center" (optional))
    '("auto_center_threshold" (optional))
    '("record_trip_history" (optional))
    '("show_trip_history" (optional))
    '("show_gps_point" (optional))
    '("auto_download" (optional))
    '("repo_uri" (optional))
    '("proxy_uri" (optional))
    '("tile_cache" (optional))
    '("tile_cache_base" (optional))
    '("tile_cache_is_full_path" (optional))
    '("zoom" (optional))
    '("max_zoom" (optional))
    '("min_zoom" (optional))
    '("map_x" (optional))
    '("map_y" (optional))
    '("gps_track_width" (optional))
    '("gps_track_point_radius" (optional))
    '("gps_track_highlight_radius" (optional))
    '("map_source" (optional))
    '("image_format" (optional))
    '("drag_limit" (optional))
  )
)

(define-function get_default_cache_directory
  (c-name "osm_gps_map_get_default_cache_directory")
  (return-type "gchar*")
)

(define-virtual draw_gps_point
  (of-object "OsmGpsMap")
  (return-type "none")
  (parameters
    '("GdkDrawable*" "drawable")
  )
)

(define-method download_maps
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_download_maps")
  (return-type "none")
  (parameters
    '("OsmGpsMapPoint*" "pt1")
    '("OsmGpsMapPoint*" "pt2")
    '("int" "zoom_start")
    '("int" "zoom_end")
  )
)

(define-method download_cancel_all
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_download_cancel_all")
  (return-type "none")
)

(define-method get_bbox
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_get_bbox")
  (return-type "none")
  (parameters
    '("OsmGpsMapPoint*" "pt1")
    '("OsmGpsMapPoint*" "pt2")
  )
)

(define-method set_center_and_zoom
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_set_center_and_zoom")
  (return-type "none")
  (parameters
    '("float" "latitude")
    '("float" "longitude")
    '("int" "zoom")
  )
)

(define-method set_center
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_set_center")
  (return-type "none")
  (parameters
    '("float" "latitude")
    '("float" "longitude")
  )
)

(define-method set_zoom
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_set_zoom")
  (return-type "int")
  (parameters
    '("int" "zoom")
  )
)

(define-method set_zoom_offset
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_set_zoom_offset")
  (return-type "none")
  (parameters
    '("int" "zoom_offset")
  )
)

(define-method zoom_in
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_zoom_in")
  (return-type "int")
)

(define-method zoom_out
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_zoom_out")
  (return-type "int")
)

(define-method scroll
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_scroll")
  (return-type "none")
  (parameters
    '("gint" "dx")
    '("gint" "dy")
  )
)

(define-method get_scale
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_get_scale")
  (return-type "float")
)

(define-method set_keyboard_shortcut
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_set_keyboard_shortcut")
  (return-type "none")
  (parameters
    '("OsmGpsMapKey_t" "key")
    '("guint" "keyval")
  )
)

(define-method track_add
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_track_add")
  (return-type "none")
  (parameters
    '("OsmGpsMapTrack*" "track")
  )
)

(define-method track_remove_all
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_track_remove_all")
  (return-type "none")
)

(define-method track_remove
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_track_remove")
  (return-type "gboolean")
  (parameters
    '("OsmGpsMapTrack*" "track")
  )
)

(define-method gps_add
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_gps_add")
  (return-type "none")
  (parameters
    '("float" "latitude")
    '("float" "longitude")
    '("float" "heading" (default "OSM_GPS_MAP_INVALID"))
  )
)

(define-method gps_clear
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_gps_clear")
  (return-type "none")
)

(define-method gps_get_track
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_gps_get_track")
  (return-type "OsmGpsMapTrack*")
  (caller-owns-return #f)
)

(define-method image_add
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_image_add")
  (return-type "OsmGpsMapImage*")
  (parameters
    '("float" "latitude")
    '("float" "longitude")
    '("GdkPixbuf*" "image")
  )
)

(define-method image_add_with_alignment
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_image_add_with_alignment")
  (return-type "OsmGpsMapImage*")
  (parameters
    '("float" "latitude")
    '("float" "longitude")
    '("GdkPixbuf*" "image")
    '("float" "xalign")
    '("float" "yalign")
  )
)

(define-method image_remove
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_image_remove")
  (return-type "gboolean")
  (parameters
    '("OsmGpsMapImage*" "image")
  )
)

(define-method image_remove_all
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_image_remove_all")
  (return-type "none")
)

(define-method layer_add
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_layer_add")
  (return-type "none")
  (parameters
    '("OsmGpsMapLayer*" "layer")
  )
)

(define-method layer_remove
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_layer_remove")
  (return-type "gboolean")
  (parameters
    '("OsmGpsMapLayer*" "layer")
  )
)

(define-method layer_remove_all
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_layer_remove_all")
  (return-type "none")
)

(define-method convert_screen_to_geographic
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_convert_screen_to_geographic")
  (return-type "none")
  (parameters
    '("gint" "pixel_x")
    '("gint" "pixel_y")
    '("OsmGpsMapPoint*" "pt")
  )
)

(define-method convert_geographic_to_screen
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_convert_geographic_to_screen")
  (return-type "none")
  (parameters
    '("OsmGpsMapPoint*" "pt")
    '("gint*" "pixel_x")
    '("gint*" "pixel_y")
  )
)

(define-method get_event_location
  (of-object "OsmGpsMap")
  (c-name "osm_gps_map_get_event_location")
  (return-type "OsmGpsMapPoint*")
  (caller-owns-return #t)
  (parameters
    '("GdkEventButton*" "event")
  )
)



;; From osm-gps-map-osd.h

(define-function osm_gps_map_osd_get_type
  (c-name "osm_gps_map_osd_get_type")
  (return-type "GType")
)

(define-function osm_gps_map_osd_new
  (c-name "osm_gps_map_osd_new")
  (is-constructor-of "OsmGpsMapOsd")
  (return-type "OsmGpsMapOsd*")
  (properties
    '("osd_x" (optional))
    '("osd_y" (optional))
    '("dpad_radius" (optional))
    '("show_scale" (optional))
    '("show_coordinates" (optional))
    '("show_crosshair" (optional))
    '("show_dpad" (optional))
    '("show_zoom" (optional))
    '("show_gps_in_dpad" (optional))
    '("show_gps_in_zoom" (optional))
  )
)



;; From osm-gps-map-image.h

(define-function osm_gps_map_image_get_type
  (c-name "osm_gps_map_image_get_type")
  (return-type "GType")
)

(define-function osm_gps_map_image_new
  (c-name "osm_gps_map_image_new")
  (is-constructor-of "OsmGpsMapImage")
  (return-type "OsmGpsMapImage*")
)

(define-method draw
  (of-object "OsmGpsMapImage")
  (c-name "osm_gps_map_image_draw")
  (return-type "none")
  (parameters
    '("GdkDrawable*" "drawable")
    '("GdkGC*" "gc")
    '("GdkRectangle*" "rect")
  )
)

(define-method get_point
  (of-object "OsmGpsMapImage")
  (c-name "osm_gps_map_image_get_point")
  (return-type "const-OsmGpsMapPoint*")
)



;; From osm-gps-map-layer.h

(define-function osm_gps_map_layer_get_type
  (c-name "osm_gps_map_layer_get_type")
  (return-type "GType")
)

(define-virtual render
  (of-object "OsmGpsMapLayer")
  (c-name "osm_gps_map_layer_render")
  (return-type "none")
  (parameters
    '("OsmGpsMap*" "map")
  )
)

(define-virtual draw
  (of-object "OsmGpsMapLayer")
  (c-name "osm_gps_map_layer_draw")
  (return-type "none")
  (parameters
    '("OsmGpsMap*" "map")
    '("GdkDrawable*" "drawable")
  )
)

(define-virtual busy
  (of-object "OsmGpsMapLayer")
  (c-name "osm_gps_map_layer_busy")
  (return-type "gboolean")
)

(define-virtual button_press
  (of-object "OsmGpsMapLayer")
  (c-name "osm_gps_map_layer_button_press")
  (return-type "gboolean")
  (parameters
    '("OsmGpsMap*" "map")
    '("GdkEventButton*" "event")
  )
)



;; From osm-gps-map-track.h

(define-function osm_gps_map_track_get_type
  (c-name "osm_gps_map_track_get_type")
  (return-type "GType")
)

(define-function osm_gps_map_track_new
  (c-name "osm_gps_map_track_new")
  (is-constructor-of "OsmGpsMapTrack")
  (return-type "OsmGpsMapTrack*")
)

(define-method add_point
  (of-object "OsmGpsMapTrack")
  (c-name "osm_gps_map_track_add_point")
  (return-type "none")
  (parameters
    '("const-OsmGpsMapPoint*" "point")
  )
)

(define-method get_points
  (of-object "OsmGpsMapTrack")
  (c-name "osm_gps_map_track_get_points")
  (return-type "GSList*")
)

(define-method get_color
  (of-object "OsmGpsMapTrack")
  (c-name "osm_gps_map_track_get_color")
  (return-type "none")
  (parameters
    '("GdkColor*" "color")
  )
)



;; From osm-gps-map-point.h

(define-function osm_gps_map_point_get_type
  (c-name "osm_gps_map_point_get_type")
  (return-type "GType")
)

(define-function point_new_degrees
  (c-name "osm_gps_map_point_new_degrees")
  (return-type "OsmGpsMapPoint*")
  (parameters
    '("float" "lat")
    '("float" "lon")
  )
)

(define-function point_new_radians
  (c-name "osm_gps_map_point_new_radians")
  (return-type "OsmGpsMapPoint*")
  (parameters
    '("float" "rlat")
    '("float" "rlon")
  )
)

(define-method get_degrees
  (of-object "OsmGpsMapPoint")
  (c-name "osm_gps_map_point_get_degrees")
  (return-type "none")
  (parameters
    '("float*" "lat")
    '("float*" "lon")
  )
)

(define-method get_radians
  (of-object "OsmGpsMapPoint")
  (c-name "osm_gps_map_point_get_radians")
  (return-type "none")
  (parameters
    '("float*" "rlat")
    '("float*" "rlon")
  )
)

(define-method set_degrees
  (of-object "OsmGpsMapPoint")
  (c-name "osm_gps_map_point_set_degrees")
  (return-type "none")
  (parameters
    '("float" "lat")
    '("float" "lon")
  )
)

(define-method set_radians
  (of-object "OsmGpsMapPoint")
  (c-name "osm_gps_map_point_set_radians")
  (return-type "none")
  (parameters
    '("float" "rlat")
    '("float" "rlon")
  )
)



;; From osm-gps-map-source.h

(define-function source_get_friendly_name
  (c-name "osm_gps_map_source_get_friendly_name")
  (return-type "const-char*")
  (parameters
    '("OsmGpsMapSource_t" "source")
  )
)

(define-function source_get_repo_uri
  (c-name "osm_gps_map_source_get_repo_uri")
  (return-type "const-char*")
  (parameters
    '("OsmGpsMapSource_t" "source")
  )
)

(define-function source_get_image_format
  (c-name "osm_gps_map_source_get_image_format")
  (return-type "const-char*")
  (parameters
    '("OsmGpsMapSource_t" "source")
  )
)

(define-function source_get_min_zoom
  (c-name "osm_gps_map_source_get_min_zoom")
  (return-type "int")
  (parameters
    '("OsmGpsMapSource_t" "source")
  )
)

(define-function source_get_max_zoom
  (c-name "osm_gps_map_source_get_max_zoom")
  (return-type "int")
  (parameters
    '("OsmGpsMapSource_t" "source")
  )
)

(define-function source_is_valid
  (c-name "osm_gps_map_source_is_valid")
  (return-type "gboolean")
  (parameters
    '("OsmGpsMapSource_t" "source")
  )
)