/* microprotocols.c - definitions for minimalist and non-validating protocols1*2* Copyright (C) 2003-2004 Federico Di Gregorio <[email protected]>3*4* This file is part of psycopg and was adapted for pysqlite. Federico Di5* Gregorio gave the permission to use it within pysqlite under the following6* license:7*8* This software is provided 'as-is', without any express or implied9* warranty. In no event will the authors be held liable for any damages10* arising from the use of this software.11*12* Permission is granted to anyone to use this software for any purpose,13* including commercial applications, and to alter it and redistribute it14* freely, subject to the following restrictions:15*16* 1. The origin of this software must not be misrepresented; you must not17* claim that you wrote the original software. If you use this software18* in a product, an acknowledgment in the product documentation would be19* appreciated but is not required.20* 2. Altered source versions must be plainly marked as such, and must not be21* misrepresented as being the original software.22* 3. This notice may not be removed or altered from any source distribution.23*/2425#ifndef PSYCOPG_MICROPROTOCOLS_H26#define PSYCOPG_MICROPROTOCOLS_H 12728#include <Python.h>2930/** exported functions **/3132/* used by module.c to init the microprotocols system */33extern int pysqlite_microprotocols_init(PyObject *module);34extern int pysqlite_microprotocols_add(pysqlite_state *state,35PyTypeObject *type, PyObject *proto,36PyObject *cast);37extern PyObject *pysqlite_microprotocols_adapt(pysqlite_state *state,38PyObject *obj, PyObject *proto,39PyObject *alt);4041#endif /* !defined(PSYCOPG_MICROPROTOCOLS_H) */424344