ldmud-3.2.9/doc/
ldmud-3.2.9/doc/efun/
ldmud-3.2.9/mud/
ldmud-3.2.9/mud/heaven7/
ldmud-3.2.9/mud/heaven7/lib/
ldmud-3.2.9/mud/lp-245/
ldmud-3.2.9/mud/lp-245/banish/
ldmud-3.2.9/mud/lp-245/doc/
ldmud-3.2.9/mud/lp-245/doc/examples/
ldmud-3.2.9/mud/lp-245/doc/sefun/
ldmud-3.2.9/mud/lp-245/log/
ldmud-3.2.9/mud/lp-245/obj/Go/
ldmud-3.2.9/mud/lp-245/players/lars/
ldmud-3.2.9/mud/lp-245/room/death/
ldmud-3.2.9/mud/lp-245/room/maze1/
ldmud-3.2.9/mud/lp-245/room/sub/
ldmud-3.2.9/mud/lp-245/secure/
ldmud-3.2.9/mud/morgengrauen/
ldmud-3.2.9/mud/morgengrauen/lib/
ldmud-3.2.9/mud/sticklib/
ldmud-3.2.9/mud/sticklib/src/
ldmud-3.2.9/mudlib/uni-crasher/
ldmud-3.2.9/pkg/
ldmud-3.2.9/pkg/debugger/
ldmud-3.2.9/pkg/diff/
ldmud-3.2.9/pkg/misc/
ldmud-3.2.9/src/autoconf/
ldmud-3.2.9/src/bugs/
ldmud-3.2.9/src/bugs/MudCompress/
ldmud-3.2.9/src/bugs/b-020916-files/
ldmud-3.2.9/src/bugs/doomdark/
ldmud-3.2.9/src/bugs/ferrycode/ferry/
ldmud-3.2.9/src/bugs/ferrycode/obj/
ldmud-3.2.9/src/bugs/psql/
ldmud-3.2.9/src/done/
ldmud-3.2.9/src/done/order_alist/
ldmud-3.2.9/src/done/order_alist/obj/
ldmud-3.2.9/src/done/order_alist/room/
ldmud-3.2.9/src/gcc/
ldmud-3.2.9/src/gcc/2.7.0/
ldmud-3.2.9/src/gcc/2.7.1/
ldmud-3.2.9/src/hosts/
ldmud-3.2.9/src/hosts/GnuWin32/
ldmud-3.2.9/src/hosts/amiga/NetIncl/
ldmud-3.2.9/src/hosts/amiga/NetIncl/netinet/
ldmud-3.2.9/src/hosts/amiga/NetIncl/sys/
ldmud-3.2.9/src/hosts/i386/
ldmud-3.2.9/src/hosts/msdos/byacc/
ldmud-3.2.9/src/hosts/msdos/doc/
ldmud-3.2.9/src/hosts/os2/
ldmud-3.2.9/src/hosts/win32/
ldmud-3.2.9/src/util/
ldmud-3.2.9/src/util/erq/
ldmud-3.2.9/src/util/indent/hosts/next/
ldmud-3.2.9/src/util/xerq/
ldmud-3.2.9/src/util/xerq/lpc/
ldmud-3.2.9/src/util/xerq/lpc/www/
SYNOPSIS
        void set_driver_hook(int what, closure arg)
        void set_driver_hook(int what, string arg)
        void set_driver_hook(int what, string * arg)

DESCRIPTION
        This privileged efun sets the driver hook 'what' (values are
        defined in /sys/driver_hook.h) to 'arg'.
        The exact meanings and types of 'arg' depend of the hook set.
        To remove a hook, set 'arg' to 0.

        These hooks exist:

        H_MOVE_OBJECT0
        H_MOVE_OBJECT1
          arg: unbound lambda
          Mandatory hooks implementing the move_object() efun.

        H_LOAD_UIDS
        H_CLONE_UIDS
          arg: unbound lambda or lfun closure
          Mandatory hooks to determine the (e)uid of new objects.

        H_CREATE_SUPER
        H_CREATE_OB
        H_CREATE_CLONE
        H_RESET
        H_CLEAN_UP
          arg: lambda closure (H_CLEAN_UP also accepts a lfun
            closure), function name.
          Optional hooks for creation/reset/clean up-actions.

        H_MODIFY_COMMAND
          arg: lambda closure, lfun closure, function name, mapping
          Optional hook for modifying player commands before the
          parser sees them.

        H_NOTIFY_FAIL
          arg: lambda closure, lfun closure, string.
          Mandatory hook to generate the default message if an entered
          command couldn't be parsed and no notify_fail() command is
          in effect.

        H_SEND_NOTIFY_FAIL
          arg: lambda closure, lfun closure, string.
          Optional hook to deliver the notify fail message from a failed
          command.

        H_NO_IPC_SLOT
          arg: string.
          Optional hook specifying the 'sorry' messages if logins are
          rejected due to fullness of the mud.

        H_INCLUDE_DIRS
          arg: lambda closure, lfun closure, string array.
          Semi-mandatory hook specifying the directories where <>-type
          include files are searched.

        H_AUTO_INCLUDE
          arg: lambda closure, lfun closure, string
          Optional hook to specify a string to be included before the
          source of every compiled LPC object.

        H_TELNET_NEG
          arg: lambda closure, lfun closure, string.
          Optional hook to specifiy how to perform a single telnet
          negotiation.

        H_NOECHO
          arg: lambda closure, lfun closure, string.
          Optional hook to specifiy how to perform the telnet actions
          to switch the echo mode (used for e.g. password input_to()s).

        H_ERQ_STOP
          arg: lambda closure, lfun closure.
          Optional hook to notify the mudlib about the termination of
          the erq demon.

        See hooks(C) for a detailed discussion.

HISTORY
        Introduced in 3.2.1@1 as efun309(), renamed to
        set_driver_hook() in 3.2.1@13

SEE ALSO
        hooks(C)