[Xastir] Group Messages
Curt, WE7U
archer at eskimo.com
Tue Feb 12 15:34:36 EST 2008
On Tue, 12 Feb 2008, Frank Tomesch wrote:
> Can anyone tell me whether 'Group Messaging' works? and/or the format of
> the '.xastir/config/groups' file.
Don't know. This is a little-used feature in Xastir.
Found "groups" in xa_config.c. It using "GROUP_DATA_FILE" as the
label in the config file, and "group_data_file" as the local
variable inside Xastir that it keeps the filename/path in.
messages.c uses "group_data_file" and then calls group_build_list()
messages.c:group_build_list() reads from the file and puts the data
into "group_data_list".
I see we manually stuff a few things in first before reading from
the file:
// Make sure we always listen for ourself, XASTIR, & our Version
// groups
xastir_snprintf(&group_data_list[0],10,"%s",my_callsign);
xastir_snprintf(&group_data_list[10],10,"XASTIR");
xastir_snprintf(&group_data_list[20],10,"%s",XASTIR_TOCALL);
group_data_count = 3;
So it looks like each field has 10 characters and they're in one big
string.
A quick glance at the while loop which reads it in makes me think
that each group name is on a separate line with a linefeed (or
alternately linefeed & carriage return) at the end of each line.
Actually it looks like they expect up to 9 characters and then a
linefeed, which is enough for a six-character callsign, a dash, and
a 2-character SSID.
--
Curt, WE7U: <www.eskimo.com/~archer/> XASTIR: <www.xastir.org>
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U
The world DOES revolve around me: I picked the coordinate system!
More information about the Xastir
mailing list