/*
**      $VER: SampleFuncs.c 1.3 (13.9.96)
**
**      Demo functions for example.library
**
**      (C) Copyright 1996 Andreas R. Kleinert
**      All Rights Reserved.
*/

#define __USE_SYSBASE

#include <exec/types.h>
#include <exec/memory.h>

#include <intuition/intuition.h>

#include <proto/exec.h>
#include <proto/intuition.h>


 /* Please note, that &ExampleBase always resides in register __a6 as well,
    but if we don't need it, we need not reference it here.

    Also note, that registers a0, a1, d0, d1 always are scratch registers,
    so you usually should only *pass* parameters there, but make a copy
    directly after entering the function.

    In this example case, it would not be necessary, but we did it
    nevertheless.
  */

ULONG __saveds __asm EXF_TestRequest( register __d1 UBYTE *title_d1, register __d2 UBYTE *body, register __d3 UBYTE *gadgets)
{
 UBYTE                      *title = title_d1;
 ULONG                       idcmp = NULL;
 struct EasyStruct __aligned estr;

 estr.es_StructSize   = sizeof(struct EasyStruct);
 estr.es_Flags        = NULL;
 estr.es_Title        = title;
 estr.es_TextFormat   = body;
 estr.es_GadgetFormat = gadgets;

 return( (ULONG) EasyRequestArgs(NULL, &estr, &idcmp, NULL));
}
