summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-29 23:10:29 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-29 23:10:29 +0000
commitc14faa2c92a458259abfa14a71e7c05bbdc08027 (patch)
tree691259cc2a4f9d1517fcdbd7a8bbb30a0500a374 /src/char_sql
parent2c7f11d977221665d99f7b1d4fe494ace4558786 (diff)
downloadhercules-c14faa2c92a458259abfa14a71e7c05bbdc08027.tar.gz
hercules-c14faa2c92a458259abfa14a71e7c05bbdc08027.tar.bz2
hercules-c14faa2c92a458259abfa14a71e7c05bbdc08027.tar.xz
hercules-c14faa2c92a458259abfa14a71e7c05bbdc08027.zip
- Starting preparatives for Auctions System.
- Added the @auction command to open the auctions. Just to start working on it and if someone wants to help. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12270 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/int_auction.c32
-rw-r--r--src/char_sql/int_auction.h8
2 files changed, 40 insertions, 0 deletions
diff --git a/src/char_sql/int_auction.c b/src/char_sql/int_auction.c
new file mode 100644
index 000000000..a3213d647
--- /dev/null
+++ b/src/char_sql/int_auction.c
@@ -0,0 +1,32 @@
+// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+
+#include "../common/mmo.h"
+#include "../common/malloc.h"
+#include "../common/db.h"
+#include "../common/showmsg.h"
+#include "../common/socket.h"
+#include "../common/strlib.h"
+#include "../common/sql.h"
+#include "char.h"
+#include "inter.h"
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+static DBMap* auction_db = NULL; // int auction_id -> struct auction*
+
+int inter_auction_sql_init(void)
+{
+ auction_db = idb_alloc(DB_OPT_RELEASE_DATA);
+
+ return 0;
+}
+
+void inter_auction_sql_final(void)
+{
+ auction_db->destroy(auction_db,NULL);
+
+ return;
+}
diff --git a/src/char_sql/int_auction.h b/src/char_sql/int_auction.h
new file mode 100644
index 000000000..061f0855d
--- /dev/null
+++ b/src/char_sql/int_auction.h
@@ -0,0 +1,8 @@
+// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+
+#ifndef _INT_AUCTION_SQL_H_
+#define _INT_AUCTION_SQL_H_
+
+
+#endif /* _INT_AUCTION_SQL_H_ */