/****************************************************************************/
/*   $Id: commands.h,v 1.4 1998/09/29 06:44:33 chris Exp $                  */
/****************************************************************************/
#ifndef COMMANDS_H
#define COMANDSS_H


#define CMD_OK            0
#define CMD_FAIL         -1
#define CMD_NOREPLY       1         /* Special case used by logout */

#define MK4D_CMDLEN      32
#define MAX_COMMENT     128

#define MK4D_DELIM      " \t\n"

typedef struct
{
    char    name[MK4D_CMDLEN];
    char    comment[MAX_COMMENT];
    void*   cmd_function;
    int     auth_required;
} CommandDesTyp;



/* Function Prototypes */
extern int dispatch(int sd, char buffer[]);

#endif /* COMMANDS_H */
