db_empty.c

tinymush-3.0b21/src/db_empty.c · 665 B

From the archive tm30b21.tar.gz

Download the archive   « Back to the archive contents

/* db_empty.c */

/* Placeholder code if we're not using an external SQL database. */

#include "copyright.h"
#include "autoconf.h"
#include "mudconf.h"
#include "config.h"
#include "externs.h"

/* See db_sql.h for details of what each of these functions do. */

int sql_init()
{
    return -1;
}

int sql_query(player, q_string, buff, bufc, row_delim, field_delim)
    dbref player;
    char *q_string;
    char *buff;
    char **bufc;
    char row_delim, field_delim;
{
    notify(player, "No external SQL database connectivity is configured.");
    if (buff)
	safe_str("#-1", buff, bufc);
    return -1;
}


void sql_shutdown()
{
    mudstate.sql_socket = -1;
}

Site Stats

Snippets: 1791
Codebases: 571