Permalink
Browse files

add python module interface to the shared library for easy scripting.

the shared library must never write to stdout or stderr.
fix pst_attach_to_mem so the caller does not need to initialize the buffer pointer.
  • Loading branch information...
1 parent c3fee6a commit afa99bce411a17813e997d297d00e1fd9ea42c17 Carl Byington committed Apr 21, 2009
Showing with 566 additions and 124 deletions.
  1. +7 −0 ChangeLog
  2. +1 −1 Makefile.am
  3. +1 −1 TODO
  4. +15 −4 configure.in
  5. +13 −0 python/Makefile.am
  6. +396 −0 python/python-libpst.cpp
  7. +36 −0 python/test.py
  8. +1 −1 regression/regression-tests.bash
  9. +82 −78 src/libpst.c
  10. +5 −5 src/libpst.h
  11. +0 −2 src/lspst.c
  12. +1 −5 src/pst2dii.cpp.in
  13. +4 −22 src/readpst.c
  14. +4 −5 src/vbuf.c
View
@@ -1,3 +1,10 @@
+LibPST 0.6.38 (2009-xx-xx)
+===============================
+ * add python module interface to the shared library for easy scripting.
+ * the shared library must never write to stdout or stderr.
+ * fix pst_attach_to_mem so the caller does not need to initialize
+ the buffer pointer.
+
LibPST 0.6.37 (2009-04-17)
===============================
* add pst_attach_to_mem() back into the shared library interface.
View
@@ -1,4 +1,4 @@
-SUBDIRS = src man html debian
+SUBDIRS = src python man html debian
htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
html_DATA = AUTHORS COPYING ChangeLog NEWS README
CLEANFILES = xml/libpst xml/Makefile
View
2 TODO
@@ -9,4 +9,4 @@ At the next soname bump (to libpst.so.3) we should
remove pst_x_attrib_ll->type (unused)
reorder appointment fields to collect related fields
remove readpstlog, and produce directly ascii debug log files
-
+ change pst_attach_to_mem to return pst_binary
View
@@ -1,5 +1,5 @@
AC_PREREQ(2.59)
-AC_INIT(libpst,0.6.37,carl@five-ten-sg.com)
+AC_INIT(libpst,0.6.38,carl@five-ten-sg.com)
AC_CONFIG_SRCDIR([src/libpst.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE
@@ -24,11 +24,21 @@ AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info])
libpst_so_major='2'
AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major])
+python_libpst_version_info='1:0:0'
+AC_SUBST(PYTHON_LIBPST_VERSION_INFO, [$python_libpst_version_info])
+python_libpst_so_major='2'
+AC_SUBST(PYTHON_LIBPST_SO_MAJOR, [$python_libpst_so_major])
+
# libpst
-# version soname so library name
-# 0.6.35 libpst.so.2 libpst.so.2.0.0
-# 0.6.37 libpst.so.2 libpst.so.2.1.0
+# version soname so library name python python library name
+# 0.6.35 libpst.so.2 libpst.so.2.0.0
+# 0.6.37 libpst.so.2 libpst.so.2.1.0
+# 0.6.38 libpst.so.2 libpst.so.2.1.0 _libpst.so.1 _libpst.so.1.0.0
+
+# check for boost
+AX_PYTHON
+AX_BOOST_PYTHON
# Check for win32
@@ -261,6 +271,7 @@ AC_OUTPUT( \
man/Makefile \
src/Makefile \
src/pst2dii.cpp \
+ python/Makefile \
xml/Makefile \
xml/libpst \
)
View
@@ -0,0 +1,13 @@
+if PLATFORM_WIN32
+ NO_UNDEFINED = -no-undefined
+else
+ NO_UNDEFINED =
+endif
+
+lib_LTLIBRARIES = _libpst.la
+_libpst_la_LDFLAGS = -module $(NO_UNDEFINED) -version-info @PYTHON_LIBPST_VERSION_INFO@
+_libpst_la_SOURCES = python-libpst.cpp
+_libpst_la_LIBADD = -lboost_python ../src/libpst.la
+
+# set the include path found by configure
+INCLUDES= -I$(srcdir)/.. -I$(srcdir)/../src $(all_includes) -I$(PYTHON_INCLUDE_DIR)
Oops, something went wrong.

0 comments on commit afa99bc

Please sign in to comment.