~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to bindings/swig/templates.i

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden, Jonathan Marsden, Dmitrijs Ledkovs, Closed Bugs
  • Date: 2009-05-30 11:55:55 UTC
  • mfrom: (1.3.1 upstream) (6.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090530115555-r427zsn3amivdpfu
Tags: 1.6.0+dfsg-1
[ Jonathan Marsden ]
* New upstream release. (Closes: #507960) (LP: #320558)
* debian/patches/02_libver.diff:
  - Bump SONAME to 8 -- SWORD 1.6 is not backward compatible with 1.5.11.
* debian/patches/series:
  - Remove 10_diatheke.diff -- included in upstream source.
* debian/patches/:
  - Remove several old unused .diff files.
  - Add 11_regex_only_when_needed.diff to conditionally include regex lib.
  - Add 12_fix_compiler_warnings.diff to remove all compiler warnings.
  - Add 13_fix_osis2mod_compression_default.diff from upstream svn.
  - Add 14_closing_section_not_chapter.diff from upstream svn.
* debian/libsword7.*: 
  - Rename to libsword8.*
  - Change libsword7 to libsword8 within files.
* debian/rules: 
  - SONAME bump to 8.
  - Set library version check to >= 1.6
* debian/control:
  - Change libsword7 to libsword8.
  - Add libsword7 to Conflicts.
  - Fix case of sword to SWORD in package descriptions.
  - Bump Standards-Version to 3.8.1 (no changes needed).
  - Fix section for libsword-dbg to avoid lintian warning.
* debian/rules:
  - Add DFSG get-orig-source target.
* debian/copyright:
  - Fix various mistakes in initial attempt to document copyrights.

[ Dmitrijs Ledkovs ]
* debian/rules: Added utils.mk to use missing-files target and call it on
  each build.
* debian/libsword-dev.install: Added libsword.la, previously missing.
* debian/libsword7.install: Added missing libicu translit files.
* debian/control:
  - Updated all uses of SWORD version to 1.6
  - Added libsword-dbg package
* debian/watch: Fixed a small mistake which was resulting in extra "."
  in final version name.
* debian/rules: simplified manpage processing.
* debian/libsword8.lintian-overrides: added override for module
  installation directory.
* debian/copyright: Updated with information about everyfile.
  Closes: #513448 LP: #322638
* debian/diatheke.examples: moved examples here from the diatheke.install
* debian/rules:
  - enabled shell script based testsuite
  - added commented out cppunit testsuite
* debian/patches/40_missing_includes.diff: 
  - added several missing stdio.h includes to prevent FTBFS of testsuite.

[ Closed Bugs ]
* FTBFS on intrepid (LP: #305172)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%include <stl.i>
 
2
%include <std_map.i>
 
3
%include <std_list.i>
 
4
 
 
5
%include <std_pair.i>
 
6
%include <std_multimap.i>
 
7
 
 
8
/*
 
9
Include SWModule and DirEntry here, so that it will be able to appear below
 
10
*/
 
11
%{
 
12
#include "swmodule.h"
 
13
#include "filemgr.h"
 
14
%}
 
15
 
 
16
/* 
 
17
These are the stl templates that are used throughout Sword. Some have more
 
18
than one name in Sword, depending on context. However, these are all wrapped with the one class.
 
19
For example, sword::AttributeValueMap is the same as sword::ConfigEntMap
 
20
Both are wrapped as the former, however
 
21
*/
 
22
%inline %{
 
23
typedef std::map< sword::SWBuf, sword::SWBuf > AttributeValueMap;
 
24
typedef std::map< sword::SWBuf, AttributeValueMap> AttributeListMap;
 
25
typedef std::map< sword::SWBuf, AttributeListMap> AttributetypeListMap; 
 
26
%}
 
27
 
 
28
/* Used by SWModule and SWConfig */
 
29
%template() std::pair <sword::SWBuf, sword::SWBuf>;
 
30
%template(AttributeValueMap) std::map < sword::SWBuf, sword::SWBuf >;
 
31
 
 
32
/* Used by SWModule */
 
33
%template() std::pair <sword::SWBuf, AttributeValueMap>;
 
34
%template(AttributeListMap) std::map < sword::SWBuf, AttributeValueMap>;
 
35
%template() std::pair < sword::SWBuf, AttributeListMap>;
 
36
%template(AttributeTypeListMap) std::map < sword::SWBuf, AttributeListMap>;
 
37
 
 
38
/* Used by SWConfig */
 
39
%template(SectionMapMultiMap) std::multimap < sword::SWBuf, AttributeValueMap >;
 
40
 
 
41
/* Used by SWMgr */
 
42
%template() std::pair<sword::SWBuf, sword::SWModule*>;
 
43
%template(ModuleMap) std::map<sword::SWBuf, sword::SWModule*>;
 
44
 
 
45
/* Used by SWMgr and LocaleMgr */
 
46
%template(StringVector) std::vector < sword::SWBuf >;
 
47
 
 
48
/* Used by xmltag */
 
49
%template(StringList) std::list < sword::SWBuf >;
 
50
 
 
51
 
 
52
/* Used by InstallMgr */
 
53
#ifndef EXCLUDE_INSTALLMGR
 
54
%{
 
55
#include "installmgr.h"
 
56
%}
 
57
%template() std::pair<sword::SWBuf, sword::InstallSource*>;
 
58
%template(InstallSourceMap) std::map<sword::SWBuf, sword::InstallSource*>;
 
59
%template() std::pair<sword::SWModule *, int>;
 
60
%template() std::map<sword::SWModule *, int>;
 
61
#endif
 
62
 
 
63
/* Used by DirEntry */
 
64
%template(DirEntryVector) std::vector < sword::DirEntry > ;