--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../aros.css' --->
void MiamiPanelAddInterface(
LONG unit,
STRPTR name,
LONG state,
LONG ontime,
STRPTR speed );
Add an interface to the panel's displayed interface list.
unit - Interface unit identifier. name - Interface name. state - Initial interface state flags. ontime - Initial online-time reference value. speed - Initial speed text.
The function waits until the command message is processed, but does not report whether the interface object was created. The name and speed pointers must remain valid until the call returns.
void MiamiPanelCleanup();
Request panel shutdown and wait for the panel process to finish.
The request is delivered through the panel command port. The function does not report a failure if no command can be sent.
void MiamiPanelDelInterface(
LONG unit );
Request removal of an interface from the panel.
unit - Interface unit identifier.
The command is queued without waiting for its completion.
void MiamiPanelEvent(
ULONG sigs );
Reserved entry point for forwarding event signals to the panel.
sigs - Signal mask; currently ignored.
This entry point has no effect in the current implementation.
void MiamiPanelGetCoord(
LONG * xp,
LONG * yp );
Set both output coordinates to zero.
xp - Pointer receiving the horizontal coordinate. yp - Pointer receiving the vertical coordinate.
Both output pointers must be valid. No window position is queried. This entry point is not implemented beyond initializing its outputs.
LONG MiamiPanelGetVersion();
Return the MiamiPanel interface version identifier.
Always returns 1.
The return value is not the library's version number.
void MiamiPanelInhibitRefresh(
LONG val );
Suspend or resume updates to the panel's interface group.
val - Nonzero to increment the refresh-inhibition count; zero to
decrement it if nonzero.
The first inhibition begins a MUI group change. The matching decrement to zero completes it. Calls are queued; this function does not wait for the panel to process them.
LONG MiamiPanelInit(
IPTR synccb,
IPTR asynccb,
LONG flags,
STRPTR font,
STRPTR screen,
LONG xo,
LONG yo,
IPTR sigbit );
Start the MiamiPanel process and wait for its initialization result.
synccb - Synchronous callback supplied by the caller. asynccb - Asynchronous callback supplied by the caller. flags - Initial panel display flags. font - Currently ignored. screen - Currently ignored. xo - Currently ignored. yo - Currently ignored. sigbit - Currently ignored.
Nonzero if the panel process created its MUI application; zero if initialization failed or another panel process was detected.
The call waits for a reply from the new process. The callback pointers are retained by the library, not copied.
void MiamiPanelInterfaceReport(
LONG unit,
LONG rate,
LONG now,
LONG totalhi,
ULONG totallo );
Update the traffic and elapsed-time display for an interface.
unit - Interface unit identifier.
rate - Rate value passed to the interface's rate display.
now - Current time value; the displayed elapsed time is
calculated relative to the stored ontime value.
totalhi - High 32 bits of the cumulative traffic counter.
totallo - Low 32 bits of the cumulative traffic counter.
A negative unit is ignored. Otherwise, the command is queued without waiting for completion. The two traffic words are presented together to the interface display.
ULONG MiamiPanelKill();
Attempt to stop the panel process and reset panel process state.
FALSE if the process semaphore can be obtained, or if it can be obtained after requesting termination; TRUE otherwise.
If the panel application exists, the function requests its termination and waits 200 ticks before testing the process semaphore.
When the process remains active after the wait, this function resets the process semaphore and may delete the command port while that process still uses them. A TRUE result does not establish that the process has terminated.
void MiamiPanelRefreshName(
LONG unit,
UBYTE * name );
Change the displayed name of an interface.
unit - Interface unit identifier. name - Replacement name, valid until the call returns.
The function waits until the command message is processed. It does not report whether the interface exists.
void MiamiPanelSetInterfaceSpeed(
LONG unit,
UBYTE * speed );
Update the speed text displayed for an interface.
unit - Interface unit identifier. speed - Speed text, valid until the call returns.
The function waits until the command message is processed. It does not report whether the interface exists.
void MiamiPanelSetInterfaceState(
LONG unit,
LONG state,
LONG ontime );
Update the state and online-time reference of an interface.
unit - Interface unit identifier. state - Interface state flags. ontime - Time reference used in elapsed-time calculation.
The command is queued without waiting for completion. No change is made if the interface cannot be found.
void MiamiPanelToFront();
Request that the panel be brought to the front.
The command is queued without waiting for its completion.