-/* prepare_protocol.c - the protocol for preparing values for SQLite\r
- *\r
- * Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\r
- *\r
- * This file is part of pysqlite.\r
- *\r
- * This software is provided 'as-is', without any express or implied\r
- * warranty. In no event will the authors be held liable for any damages\r
- * arising from the use of this software.\r
- *\r
- * Permission is granted to anyone to use this software for any purpose,\r
- * including commercial applications, and to alter it and redistribute it\r
- * freely, subject to the following restrictions:\r
- *\r
- * 1. The origin of this software must not be misrepresented; you must not\r
- * claim that you wrote the original software. If you use this software\r
- * in a product, an acknowledgment in the product documentation would be\r
- * appreciated but is not required.\r
- * 2. Altered source versions must be plainly marked as such, and must not be\r
- * misrepresented as being the original software.\r
- * 3. This notice may not be removed or altered from any source distribution.\r
- */\r
-\r
-#include "sqlitecompat.h"\r
-#include "prepare_protocol.h"\r
-\r
-int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* self, PyObject* args, PyObject* kwargs)\r
-{\r
- return 0;\r
-}\r
-\r
-void pysqlite_prepare_protocol_dealloc(pysqlite_PrepareProtocol* self)\r
-{\r
- Py_TYPE(self)->tp_free((PyObject*)self);\r
-}\r
-\r
-PyTypeObject pysqlite_PrepareProtocolType= {\r
- PyVarObject_HEAD_INIT(NULL, 0)\r
- MODULE_NAME ".PrepareProtocol", /* tp_name */\r
- sizeof(pysqlite_PrepareProtocol), /* tp_basicsize */\r
- 0, /* tp_itemsize */\r
- (destructor)pysqlite_prepare_protocol_dealloc, /* tp_dealloc */\r
- 0, /* tp_print */\r
- 0, /* tp_getattr */\r
- 0, /* tp_setattr */\r
- 0, /* tp_compare */\r
- 0, /* tp_repr */\r
- 0, /* tp_as_number */\r
- 0, /* tp_as_sequence */\r
- 0, /* tp_as_mapping */\r
- 0, /* tp_hash */\r
- 0, /* tp_call */\r
- 0, /* tp_str */\r
- 0, /* tp_getattro */\r
- 0, /* tp_setattro */\r
- 0, /* tp_as_buffer */\r
- Py_TPFLAGS_DEFAULT, /* tp_flags */\r
- 0, /* tp_doc */\r
- 0, /* tp_traverse */\r
- 0, /* tp_clear */\r
- 0, /* tp_richcompare */\r
- 0, /* tp_weaklistoffset */\r
- 0, /* tp_iter */\r
- 0, /* tp_iternext */\r
- 0, /* tp_methods */\r
- 0, /* tp_members */\r
- 0, /* tp_getset */\r
- 0, /* tp_base */\r
- 0, /* tp_dict */\r
- 0, /* tp_descr_get */\r
- 0, /* tp_descr_set */\r
- 0, /* tp_dictoffset */\r
- (initproc)pysqlite_prepare_protocol_init, /* tp_init */\r
- 0, /* tp_alloc */\r
- 0, /* tp_new */\r
- 0 /* tp_free */\r
-};\r
-\r
-extern int pysqlite_prepare_protocol_setup_types(void)\r
-{\r
- pysqlite_PrepareProtocolType.tp_new = PyType_GenericNew;\r
- Py_TYPE(&pysqlite_PrepareProtocolType)= &PyType_Type;\r
- return PyType_Ready(&pysqlite_PrepareProtocolType);\r
-}\r