/**
 * Scout - The Amiga System Monitor
 *
 *------------------------------------------------------------------
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * You must not use this source code to gain profit of any kind!
 *
 *------------------------------------------------------------------
 *
 * @author Andreas Gelhausen
 * @author RiUBYTEd Körber <rkoerber@gmx.de>
 */


/* Prototypes for functions defined in
objects/scout_semaphores.c
 */

struct SemaphoreEntry {
    struct SignalSemaphore *se_Addr;
    UBYTE se_Address[ADDRESS_LENGTH];
    UBYTE se_Name[FILENAME_LENGTH];
    UBYTE se_NestCount[NUMBER_LENGTH];
    UBYTE se_QueueCount[NUMBER_LENGTH];
    UBYTE se_Owner[NODENAME_LENGTH];
};

void PrintSemaphores( char * );

void SendSemList( void );

#define SemaphoresWindowObject              NewObject(SemaphoresWinClass->mcc_Class, NULL

struct SemaphoresWinData {
    UBYTE swd_Title[WINDOW_TITLE_LENGTH];
    APTR swd_SemaphoreList;
    APTR swd_SemaphoreText;
    APTR swd_SemaphoreCount;
    APTR swd_ObtainButton;
    APTR swd_ReleaseButton;
    APTR swd_RemoveButton;
};

ULONG __asm __saveds SemaphoresWinDispatcher( register __a0 struct IClass *cl,
                                              register __a2 Object *obj,
                                              register __a1 Msg msg );

