/[Search-TokyoDystopia]/lib/Search/TokyoDystopia.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /lib/Search/TokyoDystopia.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations)
Mon Aug 18 17:45:56 2008 UTC (15 years, 8 months ago) by dpavlin
File size: 1776 byte(s)
tcidbget
1 dpavlin 1 package Search::TokyoDystopia;
2    
3     use strict;
4     use warnings;
5    
6     require Exporter;
7     require XSLoader;
8     use base qw(Exporter);
9     our $VERSION = '0.00';
10     our $debug = 0;
11     XSLoader::load('Search::TokyoDystopia', $VERSION);
12    
13 dpavlin 10 our @EXPORT = qw(
14     tcidberrmsg
15     tcidbnew
16     tcidbdel
17     tcidbnew
18     tcidbecode
19     tcidbtune
20     IDBTLARGE
21     IDBTDEFLATE
22     IDBTTCBS
23     tcidbsetcache
24     tcidbsetfwmmax
25     tcidbopen
26     IDBOREADER
27     IDBOWRITER
28     IDBOCREAT
29     IDBOTRUNC
30     IDBONOLCK
31     IDBOLCKNB
32 dpavlin 11 tcidbclose
33 dpavlin 14 tcidbput
34 dpavlin 15 tcidbout
35 dpavlin 17 tcidbget
36 dpavlin 10 );
37    
38 dpavlin 1 =head1 NAME
39    
40     Search::TokyoDystopia - XS bindings for Tokyo Dystopia
41    
42 dpavlin 10 =head1 EXPORTS
43 dpavlin 1
44 dpavlin 10 If you don't prevent it, it will export all kind of stuff into your namespace to cut down on typing.
45    
46     =head2 tcidberrmsg
47    
48 dpavlin 12 my $message = tcidberrmsg( $ecode );
49 dpavlin 10
50     =head2 tcidbnew
51    
52 dpavlin 12 my $idb = tcidbnew;
53 dpavlin 10
54     =head2 tcidbdel
55    
56 dpavlin 12 tcidbdel( $idb );
57 dpavlin 10
58     =head2 tcidbecode
59    
60 dpavlin 12 my $ecode = tcidbecode( $idb );
61 dpavlin 10
62     =head2 tcidbtune
63    
64 dpavlin 13 my $success = tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE | IDBTDEFLATE );
65 dpavlin 10
66 dpavlin 1 =cut
67    
68 dpavlin 10 use constant {
69     IDBTLARGE => 1 << 0,
70     IDBTDEFLATE => 1 << 1,
71     IDBTTCBS => 1 << 2,
72     };
73    
74     =head2 tcidbsetcache
75    
76 dpavlin 12 my $success = tcidbsetcache( $idb, $icsiz, $lcnum );
77 dpavlin 10
78     =head2 tcidbsetfwmmax
79    
80 dpavlin 12 my $success = tcidbsetfwmmax( $idb, $fwnum );
81 dpavlin 10
82     =head2 tcidbopen
83    
84 dpavlin 13 my $success = tcidbopen( $idb, 'casket', IDBOWRITER | IDBOCREAT );
85 dpavlin 10
86     =cut
87    
88     use constant {
89     IDBOREADER => 1 << 0,
90     IDBOWRITER => 1 << 1,
91     IDBOCREAT => 1 << 2,
92     IDBOTRUNC => 1 << 3,
93     IDBONOLCK => 1 << 4,
94     IDBOLCKNB => 1 << 5,
95     };
96    
97 dpavlin 12 =head2 tcidbclose
98    
99     my $success = tcidbclose( $idb );
100    
101 dpavlin 14 =head2 tcidbput
102    
103 dpavlin 17 my $success = tcidbput( $idb, $id, $text );
104 dpavlin 14
105 dpavlin 16 =head2 tcidbout
106    
107     my $success = tcidbout( $idb, $id );
108    
109 dpavlin 17 =head2 tcidbget
110    
111     my $text = tcidbget( $idb, $id );
112    
113 dpavlin 5 =head1 KNOWN BUGS
114 dpavlin 1
115 dpavlin 5 Low-level functions often just die when called on invalid (or deleted) database
116    
117     =cut
118    
119 dpavlin 1 1;

  ViewVC Help
Powered by ViewVC 1.1.26