Removed all code that uses OpenGL from Image.
[io/quag.git] / addons / MySQL / source / IoMySQL.h
blob23e8d02091043f34ba051b1c72cc3f08b0e750b0
1 /*
2 docCopyright("Min-hee Hong", 2007)
3 docLicense("MIT License")
4 */
6 #ifndef IOMYSQL_DEFINED
7 #define IOMYSQL_DEFINED 1
9 #include "IoObject.h"
10 #include <mysql.h>
12 #define ISMYSQL(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoMySQL_rawClone)
14 typedef unsigned bool;
16 typedef struct {
17 MYSQL connection;
18 bool connected;
19 } IoMySQLData;
21 IoObject* IoMySQL_rawClone(IoObject* self);
22 IoObject* IoMySQL_proto(void* state);
23 IoObject* IoMySQL_new(void* state);
25 void IoMySQL_free(IoObject* self);
26 void IoMySQL_mark(IoObject* self);
28 /* ----------------------------------------------------------- */
30 IoObject* IoMySQL_establish(IoObject* self, IoObject* locals, IoMessage* m);
31 IoObject* IoMySQL_connect(IoObject* self, IoObject* locals, IoMessage* m);
32 IoObject* IoMySQL_connected(IoObject* self, IoObject* locals, IoMessage* m);
33 IoObject* IoMySQL_close(IoObject* self, IoObject* locals, IoMessage* m);
34 IoObject* IoMySQL_query(IoObject* self, IoObject* locals, IoMessage* m);
35 IoObject* IoMySQL_lastInsertRowId(IoObject* self, IoObject* locals, IoMessage* m);
37 #endif