untermud/DOC/
untermud/DOC/U/
untermud/DOC/U/U-examples/
untermud/DOC/internals/
untermud/DOC/wizard/
untermud/MISC/
untermud/MISC/dbchk/
untermud/RWHO/
untermud/RWHO/rwhod/
/*
        Copyright (C) 1991, Marcus J. Ranum. All rights reserved.
*/

/* configure all options BEFORE including system stuff. */
#include        "config.h"

#ifdef  DB_GDBMFILE


#include        "mud.h"

/*
binding to the command level interface. this just parses and calls
lower level configuration code in the db layer.
*/



/* ARGSUSED */
int cmd__dgdbconfig (int argc, char *argv[], char *who, char *aswho)
{
  /* configure database filename */
  if (!strcmp (argv[1], "dbfile")) {
    if (dgdb_initted ()) {
      log_printf ("database is already active.\n", (char *) 0);
      return (1);
    }
    if (argc < 3) {
      log_printf ("must provide database name.\n", (char *) 0);
      return (1);
    }
    dgdb_setfile (argv[2]);
    log_printf ("database is now ", argv[2], "\n", (char *) 0);
    return (0);
  }

  log_printf ("_dbconfig: I don't understand ", argv[1], "\n", (char *) 0);
  return (0);
}
#endif // DB_GDBMFILE