/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    Drag.SetHandler.c
    Author:  Copyright  1994 Jason Williams
    Version: 1.00 (06 Feb 1994)
    Purpose: Vastly simplify processing of drags-
             attach handlers to process drag updates and drag completion

             NOTE that this system relies on a pair of handlers (for NULL
             and Drag-Finished events) to operate. (See Drag.h)
*/

#include "Desk.Drag.h"

Desk_drag_handler Desk_drag_currentupdate    = NULL;
Desk_drag_handler Desk_drag_currentcomplete  = NULL;
void         *Desk_drag_currentuserdata = NULL;


extern void Desk_Drag_SetHandlers(Desk_drag_handler uproc, Desk_drag_handler cproc,
                             void *userdata)
{
  Desk_drag_currentupdate   = uproc;
  Desk_drag_currentcomplete = cproc;
  Desk_drag_currentuserdata = userdata;
}
