[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Fwd: Re: marathon,was:Egale
Am Dienstag, den 14.02.2012, 23:37 +0100 schrieb "Helmut Karlowski"
<helmut.karlowski@ish.de>:
Am 14.02.2012, 23:19 Uhr, schrieb m0n0 <ole@monochrom.net>:
Why does the SLB do an appl_init ???
The line where the appl id is used is within the function show_help( ):
----------------
bubble_text = alloc_shared(256);
if (bubble_text)
{
int msg[8];
strncpy(bubble_text, helptext, 255);
bubble_text[255] = 0;
msg[0] = BUBBLEGEM_SHOW;
msg[1] = gl_apid; // <-- HERE IT IS
msg[2] = 0;
msg[3] = x;
msg[4] = y;
msg[5] = (int)(((long) bubble_text >> 16)
& 0x0000ffff);
msg[6] = (int)((long) bubble_text & 0x0000ffff);
msg[7] = 0;
if (appl_write(bubble_id, 16, msg) == 0)
{
/* Fehler */
}
----------------------
no further usage of the appl id... But maybe it needs appl_init also
for alert's or whatever...? I don't know if it's enough to call
appl_init within the calling process....
Greets,
m