Annotation of gpl/axl/py-axl/py_axl.h, revision 1.1
1.1 ! misho 1: /**
! 2: * PyAxl: Axl Library python bindings
! 3: * Copyright (C) 2009 Advanced Software Production Line, S.L.
! 4: *
! 5: * This program is free software; you can redistribute it and/or
! 6: * modify it under the terms of the GNU Lesser General Public License
! 7: * as published by the Free Software Foundation; either version 2.1
! 8: * of the License, or (at your option) any later version.
! 9: *
! 10: * This program is distributed in the hope that it will be useful,
! 11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
! 12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 13: * Lesser General Public License for more details.
! 14: *
! 15: * You should have received a copy of the GNU Lesser General Public
! 16: * License along with this program; if not, write to the Free
! 17: * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
! 18: * 02111-1307 USA
! 19: *
! 20: * You may find a copy of the license under this software is released
! 21: * at COPYING file. This is LGPL software: you are welcome to develop
! 22: * proprietary applications using this library without any royalty or
! 23: * fee but returning back any change, improvement or addition in the
! 24: * form of source code, project image, documentation patches, etc.
! 25: *
! 26: * For commercial support for XML enabled solutions contact us:
! 27: *
! 28: * Postal address:
! 29: * Advanced Software Production Line, S.L.
! 30: * C/ Antonio Suarez Nº 10,
! 31: * Edificio Alius A, Despacho 102
! 32: * Alcalá de Henares 28802 (Madrid)
! 33: * Spain
! 34: *
! 35: * Email address:
! 36: * info@aspl.es - http://www.aspl.es/axl
! 37: */
! 38:
! 39: #ifndef __PY_AXL_H__
! 40: #define __PY_AXL_H__
! 41:
! 42: /* include python devel headers */
! 43: #include <Python.h>
! 44:
! 45: /* include axl headers */
! 46: #include <axl.h>
! 47:
! 48: #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
! 49: #define PyMODINIT_FUNC void
! 50: #endif
! 51:
! 52: /**
! 53: * @brief PyAxl macro used to cast objects to PyObject.
! 54: */
! 55: #ifndef __PY_OBJECT
! 56: # define __PY_OBJECT(o) ((PyObject *)o)
! 57: #endif
! 58:
! 59: void py_axl_handle_and_clear_exception (void);
! 60:
! 61: typedef void (*PyAxlExceptionHandler) (const char * exception_msg);
! 62:
! 63: void py_axl_set_exception_handler (PyAxlExceptionHandler handler);
! 64:
! 65: PyMODINIT_FUNC initlibpy_axl_11 (void);
! 66:
! 67: /* include other modules */
! 68: #include <py_axl_doc.h>
! 69: #include <py_axl_error.h>
! 70: #include <py_axl_node.h>
! 71: #include <py_axl_attr_cursor.h>
! 72: #include <py_axl_dtd.h>
! 73: #include <py_axl_list.h>
! 74: #include <py_axl_hash.h>
! 75: #include <py_axl_stack.h>
! 76: #include <py_axl_stream.h>
! 77:
! 78: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>