summaryrefslogtreecommitdiff
path: root/display.h
blob: 6d6e49a54c5723ba4e0bb2141cc092e13ad38539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _display_h
#define _display_h

#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include "gps.h"

void register_canvas(Widget w, GC gc);
void draw_graphics(struct gps_data_t *gpsdata);
void redraw(Widget w, XtPointer client_data, XmDrawingAreaCallbackStruct *cbs);

#if defined(__GNUC__)
#  define UNUSED __attribute__((unused)) /* Flag variable as unused */
#else /* not __GNUC__ */
#  define UNUSED
#endif

#endif /* _display_h */