diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-16 20:16:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-16 20:16:13 +0000 |
commit | 1392857efd1e777b3d6453682564bdba77c5aa0b (patch) | |
tree | 53ed2fe0b212958c44fe66a5a3da0e6b1d787da7 /italk.c | |
parent | 887417f0261b1c0b34a8a77bbc07d1b31cbae2fd (diff) | |
download | gpsd-1392857efd1e777b3d6453682564bdba77c5aa0b.tar.gz |
Switch to using C99 initializers everywhere.
Diffstat (limited to 'italk.c')
-rw-r--r-- | italk.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -128,18 +128,18 @@ static void italk_initializer(struct gps_device_t *session) /* this is everything we export */ struct gps_type_t italk_binary = { - "iTalk bi=nary", /* full name of type */ - NULL, /* recognize the type */ - NULL, /* no probe */ - italk_initializer, /* initialize the device */ - packet_get, /* how to grab a packet */ - italk_parse_input, /* read and parse message packets */ - pass_rtcm, /* send RTCM data straight */ - italk_speed, /* we can change baud rates */ - italk_mode, /* there is a mode switcher */ - NULL, /* no sample-rate switcher */ - -1, /* not relevant, no rate switch */ - NULL, /* caller needs to supply a close hook */ - 1, /* updates every second */ + .typename = "iTalk binary", /* full name of type */ + .trigger = NULL, /* recognize the type */ + .probe = NULL, /* no probe */ + .initializer = italk_initializer,/* initialize the device */ + .get_packet = packet_get, /* use generic packet grabber */ + .parse_packet = italk_parse_input,/* parse message packets */ + .rtcm_writer = pass_rtcm, /* send RTCM data straight */ + .speed_switcher = italk_speed, /* we can change baud rates */ + .mode_switcher = italk_mode, /* there is a mode switcher */ + .rate_switcher = NULL, /* no sample-rate switcher */ + .cycle_chars = -1, /* not relevant, no rate switch */ + .wrapup = NULL, /* no close hook */ + .cycle = 1, /* updates every second */ }; #endif /* defined(ITALK_ENABLE) && defined(BINARY_ENABLE) */ |