home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
util
/
misc
/
multiuser
/
src
/
library
/
groupinfo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-07
|
1KB
|
57 lines
/************************************************************
* MultiUser - MultiUser Task/File Support System *
* --------------------------------------------------------- *
* Group Information Management *
* --------------------------------------------------------- *
* © Copyright 1993-1994 Geert Uytterhoeven *
* All Rights Reserved. *
************************************************************/
#include <proto/exec.h>
#include "Memory.h"
#include "GroupInfo.h"
#include "Server.h"
/*
* Allocate a GroupInfo Structure
*
* Public Library Function
*/
struct muPrivGroupInfo __asm __saveds *muAllocGroupInfo(void)
{
return(MAlloc(sizeof(struct muPrivGroupInfo)));
}
/*
* Free a GroupInfo Structure
*
* Public Library Function
*/
void __asm __saveds muFreeGroupInfo(register __a0 struct muPrivGroupInfo *info)
{
if (info) {
FreeV(info->Pattern);
Free(info, sizeof(struct muPrivGroupInfo));
}
}
/*
* Get Information about a Group
*
* Public Library Function
*/
struct muPrivGroupInfo __asm __saveds *muGetGroupInfo(register __a0 struct muPrivGroupInfo *info,
register __d0 ULONG keytype)
{
return((struct muPrivGroupInfo *)SendServerPacket(muSAction_GetGroupInfo, (LONG)info, keytype, NULL,
NULL));
}